소스 검색

模糊查询

bihuisong 5 달 전
부모
커밋
33c91bbcc7

+ 0 - 12
qmjszx-admin/src/main/resources/templates/system/bill/bill.html

@@ -15,18 +15,6 @@
                                 <input type="text" name="title"/>
                             </li>
                             <li>
-                                <label>明细数字:</label>
-                                <input type="text" name="number"/>
-                            </li>
-                            <li>
-                                <label>剩余:</label>
-                                <input type="text" name="balance"/>
-                            </li>
-                            <li>
-                                <label>积分用途:</label>
-                                <input type="text" name="useCategory"/>
-                            </li>
-                            <li>
                                 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                 <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                             </li>

+ 1 - 7
qmjszx-business/src/main/resources/mapper/userbill/SysUserBillMapper.xml

@@ -45,13 +45,7 @@
     <select id="selectSysUserBillList" parameterType="SysUserBill" resultMap="SysUserBillResult">
         <include refid="selectSysUserBillVo"/>
         <where>
-            <if test="userId != null ">and sub.user_id = #{userId}</if>
-            <if test="pm != null ">and sub.pm = #{pm}</if>
-            <if test="title != null  and title != ''">and sub.title = #{title}</if>
-            <if test="number != null ">and sub.number = #{number}</if>
-            <if test="balance != null ">and sub.balance = #{balance}</if>
-            <if test="useCategory != null  and useCategory != ''">and sub.use_category = #{useCategory}</if>
-            <if test="status != null ">and sub.status = #{status}</if>
+            <if test="title != null  and title != ''">and sub.title like concat('%', #{title}, '%')</if>
         </where>
         order by sub.create_time desc
     </select>

+ 1 - 9
qmjszx-system/src/main/resources/mapper/system/SysMemberMapper.xml

@@ -30,16 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectSysMemberList" parameterType="SysMember" resultMap="SysMemberResult">
         <include refid="selectSysMemberVo"/>
         <where>  
-            <if test="username != null  and username != ''"> and username like concat('%', #{username}, '%')</if>
-            <if test="password != null  and password != ''"> and password = #{password}</if>
             <if test="realName != null  and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
-            <if test="mobile != null  and mobile != ''"> and mobile = #{mobile}</if>
-            <if test="loginDate != null "> and login_date = #{loginDate}</if>
-            <if test="loginIp != null  and loginIp != ''"> and login_ip = #{loginIp}</if>
-            <if test="registerIp != null  and registerIp != ''"> and register_ip = #{registerIp}</if>
-            <if test="integral != null "> and integral = #{integral}</if>
-            <if test="wxProfile != null  and wxProfile != ''"> and wx_profile = #{wxProfile}</if>
-            <if test="openId != null  and openId != ''"> and open_id = #{openId}</if>
+            <if test="mobile != null  and mobile != ''"> and mobile like concat('%', #{mobile}, '%')</if>
         </where>
     </select>