支持跳过

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);
/**
* 跳过缴纳意向金
* @param lineId
* @return
*/
Boolean skipPay(Long lineId);
Long submitPayInfo(LinePaySubmitRequest followLog, PartnerUserInfoVO partnerUser);

View File

@@ -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) {