feat: There is no way the, bug #56143 企标相关-- 选择人员后带入的起草责任单位支持三级查询
This commit is contained in:
+6
-2
@@ -81,6 +81,11 @@
|
||||
order by ts_institution.id
|
||||
</select>
|
||||
|
||||
<!-- 查询当前用户上几级部门-->
|
||||
<select id="selectNowInst" resultMap="TsInstitution">
|
||||
SELECT * from ts_institution where FIND_IN_SET(id,queryChildrenInstitution(#{institutionId},#{topNum}));
|
||||
</select>
|
||||
|
||||
<!-- 只查询这个部门下的子一级人员-->
|
||||
<select id="selectNextUser" resultMap="TsUser">
|
||||
select ts_user.EMAIL,ts_user.ACCOUNT,ts_user.CREATION_TIME,ts_user.DISABLE_FLAG,ts_user.EXT_INFO,ts_user.USID,
|
||||
@@ -104,13 +109,12 @@
|
||||
ts_user.USER_TYPE,ts_user.VALID_FLAG,ts_user.WORK_NUM,concat(ts_user.UNAME,concat(concat("(",ts_user.ACCOUNT),")")) as uname
|
||||
from ts_user
|
||||
left join ts_institution on ts_user.INSTITUTION_ID=ts_institution.id
|
||||
WHERE 1=1
|
||||
WHERE 1=1
|
||||
<if test="ids != null and ids.size()> 0 ">
|
||||
and ts_user.USID in
|
||||
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user