|
@@ -235,7 +235,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
Map<String, Object> map = syncMESCheckBomItems(JSON.toJSONString(ma, SerializerFeature.WriteMapNullValue).replace("null", "\"\""), tokenConfig.get("syncMakeScrap"));
|
|
Map<String, Object> map = syncMESCheckBomItems(JSON.toJSONString(ma, SerializerFeature.WriteMapNullValue).replace("null", "\"\""), tokenConfig.get("syncMakeScrap"));
|
|
|
hashMap.put("code", -1);
|
|
hashMap.put("code", -1);
|
|
|
hashMap.put("msg", "MES异常,请联系MES处理!");
|
|
hashMap.put("msg", "MES异常,请联系MES处理!");
|
|
|
- if (map != null&&map.isEmpty()) {
|
|
|
|
|
|
|
+ if (map != null&&!map.isEmpty()) {
|
|
|
int code = Integer.parseInt(StringUtil.nvl(map.get("code"), "-1"));
|
|
int code = Integer.parseInt(StringUtil.nvl(map.get("code"), "-1"));
|
|
|
hashMap.put("code", code);
|
|
hashMap.put("code", code);
|
|
|
hashMap.put("msg", map.get("msg"));
|
|
hashMap.put("msg", map.get("msg"));
|