退款-机器人-查询刷礼总额-改写sql
This commit is contained in:
@@ -64,7 +64,12 @@ public class IAPMessageService {
|
||||
msg.add(MarkdownMessage.getReferenceText("退款人訂單金額:" + BigDecimal.valueOf(chargeRecord.getAmount()).divide(Constant.HUNDRED, 2, RoundingMode.HALF_DOWN)));
|
||||
msg.add(MarkdownMessage.getReferenceText("退款訂單的充值時間:" + DateTimeUtil.convertDate(chargeRecord.getCreateTime())));
|
||||
msg.add(MarkdownMessage.getReferenceText("退款訂單的退款時間:" + DateTimeUtil.convertDate(refundTime)));
|
||||
|
||||
Long totalSendGiftValue = iosPayMapper.calSendGiftTotalBetweenQueryTime(uid, chargeRecord.getCreateTime(), refundTime);
|
||||
if (null == totalSendGiftValue){
|
||||
totalSendGiftValue = 0L;
|
||||
}
|
||||
|
||||
msg.add(MarkdownMessage.getReferenceText("訂單充值時間到退款時間退款人刷禮總額:" + totalSendGiftValue));
|
||||
List<IOSRefundGiftStatDTO> listSendGiftTop3 = iosPayMapper.listSendGiftTop3(uid, chargeRecord.getCreateTime(), refundTime);
|
||||
List<IOSRefundGiftStatDTO.IOSRefundSendGiftNotifyDTO> top3 = new ArrayList<>();
|
||||
|
@@ -236,8 +236,14 @@ public class GooglePlayRefundService {
|
||||
msg.add(MarkdownMessage.getReferenceText("退款人訂單金額:" + BigDecimal.valueOf(chargeRecord.getAmount()).divide(Constant.HUNDRED, 2, RoundingMode.HALF_DOWN)));
|
||||
msg.add(MarkdownMessage.getReferenceText("退款訂單的充值時間:" + DateTimeUtil.convertDate(chargeRecord.getCreateTime())));
|
||||
msg.add(MarkdownMessage.getReferenceText("退款訂單的退款時間:" + DateTimeUtil.convertDate(refundTime)));
|
||||
|
||||
Long totalSendGiftValue = iosPayMapper.calSendGiftTotalBetweenQueryTime(uid, chargeRecord.getCreateTime(), refundTime);
|
||||
if (null == totalSendGiftValue){
|
||||
totalSendGiftValue = 0L;
|
||||
}
|
||||
|
||||
msg.add(MarkdownMessage.getReferenceText("訂單充值時間到退款時間退款人刷禮總額:" + totalSendGiftValue));
|
||||
|
||||
List<IOSRefundGiftStatDTO> listSendGiftTop3 = iosPayMapper.listSendGiftTop3(uid, chargeRecord.getCreateTime(), refundTime);
|
||||
List<IOSRefundGiftStatDTO.IOSRefundSendGiftNotifyDTO> top3 = new ArrayList<>();
|
||||
if (!CollectionUtils.isEmpty(listSendGiftTop3)) {
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.accompany.business.mybatismapper.iospay.IOSPayMapper">
|
||||
<select id="calSendGiftTotalBetweenQueryTime" resultType="java.lang.Long">
|
||||
select ifnull(sum(total_gold_num), 0) from gift_send_record where uid = #{uid}
|
||||
select sum(total_gold_num) from gift_send_record where uid = #{uid}
|
||||
and create_time between #{startTime} and #{endTime}
|
||||
</select>
|
||||
<select id="listSendGiftTop3" resultType="com.accompany.business.dto.iospay.IOSRefundGiftStatDTO">
|
||||
|
Reference in New Issue
Block a user