Bläddra i källkod

주소 지번과 법정,행정정보 추가

dwkim 2 år sedan
förälder
incheckning
03cf9b6890

+ 5 - 2
pom.xml

@@ -210,14 +210,17 @@
210 210
 			<artifactId>json</artifactId>
211 211
 			<version>20180813</version>
212 212
 		</dependency>
213
-
214 213
 		<dependency>
215 214
 			<groupId>org.springframework.cloud</groupId>
216 215
 			<artifactId>spring-cloud-starter-openfeign</artifactId>
217 216
 			<version>2.0.4.RELEASE</version>
218 217
 		</dependency>
218
+        <dependency>
219
+            <groupId>org.mockito</groupId>
220
+            <artifactId>mockito-core</artifactId>
221
+        </dependency>
219 222
 
220
-	</dependencies>
223
+    </dependencies>
221 224
 	<profiles>
222 225
 		<profile>
223 226
 			<id>local</id>

+ 6 - 1
src/main/java/com/oqpo/api/client/oqlink/dto/OqScmStoreChangeReqModel.java

@@ -56,7 +56,12 @@ public class OqScmStoreChangeReqModel {
56 56
 	private String lat;
57 57
 	@ApiModelProperty(value = "경도", required = true)
58 58
 	private String lng;
59
-	
59
+	@ApiModelProperty(value = "지번주소", required = true)
60
+	private String lotsAddress;
61
+	@ApiModelProperty(value = "행정동", required = true)
62
+	private String hjDong;
63
+	@ApiModelProperty(value = "법정동", required = true)
64
+	private String bjDong;
60 65
 	private String hstNo;
61 66
 	
62 67
 }

+ 7 - 0
src/main/java/com/oqpo/api/client/oqlink/dto/OqScmStoreInfoResModel.java

@@ -55,5 +55,12 @@ public class OqScmStoreInfoResModel extends OqScmApiResModel{
55 55
 	@ApiModelProperty(value = "사용여부", required = true)
56 56
 	private String useYn;
57 57
 
58
+	@ApiModelProperty(value = "지번주소", required = true)
59
+	private String lotsAddress;
60
+	@ApiModelProperty(value = "행정동", required = true)
61
+	private String hjDong;
62
+	@ApiModelProperty(value = "법정동", required = true)
63
+	private String bjDong;
64
+
58 65
 
59 66
 }

+ 4 - 0
src/main/java/com/oqpo/api/entity/stinfo/StoreBaseInfoEntity.java

