提交人瞩
This commit is contained in:
parent
68901379fb
commit
0d230e7294
@ -36,4 +36,6 @@ public class ResultRecordResp {
|
||||
|
||||
private Integer type ;
|
||||
|
||||
private String monthTimeStr;
|
||||
|
||||
}
|
||||
|
||||
@ -33,6 +33,7 @@ import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@ -184,6 +185,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
PageUtils pageUtils = PageUtils.startPage(params.getPage(), params.getLimit()).doSelect(
|
||||
page -> resultRecordMapper.selectByConditionByLeader(page, params)
|
||||
);
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM");
|
||||
List<ResultRecord> resultRecords = pageUtils.getList();
|
||||
if (CollectionUtils.isNotEmpty(resultRecords)) {
|
||||
List<ResultRecordResp> list = new ArrayList<>();
|
||||
@ -196,6 +198,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
} else if (resp.getStatus().equals(5) && staffRoleMap.get(user.getUserId()) == null) {
|
||||
resp.setStatus(1); // 如果不是自己审批,说明自己己经审批完成
|
||||
}
|
||||
resp.setMonthTimeStr(df.format(resultRecord.getMonthTime()));
|
||||
list.add(resp);
|
||||
}
|
||||
pageUtils.setList(list);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user