支持跳过
This commit is contained in:
@@ -13,6 +13,13 @@ public interface LinePayService {
|
||||
|
||||
LinePayVO getLinePayInfo(Long lineId,Integer businessType,Long shopId);
|
||||
|
||||
/**
|
||||
* 跳过缴纳意向金
|
||||
* @param lineId
|
||||
* @return
|
||||
*/
|
||||
Boolean skipPay(Long lineId);
|
||||
|
||||
Long submitPayInfo(LinePaySubmitRequest followLog, PartnerUserInfoVO partnerUser);
|
||||
|
||||
|
||||
|
||||
@@ -75,6 +75,18 @@ public class LinePayServiceImpl implements LinePayService {
|
||||
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
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Long submitPayInfo(LinePaySubmitRequest request, PartnerUserInfoVO partnerUser) {
|
||||
|
||||
@@ -39,6 +39,15 @@ public class LinePayController {
|
||||
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("缴纳意向金/加盟费")
|
||||
@PostMapping("/submitPayInfo")
|
||||
public ResponseResult<Long> submitPayInfo(@RequestBody LinePaySubmitRequest request){
|
||||
|
||||
Reference in New Issue
Block a user