|
@@ -239,7 +239,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
//分页获取项目列表
|
|
|
@Override
|
|
|
public HttpRespMsg getProjectPage(Integer pageIndex, Integer pageSize, String keyword, Integer searchField,
|
|
|
- Integer status, Integer category, Integer projectId,Integer projectMainId,Integer deptId, String sortProp, Integer sortOrder,String inchagerId,String participation, HttpServletRequest request) {
|
|
|
+ Integer status, Integer category, Integer projectId,Integer projectMainId,Integer deptId, String sortProp, Integer sortOrder,String inchagerId,String participation,String startDate,String endDate, HttpServletRequest request) {
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
try {
|
|
|
//通过公司id获取该公司所有的项目列表
|
|
@@ -313,6 +313,9 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
if (projectId != null) {
|
|
|
queryWrapper.eq("id", projectId);
|
|
|
}
|
|
|
+ if (startDate != null && endDate!=null) {
|
|
|
+ queryWrapper.le("plan_start_date", endDate).ge("plan_end_date", startDate);
|
|
|
+ }
|
|
|
List<Integer> branchDepartment=null;
|
|
|
if(deptId!=null){
|
|
|
branchDepartment= getBranchDepartment(deptId, allDepartmentList);
|
|
@@ -4754,7 +4757,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
//无全部项目权限,只能导出自己相关的(创建或参与)
|
|
|
userId = user.getId();
|
|
|
}
|
|
|
- HttpRespMsg projectPage = getProjectPage(null, null, keyword, searchField, status, category, projectId, projectMainId,deptId, null, null,inchagerId,participation, request);
|
|
|
+ HttpRespMsg projectPage = getProjectPage(null, null, keyword, searchField, status, category, projectId, projectMainId,deptId, null, null,inchagerId,participation,null,null, request);
|
|
|
List<ProjectKeyNodesSetting> projectKeyNodesSettingList = projectKeyNodesSettingMapper.selectList(new QueryWrapper<ProjectKeyNodesSetting>().eq("company_id", user.getCompanyId()));
|
|
|
Map<String,Object> resultMap= (Map<String, Object>) projectPage.data;
|
|
|
List<ProjectVO> projectVOList= (List<ProjectVO>) resultMap.get("records");
|