Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
srm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
aship
srm
Commits
abef22fa
Commit
abef22fa
authored
Sep 03, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update soap ws user
parent
ac17803a
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
59 additions
and
15 deletions
+59
-15
BarcodeGenService.java
...in/java/com/i1/erp/barcode/service/BarcodeGenService.java
+6
-1
BarcodeGetStatusService.java
...a/com/i1/erp/barcode/service/BarcodeGetStatusService.java
+6
-1
BarcodePrintService.java
.../java/com/i1/erp/barcode/service/BarcodePrintService.java
+5
-1
BarcodeVoidService.java
...n/java/com/i1/erp/barcode/service/BarcodeVoidService.java
+6
-1
SupplierCheckService.java
...in/java/com/i1/erp/base/service/SupplierCheckService.java
+5
-1
SupplierSendService.java
...ain/java/com/i1/erp/base/service/SupplierSendService.java
+5
-1
DeliveryOrderSendService.java
...java/com/i1/erp/deo/service/DeliveryOrderSendService.java
+4
-1
DeliveryOrderWithdrawService.java
.../com/i1/erp/deo/service/DeliveryOrderWithdrawService.java
+6
-3
IDeliveryOrderWithdrawService.java
...com/i1/erp/deo/service/IDeliveryOrderWithdrawService.java
+2
-1
DeliveryOrderSendClient.java
...ain/java/com/i1/erp/deo/soap/DeliveryOrderSendClient.java
+1
-0
InvoiceSendService.java
...n/java/com/i1/erp/invoice/service/InvoiceSendService.java
+4
-1
IPoChgSendService.java
...main/java/com/i1/erp/poChg/service/IPoChgSendService.java
+2
-1
PoChgSendService.java
src/main/java/com/i1/erp/poChg/service/PoChgSendService.java
+7
-2
No files found.
src/main/java/com/i1/erp/barcode/service/BarcodeGenService.java
View file @
abef22fa
...
@@ -2,10 +2,12 @@ package com.i1.erp.barcode.service;
...
@@ -2,10 +2,12 @@ package com.i1.erp.barcode.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
com.i1.srm.purchaseOrder.web.dto.PoBarcodeDtlDto
;
import
com.i1.srm.purchaseOrder.web.dto.PoBarcodeDtlDto
;
import
com.i1.srm.purchaseOrder.web.dto.PoBarcodeDto
;
import
com.i1.srm.purchaseOrder.web.dto.PoBarcodeDto
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -16,6 +18,9 @@ import java.util.Objects;
...
@@ -16,6 +18,9 @@ import java.util.Objects;
public
class
BarcodeGenService
implements
IBarcodeGenService
{
public
class
BarcodeGenService
implements
IBarcodeGenService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
BarcodeGenService
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
BarcodeGenService
.
class
);
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
genXml
(
PoBarcodeDto
input
)
throws
IOneServiceException
{
public
Request
genXml
(
PoBarcodeDto
input
)
throws
IOneServiceException
{
...
@@ -23,7 +28,7 @@ public class BarcodeGenService implements IBarcodeGenService {
...
@@ -23,7 +28,7 @@ public class BarcodeGenService implements IBarcodeGenService {
String
pmm01
=
Objects
.
requireNonNull
(
input
.
getPurchaseOrderUid
());
String
pmm01
=
Objects
.
requireNonNull
(
input
.
getPurchaseOrderUid
());
List
<
PoBarcodeDtlDto
>
dtls
=
Objects
.
requireNonNull
(
input
.
getDtl
());
List
<
PoBarcodeDtlDto
>
dtls
=
Objects
.
requireNonNull
(
input
.
getDtl
());
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
organization
),
Organization
.
of
(
organization
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/barcode/service/BarcodeGetStatusService.java
View file @
abef22fa
...
@@ -2,7 +2,9 @@ package com.i1.erp.barcode.service;
...
@@ -2,7 +2,9 @@ package com.i1.erp.barcode.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -10,13 +12,16 @@ import java.util.List;
...
@@ -10,13 +12,16 @@ import java.util.List;
@Service
@Service
public
class
BarcodeGetStatusService
implements
IBarcodeGetStatusService
{
public
class
BarcodeGetStatusService
implements
IBarcodeGetStatusService
{
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
getRequestXml
(
String
organization
,
String
barcode
)
throws
IOneServiceException
{
public
Request
getRequestXml
(
String
organization
,
String
barcode
)
throws
IOneServiceException
{
if
(
StringUtils
.
isBlank
(
organization
)
||
StringUtils
.
isBlank
(
barcode
))
{
if
(
StringUtils
.
isBlank
(
organization
)
||
StringUtils
.
isBlank
(
barcode
))
{
throw
new
IOneServiceException
(
"防伪码状态查询参数为空"
);
throw
new
IOneServiceException
(
"防伪码状态查询参数为空"
);
}
}
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
organization
),
Organization
.
of
(
organization
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/barcode/service/BarcodePrintService.java
View file @
abef22fa
...
@@ -2,7 +2,9 @@ package com.i1.erp.barcode.service;
...
@@ -2,7 +2,9 @@ package com.i1.erp.barcode.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -10,6 +12,8 @@ import java.util.List;
...
@@ -10,6 +12,8 @@ import java.util.List;
@Service
@Service
public
class
BarcodePrintService
implements
IBarcodePrintService
{
public
class
BarcodePrintService
implements
IBarcodePrintService
{
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
getRequestXml
(
String
organization
,
String
docno
,
String
seq
,
String
barcode
,
String
type
)
throws
IOneServiceException
{
public
Request
getRequestXml
(
String
organization
,
String
docno
,
String
seq
,
String
barcode
,
String
type
)
throws
IOneServiceException
{
...
@@ -17,7 +21,7 @@ public class BarcodePrintService implements IBarcodePrintService {
...
@@ -17,7 +21,7 @@ public class BarcodePrintService implements IBarcodePrintService {
throw
new
IOneServiceException
(
"防伪码打印参数为空"
);
throw
new
IOneServiceException
(
"防伪码打印参数为空"
);
}
}
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
organization
),
Organization
.
of
(
organization
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/barcode/service/BarcodeVoidService.java
View file @
abef22fa
...
@@ -2,7 +2,9 @@ package com.i1.erp.barcode.service;
...
@@ -2,7 +2,9 @@ package com.i1.erp.barcode.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -10,13 +12,16 @@ import java.util.List;
...
@@ -10,13 +12,16 @@ import java.util.List;
@Service
@Service
public
class
BarcodeVoidService
implements
IBarcodeVoidService
{
public
class
BarcodeVoidService
implements
IBarcodeVoidService
{
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
getRequestXml
(
String
organization
,
String
barcode
)
throws
IOneServiceException
{
public
Request
getRequestXml
(
String
organization
,
String
barcode
)
throws
IOneServiceException
{
if
(
StringUtils
.
isBlank
(
organization
)||
StringUtils
.
isBlank
(
barcode
))
{
if
(
StringUtils
.
isBlank
(
organization
)||
StringUtils
.
isBlank
(
barcode
))
{
throw
new
IOneServiceException
(
"防伪码作废参数为空"
);
throw
new
IOneServiceException
(
"防伪码作废参数为空"
);
}
}
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
organization
),
Organization
.
of
(
organization
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/base/service/SupplierCheckService.java
View file @
abef22fa
...
@@ -2,9 +2,11 @@ package com.i1.erp.base.service;
...
@@ -2,9 +2,11 @@ package com.i1.erp.base.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -14,6 +16,8 @@ import java.util.List;
...
@@ -14,6 +16,8 @@ import java.util.List;
public
class
SupplierCheckService
implements
ISupplierCheckService
{
public
class
SupplierCheckService
implements
ISupplierCheckService
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
SupplierCheckService
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
SupplierCheckService
.
class
);
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
supplierCheckXml
(
String
supplierUid
,
String
abbrName
,
String
supplierName
,
String
type
,
String
plant
)
throws
IOneServiceException
{
public
Request
supplierCheckXml
(
String
supplierUid
,
String
abbrName
,
String
supplierName
,
String
type
,
String
plant
)
throws
IOneServiceException
{
// if (StringUtils.isBlank(plant)) {
// if (StringUtils.isBlank(plant)) {
...
@@ -33,7 +37,7 @@ public class SupplierCheckService implements ISupplierCheckService {
...
@@ -33,7 +37,7 @@ public class SupplierCheckService implements ISupplierCheckService {
}
}
//<Access>
//<Access>
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
plant
),
Organization
.
of
(
plant
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/base/service/SupplierSendService.java
View file @
abef22fa
...
@@ -2,6 +2,7 @@ package com.i1.erp.base.service;
...
@@ -2,6 +2,7 @@ package com.i1.erp.base.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
com.i1.srm.base.dao.entity.BaseSupplierFile
;
import
com.i1.srm.base.dao.entity.BaseSupplierFile
;
import
com.i1.srm.base.service.IBaseSupplierFileService
;
import
com.i1.srm.base.service.IBaseSupplierFileService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -23,6 +24,9 @@ public class SupplierSendService implements ISupplierSendService {
...
@@ -23,6 +24,9 @@ public class SupplierSendService implements ISupplierSendService {
@Autowired
@Autowired
private
IBaseSupplierFileService
baseSupplierFileService
;
private
IBaseSupplierFileService
baseSupplierFileService
;
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
supplierSendXml
(
String
supplierUid
,
String
plant
)
throws
IOneServiceException
{
public
Request
supplierSendXml
(
String
supplierUid
,
String
plant
)
throws
IOneServiceException
{
if
(
StringUtils
.
isBlank
(
plant
))
{
if
(
StringUtils
.
isBlank
(
plant
))
{
...
@@ -36,7 +40,7 @@ public class SupplierSendService implements ISupplierSendService {
...
@@ -36,7 +40,7 @@ public class SupplierSendService implements ISupplierSendService {
throw
new
IOneServiceException
(
"供应商更新ERP接口:找不到供应商"
+
supplierUid
);
throw
new
IOneServiceException
(
"供应商更新ERP接口:找不到供应商"
+
supplierUid
);
}
}
//<Access>
//<Access>
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
plant
),
Organization
.
of
(
plant
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/deo/service/DeliveryOrderSendService.java
View file @
abef22fa
...
@@ -3,6 +3,7 @@ package com.i1.erp.deo.service;
...
@@ -3,6 +3,7 @@ package com.i1.erp.deo.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
com.i1.srm.base.dao.entity.BaseProductFile
;
import
com.i1.srm.base.dao.entity.BaseProductFile
;
import
com.i1.srm.deliveryOrder.dao.IDoDtlFileDao
;
import
com.i1.srm.deliveryOrder.dao.IDoDtlFileDao
;
import
com.i1.srm.deliveryOrder.dao.IDoDtlProductLabelFileDao
;
import
com.i1.srm.deliveryOrder.dao.IDoDtlProductLabelFileDao
;
...
@@ -35,6 +36,8 @@ public class DeliveryOrderSendService implements IDeliveryOrderSendService {
...
@@ -35,6 +36,8 @@ public class DeliveryOrderSendService implements IDeliveryOrderSendService {
private
IDoDtlFileDao
doDtlFileDao
;
private
IDoDtlFileDao
doDtlFileDao
;
@Autowired
@Autowired
private
IDoDtlProductLabelFileDao
doDtlProductLabelFileDao
;
private
IDoDtlProductLabelFileDao
doDtlProductLabelFileDao
;
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
sendDoXml
(
List
<
Long
>
doMstIdList
)
throws
IOneServiceException
{
public
Request
sendDoXml
(
List
<
Long
>
doMstIdList
)
throws
IOneServiceException
{
...
@@ -158,7 +161,7 @@ public class DeliveryOrderSendService implements IDeliveryOrderSendService {
...
@@ -158,7 +161,7 @@ public class DeliveryOrderSendService implements IDeliveryOrderSendService {
requestContent
.
setParameter
(
Parameter
.
of
(
Record
.
of
(
null
)));
requestContent
.
setParameter
(
Parameter
.
of
(
Record
.
of
(
null
)));
//<Access>
//<Access>
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
organization
),
Organization
.
of
(
organization
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/deo/service/DeliveryOrderWithdrawService.java
View file @
abef22fa
package
com
.
i1
.
erp
.
deo
.
service
;
package
com
.
i1
.
erp
.
deo
.
service
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
com.i1.srm.deliveryOrder.dao.IDoMstFileDao
;
import
com.i1.srm.deliveryOrder.dao.IDoMstFileDao
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -15,13 +17,14 @@ import java.util.List;
...
@@ -15,13 +17,14 @@ import java.util.List;
public
class
DeliveryOrderWithdrawService
implements
IDeliveryOrderWithdrawService
{
public
class
DeliveryOrderWithdrawService
implements
IDeliveryOrderWithdrawService
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
DeliveryOrderWithdrawService
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
DeliveryOrderWithdrawService
.
class
);
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
withdrawDoXml
(
String
organization
,
String
deliveryOrderUid
)
{
public
Request
withdrawDoXml
(
String
organization
,
String
deliveryOrderUid
)
throws
IOneServiceException
{
//<Access>
//<Access>
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
organization
),
Organization
.
of
(
organization
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/deo/service/IDeliveryOrderWithdrawService.java
View file @
abef22fa
package
com
.
i1
.
erp
.
deo
.
service
;
package
com
.
i1
.
erp
.
deo
.
service
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.Request
;
import
com.i1.erp.entity.request.Request
;
public
interface
IDeliveryOrderWithdrawService
{
public
interface
IDeliveryOrderWithdrawService
{
Request
withdrawDoXml
(
String
organization
,
String
deliveryOrderUid
);
Request
withdrawDoXml
(
String
organization
,
String
deliveryOrderUid
)
throws
IOneServiceException
;
}
}
src/main/java/com/i1/erp/deo/soap/DeliveryOrderSendClient.java
View file @
abef22fa
...
@@ -62,6 +62,7 @@ public class DeliveryOrderSendClient extends WebServiceClient {
...
@@ -62,6 +62,7 @@ public class DeliveryOrderSendClient extends WebServiceClient {
/**
/**
* Send released delivery orders to ERP every one min.
* Send released delivery orders to ERP every one min.
*/
*/
// accountService.getCurrentUser()排程会抓不到
// @Scheduled(fixedDelay = 3600000)
// @Scheduled(fixedDelay = 3600000)
@Transactional
@Transactional
public
void
autoSend
()
throws
IOneServiceException
{
public
void
autoSend
()
throws
IOneServiceException
{
...
...
src/main/java/com/i1/erp/invoice/service/InvoiceSendService.java
View file @
abef22fa
...
@@ -3,6 +3,7 @@ package com.i1.erp.invoice.service;
...
@@ -3,6 +3,7 @@ package com.i1.erp.invoice.service;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
com.i1.srm.invoice.dao.IInvoiceDtlFileDao
;
import
com.i1.srm.invoice.dao.IInvoiceDtlFileDao
;
import
com.i1.srm.invoice.dao.IInvoiceMstFileDao
;
import
com.i1.srm.invoice.dao.IInvoiceMstFileDao
;
import
com.i1.srm.invoice.dao.IInvoiceOpDtlFileDao
;
import
com.i1.srm.invoice.dao.IInvoiceOpDtlFileDao
;
...
@@ -31,6 +32,8 @@ public class InvoiceSendService implements IInvoiceSendService {
...
@@ -31,6 +32,8 @@ public class InvoiceSendService implements IInvoiceSendService {
private
IInvoiceDtlFileDao
invoiceDtlFileDao
;
private
IInvoiceDtlFileDao
invoiceDtlFileDao
;
@Autowired
@Autowired
private
IInvoiceMstFileDao
invoiceMstFileDao
;
private
IInvoiceMstFileDao
invoiceMstFileDao
;
@Autowired
private
IAccountService
accountService
;
@Override
@Override
public
Request
sendInvoiceXml
(
List
<
Long
>
invoiceMstIdList
)
throws
IOneServiceException
{
public
Request
sendInvoiceXml
(
List
<
Long
>
invoiceMstIdList
)
throws
IOneServiceException
{
...
@@ -100,7 +103,7 @@ public class InvoiceSendService implements IInvoiceSendService {
...
@@ -100,7 +103,7 @@ public class InvoiceSendService implements IInvoiceSendService {
requestContent
.
setParameter
(
Parameter
.
of
(
Record
.
of
(
null
)));
requestContent
.
setParameter
(
Parameter
.
of
(
Record
.
of
(
null
)));
//<Access>
//<Access>
Access
access
=
Access
.
of
(
Authentication
.
of
(
"017552"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
accountService
.
getCurrentUser
()
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
organization
),
Organization
.
of
(
organization
),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
src/main/java/com/i1/erp/poChg/service/IPoChgSendService.java
View file @
abef22fa
package
com
.
i1
.
erp
.
poChg
.
service
;
package
com
.
i1
.
erp
.
poChg
.
service
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.Request
;
import
com.i1.erp.entity.request.Request
;
import
com.i1.srm.poChg.dao.entity.PoChgMstFile
;
import
com.i1.srm.poChg.dao.entity.PoChgMstFile
;
public
interface
IPoChgSendService
{
public
interface
IPoChgSendService
{
Request
sendPoChgXml
(
PoChgMstFile
poChgMstFile
);
Request
sendPoChgXml
(
PoChgMstFile
poChgMstFile
)
throws
IOneServiceException
;
}
}
src/main/java/com/i1/erp/poChg/service/PoChgSendService.java
View file @
abef22fa
package
com
.
i1
.
erp
.
poChg
.
service
;
package
com
.
i1
.
erp
.
poChg
.
service
;
import
com.i1.base.exception.IOneServiceException
;
import
com.i1.erp.entity.request.*
;
import
com.i1.erp.entity.request.*
;
import
com.i1.srm.am.service.IAccountService
;
import
com.i1.srm.poChg.dao.entity.PoChgMstFile
;
import
com.i1.srm.poChg.dao.entity.PoChgMstFile
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -14,13 +17,15 @@ import java.util.List;
...
@@ -14,13 +17,15 @@ import java.util.List;
@Service
@Service
public
class
PoChgSendService
implements
IPoChgSendService
{
public
class
PoChgSendService
implements
IPoChgSendService
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
PoChgSendService
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
PoChgSendService
.
class
);
@Autowired
private
IAccountService
accountService
;
@Override
@Override
@Transactional
@Transactional
public
Request
sendPoChgXml
(
PoChgMstFile
poChgMstFile
)
{
public
Request
sendPoChgXml
(
PoChgMstFile
poChgMstFile
)
throws
IOneServiceException
{
//<Access>
//<Access>
Access
access
=
Access
.
of
(
Authentication
.
of
(
"
017552
"
,
"tiptop"
),
Access
access
=
Access
.
of
(
Authentication
.
of
(
"
tiptop
"
,
"tiptop"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Connection
.
of
(
"SRM"
,
"192.168.1.1"
),
Organization
.
of
(
poChgMstFile
.
getFactory
().
getFactoryUid
()),
Organization
.
of
(
poChgMstFile
.
getFactory
().
getFactoryUid
()),
Locale
.
of
(
"zh_cn"
));
Locale
.
of
(
"zh_cn"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment