账单修改接口加阶段校验
This commit is contained in:
@@ -96,6 +96,10 @@ public class FranchiseFeeServiceImpl implements FranchiseFeeService {
|
||||
|
||||
@Override
|
||||
public Boolean update(FranchiseFeeRequest request) {
|
||||
ShopStageInfoDO shopStageInfo = shopStageInfoDAO.getShopSubStageInfo(request.getShopId(), ShopSubStageEnum.SHOP_STAGE_7);
|
||||
if (!shopStageInfo.getShopSubStageStatus().equals(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_73.getShopSubStageStatus())){
|
||||
throw new ServiceException(ErrorCodeEnum.NOT_ALLOW_OPERATE);
|
||||
}
|
||||
FranchiseFeeDO franchiseFeeDO = request.toFranchiseFeeDO();
|
||||
FranchiseFeeDO franchiseFeeDO1 = franchiseFeeMapper.selectByShopId(request.getShopId());
|
||||
if (Objects.nonNull(franchiseFeeDO1)) {
|
||||
|
||||
Reference in New Issue
Block a user