diff --git a/src/main/java/com/gaotao/modules/boxManage/service/impl/BoxForNotificationServiceImpl.java b/src/main/java/com/gaotao/modules/boxManage/service/impl/BoxForNotificationServiceImpl.java index a08594f..68b8c28 100644 --- a/src/main/java/com/gaotao/modules/boxManage/service/impl/BoxForNotificationServiceImpl.java +++ b/src/main/java/com/gaotao/modules/boxManage/service/impl/BoxForNotificationServiceImpl.java @@ -18,6 +18,8 @@ import org.springframework.transaction.annotation.Transactional; import java.util.List; +import static com.gaotao.modules.outboundNotification.service.impl.OutboundNotificationServiceImpl.convertToSQLString; + @Service public class BoxForNotificationServiceImpl implements BoxForNotificationService { @Autowired @@ -342,6 +344,8 @@ public class BoxForNotificationServiceImpl implements BoxForNotificationService @Override public List searchOutboundNotificationWithDetail(OutboundNotificationHeadVo data) { + String[] arr = convertToSQLString(data.getOrderStatus()).replace("(", "").replace(")", "").replace("'", "").split(","); + data.setStatusArr(arr); return boxForNotificationMapper.searchOutboundNotificationWithDetail(data); } } diff --git a/src/main/resources/mapper/boxManage/BoxForNotificationMapper.xml b/src/main/resources/mapper/boxManage/BoxForNotificationMapper.xml index bb1f532..880fb81 100644 --- a/src/main/resources/mapper/boxManage/BoxForNotificationMapper.xml +++ b/src/main/resources/mapper/boxManage/BoxForNotificationMapper.xml @@ -23,15 +23,10 @@ from so_receive_boxes s left join warehouse w on s.WareHouseID = w.WareHouseID and s.site = w.site and s.bu_no = w.bu_no - - and s.site = #{site} - + s.site = #{site} and s.bu_no = #{buNo} and s.order_no = #{orderNo} - - and s.bu_no = #{buNo} - and s.box_type = #{boxType} @@ -155,10 +150,23 @@ @@ -180,12 +188,7 @@ s.bu_no as buNo FROM so_receive_cases s - - AND s.site = #{site} - - - AND s.bu_no = #{buNo} - + s.site = #{site} AND s.bu_no = #{buNo} AND s.NotifyNo = #{notifyNo} @@ -333,7 +336,10 @@ AND a.order_type = #{orderType} - AND a.order_status = #{orderStatus} + AND a.order_status in + + #{item} + AND a.customer_id LIKE '%' + #{customerId} + '%'