|
@ -234,14 +234,28 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 复制楼上方法略做修改 |
|
|
|
|
|
* @param userIds |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/21 15:33 |
|
|
|
|
|
*/ |
|
|
|
|
|
public boolean getPendProjectListByUserIds(List<String> userIds) { |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(userIds)){ |
|
|
|
|
|
List<ProjectDTO> projectList = baseDao.selectPendListByUserIds(userIds); |
|
|
|
|
|
if (projectList.size() == 0){ |
|
|
|
|
|
return false; |
|
|
|
|
|
}else { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<CreatedListResultDTO> getCreatedList(ProjectListFromDTO fromDTO) { |
|
|
public List<CreatedListResultDTO> getCreatedList(ProjectListFromDTO fromDTO) { |
|
|
List<CreatedListResultDTO> list = new ArrayList<>(); |
|
|
List<CreatedListResultDTO> list = new ArrayList<>(); |
|
|
|
|
|
|
|
|
//查询条件
|
|
|
|
|
|
int pageIndex = (fromDTO.getPageNo() - NumConstant.ONE) * fromDTO.getPageSize(); |
|
|
|
|
|
fromDTO.setPageNo(pageIndex); |
|
|
|
|
|
|
|
|
|
|
|
List<ProjectDTO> projectList = baseDao.selectCreatedList(fromDTO); |
|
|
List<ProjectDTO> projectList = baseDao.selectCreatedList(fromDTO); |
|
|
//获取客户定制的可滞留天数
|
|
|
//获取客户定制的可滞留天数
|
|
|
Integer finalDays = getDays(fromDTO); |
|
|
Integer finalDays = getDays(fromDTO); |
|
@ -3140,12 +3154,20 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
* @date 2022/3/15 5:05 下午 |
|
|
* @date 2022/3/15 5:05 下午 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public Boolean eventAuditReset(String gridId) { |
|
|
public ProjectAuditResetResultDTO eventAuditReset(String gridId) { |
|
|
|
|
|
ProjectAuditResetResultDTO result = new ProjectAuditResetResultDTO(); |
|
|
Integer processingCount = baseDao.selectEventStatus(gridId); |
|
|
Integer processingCount = baseDao.selectEventStatus(gridId); |
|
|
if (processingCount.compareTo(NumConstant.ZERO) != NumConstant.ZERO){ |
|
|
if (processingCount.compareTo(NumConstant.ZERO) != NumConstant.ZERO){ |
|
|
return true; |
|
|
result.setResiEventStatus(true); |
|
|
} |
|
|
} |
|
|
return false; |
|
|
Result<List<String>> allStaffByGridId = govOrgOpenFeignClient.getAllStaffByGridId(gridId); |
|
|
|
|
|
if (!allStaffByGridId.success()){ |
|
|
|
|
|
throw new EpmetException("查询网格下的工作人员失败"); |
|
|
|
|
|
} |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(allStaffByGridId.getData())){ |
|
|
|
|
|
result.setProjectStatus(getPendProjectListByUserIds(allStaffByGridId.getData())); |
|
|
|
|
|
} |
|
|
|
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|