|
|
@@ -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` < 5, 1, 0)) publicCount,
|
|
|
+ sum(if(a.assist = 1 and a.`type` > 4, 1, 0)) nonPublicCount
|
|
|
from public_release a
|
|
|
left join public_release_details b on
|
|
|
a.id = b.prid
|