Commit 9e75c4680ef582f05f92588c2ac5fb3a35923517
1 parent
e83c45da
经营分类ids update
Showing
4 changed files
with
11 additions
and
23 deletions
myapp-web/src/main/java/com/b2c/myapp/domain/extend/BuyerInfoShop.java
... | ... | @@ -24,12 +24,7 @@ public class BuyerInfoShop extends BaseQuery implements Serializable { |
24 | 24 | /** |
25 | 25 | * 经营类目id |
26 | 26 | */ |
27 | - private Long businessCategoryId; | |
28 | - | |
29 | - /** | |
30 | - * 经营类目名称 | |
31 | - */ | |
32 | - private String businessCategoryName; | |
27 | + private String businessCategoryIds; | |
33 | 28 | |
34 | 29 | /** |
35 | 30 | * 所属城市 |
... | ... | @@ -194,20 +189,12 @@ public class BuyerInfoShop extends BaseQuery implements Serializable { |
194 | 189 | this.shopName = shopName; |
195 | 190 | } |
196 | 191 | |
197 | - public Long getBusinessCategoryId() { | |
198 | - return businessCategoryId; | |
199 | - } | |
200 | - | |
201 | - public void setBusinessCategoryId(Long businessCategoryId) { | |
202 | - this.businessCategoryId = businessCategoryId; | |
203 | - } | |
204 | - | |
205 | - public String getBusinessCategoryName() { | |
206 | - return businessCategoryName; | |
192 | + public String getBusinessCategoryIds() { | |
193 | + return businessCategoryIds; | |
207 | 194 | } |
208 | 195 | |
209 | - public void setBusinessCategoryName(String businessCategoryName) { | |
210 | - this.businessCategoryName = businessCategoryName; | |
196 | + public void setBusinessCategoryIds(String businessCategoryIds) { | |
197 | + this.businessCategoryIds = businessCategoryIds; | |
211 | 198 | } |
212 | 199 | |
213 | 200 | public Long getAddressId() { |
... | ... | @@ -448,8 +435,7 @@ public class BuyerInfoShop extends BaseQuery implements Serializable { |
448 | 435 | "shopId=" + shopId + |
449 | 436 | ", shopLogo='" + shopLogo + '\'' + |
450 | 437 | ", shopName='" + shopName + '\'' + |
451 | - ", businessCategoryId=" + businessCategoryId + | |
452 | - ", businessCategoryName='" + businessCategoryName + '\'' + | |
438 | + ", businessCategoryIds=" + businessCategoryIds + | |
453 | 439 | ", addressId=" + addressId + |
454 | 440 | ", addressText=" + addressText + |
455 | 441 | ", addressDetail='" + addressDetail + '\'' + |
... | ... |
myapp-web/src/main/resources/mybatis-config.xml
... | ... | @@ -6,8 +6,10 @@ |
6 | 6 | <settings> |
7 | 7 | <setting name="lazyLoadingEnabled" value="false" /> |
8 | 8 | <setting name="mapUnderscoreToCamelCase" value="true" /> |
9 | - <!-- 打印查询语句 --> | |
9 | + <!-- 打印sql查询语句 --> | |
10 | +<!-- | |
10 | 11 | <setting name="logImpl" value="STDOUT_LOGGING" /> |
12 | +--> | |
11 | 13 | </settings> |
12 | 14 | <typeHandlers> |
13 | 15 | <typeHandler handler="com.b2c.myapp.dao.typeHandler.TradeTypeHandler" javaType="com.b2c.myapp.common.enums.TradeType" /> |
... | ... |
myapp-web/src/main/resources/mybatis/BuyerInfoMapper.xml
... | ... | @@ -236,8 +236,8 @@ |
236 | 236 | <select id="listBuyerInfoShop" parameterType="com.b2c.myapp.domain.extend.BuyerInfoShop" resultType="com.b2c.myapp.domain.extend.BuyerInfoShop"> |
237 | 237 | <![CDATA[ |
238 | 238 | SELECT bi.id as buyerId, bi.mobile_phone as mobilePhone,bi.account_name as accountName,bi.face as face,bi.sex as sex,bi.birthday as birthday,bi.current_shop_id as currentShopId,bi.yn as buyerYn,bi.created as buyerCreated, |
239 | - s.id as shopId,s.shop_logo as shopLogo,s.shop_name as shopName,s.business_category_id as businessCategoryId, | |
240 | - s.business_category_name as businessCategoryName,s.address_id as addressId,s.address_text as addressText,s.address_id as addressDetail,s.service_tel as serviceTel, | |
239 | + s.id as shopId,s.shop_logo as shopLogo,s.shop_name as shopName,s.business_category_ids as businessCategoryIds, | |
240 | + s.address_id as addressId,s.address_text as addressText,s.address_id as addressDetail,s.service_tel as serviceTel, | |
241 | 241 | s.promo_code as promoCode,s.product_display_way as productDisplayWay,s.postage as postage,s.free_shipping_price as freeShippingPrice, |
242 | 242 | s.shop_notices as shopNotices,s.market_id as marketId,s.stored_total_price as storedTotalPrice,s.residue_total_price as residueTotalPrice, |
243 | 243 | s.freeze_total_price as freezeTotalPrice,s.created as shopCreated,s.yn as shopYn,s.created as shopCreated |
... | ... |
myapp-web/src/main/webapp/WEB-INF/views/shop/listShopFound.vm renamed to myapp-web/src/main/webapp/WEB-INF/views/shop/listShopFund.vm