| | |
| | | .set(CrmCancellationDO::getReviewRemark, reviewRemark)); |
| | | } |
| | | |
| | | /** |
| | | * BPM 审批结束后回写销户申请状态 |
| | | * |
| | | * 仅当销户申请仍处于「审批中」时更新,避免与旧审批路径重复覆盖。 |
| | | * |
| | | * @param id 销户申请编号 |
| | | * @param status 目标状态(审核通过 / 审核不通过 / 已取消) |
| | | * @param reviewRemark 审核意见 |
| | | * @return 影响行数 |
| | | */ |
| | | default int updateAuditStatusByBpm(Long id, Integer status, String reviewRemark) { |
| | | return update(null, new LambdaUpdateWrapper<CrmCancellationDO>() |
| | | .eq(CrmCancellationDO::getId, id) |
| | | .eq(CrmCancellationDO::getAuditStatus, CrmAuditStatusEnum.PROCESS.getStatus()) |
| | | .set(CrmCancellationDO::getAuditStatus, status) |
| | | .set(CrmCancellationDO::getReviewTime, LocalDateTime.now()) |
| | | .set(CrmCancellationDO::getReviewRemark, reviewRemark)); |
| | | } |
| | | |
| | | default List<CrmCancellationDO> selectList(CrmCancellationPageReqVO reqVO) { |
| | | return selectList(buildQuery(reqVO)); |
| | | } |