支持跳过

This commit is contained in:
苏竹红
2024-07-12 14:50:24 +08:00
parent be9478ab10
commit 53f63f22ce
3 changed files with 28 additions and 0 deletions

View File

@@ -13,6 +13,13 @@ public interface LinePayService {
LinePayVO getLinePayInfo(Long lineId,Integer businessType,Long shopId); LinePayVO getLinePayInfo(Long lineId,Integer businessType,Long shopId);
/**
* 跳过缴纳意向金
* @param lineId
* @return
*/
Boolean skipPay(Long lineId);
Long submitPayInfo(LinePaySubmitRequest followLog, PartnerUserInfoVO partnerUser); Long submitPayInfo(LinePaySubmitRequest followLog, PartnerUserInfoVO partnerUser);

View File

@@ -75,6 +75,18 @@ public class LinePayServiceImpl implements LinePayService {
return result; return result;
} }
@Override
public Boolean skipPay(Long lineId) {
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(lineId);
if (lineInfo == null) {
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
}
lineInfo.setWorkflowSubStage(WorkflowSubStageEnum.SIGN_INTENT_AGREEMENT.getCode());
lineInfo.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_70.getCode());
lineInfoDAO.insertOrUpdate(lineInfo);
return Boolean.TRUE;
}
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Long submitPayInfo(LinePaySubmitRequest request, PartnerUserInfoVO partnerUser) { public Long submitPayInfo(LinePaySubmitRequest request, PartnerUserInfoVO partnerUser) {

View File

@@ -39,6 +39,15 @@ public class LinePayController {
return ResponseResult.success(linePayService.getLinePayInfo(lineId, PayBusinessTypeEnum.INTENT_MONEY.getCode(),null)); return ResponseResult.success(linePayService.getLinePayInfo(lineId, PayBusinessTypeEnum.INTENT_MONEY.getCode(),null));
} }
@ApiOperation("跳过意向金")
@GetMapping("/skipPay")
@ApiImplicitParams({
@ApiImplicitParam(name = "lineId", value = "线索id", required = true)
})
public ResponseResult<Boolean> skipPay(@RequestParam("lineId")Long lineId) {
return ResponseResult.success(linePayService.skipPay(lineId));
}
@ApiOperation("缴纳意向金/加盟费") @ApiOperation("缴纳意向金/加盟费")
@PostMapping("/submitPayInfo") @PostMapping("/submitPayInfo")
public ResponseResult<Long> submitPayInfo(@RequestBody LinePaySubmitRequest request){ public ResponseResult<Long> submitPayInfo(@RequestBody LinePaySubmitRequest request){