|
|
@@ -207,7 +207,32 @@ public class DistributeController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (DistributeMoneyApply.Status.success.name().equals(distributeApplyMoneyReq.getVerifyStatus())) {
|
|
|
+ if (StrUtil.isBlank(distributeApplyMoneyReq.getImg())) {
|
|
|
+ throw BusinessRuntimeException.getInstance("审核成功时,打款图片不存在");
|
|
|
+ }
|
|
|
+ distributeMoneyApply.setImg(distributeApplyMoneyReq.getImg());
|
|
|
+ }
|
|
|
distributeMoneyApplyMapper.updateById(distributeMoneyApply);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult("审核操作成功");
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 审核成功,编辑打款截图
|
|
|
+ */
|
|
|
+ @PutMapping("/verify/applyMoney/img")
|
|
|
+ public Result<String> putApplyMoneyImg(@RequestBody @Validated DistributeApplyMoneyReq distributeApplyMoneyReq) {
|
|
|
+ DistributeMoneyApply entity = distributeMoneyApplyMapper.selectById(distributeApplyMoneyReq.getId());
|
|
|
+ if (entity == null || entity.getVerifyStatus() != DistributeMoneyApply.Status.success) {
|
|
|
+ throw BusinessRuntimeException.getInstance("审核记录错误");
|
|
|
+ }
|
|
|
+ if (StrUtil.isBlank(distributeApplyMoneyReq.getImg())) {
|
|
|
+ throw BusinessRuntimeException.getInstance("打款截图为空");
|
|
|
+ }
|
|
|
+ DistributeMoneyApply apply = new DistributeMoneyApply();
|
|
|
+ apply.setImg(distributeApplyMoneyReq.getImg());
|
|
|
+ apply.setId(distributeApplyMoneyReq.getId());
|
|
|
+ distributeMoneyApplyMapper.updateById(apply);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult("编辑成功");
|
|
|
+ }
|
|
|
}
|