代码更新
This commit is contained in:
@@ -740,19 +740,23 @@ public class InspectionsheetmstServiceImpl implements InspectionsheetmstService
|
|||||||
*/
|
*/
|
||||||
String is_sendLK = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("IS_SENDLK").getValue();
|
String is_sendLK = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("IS_SENDLK").getValue();
|
||||||
if (StrUtil.equals(is_sendLK, "1")) {
|
if (StrUtil.equals(is_sendLK, "1")) {
|
||||||
WmsToLkServiceImpl wmsToLkService = new WmsToLkServiceImpl();
|
boolean is_pgf = materialBaseService.isAlongMaterType(MaterOptTypeEnum.PGF.getCode(), material_id, null);
|
||||||
|
|
||||||
JSONObject param = new JSONObject();
|
if (is_pgf) {
|
||||||
param.put("material_uuid", jsonMater.getString("ext_id"));
|
WmsToLkServiceImpl wmsToLkService = new WmsToLkServiceImpl();
|
||||||
param.put("material_id", jsonMater.getString("material_id"));
|
|
||||||
param.put("material_code", jsonMater.getString("material_code"));
|
|
||||||
param.put("material_name", jsonMater.getString("material_name"));
|
|
||||||
param.put("status", jsonDtl.getString("result"));
|
|
||||||
|
|
||||||
JSONObject result = wmsToLkService.qualityResult(param);
|
JSONObject param = new JSONObject();
|
||||||
|
param.put("material_uuid", jsonMater.getString("ext_id"));
|
||||||
|
param.put("material_id", jsonMater.getString("material_id"));
|
||||||
|
param.put("material_code", jsonMater.getString("material_code"));
|
||||||
|
param.put("material_name", jsonMater.getString("material_name"));
|
||||||
|
param.put("status", jsonDtl.getString("result"));
|
||||||
|
|
||||||
if (StrUtil.equals(result.getString("result"), "2")) {
|
JSONObject result = wmsToLkService.qualityResult(param);
|
||||||
throw new BadRequestException("发送立库失败:"+result.getString("messsage"));
|
|
||||||
|
if (StrUtil.equals(result.getString("result"), "2")) {
|
||||||
|
throw new BadRequestException("发送立库失败:"+result.getString("messsage"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user