Przeglądaj źródła

机构结算管理提现新增提现人 审核人

Qchen 2 lat temu
rodzic
commit
768c9db1f3

+ 15 - 0
src/main/java/com/ydtech/modules/admin/model/SysDeptAccountWithdraw.java

@@ -43,6 +43,21 @@ public class SysDeptAccountWithdraw implements Serializable {
     @ApiModelProperty(value = "备注")
     private String remark;
 
+    @TableField(value = "withdraw_userid")
+    @ApiModelProperty(value = "申请提现人id")
+    private String withdrawUserid;
+    @TableField(value = "withdraw_name")
+    @ApiModelProperty(value = "申请提现人姓名")
+    private String withdrawName;
+
+    @TableField(value = "audit_userid")
+    @ApiModelProperty(value = "审核人id")
+    private String auditUserid;
+
+    @TableField(value = "audit_name")
+    @ApiModelProperty(value = "审核人姓名")
+    private String auditName;
+
     @TableField(value = "create_time")
     @ApiModelProperty("创建时间")
     @JsonFormat(pattern = "yyyy-MM-dd")

+ 2 - 0
src/main/java/com/ydtech/modules/admin/service/impl/SysDeptAccountServiceImpl.java

@@ -99,6 +99,8 @@ public class SysDeptAccountServiceImpl extends ServiceImpl<SysDeptAccountMapper,
         sysDeptAccountWithdraw.setAmount(sysDeptAccount.getAmount());
         sysDeptAccountWithdraw.setStatus(SysDeptAccountStatus.WAIT.getCode()); //待审核
         sysDeptAccountWithdraw.setRemark("");
+        sysDeptAccountWithdraw.setWithdrawName(BaseController.getUser().getName());
+        sysDeptAccountWithdraw.setWithdrawUserid(BaseController.getUser().getId());
         sysDeptAccountWithdraw.setCreateTime(LocalDateTime.now());
         sysDeptAccountWithdrawService.save(sysDeptAccountWithdraw);
 

+ 2 - 0
src/main/java/com/ydtech/modules/admin/service/impl/SysDeptAccountWithdrawServiceImpl.java

@@ -72,6 +72,8 @@ public class SysDeptAccountWithdrawServiceImpl extends ServiceImpl<SysDeptAccoun
             sysDeptAccount.setManagementFee(sysDeptAccount.getManagementFee().add(sysDeptAccountWithdraw.getAmount()));
             sysDeptAccountService.updateById(sysDeptAccount);
         }
+        sysDeptAccountWithdraw.setAuditUserid(BaseController.getUser().getName());
+        sysDeptAccountWithdraw.setAuditName(BaseController.getUser().getId());
         sysDeptAccountWithdrawService.updateById(sysDeptAccountWithdraw);
         return HttpResult.ok("审核完成",sysDeptAccountWithdraw);
     }