|
@@ -12,6 +12,7 @@ import api.common.pojo.param.system.DictParam;
|
|
import api.common.pojo.po.project.*;
|
|
import api.common.pojo.po.project.*;
|
|
import api.common.pojo.vo.project.*;
|
|
import api.common.pojo.vo.project.*;
|
|
import api.common.util.JsonUtil;
|
|
import api.common.util.JsonUtil;
|
|
|
|
+import api.common.util.TimeUtil;
|
|
import com.css.simulation.resource.common.utils.AuthUtil;
|
|
import com.css.simulation.resource.common.utils.AuthUtil;
|
|
import com.css.simulation.resource.common.utils.PageUtil;
|
|
import com.css.simulation.resource.common.utils.PageUtil;
|
|
import com.css.simulation.resource.project.constants.ProjectConstants;
|
|
import com.css.simulation.resource.project.constants.ProjectConstants;
|
|
@@ -98,7 +99,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
|
|
|
if(!isEmpty(param.getCreateStartDate())){
|
|
if(!isEmpty(param.getCreateStartDate())){
|
|
String createStartDate = param.getCreateStartDate();
|
|
String createStartDate = param.getCreateStartDate();
|
|
- Date startDate = getDate(createStartDate + " 00:00:00",1);
|
|
|
|
|
|
+ Date startDate = getDate(createStartDate + " 00:00:00",1);
|
|
if(startDate == null){
|
|
if(startDate == null){
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
}
|
|
}
|
|
@@ -106,7 +107,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
}
|
|
}
|
|
if(!isEmpty(param.getCreateEndDate())){
|
|
if(!isEmpty(param.getCreateEndDate())){
|
|
String createEndDate = param.getCreateEndDate();
|
|
String createEndDate = param.getCreateEndDate();
|
|
- Date endDate = getDate(createEndDate + " 11:59:59",1);
|
|
|
|
|
|
+ Date endDate = getDate(createEndDate + " 11:59:59",1);
|
|
if(endDate == null){
|
|
if(endDate == null){
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
}
|
|
}
|
|
@@ -115,7 +116,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
|
|
|
if(!isEmpty(param.getFinishDateStart())){
|
|
if(!isEmpty(param.getFinishDateStart())){
|
|
String finishDateStart = param.getFinishDateStart();
|
|
String finishDateStart = param.getFinishDateStart();
|
|
- Date startDate = getDate(finishDateStart + " 00:00:00",1);
|
|
|
|
|
|
+ Date startDate = getDate(finishDateStart + " 00:00:00",1);
|
|
if(startDate == null){
|
|
if(startDate == null){
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
}
|
|
}
|
|
@@ -124,7 +125,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
}
|
|
}
|
|
if(!isEmpty(param.getFinishDateEnd())){
|
|
if(!isEmpty(param.getFinishDateEnd())){
|
|
String finishDateEnd = param.getFinishDateEnd();
|
|
String finishDateEnd = param.getFinishDateEnd();
|
|
- Date enddate = getDate(finishDateEnd + " 11:59:59",1);
|
|
|
|
|
|
+ Date enddate = getDate(finishDateEnd + " 11:59:59",1);
|
|
if(enddate == null){
|
|
if(enddate == null){
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
|
|
}
|
|
}
|
|
@@ -732,12 +733,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
}
|
|
}
|
|
|
|
|
|
private Integer getRq(Date date, int index){
|
|
private Integer getRq(Date date, int index){
|
|
- SimpleDateFormat sdf = new SimpleDateFormat(dateFmtArr[index]);
|
|
|
|
- if(date == null){
|
|
|
|
- date = new Date();
|
|
|
|
- }
|
|
|
|
- return Integer.valueOf(sdf.format(date));
|
|
|
|
-
|
|
|
|
|
|
+ return TimeUtil.getRq(date,index);
|
|
}
|
|
}
|
|
|
|
|
|
private String getRqStr(Date date, int index){
|
|
private String getRqStr(Date date, int index){
|