|
|
@ -43,17 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
)file |
|
|
|
on s.pid = file.rel_id |
|
|
|
<where> |
|
|
|
<if test="pcode != null and pcode != ''"> and Pcode = #{pcode}</if> |
|
|
|
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if> |
|
|
|
<if test="equipModel != null and equipModel != ''"> and equipModel = #{equipModel}</if> |
|
|
|
<if test="pcode != null and pcode != ''"> and pcode like concat('%', #{pcode}, '%')</if> |
|
|
|
<if test="equipModel != null and equipModel != ''"> and equipModel like concat('%', #{equipModel}, '%')</if> |
|
|
|
<if test="equipName != null and equipName != ''"> and equipName like concat('%', #{equipName}, '%')</if> |
|
|
|
<if test="specification != null and specification != ''"> and specification = #{specification}</if> |
|
|
|
<if test="differences != null and differences != ''"> and differences = #{differences}</if> |
|
|
|
<if test="specification != null and specification != ''"> and specification like concat('%', #{specification}, '%') </if> |
|
|
|
<if test="differences != null and differences != ''"> and differences like concat('%', #{differences}, '%')</if> |
|
|
|
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> |
|
|
|
and create_time between #{params.beginCreateTime} and #{params.endCreateTime} |
|
|
|
</if> |
|
|
|
<if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if> |
|
|
|
<if test="useStatus != null and useStatus != ''"> and use_status = #{useStatus}</if> |
|
|
|
<if test="engineer !=null and engineer != ''">engineer = #{engineer}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|