修改精确查询

This commit is contained in:
liuwu 2023-08-31 15:02:42 +08:00
parent e27b0bed0b
commit 467641f1a4
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN t_ament_branch e ON a.branch_id = e.branch_id
LEFT JOIN sys_dept f ON a.dept_id = f.dept_id
<where>
<if test="id != null and id != ''"> and a.id = #{id}</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="unit != null and unit != ''"> and a.unit = #{unit}</if>
<if test="unit != target and target != ''"> and a.target = #{target}</if>