瀏覽代碼

공급사 관리 팩스정보 추가

dwkim 2 年之前
父節點
當前提交
b6fab9dff0

+ 1 - 0
src/main/java/com/oqpo/api/entity/stinfo/SpplyEntity.java

@@ -54,6 +54,7 @@ public class SpplyEntity implements Serializable {
54 54
     private String sysRegId;
55 55
     private String sysChgDttm;
56 56
     private String sysChgId;
57
+    private String faxNo;
57 58
 
58 59
     private List<FileEntity> fileBookCopyEntity ;
59 60
 

+ 1 - 0
src/main/java/com/oqpo/api/service/stinfo/SpplyService.java

@@ -153,6 +153,7 @@ public class SpplyService extends CommonService {
153 153
             entity.setMgrEmal(saveSpplyRequest.getMgrEmal());
154 154
             entity.setMgrTelNo(saveSpplyRequest.getMgrTelNo().replaceAll("-",""));
155 155
             entity.setMgrMblNo(saveSpplyRequest.getMgrMblNo().replaceAll("-",""));
156
+            entity.setFaxNo(saveSpplyRequest.getFaxNo().replaceAll("-",""));
156 157
             entity.setZipNo(saveSpplyRequest.getZipNo());
157 158
             entity.setAddr1(saveSpplyRequest.getAddr1());
158 159
             entity.setAddr2(saveSpplyRequest.getAddr2());

+ 3 - 0
src/main/java/com/oqpo/api/web/dto/request/stinfo/spply/SaveSpplyRequest.java

@@ -67,6 +67,9 @@ public class SaveSpplyRequest {
67 67
     @ApiModelProperty(value = "담당자핸드폰번호")
68 68
     private String mgrMblNo;
69 69
 
70
+    @ApiModelProperty(value = "팩스번호")
71
+    private String faxNo;
72
+
70 73
     @ApiModelProperty(value = "우편번호")
71 74
     private String zipNo;
72 75
 

+ 4 - 0
src/main/java/com/oqpo/api/web/dto/response/stinfo/spply/SpplyInfoResponse.java

@@ -80,6 +80,9 @@ public class SpplyInfoResponse {
80 80
     @ApiModelProperty(value = "담당자핸드폰번호")
81 81
     private String mgrMblNo;
82 82
 
83
+    @ApiModelProperty(value = "FAX번호")
84
+    private String faxNo;
85
+
83 86
     @ApiModelProperty(value = "삭제여부")
84 87
     private String delYn;
85 88
 
@@ -169,6 +172,7 @@ public class SpplyInfoResponse {
169 172
                 .mgrEmal(entity.getMgrEmal() == null ? "" : entity.getMgrEmal())
170 173
                 .mgrTelNo(entity.getMgrTelNo() == null ? "" : entity.getMgrTelNo())
171 174
                 .mgrMblNo(entity.getMgrMblNo() == null ? "" :entity.getMgrMblNo() )
175
+                .faxNo(entity.getFaxNo() == null ? "" : entity.getFaxNo())
172 176
                 .delYn(entity.getDelYn() == null ? "" : entity.getDelYn())
173 177
                 .lstLoginDttm(entity.getLstLoginDttm() == null ? "" : entity.getLstLoginDttm())
174 178
                 .zipNo(entity.getZipNo() == null ? "" : entity.getZipNo())

+ 4 - 3
src/main/resources/mybatis/sqlmaps/stinfo/Supply.xml

@@ -105,7 +105,7 @@
105 105
             lst_login_dttm,  zip_no, addr1, addr2, brand_id,
106 106
             bnk_cd, acct_no, owac_nm, bbook_copy_file_no, bsns_reg_file_no,
107 107
             sys_reg_dttm, sys_reg_id, sys_chg_dttm, sys_chg_id,
108
-            lat_x, long_y
108
+            lat_x, long_y, fax_no
109 109
         )
110 110
         values
111 111
         (
@@ -116,7 +116,7 @@
116 116
             null,  #{entity.zipNo}, #{entity.addr1}, #{entity.addr2}, #{entity.brandId},
117 117
             #{entity.bnkCd}, #{entity.acctNo}, #{entity.owacNm},  #{entity.bbookCopyFileNo}, #{entity.bsnsRegFileNo},
118 118
             now(), #{userId}, now(), #{userId},
119
-            #{entity.latX}, #{entity.longY}
119
+            #{entity.latX}, #{entity.longY}, #{entity.faxNo}
120 120
         )
121 121
     </insert>
122 122
 
@@ -138,6 +138,7 @@
138 138
             ,mgr_emal		    = #{entity.mgrEmal}
139 139
             ,mgr_tel_no		    = #{entity.mgrTelNo}
140 140
             ,mgr_mbl_no		    = #{entity.mgrMblNo}
141
+            ,fax_no             = #{entity.faxNo}
141 142
             ,del_yn			    = #{entity.delYn}
142 143
             ,area_cd            = #{entity.areaCd}
143 144
             ,zip_no			    = #{entity.zipNo}
@@ -203,7 +204,7 @@
203 204
                     lst_login_dttm,  zip_no, addr1, addr2, brand_id, fn_brand_nm(brand_id) as brand_nm,
204 205
                     bnk_cd, fn_code_nm('BNK_CD',bnk_cd) as bnk_nm, acct_no, owac_nm, bbook_copy_file_no, bsns_reg_file_no,
205 206
                     date_format(sys_reg_dttm,'%Y.%m.%d %H:%i:%s') as sys_reg_dttm, sys_reg_id, date_format(sys_chg_dttm,'%Y.%m.%d %H:%i:%s') as sys_chg_dttm, sys_chg_id,
206
-                    lat_x, long_y
207
+                    lat_x, long_y, fn_get_telno(fax_no) as fax_no
207 208
         from   spply_base_info
208 209
         where  brand_id = #{brandId}
209 210
         and    spply_id = #{spplyId}