门店装修属性增加

This commit is contained in:
shuo.wang
2025-07-24 16:06:50 +08:00
parent 0f17ecc0c5
commit 34aa7dbc20

View File

@@ -176,6 +176,10 @@ public class OrderSysInfoServiceImpl implements OrderSysInfoService {
@Override
@Transactional(rollbackFor = Exception.class)
public Integer audit(AuditRequest request, LoginUserInfo user) {
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
if (shopInfo.getShopDecorationAttributes() == null){
throw new ServiceException(ErrorCodeEnum.SHOP_DECORATION_ATTRIBUTES_IS_NULL);
}
String curUserId = user.getUserId();
request.setOperateUserId(user.getUserId());
request.setOperateUserName(user.getName());
@@ -196,7 +200,6 @@ public class OrderSysInfoServiceImpl implements OrderSysInfoService {
//查询毛泽军下级区域 只有毛泽军的下级需要总裁处理 其他不需要总裁处理:
List<String> regionIds = userAuthMappingService.getAuthRegionIdAndSubRegionIdByUserId(specialUserId);
//是否有总裁处理flag
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
Boolean flag = Boolean.FALSE;
//如果是毛泽军的下级 则需要总裁处理
if (shopInfo != null && shopInfo.getRegionId() != null) {
@@ -272,9 +275,6 @@ public class OrderSysInfoServiceImpl implements OrderSysInfoService {
}
public void updateDecorationStage(Long shopId){
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(shopId);
if (shopInfo.getShopDecorationAttributes() == null){
throw new ServiceException(ErrorCodeEnum.SHOP_DECORATION_ATTRIBUTES_IS_NULL);
}
if (shopInfo.getShopDecorationAttributes().equals(ShopDecorationAttributesEnum.OLD_NEW_OPEN.getCode())) {
//老店新开时装修与开业直接完成
shopStageInfoDAO.batchUpdateByShopIdsAndSubStageStatus(Arrays.asList(shopId), Arrays.asList(