Merge remote-tracking branch 'origin/develop_master' into develop_3
This commit is contained in:
+82
@@ -368,4 +368,86 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
<select id="queryProjectGroup"
|
||||
resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
select distinct sar_stand_project_library.project_group,sar_stand_project_library.management_host_name,sar_stand_project_library.category_name,sar_stand_project_library.development_host_name from sar_stand_project_library
|
||||
where 1=1
|
||||
<if test="sarStandProjectLibrary.managementHostName != null and sarStandProjectLibrary.managementHostName != ''">
|
||||
and sar_stand_project_library.management_host_name=#{sarStandProjectLibrary.managementHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.developmentHostName != null and sarStandProjectLibrary.developmentHostName != ''">
|
||||
and sar_stand_project_library.development_host_name=#{sarStandProjectLibrary.developmentHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.categoryName != null and sarStandProjectLibrary.categoryName != ''">
|
||||
and sar_stand_project_library.category_name=#{sarStandProjectLibrary.categoryName}
|
||||
</if>
|
||||
limit ${(current-1) * size},${size}
|
||||
</select>
|
||||
<select id="queryProjectGroupCount"
|
||||
resultType="java.lang.Integer">
|
||||
select count(a.project_group) from (
|
||||
select distinct
|
||||
sar_stand_project_library.project_group,sar_stand_project_library.management_host_name,sar_stand_project_library.category_name,sar_stand_project_library.development_host_name
|
||||
from sar_stand_project_library
|
||||
where 1=1
|
||||
<if test="sarStandProjectLibrary.managementHostName != null and sarStandProjectLibrary.managementHostName != ''">
|
||||
and sar_stand_project_library.management_host_name=#{sarStandProjectLibrary.managementHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.developmentHostName != null and sarStandProjectLibrary.developmentHostName != ''">
|
||||
and sar_stand_project_library.development_host_name=#{sarStandProjectLibrary.developmentHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.categoryName != null and sarStandProjectLibrary.categoryName != ''">
|
||||
and sar_stand_project_library.category_name=#{sarStandProjectLibrary.categoryName}
|
||||
</if> )a
|
||||
</select>
|
||||
<select id="queryProjects"
|
||||
resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
select sar_stand_project_library.* , ts_user.UNAME as uName from sar_stand_project_library
|
||||
left join ts_user on ts_user.USID = sar_stand_project_library.project_manager
|
||||
where 1=1
|
||||
<if test="sarStandProjectLibrary.managementHostName != null and sarStandProjectLibrary.managementHostName != ''">
|
||||
and sar_stand_project_library.management_host_name=#{sarStandProjectLibrary.managementHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.developmentHostName != null and sarStandProjectLibrary.developmentHostName != ''">
|
||||
and sar_stand_project_library.development_host_name=#{sarStandProjectLibrary.developmentHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.categoryName != null and sarStandProjectLibrary.categoryName != ''">
|
||||
and sar_stand_project_library.category_name=#{sarStandProjectLibrary.categoryName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.projectStatus != null and sarStandProjectLibrary.projectStatus != ''">
|
||||
and sar_stand_project_library.project_status=#{sarStandProjectLibrary.projectStatus}
|
||||
</if>
|
||||
<if test="null != groups and groups.size()>0">
|
||||
and sar_stand_project_library.project_group in
|
||||
<foreach collection="groups" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
limit ${(current-1) * size},${size}
|
||||
</select>
|
||||
|
||||
<select id="queryProjectsCount"
|
||||
resultType="java.lang.Integer">
|
||||
select count(sar_stand_project_library.id) from sar_stand_project_library
|
||||
left join ts_user on ts_user.USID = sar_stand_project_library.project_manager
|
||||
where 1=1
|
||||
<if test="sarStandProjectLibrary.managementHostName != null and sarStandProjectLibrary.managementHostName != ''">
|
||||
and sar_stand_project_library.management_host_name=#{sarStandProjectLibrary.managementHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.developmentHostName != null and sarStandProjectLibrary.developmentHostName != ''">
|
||||
and sar_stand_project_library.development_host_name=#{sarStandProjectLibrary.developmentHostName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.categoryName != null and sarStandProjectLibrary.categoryName != ''">
|
||||
and sar_stand_project_library.category_name=#{sarStandProjectLibrary.categoryName}
|
||||
</if>
|
||||
<if test="sarStandProjectLibrary.projectStatus != null and sarStandProjectLibrary.projectStatus != ''">
|
||||
and sar_stand_project_library.project_status=#{sarStandProjectLibrary.projectStatus}
|
||||
</if>
|
||||
<if test="null != groups and groups.size()>0">
|
||||
and sar_stand_project_library.project_group in
|
||||
<foreach collection="groups" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -48,6 +48,49 @@
|
||||
limit #{start},#{end}
|
||||
</select>
|
||||
|
||||
<select id="userUnderInstitution" parameterType="com.adc.da.slrs.sarUser.entity.TsUser" resultMap="UserPosition">
|
||||
select u.*,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="TsUser.uname != null and TsUser.uname != '' ">
|
||||
and u.uname like concat('%',#{TsUser.uname},'%')
|
||||
</if>
|
||||
<if test="TsUser.email != null and TsUser.email != '' ">
|
||||
and u.email like concat('%',#{TsUser.email},'%')
|
||||
</if>
|
||||
<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>
|
||||
limit #{start},#{end}
|
||||
</select>
|
||||
|
||||
<select id="userUnderInstitutionCount" resultType="java.lang.Integer">
|
||||
select count(u.USID) 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="TsUser.uname != null and TsUser.uname != '' ">
|
||||
and u.uname like concat('%',#{TsUser.uname},'%')
|
||||
</if>
|
||||
<if test="TsUser.email != null and TsUser.email != '' ">
|
||||
and u.email like concat('%',#{TsUser.email},'%')
|
||||
</if>
|
||||
<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>
|
||||
</select>
|
||||
|
||||
<select id="getUserAndPositionCount" parameterType="com.adc.da.slrs.sarUser.entity.TsUser" resultType="java.lang.Integer">
|
||||
select count(u.USID) from ts_user u
|
||||
left join ts_user_position up
|
||||
@@ -75,4 +118,13 @@
|
||||
</foreach>
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="selectDeptByDY" resultMap="UserPosition">
|
||||
select ts_user.USID,ts_user.INSTITUTION_ID,ts_institution.name as institution_name from ts_user
|
||||
left join ts_institution on ts_institution.id=ts_user.INSTITUTION_ID
|
||||
where ts_user.USID in
|
||||
<foreach item="msgId" collection="list" open="(" separator="," close=")" index="index">
|
||||
#{msgId}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user