09f75e1b4ee21241940ad26b91462ea15c5e4f00..8b657c1f84f1989d33eb766c3cf51d824a5326f9
3 天以前 陈昶聿
【本地】getSviLibTemplateByDeptCode 增加orgid
8b657c 对比 | 目录
3 天以前 陈昶聿
【本地】getSviLibTemplateByDeptCode 增加orgid
23feaf 对比 | 目录
已修改2个文件
2 ■■■■■ 文件已修改
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTemplateController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibTemplateController.java
@@ -50,6 +50,7 @@
    }
    @ApiOperation("查询问卷列表通过部门病区代码")
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/getSviLibTemplateByDeptCode")
    public Map<String, Object> getSviLibTemplateByDeptCode(@RequestBody TemplateDeptVO templateDeptVO) {
        templateDeptVO.setPageNum(PageUtils.getOffset(templateDeptVO.getPageNum(), templateDeptVO.getPageSize()));
smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml
@@ -179,6 +179,7 @@
        AND a.svyid = b.tempid
        where a.del_flag=0
          and b.del_flag=0
        <if test="orgid != null and orgid != ''">and a.orgid = #{orgid}</if>
        <if test="deptCode != null ">and b.dept_code = #{deptCode}</if>
        <if test="deptType != null ">and b.dept_type = #{deptType}</if>
        <if test="type != null">and b.type=#{type}</if>