业务流程工具类

master
chen 4 years ago
parent b395ec5117
commit 5f88f615ea
  1. 2
      dq-financial-guarantee/pom.xml
  2. 1
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeLetterAssignUserServiceImpl.java
  3. 32
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/AuditProcessUtil.java

@ -76,8 +76,6 @@
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.0.7.1</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>

@ -11,6 +11,7 @@ import com.daqing.financial.guarantee.model.request.GuaranteeLetterUpdateStatusR
import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse;
import com.daqing.financial.guarantee.service.IDgGuaranteeLetterAssignUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daqing.financial.guarantee.util.AuditProcessUtil;
import com.daqing.framework.domain.guarantee.DgGuaranteeLetterAssignUser;
import com.daqing.framework.domain.guarantee.DgLoanCommitteeConsider;
import com.daqing.framework.domain.guarantee.DgPaymentConfirmationConsider;

@ -2,36 +2,36 @@ package com.daqing.financial.guarantee.util;
import com.daqing.financial.guarantee.mapper.DgAuditProcessMapper;
import com.daqing.framework.domain.guarantee.DgAuditProcess;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* @Author chen
* @DATE 2020/11/26 15:45
* @Version 1.0
*/
@Data
@Configuration
public class AuditProcessUtil {
private Integer businessId;
private String approver;
private String deptName;
private String auditOpinion;
@Component
public class AuditProcessUtil{
@Autowired
private DgAuditProcessMapper auditProcessMapper;
public DgAuditProcessMapper auditProcessMapper;
public AuditProcessUtil(Integer businessId, String approver, String deptName, String auditOpinion) {
private static AuditProcessUtil auditProcessUtil;
@PostConstruct
public void init() {
auditProcessUtil = this;
auditProcessUtil.auditProcessMapper = this.auditProcessMapper;
}
public static void save(Integer businessId, String approver, String deptName, String auditOpinion) {
DgAuditProcess auditProcess = new DgAuditProcess();
auditProcess.setApprover(approver);
auditProcess.setAuditOpinion(auditOpinion);
auditProcess.setBusinessId(businessId);
auditProcess.setDeptName(deptName);
auditProcessMapper.insert(auditProcess);
}
public AuditProcessUtil() {
auditProcessUtil.auditProcessMapper.insert(auditProcess);
}
}

Loading…
Cancel
Save