| @@ -822,7 +822,7 @@ | |||||
| <select id="findVoList1" resultMap="VoBaseResultMap"> | <select id="findVoList1" resultMap="VoBaseResultMap"> | ||||
| select | select | ||||
| <include refid="allVoColumns"/> | <include refid="allVoColumns"/> | ||||
| ,(select ifnull(sum(credit.credit_num),0) amount from wx_credit_history${tenantEntity.shardFinalTableSuffix} credit | |||||
| ,(select ifnull(sum(credit.credit_num),0) amount from wx_credit_history${tenantInfo.shardFinalTableSuffix} credit | |||||
| where credit.`tenant_id` = #{tenantInfo.finalTenantId} | where credit.`tenant_id` = #{tenantInfo.finalTenantId} | ||||
| and credit.credit_num > 0 and credit.c_user_id = cu.id | and credit.credit_num > 0 and credit.c_user_id = cu.id | ||||
| <if test=" null != basicInfo.creditStartTime "> | <if test=" null != basicInfo.creditStartTime "> | ||||
| @@ -831,7 +831,7 @@ | |||||
| <if test=" null != basicInfo.creditEndTime"> | <if test=" null != basicInfo.creditEndTime"> | ||||
| and credit.create_date < #{basicInfo.creditEndTime} | and credit.create_date < #{basicInfo.creditEndTime} | ||||
| </if>) as addCredit, | </if>) as addCredit, | ||||
| (select ifnull(sum(credit.credit_num),0) amount from wx_credit_history${tenantEntity.shardFinalTableSuffix} credit | |||||
| (select ifnull(sum(credit.credit_num),0) amount from wx_credit_history${tenantInfo.shardFinalTableSuffix} credit | |||||
| where credit.`tenant_id` = #{tenantInfo.finalTenantId} | where credit.`tenant_id` = #{tenantInfo.finalTenantId} | ||||
| and credit.credit_num < 0 and credit.c_user_id = cu.id | and credit.credit_num < 0 and credit.c_user_id = cu.id | ||||
| <if test=" null != basicInfo.creditStartTime "> | <if test=" null != basicInfo.creditStartTime "> | ||||