ソースを参照

납품서 창고구분 추가

isna 2 年 前
コミット
b49adb1b0a

+ 1 - 1
src/main/java/com/oqpo/api/entity/inoutmng/DeliInfoMgntEntity.java

@@ -48,7 +48,7 @@ public class DeliInfoMgntEntity implements Serializable {
48 48
     private String whsAddr;
49 49
     private String whsMgrTelNo;
50 50
     private String shmtWhsId;
51
-    private String shmtLocation;
51
+    private String shmtLocation; 
52 52
 
53 53
 
54 54
     private String dlvBsnsRegno;

+ 2 - 0
src/main/java/com/oqpo/api/service/inoutmng/ShmtOdrService.java

@@ -822,6 +822,8 @@ public class ShmtOdrService extends CommonService {
822 822
                         .unitAmt(m.getDeliDtlMgntInfo() == null ? 0 : m.getDeliDtlMgntInfo().getUnitAmt() == null ? 0 : m.getDeliDtlMgntInfo().getUnitAmt())
823 823
                         .dlvMgrNm(m.getDlvMgrNm() == null ? "" : m.getDlvMgrNm())
824 824
                         .dlvMgrTelNo(m.getDlvMgrTelNo() == null ? "" : m.getDlvMgrTelNo())
825
+                        .whsDvsn(m.getWhsDvsn() == null ? "" : m.getWhsDvsn())
826
+                        .whsDvsnNm(m.getWhsDvsnNm() == null ? "" : m.getWhsDvsnNm())
825 827
                         .build())
826 828
                 .collect(Collectors.toList());
827 829
         return GridResponse.toDTO(gridPage, gridTotal, gridRecords, gridRows);

+ 2 - 0
src/main/java/com/oqpo/api/web/dto/response/inoutmng/DeliDtlSearchListResponse.java

@@ -40,5 +40,7 @@ public class DeliDtlSearchListResponse {
40 40
     @ApiModelProperty(value = "납품금액") private Long dlvAmt;
41 41
     @ApiModelProperty(value = "납품담당자명") private String dlvMgrNm;
42 42
     @ApiModelProperty(value = "납품담당자연락처") private String dlvMgrTelNo;
43
+    @ApiModelProperty(value = "창고구분") private String whsDvsn;
44
+    @ApiModelProperty(value = "창고구분명") private String whsDvsnNm;
43 45
 
44 46
 }

+ 14 - 6
src/main/resources/mybatis/sqlmaps/inoutmng/ShmtOdr.xml

@@ -363,14 +363,20 @@
363 363
             , info.spply_id, info.spply_nm, info.dlv_st_cd, fn_code_nm(upper('dlv_st_cd'), info.dlv_st_cd) as dlv_st_nm
364 364
             , info.whs_id, info.location, fn_whs_nm(info.brand_id, info.whs_id) as whs_nm
365 365
             , fn_whs_location_nm(info.brand_id, info.whs_id, info.location) as location_nm
366
-            , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt, date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
367
-            , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_req_dt, date_format(info.dlv_sch_dt, '%y.%m.%d') as dlv_sch_dt
366
+            , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt
367
+            , date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
368
+            , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_reg_dt
369
+            , date_format(info.dlv_sch_dt, '%y.%m.%d') as dlv_sch_dt
368 370
             , date_format(info.dlv_cmplt_dt, '%Y.%m.%d') as dlv_cmplt_dt
369 371
             , ptcl.item_id as 'deliDtlMgntInfo.item_id', ptcl.item_nm as 'deliDtlMgntInfo.item_nm'
370 372
             , ptcl.podr_qty as 'deliDtlMgntInfo.podr_qty', ptcl.dlv_qty as 'deliDtlMgntInfo.dlv_qty'
371 373
             , ptcl.unit as 'deliDtlMgntInfo.unit', ptcl.unit_amt as 'deliDtlMgntInfo.unit_amt'
372
-            , ptcl.pch_podr_unq_no as 'deliDtlMgntInfo.pch_podr_unq_no' , ptcl.pch_podr_dtl_no as 'deliDtlMgntInfo.pch_podr_dtl_no'
373
-            , info.dlv_mgr_nm , info.dlv_mgr_mbl_no
374
+            , ptcl.pch_podr_unq_no as 'deliDtlMgntInfo.pch_podr_unq_no' 
375
+            , ptcl.pch_podr_dtl_no as 'deliDtlMgntInfo.pch_podr_dtl_no'
376
+            , info.dlv_mgr_nm 
377
+            , IFNULL(info.dlv_mgr_mbl_no, info.DLV_MGR_TEL_NO) AS dlv_mgr_tel_no 
378
+            , info.whs_dvsn /* 창고구분 */
379
+            , fn_code_nm(upper('whs_dvsn'), info.whs_dvsn) as whs_dvsn_nm /* 창고구분 명 */
374 380
         from deli_info_mgnt info
375 381
              , deli_dtl_ptcl ptcl
376 382
         where 1 = 1
@@ -458,8 +464,10 @@
458 464
         , info.spply_id, info.spply_nm, info.dlv_st_cd, fn_code_nm(upper('dlv_st_cd'), info.dlv_st_cd) as dlv_st_nm
459 465
         , info.whs_id, info.location, fn_whs_nm(info.brand_id, info.whs_id) as whs_nm
460 466
         , fn_whs_location_nm(info.brand_id, info.whs_id, info.location) as location_nm
461
-        , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt, date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
462
-        , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_req_dt, date_format(info.dlv_sch_dt, '%Y.%m.%d') as dlv_sch_dt
467
+        , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt
468
+        , date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
469
+        , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_reg_dt
470
+        , date_format(info.dlv_sch_dt, '%Y.%m.%d') as dlv_sch_dt
463 471
         , date_format(info.dlv_cmplt_dt, '%Y.%m.%d') as dlv_cmplt_dt
464 472
         , ptcl.item_id as 'deliDtlMgntInfo.item_id', ptcl.item_nm as 'deliDtlMgntInfo.item_nm'
465 473
         , ptcl.podr_qty as 'deliDtlMgntInfo.podr_qty', ptcl.dlv_qty as 'deliDtlMgntInfo.dlv_qty'