Explorar o código

非公出协单开发

anderx hai 3 días
pai
achega
5acac01c5b

+ 1 - 1
src/main/java/com/goafanti/common/dao/UserMidMapper.java

@@ -94,6 +94,6 @@ public interface UserMidMapper {
 
     void updateCallByUid(@Param("uid") String uid, @Param("count") int count, @Param("duration") int duration);
 
-    void addUserMidCount(@Param("uid") String uid);
+    int  addUserMidCount(@Param("uid") String uid);
 }
 

+ 2 - 2
src/main/java/com/goafanti/common/mapper/UserMidMapper.xml

@@ -1185,8 +1185,8 @@
     <insert id="addUserMidCount">
         update user_mid x
         right join (select b.uid , count(*)counts, sum(if(a.assist = 1, 1, 0)) assistCount,
-        sum(if(a.assist = 1 and a.`type` <5, 1, 0)) publicCount,
-        sum(if(a.assist = 1 and a.`type` >4, 1, 0)) nonPublicCount
+        sum(if(a.assist = 1 and a.`type` &lt; 5, 1, 0)) publicCount,
+        sum(if(a.assist = 1 and a.`type` &gt; 4, 1, 0)) nonPublicCount
         from public_release a
         left join public_release_details b on
         a.id = b.prid