LIVE_YE 2 vuotta sitten
vanhempi
commit
6ed66b393f

+ 2 - 1
ruoyi-system/src/main/resources/mapper/system/UsageRecordMapper.xml

@@ -40,8 +40,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectUsageRecordVo"/>
         <where>
             <if test="creditId != null  and creditId != ''"> and credit_id = #{creditId}</if>
-            <if test="creditName != null  and creditName != ''"> and credit_name = #{creditName}</if>
+            <if test="creditName != null  and creditName != ''"> and credit_name like concat( #{creditName}, '%')</if>
             <if test="recordYear != null  and recordYear != ''"> and record_year = #{recordYear }</if>
+            <if test="recordLevel != null  and recordLevel != ''"> and record_level = #{recordLevel}</if>
             <if test="createTime != null "> and create_time like concat( #{createTime}, '%')</if>
         </where>
     </select>