模糊查询

main
hshansha 2 months ago
parent 85531c98bb
commit 5b5fbe7dac

@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectKhPingceList" parameterType="KhPingce" resultMap="KhPingceResult"> <select id="selectKhPingceList" parameterType="KhPingce" resultMap="KhPingceResult">
<include refid="selectKhPingceVo"></include> <include refid="selectKhPingceVo"></include>
<where> <where>
<if test="pcTitle != null and pcTitle != ''"> and pc_title = #{pcTitle}</if> <if test="pcTitle != null and pcTitle != ''"> and pc_title like CONCAT('%', #{pcTitle}, '%')</if>
<if test="pcDescription != null and pcDescription != ''"> and pc_description = #{pcDescription}</if> <if test="pcDescription != null and pcDescription != ''"> and pc_description = #{pcDescription}</if>
<if test="templateId != null "> and template_id = #{templateId}</if> <if test="templateId != null "> and template_id = #{templateId}</if>
<if test="templateName != null and templateName != ''"> and template_name like concat('%', #{templateName}, '%')</if> <if test="templateName != null and templateName != ''"> and template_name like concat('%', #{templateName}, '%')</if>

Loading…
Cancel
Save