铺位逻辑调整
This commit is contained in:
@@ -416,6 +416,12 @@ public class PointServiceImpl implements PointService {
|
||||
if(Objects.isNull(pointInfo)){
|
||||
throw new ServiceException(ErrorCodeEnum.POINT_NOT_EXIST);
|
||||
}
|
||||
if(SelectStatusEnum.SELECT_STATUS_1.getCode().equals(pointInfo.getSelectStatus()) || PointStatusEnum.POINT_STATUS_6.getCode().equals(pointInfo.getPointStatus())){
|
||||
throw new ServiceException(ErrorCodeEnum.NOT_ALLOW_OPERATE);
|
||||
}
|
||||
if(PointStatusEnum.POINT_STATUS_7.getCode().equals(pointInfo.getPointStatus())){
|
||||
throw new ServiceException(ErrorCodeEnum.NOT_ALLOW_OPERATE);
|
||||
}
|
||||
pointInfo.setDevelopmentManager(request.getDevelopmentManager());
|
||||
return pointInfoDAO.updatePointInfo(pointInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user