zoujiajian 2 år sedan
förälder
incheckning
5ce8249db9
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      netflix-dao/src/main/resources/mapper/YhShopMapper.xml

+ 2 - 2
netflix-dao/src/main/resources/mapper/YhShopMapper.xml

@@ -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">