|
@@ -1480,7 +1480,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
|
|
|
Map<String,Object> orderData2=syPackingListTailoringMapper.getOmOrPo("PO_POMAIN","cPOID='"+mapItem1.getOrderNumber()+"'","POID");//委外订单号判断 第一次
|
|
|
|
|
|
- orderDataItem=syPackingListTailoringMapper.getOmOrPoItem2("PO_PoDetails", "poid='"+orderData2.get("id")+"' and ivouchrowno='"+
|
|
|
+ orderDataItem=syPackingListTailoringMapper.getOmOrPoItem2("PO_PoDetails", "poid='"+orderData2.get("id")+"' and id='"+
|
|
|
mapItem1.getIrowno()+"'","ID");//根据行号获取信息
|
|
|
if (orderDataItem==null){
|
|
|
throw new JeecgBootException(mapt.get("account")+"账套,单证委外订单子表id为"+orderData2.get("id")+",U8中无此ID 请联系管理员处理");
|
|
@@ -1615,6 +1615,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
Order orderIrowno=new Order();
|
|
|
System.out.println("新的逻辑id\t"+orderDataItem.get("iSOsID"));
|
|
|
//if(item.getSyOrderDataItemId()!=null){//销售发货单 ---查询销售订单子表数据 顺序---5
|
|
|
+ String orderDataId="";
|
|
|
if(orderDataItem!=null&&orderDataItem.containsKey("iSOsID")&&orderDataItem.get("iSOsID")!=null){
|
|
|
//Map<String,Object> orderDataItem2=syPackingListTailoringMapper.getSoMainItem(orderDataItem.get("iSOsID").toString());
|
|
|
Map<String,Object> orderDataItem2=new HashMap<>();
|
|
@@ -1626,9 +1627,11 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
id=id.substring(3);
|
|
|
}
|
|
|
orderDataItem2=syPackingListTailoringMapper.getSoMainItem2(id);
|
|
|
+ orderDataId=orderDataItem2.get("iSOsID").toString();
|
|
|
//mapItem3.put("AUTOID_SO",id);//来源单据明细ID
|
|
|
}else{
|
|
|
orderDataItem2=syPackingListTailoringMapper.getSoMainItem(orderDataItem.get("iSOsID").toString());
|
|
|
+ orderDataId=orderDataItem2.get("iSOsID").toString();
|
|
|
}
|
|
|
mapItem3.put("AUTOID_SO",orderDataItem2.get("iSOsID"));//来源单据明细ID
|
|
|
orderIrowno.setIrowno(orderDataItem2.get("irowno").toString());
|
|
@@ -1711,8 +1714,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
}
|
|
|
//String params1="UFDATA_103_2021";//当前数据库
|
|
|
String params3=orderIrowno.getOrderNumber();//销售订单号
|
|
|
- String params5=orderIrowno.getIrowno();//当前数据库行号
|
|
|
- String ivouchrowno =syPackingListTailoringMapper.getIvouchrowno(params1,params2,params3,params4,params5);
|
|
|
+// String params5=orderIrowno.getIrowno();//当前数据库行号
|
|
|
+ String params5=orderDataId;//当前数据库行号
|
|
|
+ String ivouchrowno =syPackingListTailoringMapper.getIvouchrowno2(params1,params2,params3,params4,params5);
|
|
|
orderIrowno.setIrowno(ivouchrowno);//获取行号
|
|
|
System.out.println("销售订单子表的行号\t"+ivouchrowno);
|
|
|
mapSort.put(item.getId(),orderIrowno);
|
|
@@ -2228,11 +2232,18 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
DxpDataPlan dxpDataPlan=dxpDataPlanMapper.selectById("0012");
|
|
|
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
Date datetome = sf.parse(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(System.currentTimeMillis()));
|
|
|
+ Date datetome2 = dxpDataPlan.getLastTime();
|
|
|
dxpDataPlan.setLastTime(datetome);
|
|
|
if(dxpDataPlan.getItemUrl().equals("f")){
|
|
|
dxpDataPlan.setItemUrl("t");
|
|
|
dxpDataPlanMapper.updateById(dxpDataPlan);
|
|
|
}else{
|
|
|
+ long time=(datetome.getTime()-datetome2.getTime())/1000;
|
|
|
+ System.out.println("time\t"+time);
|
|
|
+ if(time>1800){
|
|
|
+ dxpDataPlan.setItemUrl("f");
|
|
|
+ dxpDataPlanMapper.updateById(dxpDataPlan);
|
|
|
+ }
|
|
|
System.out.println("正在执行中");
|
|
|
return "正在执行中";
|
|
|
}
|