Commit 853516d0 by 程裕兵

feat:refund statistic

parent 86d119d0
......@@ -155,7 +155,15 @@
from studio_cashier_record
<where>
and trans_type = 'REFUND'
and trans_state in ('REFUNDING', 'REFUND_SUCCESS')
<if test="query.transStateList == null">
and trans_state in ('REFUNDING', 'REFUND_SUCCESS')
</if>
<if test="query.transStateList != null">
and trans_state in
<foreach collection="query.transStateList" separator="," item="item" open="(" close=")">
#{item}
</foreach>
</if>
<if test="query.studioId != null">
and studio_id = #{query.studioId}
</if>
......
......@@ -182,10 +182,10 @@ public class StudioCashierRecordRpService extends
}
public StudioCashierStatisticVO statistic(PageBrandCashierRecordQuery query) {
query.setTransStateList(
CollectionUtil.isEmpty(query.getTransStateList()) ? null : query.getTransStateList());
if (null == query.getTransType() || BrandCashierTransTypeEnum.PAY.getCode()
.equals(query.getTransType())) {
query.setTransStateList(
CollectionUtil.isEmpty(query.getTransStateList()) ? null : query.getTransStateList());
return this.baseMapper.statistic(query);
}
return this.baseMapper.statisticRefund(query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment