|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|