|
|
@@ -8,6 +8,16 @@
|
|
|
<result property="userId" column="user_id"/>
|
|
|
<result property="applyId" column="apply_id"/>
|
|
|
</resultMap>
|
|
|
+
|
|
|
+ <resultMap type="com.template.model.pojo.SmartAuthorGroupManager" id="smartAuthorGroupManager">
|
|
|
+ <result property="groupId" column="group_id"/>
|
|
|
+ <result property="userId" column="user_id"/>
|
|
|
+ <result property="cardNo" column="card_no"/>
|
|
|
+ <result property="userName" column="user_name"/>
|
|
|
+ <result property="departmentManage" column="department_manage"/>
|
|
|
+ <result property="departmentView" column="department_view"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<select id="smartAuthorGroup" resultType="com.template.model.pojo.SmartAuthorGroup" resultMap="smartAuthorGroupMap">
|
|
|
SELECT * FROM `smart_author_group`
|
|
|
where deleted = 0
|
|
|
@@ -15,4 +25,10 @@
|
|
|
and FIND_IN_SET(#{userId},user_id)
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getSmartAuthorGroupManager" resultType="com.template.model.pojo.SmartAuthorGroupManager" resultMap="smartAuthorGroupManager">
|
|
|
+ select a.`id`,a.`group_id`,a.`user_id`,b.card_no,b.`name` as user_name,a.`department_manage`,a.`department_view`
|
|
|
+ from `smart_authority` a left join `smart_user` b on a.`user_id`=b.id
|
|
|
+ where group_id=#{groupId}
|
|
|
+ </select>
|
|
|
</mapper>
|