weiximei 6 jaren geleden
bovenliggende
commit
3bec20e658
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpMessageMapper.xml

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpMessageMapper.xml Bestand weergeven

@@ -299,7 +299,7 @@
299 299
     WHERE
300 300
         uuid_type = 1
301 301
         AND community_id = #{communityId,jdbcType=INTEGER}
302
-        AND (uuid = #{userId,jdbcType=INTEGER} or uuid = -1)
302
+        AND uuid = #{userId,jdbcType=INTEGER}
303 303
         AND STATUS = 1
304 304
         AND advice_type = 1
305 305
   </select>
@@ -343,7 +343,7 @@
343 343
     WHERE
344 344
         t.uuid_type = 1
345 345
         AND t.community_id = #{communityId,jdbcType=INTEGER}
346
-        AND (t.uuid = #{userId,jdbcType=INTEGER} or t.uuid= -1)
346
+        AND t.uuid = #{userId,jdbcType=INTEGER}
347 347
         AND t.STATUS = 1
348 348
         AND t.advice_type = 1
349 349
         AND t.uuid_type = 1