Merge remote-tracking branch 'origin/cc_partner_init' into cc_partner_init

This commit is contained in:
zhangchenbiao
2024-05-21 10:42:02 +08:00
4 changed files with 29 additions and 0 deletions

View File

@@ -17,4 +17,11 @@ public interface SignFranchiseService {
AddSignFranchiseResponse getSignFranchise(Long shopId);
/**
* 加盟合同退回后重新缴费
* @param shopId
* @return
*/
Boolean rePay(Long shopId);
}

View File

@@ -7,6 +7,7 @@ import com.cool.store.context.LoginUserInfo;
import com.cool.store.dao.ShopStageInfoDAO;
import com.cool.store.entity.*;
import com.cool.store.enums.*;
import com.cool.store.enums.point.ShopSubStageEnum;
import com.cool.store.enums.point.ShopSubStageStatusEnum;
import com.cool.store.exception.ServiceException;
import com.cool.store.mapper.*;
@@ -414,4 +415,13 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
public static String getDateTimeFormat(String pattern, Date date) {
return new SimpleDateFormat(pattern).format(date);
}
@Override
@Transactional(rollbackFor = Exception.class)
public Boolean rePay(Long shopId) {
shopStageInfoDAO.updateShopStageInfo(shopId,ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_71);
shopStageInfoDAO.updateShopStageToNotStarted(shopId, ShopSubStageEnum.SHOP_STAGE_7);
return true;
}
}

View File

@@ -33,4 +33,10 @@ public class PCSignFranchiseController {
return ResponseResult.success(signFranchiseService.getSignFranchise(shopId));
}
@ApiOperation("重新缴费(加盟合同阶段退回后)")
@GetMapping("/rePay")
public ResponseResult<Boolean> rePay(@RequestParam("shopId") Long shopId) {
return ResponseResult.success(signFranchiseService.rePay(shopId));
}
}

View File

@@ -33,4 +33,10 @@ public class MiniSignFranchiseController {
return ResponseResult.success(signFranchiseService.getSignFranchise(shopId));
}
@ApiOperation("重新缴费(加盟合同阶段退回后)")
@GetMapping("/rePay")
public ResponseResult<Boolean> rePay(@RequestParam("shopId") Long shopId) {
return ResponseResult.success(signFranchiseService.rePay(shopId));
}
}