weiximei 6 years ago
parent
commit
3bec20e658

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

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