feat:审核时间
This commit is contained in:
1 parent
811f1e79aa
commit
71ce1c0620
7 files changed
+22
-3
No files matched your search
+6
@@ -51,6 +51,12 @@ public class WalletForeignEntity extends Model<WalletForeignEntity> {
|
||||
@Schema(description = "流程状态")
|
||||
private String processStatus;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
@Schema(description = "审核时间")
|
||||
private LocalDateTime processTime;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
|
||||
+6
@@ -44,6 +44,12 @@ public class WalletFreezeEntity extends Model<WalletFreezeEntity> {
|
||||
@Schema(description = "流程状态")
|
||||
private String processStatus;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
@Schema(description = "审核时间")
|
||||
private LocalDateTime processTime;
|
||||
|
||||
/**
|
||||
* 钱包id
|
||||
*/
|
||||
|
||||
+6
@@ -44,6 +44,12 @@ public class WalletStrideEntity extends Model<WalletStrideEntity> {
|
||||
@Schema(description = "流程状态")
|
||||
private String processStatus;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
@Schema(description = "审核时间")
|
||||
private LocalDateTime processTime;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
|
||||
+1
-1
@@ -159,7 +159,7 @@ public class WalletForeignServiceImpl extends ServiceImpl<WalletForeignMapper, W
|
||||
try {
|
||||
Boolean isConsent = flowUtil.isConsent(dto);
|
||||
String processStatus = isConsent ? TaskCheckStatusEnum.RESULT.getCode() : TaskCheckStatusEnum.REJECT.getCode();
|
||||
baseMapper.updateById(WalletForeignEntity.builder().id(detail.getId()).processStatus(processStatus).build());
|
||||
baseMapper.updateById(WalletForeignEntity.builder().id(detail.getId()).processStatus(processStatus).processTime(LocalDateTime.now()).build());
|
||||
// 创建券
|
||||
if (isConsent) {
|
||||
walletCodeUseService.generate(detail.getId(), detail.getUserId(), WalletCodeBizEnum.FOREIGN, detail.getCount());
|
||||
|
||||
+1
-1
@@ -154,7 +154,7 @@ public class WalletFreezeServiceImpl extends ServiceImpl<WalletFreezeMapper, Wal
|
||||
try {
|
||||
Boolean isConsent = flowUtil.isConsent(dto);
|
||||
String processStatus = isConsent ? TaskCheckStatusEnum.RESULT.getCode() : TaskCheckStatusEnum.REJECT.getCode();
|
||||
baseMapper.updateById(WalletFreezeEntity.builder().id(detail.getId()).freeStatus(YesNoEnum.YES.getCode()).processStatus(processStatus).build());
|
||||
baseMapper.updateById(WalletFreezeEntity.builder().id(detail.getId()).freeStatus(YesNoEnum.YES.getCode()).processStatus(processStatus).processTime(LocalDateTime.now()).build());
|
||||
if (isConsent) {
|
||||
// 更改钱包状态
|
||||
WalletManageEntity walletUpdateObj = WalletManageEntity.builder().id(detail.getWalletId()).isFreeze(YesNoEnum.YES.getCode()).build();
|
||||
|
||||
+1
-1
@@ -169,7 +169,7 @@ public class WalletStrideServiceImpl extends ServiceImpl<WalletStrideMapper, Wal
|
||||
try {
|
||||
Boolean isConsent = flowUtil.isConsent(dto);
|
||||
String processStatus = isConsent ? TaskCheckStatusEnum.RESULT.getCode() : TaskCheckStatusEnum.REJECT.getCode();
|
||||
baseMapper.updateById(WalletStrideEntity.builder().id(detail.getId()).processStatus(processStatus).build());
|
||||
baseMapper.updateById(WalletStrideEntity.builder().id(detail.getId()).processStatus(processStatus).processTime(LocalDateTime.now()).build());
|
||||
// 创建券
|
||||
if (isConsent) {
|
||||
walletCodeUseService.generate(detail.getId(), detail.getUserId(), WalletCodeBizEnum.STRIDE, detail.getCount());
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
select a.id,
|
||||
a.process_id,
|
||||
a.process_status,
|
||||
a.process_time,
|
||||
a.wallet_id,
|
||||
a.user_id,
|
||||
a.dept_id,
|
||||
|
||||
Reference in new issue
Block a user