feat:部门管理员发票作废
This commit is contained in:
1 parent
da3be48ef0
commit
f34a6ce23b
3 files changed
+8
-3
No files matched your search
+2
-1
@@ -17,7 +17,8 @@ public enum WalletRechargeInvoiceStatusEnum {
|
||||
BINDED("2", "已绑定充值"),
|
||||
UNCHECKED("3", "未审核"),
|
||||
CHECKED("4", "审核成功"),
|
||||
CANCELLATION("5", "作废"),
|
||||
FINANCE_CANCELLATION("5", "财务管理员作废"),
|
||||
DEPT_CANCELLATION("6", "部门管理员作废"),
|
||||
;
|
||||
private final String code;
|
||||
|
||||
|
||||
+5
-2
@@ -193,9 +193,12 @@ public class WalletRechargeApplyServiceImpl extends ServiceImpl<WalletRechargeAp
|
||||
dto.setProcessInstanceIdList(List.of(detail.getProcessId()));
|
||||
flowEngineService.stopProcessInstance(dto).getData();
|
||||
}
|
||||
// 如果有发票要删除一下
|
||||
// 如果有发票要改一下状态
|
||||
if (ObjectUtil.isNotEmpty(detail.getInvoiceId())) {
|
||||
walletRechargeInvoiceService.removeById(detail.getInvoiceId());
|
||||
WalletRechargeInvoiceEntity updateObj = new WalletRechargeInvoiceEntity();
|
||||
updateObj.setId(detail.getInvoiceId());
|
||||
updateObj.setStatus(WalletRechargeInvoiceStatusEnum.DEPT_CANCELLATION.getCode());
|
||||
walletRechargeInvoiceService.updateById(updateObj);
|
||||
}
|
||||
// 删除申请记录
|
||||
baseMapper.deleteById(v);
|
||||
|
||||
+1
@@ -103,6 +103,7 @@ public class WalletRechargeInvoiceServiceImpl extends ServiceImpl<WalletRecharge
|
||||
.set(WalletRechargeInvoiceEntity::getProcessStatus, null)
|
||||
.set(WalletRechargeInvoiceEntity::getProcessTime, null)
|
||||
.set(WalletRechargeInvoiceEntity::getStampPicUrl, null)
|
||||
.set(WalletRechargeInvoiceEntity::getStatus, WalletRechargeInvoiceStatusEnum.FINANCE_CANCELLATION.getCode())
|
||||
.eq(WalletRechargeInvoiceEntity::getId, id)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user