Merge #74 into master from cc_20260324_decoration_update
feat:新增修改装修信息接口 * cc_20260324_decoration_update: (2 commits squashed) - feat:新增修改装修信息接口 - fix Signed-off-by: 王非凡 <accounts_67eba0c5fee9c49c80c8e2b4@mail.teambition.com> Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/74
This commit is contained in:
@@ -24,6 +24,11 @@ public interface SignFranchiseService {
|
||||
*/
|
||||
Boolean reSubmitSignFranchise(AddSignFranchiseRequest request, LoginUserInfo user);
|
||||
|
||||
/**
|
||||
* 装修信息修改
|
||||
*/
|
||||
Boolean decorationUpdate(SignFranchiseDecorationRequest request);
|
||||
|
||||
|
||||
AddSignFranchiseResponse getSignFranchise(Long shopId);
|
||||
|
||||
|
||||
@@ -379,6 +379,23 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean decorationUpdate(SignFranchiseDecorationRequest request) {
|
||||
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(request.getShopId());
|
||||
if (Objects.isNull(shopInfo)) {
|
||||
throw new ServiceException(ErrorCodeEnum.SHOP_NOT_EXIST);
|
||||
}
|
||||
ShopStageInfoDO shopStageInfo = shopStageInfoDAO.getShopSubStageInfo(request.getShopId(), ShopSubStageEnum.SHOP_STAGE_9);
|
||||
if (shopStageInfo.getShopSubStageStatus().equals(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_91.getShopSubStageStatus())) {
|
||||
throw new ServiceException(ErrorCodeEnum.SHOP_STAGE_NOT_OPERATE);
|
||||
}
|
||||
ShopInfoDO update = new ShopInfoDO();
|
||||
update.setId(request.getShopId());
|
||||
update.setDecorationRequirement(request.getDecorationRequirement());
|
||||
update.setSpecialInstruction(request.getSpecialInstruction());
|
||||
return shopInfoDAO.updateShopInfo(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 费用校验
|
||||
* @param request
|
||||
|
||||
Reference in New Issue
Block a user