feat:更新门店数据

This commit is contained in:
苏竹红
2025-08-18 09:34:55 +08:00
parent 10f077400f
commit 8d61d5e015

View File

@@ -434,13 +434,15 @@ public class ShopServiceImpl implements ShopService {
@Override
public Integer updateBranchShopDetail(BranchShopDetailRequest request, String userId) {
//检验门店编码是否重复
if(this.checkShopCodeRepeat(request.getShopCode(), request.getShopId())){
if(StringUtils.isNotEmpty(request.getShopCode())&&this.checkShopCodeRepeat(request.getShopCode(), request.getShopId())){
throw new ServiceException(ErrorCodeEnum.SHOP_CODE_EXIST);
}
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
shopInfo.setUpdateUserId(userId);
shopInfo.setUpdateTime(new Date());
shopInfo.setShopCode(request.getShopCode().trim());
if (StringUtils.isNotEmpty(request.getShopCode())){
shopInfo.setShopCode(request.getShopCode().trim());
}
shopInfo.setShopName(request.getShopName());
shopInfo.setWantShopAreaId(request.getWantShopAreaId());
shopInfo.setRegionId(request.getRegionId());