Browse Source

[商铺商户][修改]:商户保存时状态为可用1

release_toaliyun_real
gongbiao 7 years ago
parent
commit
86ed159d98
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java

+ 2
- 1
mallinkService/src/main/java/com/simple/service/impl/WxMerchantServiceImpl.java View File

@@ -68,6 +68,7 @@ public class WxMerchantServiceImpl implements WxMerchantService {
long merchantid = idWorker.nextId();
wxMerchant.setId(merchantid);
Date date = new Date();
wxMerchant.setStatus(1);
wxMerchant.setUpdateDate(date);
wxMerchant.setCreateDate(date);
wxMerchantMapper.insertSelective(wxMerchant);
@@ -127,7 +128,7 @@ public class WxMerchantServiceImpl implements WxMerchantService {
//更新商铺状态
WxShop wxShop = new WxShop();
wxShop.setId(merchantShop.getShopId());
wxShop.setStatus(0);//出租
wxShop.setStatus(0);//出租
WxShopMapper.updateByPrimaryKeySelective(wxShop);
}



Loading…
Cancel
Save