|
|
@ -43,16 +43,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
)file |
|
|
|
on s.pid = file.rel_id |
|
|
|
<where> |
|
|
|
<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 like concat('%', #{specification}, '%') </if> |
|
|
|
<if test="differences != null and differences != ''"> and differences like concat('%', #{differences}, '%')</if> |
|
|
|
<if test="pcode != null and pcode != ''"> and s.pcode like concat('%', #{pcode}, '%')</if> |
|
|
|
<if test="equipModel != null and equipModel != ''"> and s.equipModel like concat('%', #{equipModel}, '%')</if> |
|
|
|
<if test="equipName != null and equipName != ''"> and s.equipName like concat('%', #{equipName}, '%')</if> |
|
|
|
<if test="specification != null and specification != ''"> and s.specification like concat('%', #{specification}, '%') </if> |
|
|
|
<if test="differences != null and differences != ''"> and s.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} |
|
|
|
and s.create_time between #{params.beginCreateTime} and #{params.endCreateTime} |
|
|
|
</if> |
|
|
|
<if test="engineer !=null and engineer != ''">engineer = #{engineer}</if> |
|
|
|
<if test="engineer !=null and engineer != ''">and s.engineer = #{engineer}</if> |
|
|
|
</where> |
|
|
|
order by s.create_time desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectSysProductModelById" parameterType="Long" resultMap="SysProductModelResult"> |
|
|
@ -69,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="pcode != null">pcode,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="engineer != null">engineer,</if> |
|
|
|
<if test="equipModel != null">equipModel,</if> |
|
|
|
<if test="equipName != null">equipName,</if> |
|
|
|
<if test="specification != null">specification,</if> |
|
|
@ -78,11 +80,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
<if test="photoUrl != null">photoUrl,</if> |
|
|
|
use_status |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="pcode != null">#{pcode},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="engineer != null">#{engineer},</if> |
|
|
|
<if test="equipModel != null">#{equipModel},</if> |
|
|
|
<if test="equipName != null">#{equipName},</if> |
|
|
|
<if test="specification != null">#{specification},</if> |
|
|
@ -92,7 +94,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
<if test="photoUrl != null">#{photoUrl},</if> |
|
|
|
'1' |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|