(select count(*) from (select tc.cattle_brand_id from t_user_cattle tc where tc.user_id = #{userId} GROUP BY tc.cattle_brand_id)tab) as cattleTypeNum
is_first_share,
(select count(*) from (select tc.cattle_brand_id from t_user_cattle tc where tc.user_id = #{userId} and tc.is_share = '0' GROUP BY tc.cattle_brand_id)tab) as cattleTypeNum
from
from
t_user where
t_user where
...
@@ -33,7 +34,7 @@
...
@@ -33,7 +34,7 @@
SELECT
SELECT
id,
id,
amount
amount
from t_first_login_red where is_flag = '0' order by id asc limit 1