Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
a67ff136
Commit
a67ff136
authored
Jun 21, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
8e4aa1d1
18996392
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
51 additions
and
32 deletions
+51
-32
nonProdApplyMRP.js
...ain/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.js
+1
-2
nonProdApplyMRP.jsp
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
+2
-3
nonProdApplyProduce.js
...webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.js
+11
-0
nonProdApplyProduce.jsp
...ebapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.jsp
+2
-1
addPurchaseInfoRecordDetail.js
...sun/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.js
+3
-1
purchaseInfoRecordDetail.js
...topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
+2
-1
EpSaleOrderApplicationImpl.java
...ep/order/application/impl/EpSaleOrderApplicationImpl.java
+1
-1
EpSaleOrderCancelApplicationImpl.java
...er/application/impl/EpSaleOrderCancelApplicationImpl.java
+1
-1
SapMutualEpLogApplicationImpl.java
...ommon/application/impl/SapMutualEpLogApplicationImpl.java
+3
-0
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+8
-5
NonProdApplyController.java
...n/sap/nonProdApply/controller/NonProdApplyController.java
+4
-4
SapPurchaseApplicationImpl.java
...purchase/application/impl/SapPurchaseApplicationImpl.java
+2
-2
SapPurchaseApprovalApplicationImpl.java
.../application/impl/SapPurchaseApprovalApplicationImpl.java
+2
-2
SapPurchaseInfoRecordApplicationImpl.java
...pplication/impl/SapPurchaseInfoRecordApplicationImpl.java
+3
-3
SuppliersDataApplicationImpl.java
...pliers/application/impl/SuppliersDataApplicationImpl.java
+2
-2
SapStockTransfersApplicationImpl.java
...rs/application/impl/SapStockTransfersApplicationImpl.java
+2
-2
OrgSyncApplicationImpl.java
...psun/syncOrg/application/impl/OrgSyncApplicationImpl.java
+2
-2
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.js
View file @
a67ff136
...
@@ -175,8 +175,7 @@ function bindEvent(){
...
@@ -175,8 +175,7 @@ function bindEvent(){
if
(
$
(
'#vint2'
).
val
()
==
''
){
if
(
$
(
'#vint2'
).
val
()
==
''
){
$
(
'#vint2'
).
val
(
"999"
);
$
(
'#vint2'
).
val
(
"999"
);
}
}
if
(
$
(
'#vrmod'
).
val
()
==
''
)
if
(
$
(
'#vrmod'
).
val
()
==
''
){
//消耗模式
{
$
(
'#vrmod'
).
val
(
"2"
);
$
(
'#vrmod'
).
val
(
"2"
);
}
}
$
(
'#lgproName'
).
searchbox
({
$
(
'#lgproName'
).
searchbox
({
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
View file @
a67ff136
...
@@ -116,10 +116,9 @@
...
@@ -116,10 +116,9 @@
<x:selectC
name=
"vrmod"
label=
"消耗模式"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"vrmod"
/>
<x:selectC
name=
"vrmod"
label=
"消耗模式"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"vrmod"
/>
<x:inputC
name=
"vint1"
label=
"逆推消耗期间"
labelCol=
"1"
fieldCol=
"2"
mask=
"99999"
/>
<x:inputC
name=
"vint1"
label=
"逆推消耗期间"
labelCol=
"1"
fieldCol=
"2"
mask=
"99999"
/>
<x:inputC
name=
"vint2"
label=
"顺推消耗期间"
labelCol=
"1"
fieldCol=
"2"
mask=
"99999"
/>
<x:inputC
name=
"vint2"
label=
"顺推消耗期间"
labelCol=
"1"
fieldCol=
"2"
mask=
"99999"
/>
<x:inputC
name=
"miskz"
label=
"综合MRP"
labelCol=
"1"
fieldCol=
"2"
/>
<x:selectC
name=
"miskz"
label=
"综合MRP"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"MISKZ"
/>
<x:inputC
name=
"perkz"
label=
"期间标识"
labelCol=
"1"
fieldCol=
"2"
/>
<x:selectC
name=
"perkz"
label=
"期间标识"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"perkz"
/>
</div>
</div>
</div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.js
View file @
a67ff136
...
@@ -175,6 +175,17 @@ function bindEvent(){
...
@@ -175,6 +175,17 @@ function bindEvent(){
$
(
'#ausme'
).
val
(
data
.
MSEHI
);
$
(
'#ausme'
).
val
(
data
.
MSEHI
);
$
(
'#ausmeName'
).
val
(
data
.
MSEHL
);
$
(
'#ausmeName'
).
val
(
data
.
MSEHL
);
}
}
});
//"T024F
//alert($('#werks').val());
$
(
'#fevor'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
return
{
fieldName
:
"T024F"
,
filterValue
:
$
(
'#werks'
).
val
()}
},
onChange
:
function
(
value
,
data
)
{
$
(
'#fevor'
).
val
(
data
.
FEVOR
);
// $('#fevorName').val(data.LGOBE);
}
});
});
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.jsp
View file @
a67ff136
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<x:hidden
name=
"active"
/>
<!--状态-->
<x:hidden
name=
"active"
/>
<!--状态-->
<x:hidden
name=
"meId"
/>
<!--状态-->
<x:hidden
name=
"meId"
/>
<!--状态-->
<x:hidden
name=
"werks"
/>
<div
style=
"float: right; margin-right: 10px;display: none;"
class=
"btn-group"
id=
"buttonBox"
>
<div
style=
"float: right; margin-right: 10px;display: none;"
class=
"btn-group"
id=
"buttonBox"
>
<button
id=
"save"
title=
""
type=
"button"
onclick=
"saveForm(0)"
class=
"btn btn-gray"
><i
<button
id=
"save"
title=
""
type=
"button"
onclick=
"saveForm(0)"
class=
"btn btn-gray"
><i
class=
"fa fa-save"
></i>
保存
class=
"fa fa-save"
></i>
保存
...
@@ -79,7 +80,7 @@
...
@@ -79,7 +80,7 @@
<x:inputC
name=
"umrenProd"
label=
"转换分母"
labelCol=
"1"
fieldCol=
"3"
/>
<x:inputC
name=
"umrenProd"
label=
"转换分母"
labelCol=
"1"
fieldCol=
"3"
/>
<x:inputC
name=
"umrezProd"
label=
"转换分子"
labelCol=
"1"
fieldCol=
"3"
/>
<x:inputC
name=
"umrezProd"
label=
"转换分子"
labelCol=
"1"
fieldCol=
"3"
/>
<x:selectC
name=
"sfcpf"
label=
"生产计划参数文件"
labelCol=
"2"
fieldCol=
"2"
dictionary=
"sfcpf"
/>
<x:selectC
name=
"sfcpf"
label=
"生产计划参数文件"
labelCol=
"2"
fieldCol=
"2"
dictionary=
"sfcpf"
/>
<x:inputC
name=
"fevor"
label=
"生产主管"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"fevor"
label=
"生产主管"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
</div>
</div>
</div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.js
View file @
a67ff136
...
@@ -11,11 +11,13 @@ function initialize(){
...
@@ -11,11 +11,13 @@ function initialize(){
// if (isDetailPage) {
// if (isDetailPage) {
// $("#jobPageTop").hide();
// $("#jobPageTop").hide();
// }
// }
// alert($("#isReadOnly").val());
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
)
{
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
)
{
disableForm
(
"infoRecord"
,
"disable"
);
disableForm
(
"infoRecord"
,
"disable"
);
}
else
{
}
else
{
var
readwriteList
=
UICtrl
.
getUIElementPermissions
(
UIPO
.
READWRITE
,
UIPK
.
DETAIL
);
var
readwriteList
=
UICtrl
.
getUIElementPermissions
(
UIPO
.
READWRITE
,
UIPK
.
DETAIL
);
if
((
$
(
"#statusId"
).
val
()
==
1
&&
readwriteList
.
length
>
0
))
{
// alert("dsd=="+readwriteList.length); alert(TaskKind.isReplenishTask(taskKindId)); 打回的
if
((
$
(
"#statusId"
).
val
()
==
1
&&
readwriteList
.
length
>
0
&&
TaskKind
.
isReplenishTask
(
taskKindId
)
!=
true
))
{
disableForm
(
"infoRecord"
,
"disable"
);
disableForm
(
"infoRecord"
,
"disable"
);
$
.
each
(
readwriteList
,
function
(
i
,
o
)
{
$
.
each
(
readwriteList
,
function
(
i
,
o
)
{
$
(
"#"
+
o
).
removeAttr
(
'disabled'
);
$
(
"#"
+
o
).
removeAttr
(
'disabled'
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
View file @
a67ff136
...
@@ -688,7 +688,8 @@ function viewHandler(data){
...
@@ -688,7 +688,8 @@ function viewHandler(data){
var
param
=
JSON
.
stringify
(
data
);
var
param
=
JSON
.
stringify
(
data
);
var
rowId
=
data
.
__id
;
var
rowId
=
data
.
__id
;
var
readwriteList
=
UICtrl
.
getUIElementPermissions
(
UIPO
.
READWRITE
,
UIPK
.
DETAIL
);
var
readwriteList
=
UICtrl
.
getUIElementPermissions
(
UIPO
.
READWRITE
,
UIPK
.
DETAIL
);
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
||
(
$
(
"#statusId"
).
val
()
==
1
&&
readwriteList
.
length
==
0
))
{
// alert($("#isReadOnly").val()); alert(readwriteList.length);
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
||
(
$
(
"#statusId"
).
val
()
==
1
&&
readwriteList
.
length
==
0
&&
TaskKind
.
isReplenishTask
(
taskKindId
)
!=
true
))
{
UICtrl
.
showAjaxDialog
({
UICtrl
.
showAjaxDialog
({
title
:
"查看采购信息记录"
,
title
:
"查看采购信息记录"
,
url
:
web_app
.
name
+
'/sapPurchaseInfoRecord/addSapPurchaseInfoRecordDetail.load?id='
+
data
.
id
+
'&rowId='
+
rowId
+
'&isReadOnly=true'
,
url
:
web_app
.
name
+
'/sapPurchaseInfoRecord/addSapPurchaseInfoRecordDetail.load?id='
+
data
.
id
+
'&rowId='
+
rowId
+
'&isReadOnly=true'
,
...
...
topsun/src/main/java/com/huigou/topsun/ep/order/application/impl/EpSaleOrderApplicationImpl.java
View file @
a67ff136
...
@@ -267,7 +267,7 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde
...
@@ -267,7 +267,7 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde
try
{
try
{
String
execute
=
httpClient
.
executeForEp
(
map
,
"od/saleOrder/auditedResult"
);
String
execute
=
httpClient
.
executeForEp
(
map
,
"od/saleOrder/auditedResult"
);
EpResult
epResult
=
JSONObject
.
parseObject
(
execute
,
EpResult
.
class
);
EpResult
epResult
=
JSONObject
.
parseObject
(
execute
,
EpResult
.
class
);
resultMap
.
put
(
"
type
"
,
epResult
.
getCode
());
resultMap
.
put
(
"
TYPE
"
,
epResult
.
getCode
());
resultMap
.
put
(
"message"
,
epResult
.
getMsg
());
resultMap
.
put
(
"message"
,
epResult
.
getMsg
());
if
(!
"200"
.
equals
(
epResult
.
getCode
())){
if
(!
"200"
.
equals
(
epResult
.
getCode
())){
throw
new
RuntimeException
(
"数据传输失败,"
+
epResult
.
getMsg
());
throw
new
RuntimeException
(
"数据传输失败,"
+
epResult
.
getMsg
());
...
...
topsun/src/main/java/com/huigou/topsun/ep/order/application/impl/EpSaleOrderCancelApplicationImpl.java
View file @
a67ff136
...
@@ -266,7 +266,7 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa
...
@@ -266,7 +266,7 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa
try
{
try
{
String
execute
=
httpClient
.
executeForEp
(
map
,
"od/saleOrder/auditedResult"
);
String
execute
=
httpClient
.
executeForEp
(
map
,
"od/saleOrder/auditedResult"
);
EpResult
epResult
=
JSONObject
.
parseObject
(
execute
,
EpResult
.
class
);
EpResult
epResult
=
JSONObject
.
parseObject
(
execute
,
EpResult
.
class
);
resultMap
.
put
(
"
type
"
,
epResult
.
getCode
());
resultMap
.
put
(
"
TYPE
"
,
epResult
.
getCode
());
resultMap
.
put
(
"message"
,
epResult
.
getMsg
());
resultMap
.
put
(
"message"
,
epResult
.
getMsg
());
if
(!
"200"
.
equals
(
epResult
.
getCode
())){
if
(!
"200"
.
equals
(
epResult
.
getCode
())){
throw
new
RuntimeException
(
"数据传输失败,"
+
epResult
.
getMsg
());
throw
new
RuntimeException
(
"数据传输失败,"
+
epResult
.
getMsg
());
...
...
topsun/src/main/java/com/huigou/topsun/sap/common/application/impl/SapMutualEpLogApplicationImpl.java
View file @
a67ff136
...
@@ -40,6 +40,7 @@ public class SapMutualEpLogApplicationImpl extends FlowBroker implements SapMutu
...
@@ -40,6 +40,7 @@ public class SapMutualEpLogApplicationImpl extends FlowBroker implements SapMutu
sapMutualEpLog
=
ClassHelper
.
fromMap
(
SapMutualEpLog
.
class
,
map
);
sapMutualEpLog
=
ClassHelper
.
fromMap
(
SapMutualEpLog
.
class
,
map
);
String
message
=
map
.
get
(
"MESSAGE"
)!=
null
?
map
.
get
(
"MESSAGE"
).
toString
():
""
;
String
message
=
map
.
get
(
"MESSAGE"
)!=
null
?
map
.
get
(
"MESSAGE"
).
toString
():
""
;
sapMutualEpLog
.
setMessage
(
message
);
sapMutualEpLog
.
setMessage
(
message
);
sapMutualEpLog
.
setType
(
map
.
get
(
"TYPE"
)!=
null
?
map
.
get
(
"TYPE"
).
toString
():
""
);
//BeanUtil.mapToBean(map, ClassHelpersapMutualEpLog);
//BeanUtil.mapToBean(map, ClassHelpersapMutualEpLog);
Date
date
=
new
Date
();
Date
date
=
new
Date
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
...
@@ -47,6 +48,8 @@ public class SapMutualEpLogApplicationImpl extends FlowBroker implements SapMutu
...
@@ -47,6 +48,8 @@ public class SapMutualEpLogApplicationImpl extends FlowBroker implements SapMutu
sapMutualEpLog
.
setCreatedDate
(
sdf
.
format
(
date
));
sapMutualEpLog
.
setCreatedDate
(
sdf
.
format
(
date
));
sapMutualEpLogRepository
.
save
(
sapMutualEpLog
);
sapMutualEpLogRepository
.
save
(
sapMutualEpLog
);
}
catch
(
Exception
ex
){
}
catch
(
Exception
ex
){
sapMutualEpLog
.
setMessage
(
sapMutualEpLog
.
getMessage
()+
":保存日志:"
+
ex
.
getMessage
());
sapMutualEpLogRepository
.
save
(
sapMutualEpLog
);
ex
.
printStackTrace
();
ex
.
printStackTrace
();
}
}
return
sapMutualEpLog
;
return
sapMutualEpLog
;
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
a67ff136
...
@@ -331,6 +331,9 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -331,6 +331,9 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
//存储分区标识默认001
//存储分区标识默认001
sapVO
.
setLgbkz
(
"001"
);
sapVO
.
setLgbkz
(
"001"
);
sapVO
.
setMbrsh
(
"M"
);
//行业默认M
sapVO
.
setMbrsh
(
"M"
);
//行业默认M
if
(
"0"
.
equals
(
sapVO
.
getPerkz
())){
//期间标识
sapVO
.
setPerkz
(
""
);
}
//销售单位转换
//销售单位转换
if
(
StringUtil
.
isNotBlank
(
sapVO
.
getVrkme
())){
if
(
StringUtil
.
isNotBlank
(
sapVO
.
getVrkme
())){
Map
<
String
,
Object
>
unitsaleMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
unitsaleMap
=
new
HashMap
<>();
...
@@ -358,7 +361,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -358,7 +361,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
backMap
.
put
(
"businessId"
,
baseInfo
.
getId
());
backMap
.
put
(
"businessId"
,
baseInfo
.
getId
());
backMap
.
put
(
"parameter"
,
JSON
.
toJSONString
(
mapList
));
backMap
.
put
(
"parameter"
,
JSON
.
toJSONString
(
mapList
));
backMap
.
put
(
"sequence"
,
backMap
.
get
(
"row"
));
backMap
.
put
(
"sequence"
,
backMap
.
get
(
"row"
));
backMap
.
put
(
"
type
"
,
"E"
);
backMap
.
put
(
"
TYPE
"
,
"E"
);
try
{
try
{
String
result
=
defaultHttpClient
.
execute
(
mapList
,
url
);
String
result
=
defaultHttpClient
.
execute
(
mapList
,
url
);
List
<
Map
<
String
,
Object
>>
resultList
=
objectMapper
.
readValue
(
result
,
new
TypeReference
<
List
<
Map
<
String
,
Object
>>>()
{
List
<
Map
<
String
,
Object
>>
resultList
=
objectMapper
.
readValue
(
result
,
new
TypeReference
<
List
<
Map
<
String
,
Object
>>>()
{
...
@@ -371,8 +374,8 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -371,8 +374,8 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
// resultMap.put("businessType", busiType);
// resultMap.put("businessType", busiType);
// resultMap.put("parameter", JSON.toJSONString(map));
// resultMap.put("parameter", JSON.toJSONString(map));
// resultMap.put("businessId", prodApplyBaseInfo.getId());
// resultMap.put("businessId", prodApplyBaseInfo.getId());
if
(
"S"
.
equals
(
back
Map
.
get
(
"TYPE"
)))
{
if
(
"S"
.
equals
(
return
Map
.
get
(
"TYPE"
)))
{
backMap
.
put
(
"
type
"
,
"S"
);
backMap
.
put
(
"
TYPE
"
,
"S"
);
backMap
.
put
(
"MESSAGE"
,
applyDept
.
getMatnr
()+
":"
+
backMap
.
get
(
"MESSAGE"
));
backMap
.
put
(
"MESSAGE"
,
applyDept
.
getMatnr
()+
":"
+
backMap
.
get
(
"MESSAGE"
));
if
(!
"product"
.
equals
(
baseInfo
.
getKind
()))
{
if
(!
"product"
.
equals
(
baseInfo
.
getKind
()))
{
applyDept
.
setMatnr
((
String
)
backMap
.
get
(
"MESSAGE_V1"
));
applyDept
.
setMatnr
((
String
)
backMap
.
get
(
"MESSAGE_V1"
));
...
@@ -446,7 +449,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -446,7 +449,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
// if ("product".equals(baseInfo.getKind())) {
// if ("product".equals(baseInfo.getKind())) {
// messageExecute.setTaskDescribe(deptName + "产品数据维护");
// messageExecute.setTaskDescribe(deptName + "产品数据维护");
// } else {
// } else {
if
(
"S"
.
equals
(
map
.
get
(
"
type
"
).
toString
())){
if
(
"S"
.
equals
(
map
.
get
(
"
TYPE
"
).
toString
())){
messageExecute
.
setTaskDescribe
(
"成功"
+
map
.
get
(
"MESSAGE"
).
toString
());
messageExecute
.
setTaskDescribe
(
"成功"
+
map
.
get
(
"MESSAGE"
).
toString
());
}
else
{
}
else
{
messageExecute
.
setTaskDescribe
(
"错误"
+
map
.
get
(
"MESSAGE"
).
toString
());
messageExecute
.
setTaskDescribe
(
"错误"
+
map
.
get
(
"MESSAGE"
).
toString
());
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyController.java
View file @
a67ff136
...
@@ -303,7 +303,7 @@ public class NonProdApplyController extends CommonController {
...
@@ -303,7 +303,7 @@ public class NonProdApplyController extends CommonController {
messageMap
.
put
(
"Message_Text"
,
"成功"
);
messageMap
.
put
(
"Message_Text"
,
"成功"
);
LOG
.
info
(
"参数:=={}"
,
prodApplyFromSapVO
);
LOG
.
info
(
"参数:=={}"
,
prodApplyFromSapVO
);
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"
type
"
,
"S"
);
resultMap
.
put
(
"
TYPE
"
,
"S"
);
resultMap
.
put
(
"MESSAGE"
,
"成功"
);
resultMap
.
put
(
"MESSAGE"
,
"成功"
);
resultMap
.
put
(
"businessType"
,
"接收SAP产品数据"
);
resultMap
.
put
(
"businessType"
,
"接收SAP产品数据"
);
...
@@ -317,18 +317,18 @@ public class NonProdApplyController extends CommonController {
...
@@ -317,18 +317,18 @@ public class NonProdApplyController extends CommonController {
message
=
"产品编号"
+
prodApplyFromSapVO
.
getMatnr
()+
"已经存在!"
;
message
=
"产品编号"
+
prodApplyFromSapVO
.
getMatnr
()+
"已经存在!"
;
messageMap
.
put
(
"Message_Status"
,
"E"
);
messageMap
.
put
(
"Message_Status"
,
"E"
);
messageMap
.
put
(
"Message_Text"
,
message
);
messageMap
.
put
(
"Message_Text"
,
message
);
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
}
else
{
}
else
{
message
=
nonProdApplyApplication
.
saveProdApplyFromSapVO
(
prodApplyFromSapVO
);
message
=
nonProdApplyApplication
.
saveProdApplyFromSapVO
(
prodApplyFromSapVO
);
if
(
StringUtil
.
isNotBlank
(
message
)){
if
(
StringUtil
.
isNotBlank
(
message
)){
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
}
}
}
}
resultMap
.
put
(
"MESSAGE"
,
message
);
resultMap
.
put
(
"MESSAGE"
,
message
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
messageMap
.
put
(
"Message_Status"
,
"E"
);
messageMap
.
put
(
"Message_Status"
,
"E"
);
messageMap
.
put
(
"Message_Text"
,
e
);
messageMap
.
put
(
"Message_Text"
,
e
);
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
}
}
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
resultMap
);
sapMutualEpLogApplication
.
saveSapMutualEpLog
(
resultMap
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchase/application/impl/SapPurchaseApplicationImpl.java
View file @
a67ff136
...
@@ -160,13 +160,13 @@ public class SapPurchaseApplicationImpl extends FlowBroker implements SapPurchas
...
@@ -160,13 +160,13 @@ public class SapPurchaseApplicationImpl extends FlowBroker implements SapPurchas
if
(!
"S"
.
equals
(
sapResult
.
getTYPE
())){
if
(!
"S"
.
equals
(
sapResult
.
getTYPE
())){
throw
new
RuntimeException
(
"数据传输失败,"
+
sapResult
.
getMESSAGE
());
throw
new
RuntimeException
(
"数据传输失败,"
+
sapResult
.
getMESSAGE
());
}
else
{
}
else
{
resultMap
.
put
(
"
type
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"
TYPE
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
}
}
sapPurchase
.
setBanfn
(
sapResult
.
getMESSAGE_V1
());
//SAP采购申请编号
sapPurchase
.
setBanfn
(
sapResult
.
getMESSAGE_V1
());
//SAP采购申请编号
sapPurchaseRepository
.
save
(
sapPurchase
);
sapPurchaseRepository
.
save
(
sapPurchase
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
finally
{
}
finally
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseApproval/application/impl/SapPurchaseApprovalApplicationImpl.java
View file @
a67ff136
...
@@ -438,14 +438,14 @@ public class SapPurchaseApprovalApplicationImpl extends FlowBroker implements Sa
...
@@ -438,14 +438,14 @@ public class SapPurchaseApprovalApplicationImpl extends FlowBroker implements Sa
if
(!
"S"
.
equals
(
backMap
.
get
(
"TYPE"
)))
{
if
(!
"S"
.
equals
(
backMap
.
get
(
"TYPE"
)))
{
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
backMap
.
get
(
"MESSAGE"
));
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
backMap
.
get
(
"MESSAGE"
));
}
else
{
}
else
{
resultMap
.
put
(
"
type
"
,
backMap
.
get
(
"TYPE"
));
resultMap
.
put
(
"
TYPE
"
,
backMap
.
get
(
"TYPE"
));
resultMap
.
put
(
"MESSAGE"
,
backMap
.
get
(
"MESSAGE"
));
resultMap
.
put
(
"MESSAGE"
,
backMap
.
get
(
"MESSAGE"
));
}
}
sapPurchaseApproval
.
setType
((
String
)
backMap
.
get
(
"TYPE"
));
sapPurchaseApproval
.
setType
((
String
)
backMap
.
get
(
"TYPE"
));
sapPurchaseApproval
.
setMessage
((
String
)
backMap
.
get
(
"MESSAGE"
));
sapPurchaseApproval
.
setMessage
((
String
)
backMap
.
get
(
"MESSAGE"
));
sapPurchaseApprovalRepository
.
save
(
sapPurchaseApproval
);
sapPurchaseApprovalRepository
.
save
(
sapPurchaseApproval
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
}
finally
{
}
finally
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseInfoRecord/application/impl/SapPurchaseInfoRecordApplicationImpl.java
View file @
a67ff136
...
@@ -158,18 +158,18 @@ public class SapPurchaseInfoRecordApplicationImpl extends FlowBroker implements
...
@@ -158,18 +158,18 @@ public class SapPurchaseInfoRecordApplicationImpl extends FlowBroker implements
List
<
SapResult
>
resultList
=
JSONObject
.
parseArray
(
execute
,
SapResult
.
class
);
List
<
SapResult
>
resultList
=
JSONObject
.
parseArray
(
execute
,
SapResult
.
class
);
SapResult
sapResult
=
resultList
.
get
(
0
);
SapResult
sapResult
=
resultList
.
get
(
0
);
if
(!
"S"
.
equals
(
sapResult
.
getTYPE
())){
if
(!
"S"
.
equals
(
sapResult
.
getTYPE
())){
resultMap
.
put
(
"
type
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"
TYPE
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"MESSAGE"
,
"数据传输失败,"
+
sapResult
.
getMESSAGE
());
resultMap
.
put
(
"MESSAGE"
,
"数据传输失败,"
+
sapResult
.
getMESSAGE
());
throw
new
RuntimeException
(
"数据传输失败,"
+
sapResult
.
getMESSAGE
());
throw
new
RuntimeException
(
"数据传输失败,"
+
sapResult
.
getMESSAGE
());
}
else
{
}
else
{
resultMap
.
put
(
"
type
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"
TYPE
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
}
}
sapPurchaseInfoRecordItem
.
setTYPE
(
sapResult
.
getTYPE
());
sapPurchaseInfoRecordItem
.
setTYPE
(
sapResult
.
getTYPE
());
sapPurchaseInfoRecordItem
.
setMESSAGE
(
sapResult
.
getMESSAGE
());
sapPurchaseInfoRecordItem
.
setMESSAGE
(
sapResult
.
getMESSAGE
());
sapPurchaseInfoRecordItemApplication
.
save
(
sapPurchaseInfoRecordItem
);
sapPurchaseInfoRecordItemApplication
.
save
(
sapPurchaseInfoRecordItem
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
finally
{
}
finally
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/suppliers/application/impl/SuppliersDataApplicationImpl.java
View file @
a67ff136
...
@@ -384,7 +384,7 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
...
@@ -384,7 +384,7 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
resultMap
.
put
(
"sequence"
,
resultMap
.
get
(
"row"
));
resultMap
.
put
(
"sequence"
,
resultMap
.
get
(
"row"
));
if
(
"S"
.
equals
(
sapResult
.
getTYPE
())&&
"0"
.
equals
(
suppliersInfo
.
getApplyType
()))
{
if
(
"S"
.
equals
(
sapResult
.
getTYPE
())&&
"0"
.
equals
(
suppliersInfo
.
getApplyType
()))
{
suppliersInfo
.
setPartner
(
sapResult
.
getMESSAGE_V1
().
substring
(
4
));
suppliersInfo
.
setPartner
(
sapResult
.
getMESSAGE_V1
().
substring
(
4
));
resultMap
.
put
(
"
type
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"
TYPE
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
suppliersInfoRepository
.
save
(
suppliersInfo
);
suppliersInfoRepository
.
save
(
suppliersInfo
);
...
@@ -392,7 +392,7 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
...
@@ -392,7 +392,7 @@ public class SuppliersDataApplicationImpl extends FlowBroker implements Supplier
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
sapResult
.
getMESSAGE
());
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
sapResult
.
getMESSAGE
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
}
finally
{
}
finally
{
...
...
topsun/src/main/java/com/huigou/topsun/sap/transfers/application/impl/SapStockTransfersApplicationImpl.java
View file @
a67ff136
...
@@ -219,7 +219,7 @@ public class SapStockTransfersApplicationImpl extends FlowBroker implements SapS
...
@@ -219,7 +219,7 @@ public class SapStockTransfersApplicationImpl extends FlowBroker implements SapS
if
(
"S"
.
equals
(
sapResult
.
getTYPE
()))
{
if
(
"S"
.
equals
(
sapResult
.
getTYPE
()))
{
SapStockTransfers
sapStockTransfers
=
this
.
getStockTransfersById
(
id
);
SapStockTransfers
sapStockTransfers
=
this
.
getStockTransfersById
(
id
);
// suppliersInfo.setPartner(sapResult.getMESSAGE_V1());
// suppliersInfo.setPartner(sapResult.getMESSAGE_V1());
resultMap
.
put
(
"
type
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"
TYPE
"
,
sapResult
.
getTYPE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
resultMap
.
put
(
"MESSAGE"
,
sapResult
.
getMESSAGE
());
sapStockTransfers
.
setType
(
sapResult
.
getTYPE
());
sapStockTransfers
.
setType
(
sapResult
.
getTYPE
());
sapStockTransfers
.
setMessage
(
sapResult
.
getMESSAGE_V1
());
sapStockTransfers
.
setMessage
(
sapResult
.
getMESSAGE_V1
());
...
@@ -228,7 +228,7 @@ public class SapStockTransfersApplicationImpl extends FlowBroker implements SapS
...
@@ -228,7 +228,7 @@ public class SapStockTransfersApplicationImpl extends FlowBroker implements SapS
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
sapResult
.
getMESSAGE
());
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
sapResult
.
getMESSAGE
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
resultMap
.
put
(
"MESSAGE"
,
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
}
finally
{
}
finally
{
...
...
topsun/src/main/java/com/huigou/topsun/syncOrg/application/impl/OrgSyncApplicationImpl.java
View file @
a67ff136
...
@@ -237,10 +237,10 @@ public class OrgSyncApplicationImpl extends BaseApplication implements OrgSyncAp
...
@@ -237,10 +237,10 @@ public class OrgSyncApplicationImpl extends BaseApplication implements OrgSyncAp
}
}
}
}
personRepository
.
save
(
personList
);
personRepository
.
save
(
personList
);
resultMap
.
put
(
"
type
"
,
"S"
);
resultMap
.
put
(
"
TYPE
"
,
"S"
);
resultMap
.
put
(
"message"
,
"成功"
);
resultMap
.
put
(
"message"
,
"成功"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
resultMap
.
put
(
"
type
"
,
"E"
);
resultMap
.
put
(
"
TYPE
"
,
"E"
);
resultMap
.
put
(
"message"
,
e
.
getMessage
());
resultMap
.
put
(
"message"
,
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
throw
new
RuntimeException
(
"数据传输失败请检查数据后重试!"
+
e
.
getMessage
());
}
finally
{
}
finally
{
...
...
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