|
|
@@ -77,7 +77,12 @@ public class ProductUtils {
|
|
|
if (null != res) {
|
|
|
try {
|
|
|
// 保存成功物料的id
|
|
|
- return JSON.parseArray(res, Long.class);
|
|
|
+ List<Long> ids = JSON.parseArray(res, Long.class);
|
|
|
+ if (!CollectionUtils.isEmpty(ids)) {
|
|
|
+ return ids;
|
|
|
+ } else {
|
|
|
+ throw new RuntimeException("批量更新物料出现异常");
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException("批量更新物料出现异常:" + e.getMessage());
|
|
|
}
|
|
|
@@ -158,8 +163,6 @@ public class ProductUtils {
|
|
|
if ("false".equals(modelMap.get("success")) && null != modelMap.get("message")) {
|
|
|
map.put("success", "false");
|
|
|
map.put("message", modelMap.get("message"));
|
|
|
- } else {
|
|
|
- map.put("success", "true");
|
|
|
}
|
|
|
result += (int) (null != modelMap.get("result") ? modelMap.get("result") : 0);
|
|
|
pageContent = new ArrayList<>();
|