Browse Source

projectCreateTime_1

master
yinzuomei 4 years ago
parent
commit
05802eb111
  1. 14
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenProjectDataServiceImpl.java

14
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenProjectDataServiceImpl.java

@ -61,12 +61,6 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD
@Resource @Resource
private ScreenProjectImgDataDao screenProjectImgDataDao; private ScreenProjectImgDataDao screenProjectImgDataDao;
@Resource
private ScreenCustomerAgencyDao agencyDao;
@Resource
private ScreenCustomerDeptDao deptDao;
@Resource
private ScreenCustomerGridDao gridDao;
@Override @Override
public PageData<ScreenProjectDataDTO> page(Map<String, Object> params) { public PageData<ScreenProjectDataDTO> page(Map<String, Object> params) {
@ -141,7 +135,7 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD
//如果结案 结案时间立项时间; //如果结案 结案时间立项时间;
if ("closed_case".equals(projectStatusCode)) { if ("closed_case".equals(projectStatusCode)) {
try { try {
Date createTime = sdf.parse(item.getProjectCreateTime()); Date createTime = item.getProjectCreateTime();
Date closeCaseTime = sdf.parse(item.getCloseCaseTime()); Date closeCaseTime = sdf.parse(item.getCloseCaseTime());
if (closeCaseTime.getTime() - createTime.getTime() <= 1000 * 60 * 60 * 24 * 4) { if (closeCaseTime.getTime() - createTime.getTime() <= 1000 * 60 * 60 * 24 * 4) {
@ -159,8 +153,7 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD
} }
} else if ("pending".equals(projectStatusCode)) { } else if ("pending".equals(projectStatusCode)) {
//如果处理中 当前时间-立项时间; //如果处理中 当前时间-立项时间;
try { Date createTime = item.getProjectCreateTime();
Date createTime = sdf.parse(item.getProjectCreateTime());
if (today.getTime() - createTime.getTime() <= 1000 * 60 * 60 * 24 * 4) { if (today.getTime() - createTime.getTime() <= 1000 * 60 * 60 * 24 * 4) {
//如果当前时间-立项时间小于等于4天 未超期 level3 //如果当前时间-立项时间小于等于4天 未超期 level3
@ -172,9 +165,6 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD
//大于5天 已超期 level1 //大于5天 已超期 level1
item.setProjectLevel(1); item.setProjectLevel(1);
} }
} catch (ParseException e) {
e.printStackTrace();
}
} }
} }
//先删除该projectId对应的旧数据 //先删除该projectId对应的旧数据

Loading…
Cancel
Save