|
@@ -164,5 +164,18 @@
|
|
|
and dept_parent_id = #{depParentId}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="queryByAppIdInsCode" resultType="java.util.Map" parameterType="SysDepartment">
|
|
|
+ select
|
|
|
+ dept_name as name,
|
|
|
+ dept_id as id
|
|
|
+ from sys_department where 1=1
|
|
|
+ <if test="appId != null and appId != ''">
|
|
|
+ and app_id=#{appId}
|
|
|
+ </if>
|
|
|
+ <if test="insCode != null and insCode != ''">
|
|
|
+ and ins_code=#{insCode}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
</mapper>
|