diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/domain/dto/CxxmUserZJ.java b/cxxm/src/main/java/com/ruoyi/cxxm/domain/dto/CxxmUserZJ.java index 67860b73..5eda46cf 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/domain/dto/CxxmUserZJ.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/domain/dto/CxxmUserZJ.java @@ -32,7 +32,7 @@ public class CxxmUserZJ extends BaseEntity { /** * 部门名称 */ - @Excel(name = "归属市县", type = Excel.Type.IMPORT, combo = {"楚雄彝族自治州","楚雄市", "禄丰市", "大姚县", "姚安县", "武定县", "双柏县", "牟定县", "南华县", "永仁县", "元谋县"}) + @Excel(name = "归属市县", type = Excel.Type.IMPORT, combo = {"楚雄彝族自治州", "楚雄市", "禄丰市", "大姚县", "姚安县", "武定县", "双柏县", "牟定县", "南华县", "永仁县", "元谋县", "高新区"}) private String deptName; /** diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/mapper/CxxmUserMapper.java b/cxxm/src/main/java/com/ruoyi/cxxm/mapper/CxxmUserMapper.java index 95375cb0..38a03a62 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/mapper/CxxmUserMapper.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/mapper/CxxmUserMapper.java @@ -10,7 +10,7 @@ import java.util.List; public interface CxxmUserMapper extends BaseMapper { - @Select("select distinct group_name as groupName,count(user_id) as userCount from sys_user where dept_id=#{deptId} and del_flag=0 group by group_name") + @Select("select distinct group_name as groupName,count(user_id) as userCount from sys_user where dept_id=#{deptId} and del_flag=0 and group_name != '' group by group_name") List getGroupNameByDeptId(Long deptId); } diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/CxxmUserServiceImpl.java b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/CxxmUserServiceImpl.java index 59cd470b..18e7e8b6 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/CxxmUserServiceImpl.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/CxxmUserServiceImpl.java @@ -76,7 +76,6 @@ public class CxxmUserServiceImpl implements ICxxmUserService { * @return 结果 */ @Override - @Transactional public String importCxxmUser(List userList, Boolean isUpdateSupport, String operName) { if (StringUtils.isNull(userList) || userList.size() == 0) { throw new ServiceException("导入用户数据不能为空!"); @@ -96,7 +95,7 @@ public class CxxmUserServiceImpl implements ICxxmUserService { user.setDeptName(SecurityUtils.getLoginUser().getUser().getDept().getDeptName()); } if (user.getGroupName() == null || Objects.equals(user.getGroupName(), "")) { - user.setGroupName("未指定"); + user.setGroupName(""); } // 验证是否存在这个用户 SysUser u = userMapper.selectUserByUserName(user.getUserName()); diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZftkTaskServiceImpl.java b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZftkTaskServiceImpl.java index ce74fd33..3abde649 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZftkTaskServiceImpl.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZftkTaskServiceImpl.java @@ -189,18 +189,7 @@ public class ZftkTaskServiceImpl extends ServiceImpl i task.setDgzt(dkh); // 构建查询条件 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - // 根据年份进行模糊查询 - queryWrapper.like(Objects.nonNull(task.getNian()), ZftkTask::getNian, task.getNian()); - // 根据任务所在县进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXian()), ZftkTask::getXian, task.getXian()); - // 根据任务项目名称进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXmmc()), ZftkTask::getXmmc, task.getXmmc()); - // 根据任务地块号进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getDkh()), ZftkTask::getDkh, task.getDkh()); - // 根据功能分区进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getGnfq()), ZftkTask::getGnfq, task.getGnfq()); - // 根据任务动工状态进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getDgzt()), ZftkTask::getDgzt, task.getDgzt()); + // 根据任务类型进行精确查询 queryWrapper.eq(Objects.nonNull(task.getRwlx()), ZftkTask::getRwlx, task.getRwlx()); // 根据州级下发情况进行精确查询 @@ -218,6 +207,19 @@ public class ZftkTaskServiceImpl extends ServiceImpl i // 根据部门ID查询该部门及其所有父部门的任务 queryWrapper.in(Objects.nonNull(task.getDeptId()), ZftkTask::getDeptId, deptMapper.getAllAncestorsByDeptId(task.getDeptId())); + // 根据年份进行模糊查询 + queryWrapper.like(Objects.nonNull(task.getNian()), ZftkTask::getNian, task.getNian()); + // 根据任务所在县进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXian()), ZftkTask::getXian, task.getXian()); + // 根据任务项目名称进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXmmc()), ZftkTask::getXmmc, task.getXmmc()); + // 根据任务地块号进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getDkh()), ZftkTask::getDkh, task.getDkh()); + // 根据功能分区进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getGnfq()), ZftkTask::getGnfq, task.getGnfq()); + // 根据任务动工状态进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getDgzt()), ZftkTask::getDgzt, task.getDgzt()); + // 根据处理时间进行区间查询 List drsjQuery = task.getDrsjQuery(); if (drsjQuery != null && drsjQuery.size() == 2) { diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZtTaskServiceImpl.java b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZtTaskServiceImpl.java index be977cf5..21180ca6 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZtTaskServiceImpl.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZtTaskServiceImpl.java @@ -189,18 +189,7 @@ public class ZtTaskServiceImpl extends ServiceImpl impleme task.setCzwt(tbbh); // 构建查询条件 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - // 根据年份进行模糊查询 - queryWrapper.like(Objects.nonNull(task.getNian()), ZtTask::getNian, task.getNian()); - // 根据任务所在县进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXian()), ZtTask::getXian, task.getXian()); - // 根据任务所在乡镇进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXzmc()), ZtTask::getXzmc, task.getXzmc()); - queryWrapper.or().like(Objects.nonNull(task.getCsmc()), ZtTask::getCsmc, task.getCsmc()); - queryWrapper.or().like(Objects.nonNull(task.getTblx()), ZtTask::getTblx, task.getTblx()); - queryWrapper.or().like(Objects.nonNull(task.getTbbh()), ZtTask::getTbbh, task.getTbbh()); - queryWrapper.or().like(Objects.nonNull(task.getCzwt()), ZtTask::getCzwt, task.getCzwt()); - // 根据任务项目名称进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXmmc()), ZtTask::getXmmc, task.getXmmc()); + // 根据任务类型进行精确查询 queryWrapper.eq(Objects.nonNull(task.getRwlx()), ZtTask::getRwlx, task.getRwlx()); // 根据州级下发情况进行精确查询 @@ -218,6 +207,19 @@ public class ZtTaskServiceImpl extends ServiceImpl impleme // 根据部门ID查询该部门及其所有父部门的任务 queryWrapper.in(Objects.nonNull(task.getDeptId()), ZtTask::getDeptId, deptMapper.getAllAncestorsByDeptId(task.getDeptId())); + // 根据年份进行模糊查询 + queryWrapper.like(Objects.nonNull(task.getNian()), ZtTask::getNian, task.getNian()); + // 根据任务所在县进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXian()), ZtTask::getXian, task.getXian()); + // 根据任务所在乡镇进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXzmc()), ZtTask::getXzmc, task.getXzmc()); + queryWrapper.or().like(Objects.nonNull(task.getCsmc()), ZtTask::getCsmc, task.getCsmc()); + queryWrapper.or().like(Objects.nonNull(task.getTblx()), ZtTask::getTblx, task.getTblx()); + queryWrapper.or().like(Objects.nonNull(task.getTbbh()), ZtTask::getTbbh, task.getTbbh()); + queryWrapper.or().like(Objects.nonNull(task.getCzwt()), ZtTask::getCzwt, task.getCzwt()); + // 根据任务项目名称进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXmmc()), ZtTask::getXmmc, task.getXmmc()); + // 根据处理时间进行区间查询 List drsjQuery = task.getDrsjQuery(); if (drsjQuery != null && drsjQuery.size() == 2) { diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZttbTaskServiceImpl.java b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZttbTaskServiceImpl.java index c87bd22e..dccf0a00 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZttbTaskServiceImpl.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/service/impl/ZttbTaskServiceImpl.java @@ -187,18 +187,7 @@ public class ZttbTaskServiceImpl extends ServiceImpl i task.setCzwt(tbbh); // 构建查询条件 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - // 根据年份进行模糊查询 - queryWrapper.like(Objects.nonNull(task.getNian()), ZttbTask::getNian, task.getNian()); - // 根据任务所在县进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXian()), ZttbTask::getXian, task.getXian()); - // 根据任务所在乡镇进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXzmc()), ZttbTask::getXzmc, task.getXzmc()); - queryWrapper.or().like(Objects.nonNull(task.getCsmc()), ZttbTask::getCsmc, task.getCsmc()); - queryWrapper.or().like(Objects.nonNull(task.getTbly()), ZttbTask::getTbly, task.getTbly()); - queryWrapper.or().like(Objects.nonNull(task.getTbbh()), ZttbTask::getTbbh, task.getTbbh()); - queryWrapper.or().like(Objects.nonNull(task.getCzwt()), ZttbTask::getCzwt, task.getCzwt()); - // 根据任务项目名称进行模糊查询 - queryWrapper.or().like(Objects.nonNull(task.getXmmc()), ZttbTask::getXmmc, task.getXmmc()); + // 根据任务类型进行精确查询 queryWrapper.eq(Objects.nonNull(task.getRwlx()), ZttbTask::getRwlx, task.getRwlx()); // 根据州级下发情况进行精确查询 @@ -216,6 +205,19 @@ public class ZttbTaskServiceImpl extends ServiceImpl i // 根据部门ID查询该部门及其所有父部门的任务 queryWrapper.in(Objects.nonNull(task.getDeptId()), ZttbTask::getDeptId, deptMapper.getAllAncestorsByDeptId(task.getDeptId())); + // 根据年份进行模糊查询 + queryWrapper.like(Objects.nonNull(task.getNian()), ZttbTask::getNian, task.getNian()); + // 根据任务所在县进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXian()), ZttbTask::getXian, task.getXian()); + // 根据任务所在乡镇进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXzmc()), ZttbTask::getXzmc, task.getXzmc()); + queryWrapper.or().like(Objects.nonNull(task.getCsmc()), ZttbTask::getCsmc, task.getCsmc()); + queryWrapper.or().like(Objects.nonNull(task.getTbly()), ZttbTask::getTbly, task.getTbly()); + queryWrapper.or().like(Objects.nonNull(task.getTbbh()), ZttbTask::getTbbh, task.getTbbh()); + queryWrapper.or().like(Objects.nonNull(task.getCzwt()), ZttbTask::getCzwt, task.getCzwt()); + // 根据任务项目名称进行模糊查询 + queryWrapper.or().like(Objects.nonNull(task.getXmmc()), ZttbTask::getXmmc, task.getXmmc()); + // 根据处理时间进行区间查询 List drsjQuery = task.getDrsjQuery(); if (drsjQuery != null && drsjQuery.size() == 2) { diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index bfcaee44..6333c1e4 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -6,7 +6,7 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://ruoyi-mysql:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://ruoyi-mysql:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=False&serverTimezone=GMT%2B8 username: root password: 7ZH2jxM1 # 从库数据源 diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 04c392a1..2ba08c72 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -5,14 +5,14 @@ -
+ diff --git a/ruoyi-ui/src/views/cxxm/zftkTask/import/index.vue b/ruoyi-ui/src/views/cxxm/zftkTask/import/index.vue index 886830d7..64c6fef1 100644 --- a/ruoyi-ui/src/views/cxxm/zftkTask/import/index.vue +++ b/ruoyi-ui/src/views/cxxm/zftkTask/import/index.vue @@ -223,9 +223,9 @@
仅允许导入json格式文件。 - 下载模板 - + + +
@@ -240,6 +240,7 @@