提交关于暂存问题的解决

This commit is contained in:
wulin 2020-12-08 14:26:31 +08:00
parent 4a1674ec8a
commit bf9391b30a
2 changed files with 16 additions and 4 deletions

View File

@ -759,11 +759,20 @@ public class ResultRecordController extends AbstractController {
boolean isSetKeyResult = false;
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByRecordIdStatus(dto.getId(), 2);
if(flowRecords.size() > 0){
if(flowRecords.get(0).getFlowProcess().intValue() < 2){//因为先提交流程在保存所以这里写了小于2
//指定目标中
log.info("制定目标中");
isSetKeyResult = true;
if(dto.getSave() != null && dto.getSave().intValue() ==1){
if(flowRecords.get(0).getFlowProcess().intValue() < 1){//因为先提交流程在保存所以这里写了小于2
//指定目标中
log.info("暂存制定目标中");
isSetKeyResult = true;
}
}else{
if(flowRecords.get(0).getFlowProcess().intValue() < 2){//因为先提交流程在保存所以这里写了小于2
//指定目标中
log.info("制定目标中");
isSetKeyResult = true;
}
}
}

View File

@ -42,6 +42,9 @@ public class ResultRecordDetailDto {
@ApiModelProperty(value = "任务id", name = "startId")
private Long startId;
@ApiModelProperty(value = "暂存", name = "save")
private Integer save;
//使用的哪个等级等级组idlz_result_grade的group_id