提交修改
This commit is contained in:
parent
a444640a23
commit
5093665e4a
@ -328,7 +328,6 @@ public class ResultRecordController extends AbstractController {
|
|||||||
flowRecordService.updateFlowRecordById(flowRecord);
|
flowRecordService.updateFlowRecordById(flowRecord);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 可能会被删除
|
// 可能会被删除
|
||||||
FlowRecord lastFlowRecord = flowRecordService.selectLastFlowRecordByRecordId(req.getRecordResultId());
|
FlowRecord lastFlowRecord = flowRecordService.selectLastFlowRecordByRecordId(req.getRecordResultId());
|
||||||
lastFlowRecord.setGmtCreate(new Date());
|
lastFlowRecord.setGmtCreate(new Date());
|
||||||
|
|||||||
@ -261,26 +261,29 @@ public class ResultDetailServiceImpl extends ServiceImpl<ResultDetailMapper, Res
|
|||||||
SimpleDateFormat myFmt2 = new SimpleDateFormat("MM-dd HH:mm");
|
SimpleDateFormat myFmt2 = new SimpleDateFormat("MM-dd HH:mm");
|
||||||
FlowRecord lastFlowRecord = null;
|
FlowRecord lastFlowRecord = null;
|
||||||
if (CollectionUtils.isNotEmpty(flowRecordList)) {
|
if (CollectionUtils.isNotEmpty(flowRecordList)) {
|
||||||
int status = 0;
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
String lastStatusStr = "";
|
||||||
for (FlowRecord flowRecord : flowRecordList) {
|
for (FlowRecord flowRecord : flowRecordList) {
|
||||||
String name = roleNameMap.get(flowRecord.getDepartmentLevel());
|
String name = roleNameMap.get(flowRecord.getDepartmentLevel());
|
||||||
String time = myFmt2.format(flowRecord.getGmtCreate());
|
String time = myFmt2.format(flowRecord.getGmtCreate());
|
||||||
String statusStr = "通过";
|
String statusStr = "通过";
|
||||||
if (flowRecord.getStatus().equals(0)) {
|
if (flowRecord.getStatus().equals(0)) {
|
||||||
if (status == 1) {
|
|
||||||
statusStr = "驳回";
|
|
||||||
}
|
|
||||||
lastFlowRecord = flowRecord;
|
lastFlowRecord = flowRecord;
|
||||||
status = 0;
|
|
||||||
} else if (flowRecord.getStatus().equals(1)) {
|
} else if (flowRecord.getStatus().equals(1)) {
|
||||||
status = 1;
|
if (index + 1 <= flowRecordList.size() - 1) {
|
||||||
|
FlowRecord flowRecord1 = flowRecordList.get(index + 1);
|
||||||
|
if (flowRecord1.getStatus().equals(0)) {
|
||||||
|
statusStr = "驳回";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
statusStr = index == 0 ? "提交" : statusStr;
|
||||||
if (index == flowRecordList.size() - 1) {
|
if (index == flowRecordList.size() - 1) {
|
||||||
stepList.add(new Step(name, time, 1, "审批中" ));
|
stepList.add(new Step(name, time, 1, "驳回".equals(lastStatusStr) ? "确认" : "审批中"));
|
||||||
} else {
|
} else {
|
||||||
stepList.add(new Step(name, time, 1, index == 0 ? "提交" : statusStr));
|
stepList.add(new Step(name, time, 1, "驳回".equals(lastStatusStr) ? "确认" : statusStr));
|
||||||
}
|
}
|
||||||
|
lastStatusStr = statusStr;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user