洪城义警-正式版后台
zhongrj
2023-06-27 b17f234c9879284c5f35f80e21ef6fa219235143
任务导出查询修改
3 files modified
10 ■■■■ changed files
src/main/java/org/springblade/modules/taskqd/controller/TaskqdController.java 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/taskqd/mapper/TaskqdMapper.xml 6 ●●●● patch | view | raw | blame | history
src/main/resources/application-dev.yml 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/taskqd/controller/TaskqdController.java
@@ -501,7 +501,7 @@
     * @param response
     */
    @GetMapping("export-task")
    public void exportTask(@ApiIgnore @RequestParam TaskqdVO task, HttpServletResponse response) {
    public void exportTask(TaskqdVO task, HttpServletResponse response) {
        List<TaskExcel> list = taskqdService.exportTask(task);
        ExcelUtil.export(response, "任务数据" + DateUtil.time(), "任务数据表", list, TaskExcel.class);
    }
src/main/java/org/springblade/modules/taskqd/mapper/TaskqdMapper.xml
@@ -232,13 +232,13 @@
        <if test="task.tasktype!=null and task.tasktype!=''">
            and st.tasktype = #{task.tasktype}
        </if>
        <if test="task.rtype!=null and task.rtype!=''">
        <if test="task.rtype!=null and task.rtype!='' and task.rtype!='undefined'">
            and st.rtype = #{task.rtype}
        </if>
        <if test="task.rname!=null and task.rname!=''">
        <if test="task.rname!=null and task.rname!='' and task.rname!='undefined'">
            and st.rname like concat('%',#{task.rname},'%')
        </if>
        <if test="task.jurisdiction!=null and task.jurisdiction!=''">
        <if test="task.jurisdiction!=null and task.jurisdiction!='' and task.jurisdiction!='undefined'">
            and st.jurisdiction = #{task.jurisdiction}
        </if>
    </select>
src/main/resources/application-dev.yml
@@ -29,7 +29,7 @@
#      username: root
#      password: ZHba@0112
    url: jdbc:mysql://106.225.193.35:3306/qfqkpublic?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true&allowMultiQueries=true
    url: jdbc:mysql://127.0.0.1:3306/qfqkpublic?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true&allowMultiQueries=true
    username: root
    password: HCyj@2022