|
@@ -1,7 +1,6 @@
|
|
package com.warewms.service.impl;
|
|
package com.warewms.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.jfinal.kit.Kv;
|
|
import com.jfinal.kit.Kv;
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
@@ -15,7 +14,6 @@ import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -118,13 +116,30 @@ public class ErpSyncServiceImpl implements ErpSyncService {
|
|
param.set("inout",erpBarCodeList.getInOut());
|
|
param.set("inout",erpBarCodeList.getInOut());
|
|
param.set("stockID",erpBarCodeList.getStockId());
|
|
param.set("stockID",erpBarCodeList.getStockId());
|
|
param.set("boxid",erpBarCodeList.getBoxNo());
|
|
param.set("boxid",erpBarCodeList.getBoxNo());
|
|
|
|
+ param.set("erpResult",erpBarCodeList.getErpResult());
|
|
param.set("createUser", erpBarCodeList.getCreateUser());
|
|
param.set("createUser", erpBarCodeList.getCreateUser());
|
|
param.set("createDate",erpBarCodeList.getCreateDate());
|
|
param.set("createDate",erpBarCodeList.getCreateDate());
|
|
- param.set("wmsMark","N");
|
|
|
|
|
|
+ //param.set("wmsMark","N");
|
|
SqlPara sqlPara = Db.getSqlPara("erp.insertBarcodeList",param);
|
|
SqlPara sqlPara = Db.getSqlPara("erp.insertBarcodeList",param);
|
|
if (Db.update(sqlPara) == 0) {
|
|
if (Db.update(sqlPara) == 0) {
|
|
throw new RRException("writeBack失败!");
|
|
throw new RRException("writeBack失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updaErpStatus(ErpOrderList erpOrderList) {
|
|
|
|
+
|
|
|
|
+ Kv param = Kv.create();
|
|
|
|
+ param.put("orderState", erpOrderList.getOrderState());
|
|
|
|
+ param.put("orderNo", erpOrderList.getOrderNo());
|
|
|
|
+ param.put("orderName", erpOrderList.getOrderName());
|
|
|
|
+ SqlPara update = Db.getSqlPara("erp.updaErpStatus", param);
|
|
|
|
+
|
|
|
|
+ if(Db.update(update) == 0){
|
|
|
|
+ throw new RRException("updaOrderStatus——修改ERP需求单状态失败!");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|