# Conflicts: # dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgAuditProcessController.javamaster
commit
bc031d2c59
15 changed files with 161 additions and 60 deletions
@ -0,0 +1,37 @@ |
|||||||
|
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; |
||||||
|
|
||||||
|
/** |
||||||
|
* @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; |
||||||
|
|
||||||
|
@Autowired |
||||||
|
private DgAuditProcessMapper auditProcessMapper; |
||||||
|
|
||||||
|
public AuditProcessUtil(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() { |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue