Compare commits
2 Commits
d42e0f33eb
...
04c5029e4d
Author | SHA1 | Date |
---|---|---|
|
04c5029e4d | |
|
398cd9138b |
|
@ -18,7 +18,7 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* ±¸Áϼƻ®¸ü¸Äºó¸üÐÂmes
|
* ±¸Áϼƻ®¸ü¸Äºó¸üÐÂmes
|
||||||
*
|
*
|
||||||
* @author mzr
|
* @author lh
|
||||||
* @date 2025/7/15
|
* @date 2025/7/15
|
||||||
*/
|
*/
|
||||||
public class AfterupdateSyncEpicMesRule implements IRule<AggPickmVO> {
|
public class AfterupdateSyncEpicMesRule implements IRule<AggPickmVO> {
|
||||||
|
@ -37,12 +37,12 @@ public class AfterupdateSyncEpicMesRule implements IRule<AggPickmVO> {
|
||||||
|
|
||||||
IPMOQueryService queryService= ServiceLocator.find(IPMOQueryService.class);
|
IPMOQueryService queryService= ServiceLocator.find(IPMOQueryService.class);
|
||||||
List<PMOAggVO> list = new ArrayList<PMOAggVO>();
|
List<PMOAggVO> list = new ArrayList<PMOAggVO>();
|
||||||
if(null!=aggPickmVO.getParentVO().getFsourcetype() &&aggPickmVO.getParentVO().getFsourcetype().equals("55A2")){
|
if(null!=aggPickmVO.getParentVO().getVfirstbilltype() && aggPickmVO.getParentVO().getVfirstbilltype().indexOf("55A2")!=-1){
|
||||||
try {
|
try {
|
||||||
PMOAggVO[] pmoAggVO = queryService.queryPMOAggVOByBid(new String[Integer.parseInt(aggPickmVO.getParentVO().getCsourcebillid())]);
|
PMOAggVO[] pmoAggVO = queryService.queryPMOAggVOByBid(new String[Integer.parseInt(aggPickmVO.getParentVO().getCsourcebillid())]);
|
||||||
if(null!=pmoAggVO){
|
if(null!=pmoAggVO){
|
||||||
for (PMOAggVO pmoAggVO1 : pmoAggVO) {
|
for (PMOAggVO pmoAggVO1 : pmoAggVO) {
|
||||||
if (pmoAggVO1.getParentVO().getFbillstatus().equals("1")){
|
if (1 == pmoAggVO1.getParentVO().getFbillstatus()){
|
||||||
list.add(pmoAggVO1);
|
list.add(pmoAggVO1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,8 +54,8 @@ public class AfterupdateSyncEpicMesRule implements IRule<AggPickmVO> {
|
||||||
}
|
}
|
||||||
if (list.size() > 0) {
|
if (list.size() > 0) {
|
||||||
SyncEpicMesUtil mesUtil = new SyncEpicMesUtil();
|
SyncEpicMesUtil mesUtil = new SyncEpicMesUtil();
|
||||||
// 审核后触发
|
// 备料重算后触发审核
|
||||||
String n = "y";
|
String n = "Y";
|
||||||
try {
|
try {
|
||||||
mesUtil.processData((PMOAggVO[])list.toArray(new PMOAggVO[list.size()]),n);
|
mesUtil.processData((PMOAggVO[])list.toArray(new PMOAggVO[list.size()]),n);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
|
|
Loading…
Reference in New Issue