|
@@ -11,7 +11,7 @@
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="getDept" resultMap="BaseResultMap">
|
|
<select id="getDept" resultMap="BaseResultMap">
|
|
|
- SELECT
|
|
|
|
|
|
|
+ SELECT
|
|
|
a.dept_id,
|
|
a.dept_id,
|
|
|
b.NAME,
|
|
b.NAME,
|
|
|
a.management_fee,
|
|
a.management_fee,
|
|
@@ -19,12 +19,13 @@
|
|
|
FROM
|
|
FROM
|
|
|
sys_dept_account a
|
|
sys_dept_account a
|
|
|
LEFT JOIN sys_dept b ON a.dept_id = b.id
|
|
LEFT JOIN sys_dept b ON a.dept_id = b.id
|
|
|
- where
|
|
|
|
|
|
|
+ where
|
|
|
|
|
+ b.del_flag = 0
|
|
|
<if test="sysDeptAccountDto.deptId != null and sysDeptAccountDto.deptId != ''">
|
|
<if test="sysDeptAccountDto.deptId != null and sysDeptAccountDto.deptId != ''">
|
|
|
- a.dept_id like concat(#{sysDeptAccountDto.deptId},'%')
|
|
|
|
|
|
|
+ AND a.dept_id like concat(#{sysDeptAccountDto.deptId},'%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="sysDeptAccountDto.deptName != null and sysDeptAccountDto.deptName != ''">
|
|
<if test="sysDeptAccountDto.deptName != null and sysDeptAccountDto.deptName != ''">
|
|
|
- and b.name like concat(#{sysDeptAccountDto.deptName},'%')
|
|
|
|
|
|
|
+ AND b.name like concat(#{sysDeptAccountDto.deptName},'%')
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|