Explorar o código

메인 화면설계문서 및 발주관련 수정

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

BIN=BIN
doc/오더퀸_수발주ADMIN_API_스토리보드_V0.8_20221202.pptx


+ 1 - 1
src/main/java/com/oqpo/api/web/dto/request/stockmng/StockMngPassQtyGridRequest.java

@@ -46,10 +46,10 @@ public class StockMngPassQtyGridRequest {
46 46
 
47 47
     @Getter
48 48
     @Builder
49
+    @NoArgsConstructor
49 50
     @AllArgsConstructor(access = AccessLevel.PROTECTED)
50 51
     static class PassQtyItemList {
51 52
 
52
-        @NotBlank
53 53
         @ApiModelProperty(value = "품목아이디")
54 54
         private String itemId;
55 55
 

+ 19 - 4
src/main/java/com/oqpo/api/web/dto/response/pomng/pchOrd/PchOdrInfoResponse.java

@@ -29,16 +29,24 @@ public class PchOdrInfoResponse {
29 29
     @ApiModelProperty(value = "공급사아이디") private String spplyId;
30 30
     @ApiModelProperty(value = "공급사명") private String spplyNm;
31 31
     @ApiModelProperty(value = "발주일자") private String podrDt;
32
-    @ApiModelProperty(value = "납품창고") private String whsDvsnNm;
33
-    @ApiModelProperty(value = "출고창고") private String shmtWhsDvsnNm;
32
+    @ApiModelProperty(value = "납품창고") private String whsNm;
33
+    @ApiModelProperty(value = "납품창고코드") private String whsId;
34
+    @ApiModelProperty(value = "납품창고Location") private String location;
35
+    @ApiModelProperty(value = "출고창고") private String shmtWhsNm;
36
+    @ApiModelProperty(value = "출고창고코드") private String shmtWhsId;
37
+    @ApiModelProperty(value = "출고창고코드") private String shmtLocation;
34 38
     @ApiModelProperty(value = "발주합계금액") private Long podrTotalAmt;
39
+    @ApiModelProperty(value = "창고구분") private String whsDvsn;
40
+    @ApiModelProperty(value = "창고구분명") private String whsDvsnNm;
35 41
     @ApiModelProperty(value = "발주품목수량") private Integer podrItemQty;
36 42
     @ApiModelProperty(value = "발주담당자명") private String podrMgrNm;
37 43
     @ApiModelProperty(value = "발주담당자전화번호") private String podrMgrTelNo;
38 44
     @ApiModelProperty(value = "배송구분명") private String dlvDvsnNm;
45
+    @ApiModelProperty(value = "배송구분명") private String dlvDvsn;
39 46
     @ApiModelProperty(value = "납품요청일") private String dlvReqDt;
40 47
     @ApiModelProperty(value = "매장아이디") private String storeId;
41 48
 
49
+
42 50
     @ApiModelProperty(value = "구매발주 품목 정보")
43 51
     private List<PchOdrInfoResponse.PchOrdPoDtlInfo> pchOdrDtlList;
44 52
 
@@ -53,13 +61,20 @@ public class PchOdrInfoResponse {
53 61
                 .spplyId(entity.getSpplyId() == null ? "" : entity.getSpplyId())
54 62
                 .spplyNm(entity.getSpplyNm() == null ? "" : entity.getSpplyNm())
55 63
                 .podrDt(entity.getPodrDt() == null ? "" : entity.getPodrDt())
56
-                .whsDvsnNm(entity.getWhsDvsnNm() == null ? "" : entity.getWhsDvsnNm() + "-" + entity.getLocationNm())
57
-                .shmtWhsDvsnNm(entity.getShmtWhsNm() == null ? "" : entity.getShmtWhsNm() + "-" + entity.getShmtLocationNm())
64
+                .whsId(entity.getWhsId() == null ? "" : entity.getWhsId())
65
+                .location(entity.getLocation() == null ? "" : entity.getLocation())
66
+                .whsNm(entity.getWhsNm() == null ? "" : entity.getWhsNm() + entity.getLocationNm())
67
+                .shmtWhsId(entity.getShmtWhsId() == null ? "" : entity.getShmtWhsId())
68
+                .shmtLocation(entity.getShmtLocation() == null ? "" : entity.getShmtLocation())
69
+                .shmtWhsNm(entity.getShmtWhsNm() == null ? "" : entity.getShmtWhsNm() + "-" + entity.getShmtLocationNm())
70
+                .whsDvsn(entity.getWhsDvsn() == null ? "" : entity.getWhsDvsn())
71
+                .whsDvsnNm(entity.getWhsDvsnNm() == null? "" : entity.getWhsDvsnNm())
58 72
                 .podrTotalAmt(entity.getPodrTotalAmt() == null ? 0 : entity.getPodrTotalAmt())
59 73
                 .podrItemQty(entity.getPodrItemQty() == null ? 0 : entity.getPodrItemQty())
60 74
                 .podrMgrNm(entity.getPodrMgrNm() == null ? "" : entity.getPodrMgrNm())
61 75
                 .podrMgrTelNo(entity.getPodrMgrTelNo() == null ? "" : entity.getPodrMgrTelNo())
62 76
                 .dlvDvsnNm(entity.getDlvDvsnNm() == null ? "" : entity.getDlvDvsnNm())
77
+                .dlvDvsn(entity.getDlvDvsn() == null ? "" : entity.getDlvDvsn())
63 78
                 .dlvReqDt(entity.getDlvReqDt() == null ? "" : entity.getDlvReqDt())
64 79
                 .storeId(entity.getStoreId() == null ? "" : entity.getStoreId())
65 80
                 .pchOdrDtlList(dtlEntityList.stream()

+ 2 - 0
src/main/resources/mybatis/sqlmaps/pomng/PchOrd.xml

@@ -211,6 +211,8 @@
211 211
             , base.pch_odr_st_cd, fn_code_nm(upper('pch_odr_st_cd'), base.pch_odr_st_cd) as pch_odr_st_nm
212 212
             , base.spply_id, fn_spply_nm(base.spply_id) as spply_nm, date_format(base.podr_dt, '%Y.%m.%d') as podr_dt
213 213
             , fn_whs_nm(base.brand_id, base.whs_id) as whs_nm
214
+            , base.whs_id, base.location, base.shmt_whs_id, base.shmt_location, base.dlv_dvsn, base.whs_dvsn
215
+            , fn_code_nm(upper('WHS_DVSN'), base.whs_dvsn) as whs_dvns_nm
214 216
             , fn_whs_location_nm(base.brand_id, base.whs_id, base.location) as location_nm
215 217
             , fn_whs_nm(base.brand_id, base.shmt_whs_id) as shmt_whs_nm
216 218
             , fn_whs_location_nm(base.brand_id, base.shmt_whs_id, base.shmt_location) as shmt_location_nm

+ 3 - 2
src/main/resources/mybatis/sqlmaps/stinfo/Store.xml

@@ -223,9 +223,10 @@
223 223
     </update>
224 224
 
225 225
     <select id="selectStoreLoanMgntUnqNo" resultType="String">
226
-        select loan_mgnt_unq_no
227
-         from store_base_info
226
+         select loan_mgnt_unq_no
227
+         from loan_mgnt_base_info
228 228
          where store_id = #{storeId}
229
+         and   use_yn = 'Y'
229 230
     </select>
230 231
 
231 232
 </mapper>