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