Explorar el Código

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

release_toaliyun_real
gongbiao hace 7 años
padre
commit
86ed159d98
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 Ver fichero

@@ -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);
}



Cargando…
Cancelar
Guardar