修改精确查询
This commit is contained in:
parent
e27b0bed0b
commit
467641f1a4
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue