魏超 4 年前
父节点
当前提交
65f3d81f87

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

@@ -4,7 +4,7 @@
4 4
 
5 5
     <select id="countTotalBlockAmount" resultType="java.lang.Integer">
6 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 8
     </select>
9 9
 
10 10
 </mapper>

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

@@ -73,7 +73,7 @@
73 73
         left join ta_org_order_detail a on t.order_id = a.order_id
74 74
         left join ta_miniapp b on t.org_id = b.org_id
75 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 77
         where
78 78
         a.item_type = #{orderType}
79 79
         <if test="orgId != null and orgId != ''">