|
|
@@ -206,24 +206,24 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCognizancePrincipal" resultMap="BaseResultMap" >
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from admin
|
|
|
- where id <![CDATA[ <> ]]> '1'
|
|
|
+ select a.id, a.name, a.position from admin a
|
|
|
+ INNER JOIN user_role ur on a.id = ur.uid
|
|
|
+ where ur.rid not in('1','2','3','4')
|
|
|
+ group by a.id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectPatentAuthor" resultMap="BaseResultMap" >
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from admin
|
|
|
- where id <![CDATA[ <> ]]> '1'
|
|
|
+ select a.id, a.name, a.position from admin a
|
|
|
+ INNER JOIN user_role ur on a.id = ur.uid
|
|
|
+ where ur.rid not in('1','2','3','4')
|
|
|
+ group by a.id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectPatentPrincipal" resultMap="BaseResultMap" >
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from admin
|
|
|
- where id <![CDATA[ <> ]]> '1'
|
|
|
+ select a.id, a.name, a.position from admin a
|
|
|
+ INNER JOIN user_role ur on a.id = ur.uid
|
|
|
+ where ur.rid not in('1','2','3','4')
|
|
|
+ group by a.id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCopyrightConsultant" resultMap="BaseResultMap" >
|
|
|
@@ -234,10 +234,10 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCopyrightPrincipal" resultMap="BaseResultMap" >
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from admin
|
|
|
- where id <![CDATA[ <> ]]> '1'
|
|
|
+ select a.id, a.name, a.position from admin a
|
|
|
+ INNER JOIN user_role ur on a.id = ur.uid
|
|
|
+ where ur.rid not in('1','2','3','4')
|
|
|
+ group by a.id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTechprojectConsultant" resultMap="BaseResultMap" >
|
|
|
@@ -248,15 +248,28 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTechprojectPrincipal" resultMap="BaseResultMap" >
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from admin
|
|
|
- where id <![CDATA[ <> ]]> '1'
|
|
|
+ select a.id, a.name, a.position from admin a
|
|
|
+ INNER JOIN user_role ur on a.id = ur.uid
|
|
|
+ where ur.rid not in('1','2','3','4')
|
|
|
+ group by a.id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectRoleByPrimaryKey" parameterType="java.lang.String" resultType="String">
|
|
|
SELECT rid FROM user_role
|
|
|
- where uid = #{uid,jdbcType=VARCHAR}
|
|
|
+ where uid = #{uid,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectAccoutManager" resultMap="BaseResultMap">
|
|
|
+ select a.id, a.name, a.position from admin a
|
|
|
+ INNER JOIN user_role ur on a.id = ur.uid
|
|
|
+ where ur.rid = '4'
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTechnician" resultMap="BaseResultMap">
|
|
|
+ select a.id, a.name, a.position from admin a
|
|
|
+ INNER JOIN user_role ur on a.id = ur.uid
|
|
|
+ where ur.rid not in('1','2','3','4')
|
|
|
+ group by a.id
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|