diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/StorageStatusController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/StorageStatusController.java index c66c898b..7608fd7f 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/StorageStatusController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/StorageStatusController.java @@ -84,24 +84,7 @@ public class StorageStatusController extends BaseController { Integer pageIndex = Convert.toInt(ServletUtils.getParameter("pageNum"), 1); Integer pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10); List list = storageStatusMapper.getUserRecords(bean); - if (CollectionUtils.isNotEmpty(list)) { - Iterator iterator = list.iterator(); - while (iterator.hasNext()) { - MaType type = iterator.next(); - if (type.getBackId() == null) { - continue; - } - // 根据退料id及类型查询设备状态 - List typeList = storageStatusMapper.getTypeList(type); - if (CollectionUtils.isNotEmpty(typeList)) { - for (MaType maType1 : typeList) { - if ("1".equals(maType1.getIsFinished()) && type.getNum().equals(maType1.getNum())) { - iterator.remove(); - } - } - } - } - } + // 针对于预报废驳回数据,进行数据追加,待定 return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, list)); } diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml index 380fe181..8eb15d30 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml @@ -1120,7 +1120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" LEFT JOIN slt_agreement_info sai ON mt.type_id = sai.type_id WHERE EXISTS ( SELECT 1 FROM slt_agreement_info sai2 WHERE sai2.type_id = mt.type_id AND sai2.agreement_id = #{agreementId} - AND sai2.STATUS = '0' and sai2.num > 0) + AND sai2.STATUS = '0' and sai2.num > 0 and sai2.end_time IS NULL) GROUP BY mt.type_id diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/RepairAuditDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/RepairAuditDetailsMapper.xml index bf79c863..12c8127f 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/RepairAuditDetailsMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/RepairAuditDetailsMapper.xml @@ -493,7 +493,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"