|
|
@@ -545,6 +545,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="endTime != null "> AND wo.create_time <![CDATA[<]]> #{endTime}</if>
|
|
|
<if test="pcsId != null "> AND wo.pcs_station_pid = #{pcsId}</if>
|
|
|
<if test="centerId != null "> AND d.parent_id = #{centerId}</if>
|
|
|
+ <if test="remark != null and remark != '' ">
|
|
|
+ AND (
|
|
|
+ wo.pcs_device_name LIKE concat('%', #{remark}, '%')
|
|
|
+ OR wo.brand LIKE concat('%', #{remark}, '%')
|
|
|
+ OR wo.model LIKE concat('%', #{remark}, '%')
|
|
|
+ OR wo.mis_no LIKE concat('%', #{remark}, '%')
|
|
|
+ OR m.nick_name LIKE concat('%', #{remark}, '%')
|
|
|
+ OR d.dept_name LIKE concat('%', #{remark}, '%')
|
|
|
+ OR p.dept_name LIKE concat('%', #{remark}, '%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="dataPermission != null and dataPermission != ''">${dataPermission}</if>
|
|
|
</where>
|
|
|
|
|
|
@@ -591,6 +602,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="endTime != null "> AND wo.occur_time <![CDATA[<]]> #{endTime}</if>
|
|
|
<if test="pcsId != null "> AND wo.pcs_station_pid = #{pcsId}</if>
|
|
|
<if test="centerId != null "> AND d.parent_id = #{centerId}</if>
|
|
|
+ <if test="remark != null and remark != '' ">
|
|
|
+ AND (
|
|
|
+ wo.pcs_device_name LIKE concat('%', #{remark}, '%')
|
|
|
+ OR wo.brand LIKE concat('%', #{remark}, '%')
|
|
|
+ OR wo.model LIKE concat('%', #{remark}, '%')
|
|
|
+ OR m.nick_name LIKE concat('%', #{remark}, '%')
|
|
|
+ OR d.dept_name LIKE concat('%', #{remark}, '%')
|
|
|
+ OR p.dept_name LIKE concat('%', #{remark}, '%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="dataPermission != null and dataPermission != ''">${dataPermission}</if>
|
|
|
</where>
|
|
|
) o
|