魏超 4 年之前
父節點
當前提交
65f3d81f87

+ 1
- 1
src/main/resources/mapper/redpack/TaOrgAccountBlockedMapper.xml 查看文件

4
 
4
 
5
     <select id="countTotalBlockAmount" resultType="java.lang.Integer">
5
     <select id="countTotalBlockAmount" resultType="java.lang.Integer">
6
         select ifnull(sum(t.blocked_balance), 0) from ta_org_account_blocked t
6
         select ifnull(sum(t.blocked_balance), 0) from ta_org_account_blocked t
7
-        where t.org_id = #{orgId}
7
+        where t.org_id = #{orgId} and t.status = 1
8
     </select>
8
     </select>
9
 
9
 
10
 </mapper>
10
 </mapper>

+ 1
- 1
src/main/resources/mapper/redpack/TaOrgOrderMapper.xml 查看文件

73
         left join ta_org_order_detail a on t.order_id = a.order_id
73
         left join ta_org_order_detail a on t.order_id = a.order_id
74
         left join ta_miniapp b on t.org_id = b.org_id
74
         left join ta_miniapp b on t.org_id = b.org_id
75
         left join ta_person c on a.receiver_id = c.person_id
75
         left join ta_person c on a.receiver_id = c.person_id
76
-        left join ta_drainage d on a.target_id = d.drainage_id
76
+        left join ta_red_packet d on a.target_id = d.activity_id
77
         where
77
         where
78
         a.item_type = #{orderType}
78
         a.item_type = #{orderType}
79
         <if test="orgId != null and orgId != ''">
79
         <if test="orgId != null and orgId != ''">