Browse Source

修改查询

Administrator 1 year ago
parent
commit
d9c090123c

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/projectV2/ZsyzSbbzbMapper.xml

@@ -862,8 +862,8 @@
         <include refid="selectZsyzSbbzbVo"/>
         <where>
             is_del = 'N'
-            <if test="xmbh != null  and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
-            <if test="xmxsmc != null  and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
+            <if test="xmbh != null  and xmbh != ''">and xmbh like concat('%', #{xmbh}, '%')</if>
+            <if test="xmxsmc != null  and xmxsmc != ''">and xmxsmc like concat('%', #{xmxsmc}, '%')</if>
             <if test="cjdId != null ">and (cjd_id = #{cjdId} or dept_id = #{cjdId})</if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
                 AND date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')