提交 ac5c34fd authored 作者: 许俊's avatar 许俊

微调

上级 c9c4201f
...@@ -133,12 +133,11 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap ...@@ -133,12 +133,11 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap
} }
/*======================================================================================================*/ /*======================================================================================================*/
public String synchronizationPush(List<Map<String,Object>> needLists,String code) { public String synchronizationPush(List<Map<String,Object>> needLists,String code) {
this.imsLogName="其出库"; //ims日志-name this.imsLogName="其出库"; //ims日志-name
this.DocType="R100"; //调用者传入的标识 this.DocType="R100"; //调用者传入的标识
this.SEQ="MTRL_SEQ"; //父单据行号,一般默认是这个字符串(有些单据是AUDIT_SEQ) this.SEQ="MTRL_SEQ"; //父单据行号,一般默认是这个字符串(有些单据是AUDIT_SEQ)
this.wipOrde="AUDIT_ID"; //父亲单据工单编号或者行内码 this.wipOrde="AUDIT_ID"; //父亲单据工单编号或者行内码
List<ImsOtherOutstock> ImsOtherOutstocks=new ArrayList<>(); List<ImsOtherOutstock> ImsOtherOutstocks=new ArrayList<>();
//查询父单据失败的lists //查询父单据失败的lists
List<Map<String,Object>> SelectFatherFentryIdFailLists=new ArrayList(); List<Map<String,Object>> SelectFatherFentryIdFailLists=new ArrayList();
...@@ -194,11 +193,12 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap ...@@ -194,11 +193,12 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap
if(!CollectionUtils.isEmpty(pushResultLists)) { if(!CollectionUtils.isEmpty(pushResultLists)) {
throw new kingdeeException("操作失败!下推失败!", pushResultLists,code); throw new kingdeeException("操作失败!下推失败!", pushResultLists,code);
} }
//查询子单据行内码 //查询子单据行内码maps.get("AUDIT_ID").toString()+maps.get("AUDIT_SEQ").toString()
for (Map<String, Object> needmap : needLists) { for (Map<String, Object> needmap : needLists) {
String Son_FEntry_ID = imsOtherOutstockPushApi.querySonFEntryID(needmap.get(SEQ).toString(), result.getResponseStatus().getSuccessEntitys().get(0).getId(),needmap.get(wipOrde).toString()); String Son_FEntry_ID = imsOtherOutstockPushApi.querySonFEntryID(needmap.get(needmap.get("AUDIT_ID").toString()+needmap.get("AUDIT_SEQ").toString()).toString(),needmap.get(SEQ).toString(), result.getResponseStatus().getSuccessEntitys().get(0).getId());
needmap.put("FID", result.getResponseStatus().getSuccessEntitys().get(0).getId()); needmap.put("FID", result.getResponseStatus().getSuccessEntitys().get(0).getId());
needmap.put("FEntry_ID",Son_FEntry_ID); needmap.put("FEntry_ID",Son_FEntry_ID);
} }
//修改成功下推后needPushLists的数据 //修改成功下推后needPushLists的数据
AddResult=imsOtherOutstockPushApi.addTwo(needLists); AddResult=imsOtherOutstockPushApi.addTwo(needLists);
...@@ -218,7 +218,7 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap ...@@ -218,7 +218,7 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap
} }
//保存实体类 //保存实体类
this.saveBatch(ImsOtherOutstocks); this.saveBatch(ImsOtherOutstocks);
return ImsOtherOutstocks.get(0).getFbillNo(); return ImsOtherOutstocks.get(0).getFbillNo();
} }
public List<String> ResultSplitFourPush(org.jeecg.modules.iost.ims.entity.KingdeeResultObject.AddResultObject.Result AddResult) public List<String> ResultSplitFourPush(org.jeecg.modules.iost.ims.entity.KingdeeResultObject.AddResultObject.Result AddResult)
...@@ -260,7 +260,7 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap ...@@ -260,7 +260,7 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap
if(!ObjectUtils.isEmpty(queue_idRepeatResultMap.get("notExitFbillNo"))&&Boolean.valueOf(queue_idRepeatResultMap.get("notExitFbillNo").toString())==true) if(!ObjectUtils.isEmpty(queue_idRepeatResultMap.get("notExitFbillNo"))&&Boolean.valueOf(queue_idRepeatResultMap.get("notExitFbillNo").toString())==true)
{ {
String queue_id = queue_idRepeatResultMap.get("QUEUE_ID").toString(); String queue_id = queue_idRepeatResultMap.get("QUEUE_ID").toString();
result="单据编号"+queue_idRepeatResultMap.get(wipOrde)+"不存在,无法进行下推修改!"; result="发货通知单号"+queue_idRepeatResultMap.get(wipOrde)+"不存在,无法进行下推修改!";
rustList.add(result); rustList.add(result);
} }
else else
...@@ -296,5 +296,4 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap ...@@ -296,5 +296,4 @@ public class ImsOtherOutstockServiceImpl extends ServiceImpl<ImsOtherOutstockMap
} }
return rustList; return rustList;
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论