feat:发票添加字段

This commit is contained in:
dzc committed 2025-07-04 15:16:43 +08:00
1 parent 2b3129d82d
commit e8b242f43a
3 files changed
+16 -1

No files matched your search

@@ -4,11 +4,14 @@ import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bsd.pjcloud.admin.api.entity.SysUser;
import com.bsd.pjcloud.common.core.util.R;
import com.bsd.pjcloud.common.data.datascope.DataScope;
import com.bsd.pjcloud.common.idempotent.annotation.Idempotent;
import com.bsd.pjcloud.common.log.annotation.SysLog;
import com.bsd.pjcloud.common.security.annotation.Inner;
import com.bsd.pjcloud.common.security.service.PjcloudUser;
import com.bsd.pjcloud.common.security.util.SecurityUtils;
import com.bsd.pjcloud.flow.task.dto.ProcessNodeRecordAssignUserParamDto;
import com.bsd.pjcloud.wallet.api.dto.recharge.WalletRechargeBindInvoiceDto;
import com.bsd.pjcloud.wallet.api.dto.recharge.WalletRechargeInvoiceApplyDto;
@@ -340,8 +340,10 @@ public class WalletRechargeInvoiceServiceImpl extends ServiceImpl<WalletRecharge
flowDto.setApplyDeptName(dept.getName());
flowDto.setApplyDeptId(dept.getDeptId());
flowDto.setApplyCreateTime(LocalDateTimeUtil.format(detail.getCreateTime(), DatePattern.NORM_DATETIME_PATTERN));
flowDto.setPrice((double) (detail.getTotalPrice() / 100));
flowDto.setDeptOrUser(detail.getDeptOrUser());
flowDto.setRemark(detail.getRemark());
String processId = flowUtil.startFlow("TASK_RECHARGE_APPLY_FLOW", user.getSysUser(), detail.getId(), flowDto);
String processId = flowUtil.startFlow("TASK_RECHARGE_APPLY_INVOICE_FLOW", user.getSysUser(), detail.getId(), flowDto);
// 更新
WalletRechargeInvoiceEntity updateObj = new WalletRechargeInvoiceEntity();
updateObj.setId(detail.getId());
@@ -6,6 +6,16 @@ import lombok.Data;
@Data
public class WalletRechargeInvoiceFlowDto extends FlowBaseDto {
/**
* 交款单位或个人
*/
private String deptOrUser;
/**
* 金额
*/
private Double price;
/**
* 备注
*/