@@ -58,6 +58,10 @@ public class StoreBaseInfoEntity implements Serializable {
58 58
     private String whsUseYn;
59 59
     private String owacNm;
60 60
 
61
+    private String lotsAddress;
62
+    private String hjDong;
63
+    private String bjDong;
64
+
61 65
     private String code;
62 66
     private String message;
63 67
 

+ 9 - 0
src/main/java/com/oqpo/api/service/stinfo/StoreBaseInfoService.java

@@ -163,6 +163,9 @@ public class StoreBaseInfoService extends CommonService {
163 163
             entity.setAcctNo(saveStoreInfolRequest.getAcctNo());
164 164
             entity.setOwacNm(saveStoreInfolRequest.getOwacNm());
165 165
             entity.setOwnerNm(saveStoreInfolRequest.getOwnerNm());
166
+            entity.setLotsAddress(saveStoreInfolRequest.getLotsAddress());
167
+            entity.setHjDong(saveStoreInfolRequest.getHjDong());
168
+            entity.setBjDong(saveStoreInfolRequest.getBjDong());
166 169
 
167 170
             if (StringUtil.isBlankEmpty(saveStoreInfolRequest.getOqBrandId())) {
168 171
                 entity.setOqBrandId(null);
@@ -475,6 +478,9 @@ public class StoreBaseInfoService extends CommonService {
475 478
         req.setUseYn("Y".equals(infoEntity.getDelYn()) ? "N" : "Y"); // 사용여부
476 479
         req.setLat(infoEntity.getLatX());
477 480
         req.setLng(infoEntity.getLongY());
481
+        req.setLotsAddress(infoEntity.getLotsAddress());
482
+        req.setHjDong(infoEntity.getHjDong());
483
+        req.setBjDong(infoEntity.getBjDong());
478 484
         return req;
479 485
     }
480 486
 
@@ -584,6 +590,9 @@ public class StoreBaseInfoService extends CommonService {
584 590
             storeChgInfo.setOqStoreId(boStoreChgInfoRequest.getStoreNo());
585 591
             storeChgInfo.setBrandId(boStoreChgInfoRequest.getBrandId());
586 592
             storeChgInfo.setStoreId(boStoreChgInfoRequest.getStoreId());
593
+            storeChgInfo.setLotsAddress(boStoreChgInfoRequest.getLotsAddress());
594
+            storeChgInfo.setHjDong(boStoreChgInfoRequest.getHjDong());
595
+            storeChgInfo.setBjDong(boStoreChgInfoRequest.getBjDong());
587 596
 
588 597
             storeBaseInfoMapper.updateBoStoreChgInfo(userId, storeChgInfo);
589 598
 

+ 9 - 0
src/main/java/com/oqpo/api/web/dto/request/ifmng/BoStoreChgInfoRequest.java

@@ -79,4 +79,13 @@ public class BoStoreChgInfoRequest {
79 79
 
80 80
     @ApiModelProperty(value = "사용여부 - Y")
81 81
     private String useYn;
82
+
83
+    @ApiModelProperty(value = "지번주소")
84
+    private String lotsAddress;
85
+    @ApiModelProperty(value = "행정동")
86
+    private String hjDong;
87
+    @ApiModelProperty(value = "법정동")
88
+    private String bjDong;
89
+
90
+
82 91
 }

+ 9 - 0
src/main/java/com/oqpo/api/web/dto/request/stinfo/store/SaveStoreInfolRequest.java

@@ -111,4 +111,13 @@ public class SaveStoreInfolRequest {
111 111
 
112 112
     @ApiModelProperty(value = "오더퀸 매장코드")
113 113
     private String oqStoreId;
114
+
115
+    @ApiModelProperty(value = "지번주소")
116
+    private String lotsAddress;
117
+
118
+    @ApiModelProperty(value = "행정동")
119
+    private String hjDong;
120
+
121
+    @ApiModelProperty(value = "법정동")
122
+    private String bjDong;
114 123
 }

+ 11 - 0
src/main/java/com/oqpo/api/web/dto/response/stinfo/store/StoreInfoResponse.java

@@ -143,6 +143,14 @@ public class StoreInfoResponse {
143 143
     @ApiModelProperty(value = "오더퀸 매장코드")
144 144
     private String oqStoreId;
145 145
 
146
+    @ApiModelProperty(value = "지번주소")
147
+    private String lotsAddress;
148
+    @ApiModelProperty(value = "행정동")
149
+    private String hjDong;
150
+    @ApiModelProperty(value = "법정동")
151
+    private String bjDong;
152
+
153
+
146 154
 
147 155
     @ApiModelProperty(value = "등록일")
148 156
     private String sysRegDttm;
@@ -206,6 +214,9 @@ public class StoreInfoResponse {
206 214
                 .brandOwacNm(entity.getBrandInfo() == null ? "" : entity.getBrandInfo().getOwacNm()  == null ? "" : entity.getBrandInfo().getOwacNm() )
207 215
                 .oqBrandId(entity.getOqBrandId() == null ? "" : entity.getOqBrandId())
208 216
                 .oqStoreId(entity.getOqStoreId() == null ? "" : entity.getOqStoreId())
217
+                .lotsAddress(entity.getLotsAddress() == null ? "" : entity.getLotsAddress())
218
+                .hjDong(entity.getHjDong() == null ? "" : entity.getHjDong())
219
+                .bjDong(entity.getBjDong() == null ? "" : entity.getBjDong())
209 220
                 .build();
210 221
     }
211 222
 }

+ 17 - 0
src/main/resources/mybatis/sqlmaps/stinfo/Store.xml

@@ -132,6 +132,9 @@
132 132
                 ,store.bnk_cd , store.acct_no, store.owac_nm
133 133
                 ,brand.bnk_cd as 'brandInfo.bnk_cd', fn_code_nm('BNK_CD',brand.bnk_cd) as 'brandInfo.bnk_nm',  brand.acct_no as 'brandInfo.acct_no', brand.owac_nm as 'brandInfo.owac_nm'
134 134
                 ,store.whs_use_yn
135
+                ,store.lots_address
136
+                ,store.hj_dong
137
+                ,store.bj_dong
135 138
         from store_base_info store
136 139
         join brand_base_info brand on store.brand_id = brand.brand_id
137 140
         left outer join loan_mgnt_base_info loan on store.loan_mgnt_unq_no = loan.loan_mgnt_unq_no and store.brand_id = loan.brand_id and store.store_id = loan.store_id and loan.use_yn = 'Y'
@@ -149,6 +152,7 @@
149 152
             ,emal_addr,store_st_cd,bsns_reg_no,corp_reg_no,ctgr_bsns
150 153
             ,bsns_cndt, bnk_cd, acct_no, owac_nm, owner_nm,del_yn,area_cd,lat_x, whs_use_yn
151 154
             ,long_y,oq_brand_id,oq_store_id,sys_reg_dttm,sys_reg_id,sys_chg_dttm,sys_chg_id
155
+            ,lots_address, hj_dong, bj_dong
152 156
         )
153 157
         values
154 158
         (
@@ -159,6 +163,7 @@
159 163
             #{entity.bsnsCndt},#{entity.bnkCd}, #{entity.acctNo}, #{entity.owacNm}, #{entity.ownerNm},'N',#{entity.areaCd},#{entity.latX},#{entity.whsUseYn},
160 164
             #{entity.longY}, case when  #{entity.oqBrandId} is null or #{entity.oqBrandId} = '' then null else #{entity.oqBrandId}   end
161 165
             ,case when  #{entity.oqStoreId} is null or #{entity.oqStoreId} = '' then null else #{entity.oqStoreId}   end ,now(),#{userId},now(),#{userId}
166
+            ,#{entity.lotsAddress}, #{entity.hjDong}, #{entity.bjDong}
162 167
         )
163 168
     </insert>
164 169
 
@@ -194,6 +199,15 @@
194 199
             ,oq_store_id = case when  #{entity.oqStoreId} is null or #{entity.oqStoreId} = '' then null else #{entity.oqStoreId}   end
195 200
             ,sys_chg_dttm	= now()
196 201
             ,sys_chg_id	= #{userId}
202
+            <if test="entity.lotsAddress != null and entity.lotsAddress != ''">
203
+            , lots_address = #{entity.lotsAddress}
204
+            </if>
205
+            <if test="entity.hjDong != null and entity.hjDong != ''">
206
+            ,hj_dong = #{entity.hjDong}
207
+            </if>
208
+            <if test="entity.bjDong != null and entity.bjDong != ''">
209
+            ,bj_dong = #{entity.bjDong}
210
+            </if>
197 211
         where brand_id = #{entity.brandId}
198 212
         and   store_id = #{entity.storeId}
199 213
     </update>
@@ -258,6 +272,9 @@
258 272
             ,del_yn         = #{entity.delYn}
259 273
             ,oq_brand_id    = #{entity.oqBrandId}
260 274
             ,oq_store_id    = #{entity.oqStoreId}
275
+            ,lots_address   = #{entity.lotsAddress}
276
+            ,hj_dong = #{entity.hjDong}
277
+            ,bj_dong = #{entity.bjDong}
261 278
         where brand_id = #{entity.brandId}
262 279
         and   store_id = #{entity.storeId}
263 280
     </update>