|
|
|
@ -39,13 +39,22 @@
|
|
|
|
|
<if test=" workPlaceCode != null">
|
|
|
|
|
AND workPlaceCode = #{workPlaceCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test=" productName != null and productName != ''">
|
|
|
|
|
AND bp.cpmctymc = #{productName}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="keywords != null and keywords != ''">
|
|
|
|
|
and (isc.workPlaceCode like concat('%', #{keywords}, '%')
|
|
|
|
|
or isc.nameCode like concat('%', #{keywords}, '%')
|
|
|
|
|
or isc.batchNo like concat('%', #{keywords}, '%')
|
|
|
|
|
or isc.supId like concat('%', #{keywords}, '%')
|
|
|
|
|
or bp.cpmctymc like concat('%', #{keywords}, '%')
|
|
|
|
|
or bp.bzgg like concat('%', #{keywords}, '%')
|
|
|
|
|
or bp.ggxh like concat('%', #{keywords}, '%')
|
|
|
|
|
or isc.invCode like concat('%', #{keywords}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
|
|
AND date_format(isc.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|