Procházet zdrojové kódy

优化根据小区查询

java110 před 5 roky
rodič
revize
3311b9f813

+ 12 - 0
java110-db/src/main/resources/mapper/store/SmallWeChatServiceDaoImplMapper.xml

@@ -167,6 +167,12 @@
         <if test="remarks !=null and remarks != ''">
         <if test="remarks !=null and remarks != ''">
             and t.remarks= #{remarks}
             and t.remarks= #{remarks}
         </if>
         </if>
+        <if test="objType !=null and objType != ''">
+            and t.obj_type= #{objType}
+        </if>
+        <if test="objId !=null and objId != ''">
+            and t.obj_id= #{objId}
+        </if>
         order by t.create_time desc
         order by t.create_time desc
         <if test="page != -1 and page != null ">
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
             limit #{page}, #{row}
@@ -259,6 +265,12 @@
         <if test="remarks !=null and remarks != ''">
         <if test="remarks !=null and remarks != ''">
             and t.remarks= #{remarks}
             and t.remarks= #{remarks}
         </if>
         </if>
+        <if test="objType !=null and objType != ''">
+            and t.obj_type= #{objType}
+        </if>
+        <if test="objId !=null and objId != ''">
+            and t.obj_id= #{objId}
+        </if>
 
 
 
 
     </select>
     </select>