充值明细fixed
This commit is contained in:
@@ -153,9 +153,19 @@
|
||||
where cr.create_time >= #{startTime}
|
||||
and cr.create_time <= #{endTime}
|
||||
and cr.charge_status in (2,6)
|
||||
and cr.channel = #{channel}
|
||||
<if test="channel != null and channel != ''">
|
||||
<choose>
|
||||
<when test="channel == 'company'">
|
||||
and cr.charge_prod_id = 'company'
|
||||
</when>
|
||||
<otherwise>
|
||||
and cr.channel = #{channel}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
and u.partition_id = #{partitionId}
|
||||
GROUP BY r.id
|
||||
order by `usd` desc
|
||||
</select>
|
||||
|
||||
<select id="getChargeCount" resultType="com.accompany.payment.model.ChargeRecord">
|
||||
|
@@ -338,8 +338,9 @@ public class ChargeRecordAdminController extends BaseController {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/partitionRegionDetail")
|
||||
public List<ChargeRecordPartitionRegionVo> partitionRegionDetail(Integer partitionId, String beginDate, String channel) {
|
||||
return chargeRecordAdminService.partitionRegionGoldDetail(partitionId, beginDate, channel);
|
||||
public BusiResult<List<ChargeRecordPartitionRegionVo>> partitionRegionDetail(Integer partitionId, String beginDate, String channel) {
|
||||
List<ChargeRecordPartitionRegionVo> chargeRecordPartitionRegionVos = chargeRecordAdminService.partitionRegionGoldDetail(partitionId, beginDate, channel);
|
||||
return BusiResult.success(chargeRecordPartitionRegionVos);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/exportPartitionDetail")
|
||||
|
Reference in New Issue
Block a user