Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qianhe-ydsj
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
qianhe-ydsj
Commits
c9148cfb
Commit
c9148cfb
authored
Sep 25, 2025
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025-09-22 wj 整体修改3
parent
099cabbf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
qianhe-ydsj/src/main/resources/mapper/SjZdscMapper.xml
+19
-2
No files found.
qianhe-ydsj/src/main/resources/mapper/SjZdscMapper.xml
View file @
c9148cfb
...
...
@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"lx != null and lx != ''"
>
and a.lx = #{lx}
</if>
<if
test=
"zdmc != null and zdmc != ''"
>
and a.zdmc
= #{zdmc}
</if>
<if
test=
"zdmc != null and zdmc != ''"
>
and a.zdmc
like concat('%', #{zdmc}, '%')
</if>
<if
test=
"bb != null and bb != ''"
>
and a.bb = #{bb}
</if>
<if
test=
"fjms != null and fjms != ''"
>
and a.fjms = #{fjms}
</if>
<if
test=
"zt != null and zt != ''"
>
and a.zt = #{zt}
</if>
...
...
@@ -139,19 +139,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * from (
<include
refid=
"selectSjZdscVo"
/>
where 1=1 and zt = '1' and gxqx = '仅自己' and a.create_by = #{nowUserName}
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId}, d.ancestors))
</if>
<if
test=
"lx != null and lx != ''"
>
and a.lx = #{lx}
</if>
<if
test=
"zdmc != null and zdmc != ''"
>
and a.zdmc like concat('%', #{zdmc}, '%')
</if>
<if
test=
"deptName != null and deptName != ''"
>
and d.dept_name like concat('%', #{deptName}, '%')
</if>
union
<include
refid=
"selectSjZdscVo"
/>
where 1=1 and zt = '1' and gxqx = '本单位' and a.dept_id = #{nowUserDeptId}
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId}, d.ancestors))
</if>
<if
test=
"lx != null and lx != ''"
>
and a.lx = #{lx}
</if>
<if
test=
"zdmc != null and zdmc != ''"
>
and a.zdmc like concat('%', #{zdmc}, '%')
</if>
<if
test=
"deptName != null and deptName != ''"
>
and d.dept_name like concat('%', #{deptName}, '%')
</if>
union
<include
refid=
"selectSjZdscVo"
/>
where 1=1 and zt = '1' and gxqx = '仅上级' and (a.dept_id = #{nowUserDeptId} or find_in_set(#{nowUserDeptId}, d.ancestors))
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId}, d.ancestors))
</if>
<if
test=
"lx != null and lx != ''"
>
and a.lx = #{lx}
</if>
<if
test=
"zdmc != null and zdmc != ''"
>
and a.zdmc like concat('%', #{zdmc}, '%')
</if>
<if
test=
"deptName != null and deptName != ''"
>
and d.dept_name like concat('%', #{deptName}, '%')
</if>
union
<include
refid=
"selectSjZdscVo"
/>
where 1=1 and zt = '1' and gxqx = '公开'
)
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId}, d.ancestors))
</if>
<if
test=
"lx != null and lx != ''"
>
and a.lx = #{lx}
</if>
<if
test=
"zdmc != null and zdmc != ''"
>
and a.zdmc like concat('%', #{zdmc}, '%')
</if>
<if
test=
"deptName != null and deptName != ''"
>
and d.dept_name like concat('%', #{deptName}, '%')
</if>
) t
</select>
<select
id=
"gxgkList"
parameterType=
"SjZdsc"
resultMap=
"SjZdscResult"
>
<include
refid=
"selectSjZdscVo"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment