|
|
@@ -15,9 +15,9 @@
|
|
|
|
|
|
<select id="getApplyDetailByUserId" resultType="com.cyksj.model.views.YhShopDistributeView">
|
|
|
select ifnull(sum(da.money), 0) as gotMoney, u.yhs_money as availableMoney
|
|
|
- from (select id, points from user where id = #{userId} limit 1) u
|
|
|
+ from (select id, yhs_money from user where id = #{userId} limit 1) u
|
|
|
left join yh_shop_distribute_money_apply da on da.user_id = u.id and verify_status = 'success'
|
|
|
- group by u.id, u.points
|
|
|
+ group by u.id, u.yhs_money
|
|
|
</select>
|
|
|
|
|
|
<select id="selectYhShopDetail" resultType="java.util.Map">
|