Commit c5490330 by hzc

增加审核通过状态

parent b4ff3c79
...@@ -83,6 +83,11 @@ public class Constants { ...@@ -83,6 +83,11 @@ public class Constants {
public static final int APPLY_STATE_PASSED = 3; public static final int APPLY_STATE_PASSED = 3;
/** /**
* 申请状态-确认通过
*/
public static final int APPLY_STATE_OK_PASSED = 4;
/**
* 申请状态-已拒绝 * 申请状态-已拒绝
*/ */
public static final int APPLY_STATE_REJECTED = 4; public static final int APPLY_STATE_REJECTED = 4;
......
...@@ -14,8 +14,8 @@ public class TaskAuditResult { ...@@ -14,8 +14,8 @@ public class TaskAuditResult {
@ApiModelProperty("审批的任务id") @ApiModelProperty("审批的任务id")
private String taskId; private String taskId;
@ApiModelProperty("审批结果:true 通过 false 驳回") @ApiModelProperty("审批结果:1 审核通过 2 驳回 3 确认通过")
private boolean result = true; private int result;
@ApiModelProperty("审批结果意见描述") @ApiModelProperty("审批结果意见描述")
private String description; private String description;
......
...@@ -379,9 +379,14 @@ public class TaskServiceImpl implements TaskService { ...@@ -379,9 +379,14 @@ public class TaskServiceImpl implements TaskService {
task.setUpdateTime(now); task.setUpdateTime(now);
int status = Constants.APPLY_STATE_DRAFT; int status = Constants.APPLY_STATE_DRAFT;
String recordType = "审批拒绝"; String recordType = "审批拒绝";
if (auditResult.isResult()) { //审核通过
if(auditResult.getResult()==1){
status = Constants.APPLY_STATE_PASSED; status = Constants.APPLY_STATE_PASSED;
recordType = "审批通过"; recordType = "审批通过";
}else if (auditResult.getResult()==3) {
//确认通过(基础项插入数据库)
status = Constants.APPLY_STATE_OK_PASSED;
recordType = "确认通过";
List<IndicatorsData> datas = createCountIndValues(task); List<IndicatorsData> datas = createCountIndValues(task);
if (CollectionUtils.isNotEmpty(datas)) { if (CollectionUtils.isNotEmpty(datas)) {
this.baseIndDataService.batchInsertData(datas); this.baseIndDataService.batchInsertData(datas);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment