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