Explorar o código

반품현황 쿼리 반품발주번호 추가

dwkim %!s(int64=2) %!d(string=hai) anos
pai
achega
9e19c4b02e

+ 2 - 2
src/main/java/com/oqpo/api/mapper/inoutmng/ColOdrMapper.java

@@ -54,8 +54,8 @@ public interface ColOdrMapper {
54 54
 
55 55
     int insertRtnProcInfoPtcl(@Param("userId") String userId, List<RtnProcInfoPtclEntity> gridInsertData) throws Exception;
56 56
 
57
-    List<PickInfoMgntEntity> selectColRtnInstResultGridList(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId, @Param("sColPickUnqNo") String sColPickUnqNo,  @Param("fromDt") String fromDt, @Param("toDt") String toDt, @Param("sSpplyId") String sSpplyId, @Param("sRtnWhsId") String sRtnWhsId, @Param("sWhsId") String sWhsId,  @Param("sItemNm") String sItemNm, GridRequest gridRequest)throws Exception;
58
-    int selectColRtnInstResultGridCnt(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId,  @Param("sColPickUnqNo") String sColPickUnqNo, @Param("fromDt") String fromDt, @Param("toDt") String toDt, @Param("sSpplyId") String sSpplyId, @Param("sRtnWhsId") String sRtnWhsId, @Param("sWhsId") String sWhsId,  @Param("sItemNm") String sItemNm) throws Exception;
57
+    List<PickInfoMgntEntity> selectColRtnInstResultGridList(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId, @Param("sColPickUnqNo") String sColPickUnqNo, @Param("sRtnPodrUnqNo") String sRtnPodrUnqNo, @Param("fromDt") String fromDt, @Param("toDt") String toDt, @Param("sSpplyId") String sSpplyId, @Param("sRtnWhsId") String sRtnWhsId, @Param("sWhsId") String sWhsId,  @Param("sItemNm") String sItemNm, GridRequest gridRequest)throws Exception;
58
+    int selectColRtnInstResultGridCnt(@Param("sBrandId") String sBrandId, @Param("sStoreId") String sStoreId,  @Param("sColPickUnqNo") String sColPickUnqNo, @Param("sRtnPodrUnqNo") String sRtnPodrUnqNo, @Param("fromDt") String fromDt, @Param("toDt") String toDt, @Param("sSpplyId") String sSpplyId, @Param("sRtnWhsId") String sRtnWhsId, @Param("sWhsId") String sWhsId,  @Param("sItemNm") String sItemNm) throws Exception;
59 59
 
60 60
     List<PickInfoMgntEntity> selectColRtnInstProcList(@Param("brandId") String brandId, @Param("whsId") String whsId,List<RtnProcInfoPtclEntity> gridUpdateData )throws Exception;
61 61
 

+ 3 - 3
src/main/java/com/oqpo/api/service/inoutmng/ColOdrService.java

@@ -1092,16 +1092,16 @@ public class ColOdrService extends CommonService {
1092 1092
     /*
1093 1093
       반품처리현황 그리드 리스트 조회
1094 1094
  */
1095
-    public GridResponse selectRtnStockResultList(String sBrandId, String sStoreId, String sColPickUnqNo, String fromDt, String toDt, String sRtnWhsId, String sSpplyId, String sWhsId, String sItemNm, GridRequest gridRequest) throws Exception {
1095
+    public GridResponse selectRtnStockResultList(String sBrandId, String sStoreId, String sColPickUnqNo, String fromDt, String toDt, String sRtnWhsId, String sSpplyId, String sWhsId, String sItemNm, String sRtnPodrUnqNo, GridRequest gridRequest) throws Exception {
1096 1096
         int gridPage = gridRequest.getGridPage();
1097 1097
         int gridSize = gridRequest.getGridSize();
1098 1098
 
1099 1099
         fromDt = fromDt == null ? null : fromDt.replace(".", "");
1100 1100
         toDt = toDt == null ? null : toDt.replace(".", "");
1101 1101
 
1102
-        int gridRecords = colOdrMapper.selectColRtnInstResultGridCnt(sBrandId, sStoreId,sColPickUnqNo,  fromDt, toDt, sSpplyId, sRtnWhsId,  sWhsId,  sItemNm);
1102
+        int gridRecords = colOdrMapper.selectColRtnInstResultGridCnt(sBrandId, sStoreId,sColPickUnqNo, sRtnPodrUnqNo,  fromDt, toDt, sSpplyId, sRtnWhsId,  sWhsId,  sItemNm);
1103 1103
         int gridTotal = fnCalculateGridTotal(gridSize, gridRecords);
1104
-        List<PickInfoMgntEntity> entities = colOdrMapper.selectColRtnInstResultGridList(sBrandId, sStoreId, sColPickUnqNo, fromDt, toDt, sSpplyId, sRtnWhsId, sWhsId, sItemNm, gridRequest);
1104
+        List<PickInfoMgntEntity> entities = colOdrMapper.selectColRtnInstResultGridList(sBrandId, sStoreId, sColPickUnqNo, sRtnPodrUnqNo, fromDt, toDt, sSpplyId, sRtnWhsId, sWhsId, sItemNm, gridRequest);
1105 1105
         List<Object> gridRows = entities.stream()
1106 1106
                 .map(m -> RtnColStockResultResponse.builder()
1107 1107
                         .viewCd("R")

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
src/main/java/com/oqpo/api/web/controller/inoutmng/ColOdrController.java


+ 3 - 0
src/main/java/com/oqpo/api/web/dto/request/inoutmng/RtnStockResultGridRequest.java

@@ -22,6 +22,9 @@ public class RtnStockResultGridRequest extends GridRequest {
22 22
     @ApiModelProperty(value = "수거서번호")
23 23
     private String sColPickUnqNo;
24 24
 
25
+    @ApiModelProperty(value = "반품발주번호")
26
+    private String sRtnPodrUnqNo;
27
+
25 28
     @NotBlank
26 29
     @ApiModelProperty(value = "시작일자")
27 30
     private String fromDt;

+ 6 - 0
src/main/resources/mybatis/sqlmaps/inoutmng/ColOdr.xml

@@ -707,6 +707,9 @@
707 707
         <if test="sColPickUnqNo != null and sColPickUnqNo != ''">
708 708
             and   mgnt.col_pick_unq_no = #{sColPickUnqNo}
709 709
         </if>
710
+        <if test="sRtnPodrUnqNo != null and sRtnPodrUnqNo != ''">
711
+            and   base.rtn_podr_unq_no = #{sRtnPodrUnqNo}
712
+        </if>
710 713
         <if test="sRtnWhsId != null and sRtnWhsId != ''">
711 714
             and   mgnt.whs_id = #{sRtnWhsId}
712 715
         </if>
@@ -757,6 +760,9 @@
757 760
         <if test="sColPickUnqNo != null and sColPickUnqNo != ''">
758 761
             and   mgnt.col_pick_unq_no = #{sColPickUnqNo}
759 762
         </if>
763
+        <if test="sRtnPodrUnqNo != null and sRtnPodrUnqNo != ''">
764
+            and   base.rtn_podr_unq_no = #{sRtnPodrUnqNo}
765
+        </if>
760 766
         <if test="sRtnWhsId != null and sRtnWhsId != ''">
761 767
             and   mgnt.whs_id = #{sRtnWhsId}
762 768
         </if>