代码更新
This commit is contained in:
@@ -98,6 +98,8 @@ public class LkToWmsServiceImpl implements LkToWmsService {
|
||||
resultToLk.put("result", "0");
|
||||
resultToLk.put("messsage", "任务生成成功,下发失败:" + message + "");
|
||||
}
|
||||
// 打印日志
|
||||
log.info("出库申请输出参数:"+resultToLk.toString());
|
||||
return resultToLk;
|
||||
}
|
||||
|
||||
@@ -156,6 +158,8 @@ public class LkToWmsServiceImpl implements LkToWmsService {
|
||||
result.put("messsage", "");
|
||||
}
|
||||
}
|
||||
// 打印日志
|
||||
log.info("库存确认结果反馈输出参数:"+result.toString());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,9 @@ import java.util.Map;
|
||||
public class WmsToLkServiceImpl implements WmsToLkService {
|
||||
@Override
|
||||
public JSONObject storageApply(Map whereJson) {
|
||||
// 打印日志
|
||||
log.info("入库申请输入参数:"+whereJson.toString());
|
||||
|
||||
String mode = MapUtil.getStr(whereJson, "mode");
|
||||
String station = MapUtil.getStr(whereJson, "station");
|
||||
if (ObjectUtil.isEmpty(mode)) throw new BadRequestException("模式不能为空");
|
||||
@@ -47,11 +50,16 @@ public class WmsToLkServiceImpl implements WmsToLkService {
|
||||
.execute().body();
|
||||
result = JSONObject.parseObject(resultMsg);
|
||||
|
||||
// 打印日志
|
||||
log.info("入库申请输出参数:"+result.toString());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject storageNotice(JSONObject json) {
|
||||
// 打印日志
|
||||
log.info("入库通知单输入参数:"+json.toString());
|
||||
|
||||
JSONObject jsonParam = new JSONObject();
|
||||
JSONArray jsonArray = json.getJSONArray("data");
|
||||
if (ObjectUtil.isEmpty(json)) throw new BadRequestException("参数不能空");
|
||||
@@ -101,11 +109,16 @@ public class WmsToLkServiceImpl implements WmsToLkService {
|
||||
.execute().body();
|
||||
result = JSONObject.parseObject(resultMsg);
|
||||
|
||||
// 打印日志
|
||||
log.info("入库通知单输出参数:"+result.toString());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject qualityResult(JSONObject json) {
|
||||
// 打印日志
|
||||
log.info("质检结果输入参数:"+json.toString());
|
||||
|
||||
if (ObjectUtil.isEmpty(json)) throw new BadRequestException("参数不能空");
|
||||
JSONObject jsonParam = new JSONObject();
|
||||
jsonParam.put("material_uuid", json.getString("material_uuid"));
|
||||
@@ -128,11 +141,16 @@ public class WmsToLkServiceImpl implements WmsToLkService {
|
||||
.execute().body();
|
||||
result = JSONObject.parseObject(resultMsg);
|
||||
|
||||
// 打印日志
|
||||
log.info("质检结果输出参数:"+result.toString());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject stockStockOut(JSONObject json) {
|
||||
// 打印日志
|
||||
log.info("出库通知单输入参数:"+json.toString());
|
||||
|
||||
JSONObject jsonParam = new JSONObject();
|
||||
JSONArray jsonArray = json.getJSONArray("data");
|
||||
if (ObjectUtil.isEmpty(json)) throw new BadRequestException("参数不能空");
|
||||
@@ -184,12 +202,17 @@ public class WmsToLkServiceImpl implements WmsToLkService {
|
||||
.execute().body();
|
||||
result = JSONObject.parseObject(resultMsg);
|
||||
|
||||
// 打印日志
|
||||
log.info("出库通知单输出参数:"+result.toString());
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject empInAndOut(JSONObject json) {
|
||||
// 打印日志
|
||||
log.info("空托盘出入库输入参数:"+json.toString());
|
||||
|
||||
if (ObjectUtil.isEmpty(json)) throw new BadRequestException("参数不能空");
|
||||
JSONObject jsonParam = new JSONObject();
|
||||
jsonParam.put("invtype", json.getString("invtype"));
|
||||
@@ -209,6 +232,8 @@ public class WmsToLkServiceImpl implements WmsToLkService {
|
||||
.execute().body();
|
||||
result = JSONObject.parseObject(resultMsg);
|
||||
|
||||
// 打印日志
|
||||
log.info("空托盘出入库输出参数:"+result.toString());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user