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
f206fe7d
Commit
f206fe7d
authored
Oct 26, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序外协打印;ECN变更优化
parent
e25808d6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
application.properties
topsun-xt/src/main/resources/application.properties
+1
-1
EpChangeFormApplicationImpl.java
.../change/application/impl/EpChangeFormApplicationImpl.java
+6
-2
EpChangeFormController.java
...u/topsun/ep/change/controller/EpChangeFormController.java
+3
-3
SapPurchaseOrderApplicationImpl.java
...der/application/impl/SapPurchaseOrderApplicationImpl.java
+5
-2
No files found.
topsun-xt/src/main/resources/application.properties
View file @
f206fe7d
...
@@ -16,7 +16,7 @@ shiro.host=127.0.0.1
...
@@ -16,7 +16,7 @@ shiro.host=127.0.0.1
shiro.port
=
6379
shiro.port
=
6379
#shiro.host=192.168.222.122
#shiro.host=192.168.222.122
#shiro.port=6401
#shiro.port=6401
shiro.expire
=
18000
00
shiro.expire
=
18000
system.dataSource
=
dataSource
system.dataSource
=
dataSource
system.hibernate.dialect
=
com.huigou.data.dialect.MySQL5InnoDBDialect
system.hibernate.dialect
=
com.huigou.data.dialect.MySQL5InnoDBDialect
...
...
topsun/src/main/java/com/huigou/topsun/ep/change/application/impl/EpChangeFormApplicationImpl.java
View file @
f206fe7d
...
@@ -346,7 +346,9 @@ public class EpChangeFormApplicationImpl extends FlowBroker implements EpChangeF
...
@@ -346,7 +346,9 @@ public class EpChangeFormApplicationImpl extends FlowBroker implements EpChangeF
itemMap
.
put
(
"comment"
,
approvalMap
.
get
(
"opinion"
));
itemMap
.
put
(
"comment"
,
approvalMap
.
get
(
"opinion"
));
}
}
});
});
if
(
itemMap
.
get
(
"date"
)
!=
null
&&
itemMap
.
get
(
"date"
)
!=
""
){
itemMap
.
put
(
"date"
,
DateUtil
.
getDateFormat
((
Date
)
itemMap
.
get
(
"date"
),
"yyyy-MM-dd"
));
itemMap
.
put
(
"date"
,
DateUtil
.
getDateFormat
((
Date
)
itemMap
.
get
(
"date"
),
"yyyy-MM-dd"
));
}
});
});
List
<
Map
<
String
,
Object
>>
stockItemMaps
=
(
List
<
Map
<
String
,
Object
>>)
stockItemMap
.
get
(
"Rows"
);
List
<
Map
<
String
,
Object
>>
stockItemMaps
=
(
List
<
Map
<
String
,
Object
>>)
stockItemMap
.
get
(
"Rows"
);
stockItemMaps
.
forEach
(
itemMap
->{
stockItemMaps
.
forEach
(
itemMap
->{
...
@@ -355,7 +357,9 @@ public class EpChangeFormApplicationImpl extends FlowBroker implements EpChangeF
...
@@ -355,7 +357,9 @@ public class EpChangeFormApplicationImpl extends FlowBroker implements EpChangeF
itemMap
.
put
(
"comment"
,
approvalMap
.
get
(
"opinion"
));
itemMap
.
put
(
"comment"
,
approvalMap
.
get
(
"opinion"
));
}
}
});
});
if
(
itemMap
.
get
(
"date"
)
!=
null
&&
itemMap
.
get
(
"date"
)
!=
""
){
itemMap
.
put
(
"date"
,
DateUtil
.
getDateFormat
((
Date
)
itemMap
.
get
(
"date"
),
"yyyy-MM-dd"
));
itemMap
.
put
(
"date"
,
DateUtil
.
getDateFormat
((
Date
)
itemMap
.
get
(
"date"
),
"yyyy-MM-dd"
));
}
});
});
map
.
put
(
"printTime"
,
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm"
).
format
(
LocalDateTime
.
now
()));
map
.
put
(
"printTime"
,
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm"
).
format
(
LocalDateTime
.
now
()));
map
.
put
(
"implItemMaps"
,
implItemMaps
);
map
.
put
(
"implItemMaps"
,
implItemMaps
);
...
...
topsun/src/main/java/com/huigou/topsun/ep/change/controller/EpChangeFormController.java
View file @
f206fe7d
...
@@ -71,7 +71,7 @@ public class EpChangeFormController extends CommonController {
...
@@ -71,7 +71,7 @@ public class EpChangeFormController extends CommonController {
this
.
putAttribute
(
"reasonForChangeList"
,
reasonForChange
);
this
.
putAttribute
(
"reasonForChangeList"
,
reasonForChange
);
return
forward
(
"epChangeFormDetail"
,
epChangeForm
);
return
forward
(
"epChangeFormDetail"
,
epChangeForm
);
}
else
{
}
else
{
epChangeForm
.
setReasonForChange
(
"MATERIAL CHANGE"
);
//
epChangeForm.setReasonForChange("MATERIAL CHANGE");
return
forward
(
"epMaterialChangeFormDetail"
,
epChangeForm
);
return
forward
(
"epMaterialChangeFormDetail"
,
epChangeForm
);
}
}
}
}
...
@@ -81,11 +81,11 @@ public class EpChangeFormController extends CommonController {
...
@@ -81,11 +81,11 @@ public class EpChangeFormController extends CommonController {
String
id
=
sdo
.
getBizId
();
String
id
=
sdo
.
getBizId
();
EpChangeForm
epChangeForm
=
epChangeFormApplication
.
findEpChangeFormById
(
id
);
EpChangeForm
epChangeForm
=
epChangeFormApplication
.
findEpChangeFormById
(
id
);
Map
<
String
,
String
>
reasonForChange
=
new
HashMap
<>();
Map
<
String
,
String
>
reasonForChange
=
new
HashMap
<>();
if
(
"
MATERIAL CHANGE
"
.
equals
(
epChangeForm
.
getReasonForChange
())){
if
(
""
.
equals
(
epChangeForm
.
getReasonForChange
())){
return
forward
(
"epMaterialChangeFormDetail"
,
epChangeForm
);
return
forward
(
"epMaterialChangeFormDetail"
,
epChangeForm
);
}
}
reasonForChange
=
DictUtil
.
getDictionary
(
"reasonForChange"
);
reasonForChange
=
DictUtil
.
getDictionary
(
"reasonForChange"
);
reasonForChange
.
remove
(
"MATERIAL CHANGE"
);
//
reasonForChange.remove("MATERIAL CHANGE");
this
.
putAttribute
(
"reasonForChangeList"
,
reasonForChange
);
this
.
putAttribute
(
"reasonForChangeList"
,
reasonForChange
);
return
forward
(
"epChangeFormDetail"
,
epChangeForm
);
return
forward
(
"epChangeFormDetail"
,
epChangeForm
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseOrder/application/impl/SapPurchaseOrderApplicationImpl.java
View file @
f206fe7d
...
@@ -461,6 +461,9 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
...
@@ -461,6 +461,9 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
public
Map
<
String
,
Object
>
getSupplierInfo
(
Map
<
String
,
Object
>
map
,
String
lifnr
){
public
Map
<
String
,
Object
>
getSupplierInfo
(
Map
<
String
,
Object
>
map
,
String
lifnr
){
List
<
SuppliersInfo
>
suppliersInfoList
=
suppliersInfoRepository
.
findByPartner
(
lifnr
);
List
<
SuppliersInfo
>
suppliersInfoList
=
suppliersInfoRepository
.
findByPartner
(
lifnr
);
if
(
CollectionUtils
.
isEmpty
(
suppliersInfoList
)){
throw
new
RuntimeException
(
"根据编码:"
+
lifnr
+
"未找到供应商信息"
);
}
SuppliersInfo
suppliersInfo
=
suppliersInfoList
SuppliersInfo
suppliersInfo
=
suppliersInfoList
.
stream
()
.
stream
()
.
sorted
(
Comparator
.
comparing
(
SuppliersInfo:
:
getFillinDate
,
Comparator
.
reverseOrder
()))
.
sorted
(
Comparator
.
comparing
(
SuppliersInfo:
:
getFillinDate
,
Comparator
.
reverseOrder
()))
...
@@ -468,7 +471,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
...
@@ -468,7 +471,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
StringBuffer
addressBuf
=
new
StringBuffer
();
StringBuffer
addressBuf
=
new
StringBuffer
();
addressBuf
.
append
(
suppliersInfo
.
getLand1Name
())
addressBuf
.
append
(
suppliersInfo
.
getLand1Name
())
.
append
(
suppliersInfo
.
getRegionName
())
.
append
(
suppliersInfo
.
getRegionName
())
.
append
(
suppliersInfo
.
getCity1
Name
())
.
append
(
suppliersInfo
.
getCity1
())
.
append
(
suppliersInfo
.
getStreet
())
.
append
(
suppliersInfo
.
getStreet
())
.
append
(
suppliersInfo
.
getStrSuppl1
())
.
append
(
suppliersInfo
.
getStrSuppl1
())
.
append
(
suppliersInfo
.
getStrSuppl2
())
.
append
(
suppliersInfo
.
getStrSuppl2
())
...
@@ -560,7 +563,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
...
@@ -560,7 +563,7 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
map
.
put
(
"outProcess02"
,
outsourceOrderItem
.
getTxz02
());
map
.
put
(
"outProcess02"
,
outsourceOrderItem
.
getTxz02
());
//临时工序外发,计算印张数;实际送货数量,LOSS数
//临时工序外发,计算印张数;实际送货数量,LOSS数
BigDecimal
number
=
(
BigDecimal
)
map
.
getOrDefault
(
"number"
,
BigDecimal
.
ZERO
);
//成品数量
BigDecimal
number
=
(
BigDecimal
)
map
.
getOrDefault
(
"number"
,
BigDecimal
.
ZERO
);
//成品数量
BigDecimal
model
=
(
BigDecimal
)
map
.
get
OrDefault
(
"model"
,
BigDecimal
.
ZERO
)
;
//排版数量
BigDecimal
model
=
(
BigDecimal
)
map
.
get
(
"model"
)
!=
null
?
(
BigDecimal
)
map
.
get
(
"model"
)
:
BigDecimal
.
ZERO
;
//排版数量
BigDecimal
printLoss
=
outsourceOrderItem
.
getPrintLoss
()
!=
null
?
outsourceOrderItem
.
getPrintLoss
()
:
BigDecimal
.
ZERO
;
//印张LOSS数
BigDecimal
printLoss
=
outsourceOrderItem
.
getPrintLoss
()
!=
null
?
outsourceOrderItem
.
getPrintLoss
()
:
BigDecimal
.
ZERO
;
//印张LOSS数
map
.
put
(
"printLoss"
,
printLoss
);
map
.
put
(
"printLoss"
,
printLoss
);
//印张量 = 成品数量/排版数量
//印张量 = 成品数量/排版数量
...
...
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