add:机构管理增加根据部门批量配置岗位功能

This commit is contained in:
zyd
2022-08-31 00:00:35 +08:00
parent 3db4903b0a
commit 206c1bccf3
8 changed files with 106 additions and 2 deletions
@@ -121,7 +121,7 @@ select A.* from
<select id="getStandTextStateByStandId" resultType="java.lang.String">
SELECT TEXT_STATUS FROM sar_standards_info WHERE ID = #{}
SELECT TEXT_STATUS FROM sar_standards_info WHERE ID = #{standId}
</select>
@@ -48,6 +48,31 @@
limit #{start},#{end}
</select>
<select id="getUserUnderInstitutionAll" resultMap="UserPosition">
select u.USID,u.ACCOUNT,u.PASSWORD,u.OPER_USER,u.UNAME,u.SEX,u.USER_SOURCE,u.PHONE,u.EMAIL,u.INSTITUTION_NAME,u.INSTITUTION_ID
,u.POSITION_NAME,u.STATE,u.POSITION_ID,u.WORK_NUM,u.EXT_INFO,u.CREATION_TIME,u.MODIFY_TIME,u.VALID_FLAG
,u.DISABLE_FLAG,u.UNLOCK_FLAG,u.USER_TYPE,u.SSO_ID,
p.id p_id,p.name p_name from ts_user u
left join ts_user_position up
on u.usid=up.user_id
left join ts_position p
on up.position_id=p.id
where 1=1
<if test=" null != ids and ids.size()> 0">
and INSTITUTION_ID in
<foreach item="id" collection="ids" open="(" separator="," close=")" index="index">
#{id}
</foreach>
</if>
<if test=" null != ids and ids.size()> 0">
order by field(INSTITUTION_ID,
<foreach item="id" collection="ids" open="" separator="," close="" index="index">
#{id}
</foreach>)
</if>
</select>
<select id="userUnderInstitution" parameterType="com.adc.da.slrs.sarUser.entity.TsUser" resultMap="UserPosition">
select u.USID,u.ACCOUNT,u.PASSWORD,u.OPER_USER,u.UNAME,u.SEX,u.USER_SOURCE,u.PHONE,u.EMAIL,u.INSTITUTION_NAME,u.INSTITUTION_ID
,u.POSITION_NAME,u.STATE,u.POSITION_ID,u.WORK_NUM,u.EXT_INFO,u.CREATION_TIME,u.MODIFY_TIME,u.VALID_FLAG