fix 新建分店名称
This commit is contained in:
@@ -264,8 +264,11 @@ public class ShopServiceImpl implements ShopService {
|
||||
ShopInfoDO shopInfoDO = request.toDO(request, lineInfo);
|
||||
List<ShopInfoDO> shopList = shopInfoDAO.getShopList(lineInfo.getId());
|
||||
if (CollectionUtils.isNotEmpty(shopList)) {
|
||||
shopInfoDO.setShopName("店铺"+NumberConverter.convertArabicToChinese(lineInfo.getWantShopNum() + 1));
|
||||
lineInfo.setWantShopNum(lineInfo.getWantShopNum() + 1);
|
||||
lineInfoDAO.updateLineInfo(lineInfo);
|
||||
}else {
|
||||
shopInfoDO.setShopName("店铺"+NumberConverter.convertArabicToChinese(lineInfo.getWantShopNum()));
|
||||
}
|
||||
shopInfoDO.setCreateUserId(userId);
|
||||
Long shopId = shopInfoDAO.addShopInfo(shopInfoDO);
|
||||
|
||||
Reference in New Issue
Block a user