Commit 67252622 authored by cjl's avatar cjl
Browse files

1、修复批量删除时,前端获取id为undefined的问题

2、修复后端,查询列表为空时,程序异常问题
parent 4a47e254
......@@ -53,13 +53,16 @@ public class DepotItemController {
try {
List<DepotItemVo4HeaderId> depotItemList = depotItemService.getHeaderIdByMaterial(materialParam, depotIds);
String allReturn = "";
if (depotItemList != null) {
if (depotItemList != null&&depotItemList.size()>0) {
for (DepotItemVo4HeaderId d : depotItemList) {
Long dl = d.getHeaderid(); //获取对象
allReturn = allReturn + dl.toString() + ",";
}
/**
* 2019-01-17修复depotItemList集合为空时,程序异常
* */
allReturn = allReturn.substring(0, allReturn.length() - 1);
}
allReturn = allReturn.substring(0, allReturn.length() - 1);
if (allReturn.equals("null")) {
allReturn = "";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment