add:一期新增接口:飞送通知LMS木箱是否通过
This commit is contained in:
@@ -238,6 +238,7 @@
|
||||
WHERE
|
||||
attr.is_used = '1'
|
||||
AND attr.is_delete = '0'
|
||||
AND attr.lock_type = '1'
|
||||
AND attr.sect_id = 输入.sect_id
|
||||
|
||||
OPTION 输入.row_in <> ""
|
||||
|
||||
@@ -183,4 +183,11 @@ public class MesToLmsController {
|
||||
public ResponseEntity<Object> WasteFoilSuccess(@RequestBody JSONObject jo) {
|
||||
return new ResponseEntity<>(mesToLmsService.WasteFoilSuccess(jo), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/boxIsPass")
|
||||
@Log("飞书通知LMS木箱是否通过")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> boxIsPass(@RequestBody JSONObject jo) {
|
||||
return new ResponseEntity<>(mesToLmsService.boxIsPass(jo), HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,5 @@ public interface MesToLmsService {
|
||||
|
||||
JSONObject WasteFoilSuccess(JSONObject param);
|
||||
|
||||
|
||||
|
||||
JSONObject boxIsPass(JSONObject jo);
|
||||
}
|
||||
|
||||
@@ -2334,4 +2334,36 @@ public class MesToLmsServiceImpl implements MesToLmsService {
|
||||
|
||||
return resultParam;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject boxIsPass(JSONObject param) {
|
||||
log.info("boxIsPass输入参数为:-------------------" + param.toString());
|
||||
WQLObject subTab = WQLObject.getWQLObject("pdm_bi_subpackagerelation");
|
||||
|
||||
JSONObject resultParam = new JSONObject();
|
||||
try {
|
||||
if (ObjectUtil.isEmpty(param.getString("PackageBoxSn"))) {
|
||||
throw new BadRequestException("木箱号不能为空!");
|
||||
}
|
||||
|
||||
if (ObjectUtil.isEmpty(param.getString("IsPss"))) {
|
||||
throw new BadRequestException("是否通过不能为空!");
|
||||
}
|
||||
// 更新子卷包装关系
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("is_pass", param.getString("IsPss"));
|
||||
subTab.update(json,"package_box_sn = '"+param.getString("PackageBoxSn")+"'");
|
||||
|
||||
resultParam.put("RTYPE", "S");
|
||||
resultParam.put("RTMSG", "操作成功!");
|
||||
resultParam.put("RTOAL", 1);
|
||||
resultParam.put("RTDAT", null);
|
||||
} catch (Exception e) {
|
||||
resultParam.put("RTYPE", "E");
|
||||
resultParam.put("RTMSG", "操作失败!" + e.getMessage());
|
||||
resultParam.put("RTOAL", 0);
|
||||
resultParam.put("RTDAT", null);
|
||||
}
|
||||
return resultParam;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user