|
@@ -3924,7 +3924,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ResponseBodyVO selectAutomaticProject(SimulationManualProjectParam param) {
|
|
|
+ public ResponseBodyVO<PageInfo<SimulationManualProjectVo>> selectAutomaticProject(SimulationManualProjectParam param) {
|
|
|
|
|
|
//当前用户id
|
|
|
param.setCreateUserId(AuthUtil.getCurrentUserId());
|
|
@@ -3933,7 +3933,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
String createStartDate = param.getCreateStartDate();
|
|
|
Date startDate = getDate(createStartDate + " 00:00:00", 1);
|
|
|
if (startDate == null) {
|
|
|
- return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
|
+ return new ResponseBodyVO<>(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
|
}
|
|
|
param.setCreateTimeStart(startDate);
|
|
|
}
|
|
@@ -3941,20 +3941,20 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
String createEndDate = param.getCreateEndDate();
|
|
|
Date endDate = getDate(createEndDate + " 23:59:59", 1);
|
|
|
if (endDate == null) {
|
|
|
- return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
|
+ return new ResponseBodyVO<>(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
|
}
|
|
|
param.setCreateTimeEnd(endDate);
|
|
|
}
|
|
|
|
|
|
setPage(param.getCurrentPage() == null ? 1 : param.getCurrentPage(), param.getPageSize() == null ? 10 : param.getPageSize());
|
|
|
- List<SimulationManualProjectVo> vos = simulationAutomaticProjectMapper.selecAutomatictProjectList(param);
|
|
|
- PageInfo<SimulationManualProjectVo> pageInfo = new PageInfo(vos);
|
|
|
+ List<SimulationManualProjectVo> vos = simulationAutomaticProjectMapper.selectAutomaticProjectList(param);
|
|
|
+ PageInfo<SimulationManualProjectVo> pageInfo = new PageInfo<>(vos);
|
|
|
|
|
|
for (SimulationManualProjectVo p : pageInfo.getList()) {
|
|
|
convertPoToVo(p, true);
|
|
|
}
|
|
|
|
|
|
- return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS, pageInfo);
|
|
|
+ return new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS, pageInfo);
|
|
|
|
|
|
}
|
|
|
|