代码更新
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package org.nl.wms.ext.sap.service.impl;
|
package org.nl.wms.ext.sap.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
@@ -58,6 +59,8 @@ public class SapToLmsServiceImpl implements SapToLmsService {
|
|||||||
jsonMst.put("detail_count",item.size());
|
jsonMst.put("detail_count",item.size());
|
||||||
jsonMst.put("bill_status","10");
|
jsonMst.put("bill_status","10");
|
||||||
jsonMst.put("create_mode","03");
|
jsonMst.put("create_mode","03");
|
||||||
|
jsonMst.put("biz_date", DateUtil.now());
|
||||||
|
jsonMst.put("user", "sap");
|
||||||
|
|
||||||
JSONArray tableData = new JSONArray();
|
JSONArray tableData = new JSONArray();
|
||||||
|
|
||||||
@@ -91,8 +94,11 @@ public class SapToLmsServiceImpl implements SapToLmsService {
|
|||||||
jsonMst.put("tableData", tableData);
|
jsonMst.put("tableData", tableData);
|
||||||
|
|
||||||
if (StrUtil.equals(lfart, "ZLF")) {
|
if (StrUtil.equals(lfart, "ZLF")) {
|
||||||
// 调用出库新增
|
// 调用出库新增并分配
|
||||||
checkOutBillService.insertDtl(jsonMst);
|
String iostorinv_id = checkOutBillService.insertDtl(jsonMst);
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
jsonObject.put("iostorinv_id",iostorinv_id);
|
||||||
|
checkOutBillService.allDiv(jsonObject);
|
||||||
|
|
||||||
result.put("RTYPE", "S");
|
result.put("RTYPE", "S");
|
||||||
result.put("RTMSG", "操作成功!");
|
result.put("RTMSG", "操作成功!");
|
||||||
|
|||||||
Reference in New Issue
Block a user