根据商品id查询单据列表接口-完善
This commit is contained in:
@@ -800,7 +800,7 @@
|
||||
function getMaterialInOutList(mId, pageNo, pageSize) {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/depotItem/findDetailByTypeAndMaterialId.action",
|
||||
url: "/depotItem/findDetailByTypeAndMaterialId",
|
||||
dataType: "json",
|
||||
data: ({
|
||||
materialId: mId,
|
||||
|
||||
@@ -100,13 +100,13 @@ public class DepotItemController {
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
objectMap.put("page", dataArray);
|
||||
objectMap.put("page", queryInfo);
|
||||
if (list == null) {
|
||||
queryInfo.setRows(new ArrayList<Object>());
|
||||
queryInfo.setTotal(0);
|
||||
return returnJson(objectMap, "查找不到数据", ErpInfo.OK.code);
|
||||
}
|
||||
queryInfo.setRows(list);
|
||||
queryInfo.setRows(dataArray);
|
||||
queryInfo.setTotal(depotItemService.findDetailByTypeAndMaterialIdCounts(parameterMap));
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user