Merge remote-tracking branch 'origin/bd_dev' into bd_dev
This commit is contained in:
commit
0b78a26aab
|
@ -74,7 +74,7 @@ public class MemberStatisticsServiceImpl implements IMemberStatisticsService {
|
|||
for (DirectStatisticsTop30VO directStatisticsTop30VO : result) {
|
||||
if(param.getFaker()){
|
||||
directStatisticsTop30VO.setMemberCode(DataMaskingUtil.mask(directStatisticsTop30VO.getMemberCode(), 2, 2));
|
||||
directStatisticsTop30VO.setMemberName(DataMaskingUtil.mask(directStatisticsTop30VO.getMemberName(), 1, 0));
|
||||
directStatisticsTop30VO.setMemberName(DataMaskingUtil.mask(directStatisticsTop30VO.getMemberName(), 1, 0, 6));
|
||||
}
|
||||
directStatisticsTop30VO.setNumberOfAmount(directStatisticsTop30VO.getNumberOfAmount().divide(new BigDecimal(10000)));
|
||||
}
|
||||
|
|
|
@ -12,15 +12,16 @@
|
|||
numberOfAmount
|
||||
from (
|
||||
select
|
||||
PK_REFERENCE,
|
||||
count(PK_REFERENCE) numberOfPeople,
|
||||
o.PK_REFERENCE,
|
||||
count(DISTINCT o.PK_MEMBER) numberOfPeople,
|
||||
sum(order_amount) numberOfAmount
|
||||
from sa_order
|
||||
from sa_order o
|
||||
right join cu_member m on m.PK_ID = o.pk_member and m.DEL_FLAG = 0 and m.CATEGORY = 0
|
||||
where
|
||||
del_flag = 0
|
||||
o.del_flag = 0
|
||||
and order_status = 1
|
||||
AND (order_type in (1,2) or (order_Type = 3 and ORDER_TYPE_EXTEND = 1))
|
||||
and pay_time between #{param.startDate} and #{param.endDate}
|
||||
and o.pay_time between #{param.startDate} and #{param.endDate}
|
||||
group by PK_REFERENCE
|
||||
) r
|
||||
left join cu_member cm on r.PK_REFERENCE = cm.pk_id
|
||||
|
@ -37,15 +38,16 @@
|
|||
numberOfAmount
|
||||
from (
|
||||
select
|
||||
PK_REFERENCE,
|
||||
count(PK_REFERENCE) numberOfPeople,
|
||||
o.PK_REFERENCE,
|
||||
count(DISTINCT o.PK_MEMBER) numberOfPeople,
|
||||
sum(order_amount) numberOfAmount
|
||||
from sa_order
|
||||
from sa_order o
|
||||
right join cu_member m on m.PK_ID = o.pk_member and m.DEL_FLAG = 0 and m.CATEGORY = 0
|
||||
where
|
||||
del_flag = 0
|
||||
o.del_flag = 0
|
||||
and order_status = 1
|
||||
AND (order_type in (1,2) or (order_Type = 3 and ORDER_TYPE_EXTEND = 1))
|
||||
and pay_time between #{param.startDate} and #{param.endDate}
|
||||
and o.pay_time between #{param.startDate} and #{param.endDate}
|
||||
group by PK_REFERENCE
|
||||
) r
|
||||
left join cu_member cm on r.PK_REFERENCE = cm.pk_id
|
||||
|
|
|
@ -25,20 +25,20 @@ public class AcDirectPushUpgradeListParam {
|
|||
/**
|
||||
* 开始活动开始时间
|
||||
*/
|
||||
private Date startActStartDate;
|
||||
private String startActStartDate;
|
||||
|
||||
/**
|
||||
* 开始活动结束时间
|
||||
*/
|
||||
private Date startActEndDate;
|
||||
private String startActEndDate;
|
||||
|
||||
/**
|
||||
* 结束活动开始时间
|
||||
*/
|
||||
private Date endActStartDate;
|
||||
private String endActStartDate;
|
||||
|
||||
/**
|
||||
* 结束活动结束时间
|
||||
*/
|
||||
private Date endActEndDate;
|
||||
private String endActEndDate;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ public class AcDirectPushUpgradeListVO {
|
|||
/**
|
||||
* 升级年月
|
||||
*/
|
||||
@Excel(name = "创建时间", dateFormat = "yyyy-MM-dd")
|
||||
@Excel(name = "升级年月", dateFormat = "yyyy-MM-dd")
|
||||
private String upgradeTime;
|
||||
|
||||
}
|
||||
|
|
|
@ -79,23 +79,23 @@
|
|||
LEFT JOIN BD_GRADE BG ON arur.PK_SETTLE_GRADE = BG.PK_ID
|
||||
LEFT JOIN BD_GRADE BGG ON arur.PK_RECOMMEND_GRADE = BGG.PK_ID
|
||||
WHERE arur.DEL_FLAG = 0
|
||||
<if test="actName != null">
|
||||
<if test="actName != null and actName != ''">
|
||||
AND abc.ACT_NAME = #{actName}
|
||||
</if>
|
||||
<if test="memberCode != null">
|
||||
<if test="memberCode != null and memberCode != ''">
|
||||
AND cm.member_code = #{memberCode}
|
||||
</if>
|
||||
<if test="startActStartDate != null">
|
||||
AND abc.ACT_START_DATE >= #{startActStartDate,javaType=DATE}
|
||||
<if test="startActStartDate != null and startActStartDate != ''">
|
||||
AND abc.ACT_START_DATE >= TO_DATE(SUBSTR(#{startActStartDate},1,10), 'YYYY-MM-DD')
|
||||
</if>
|
||||
<if test="startActEndDate != null">
|
||||
AND abc.ACT_START_DATE <= #{startActEndDate,javaType=DATE}
|
||||
<if test="startActEndDate != null and startActEndDate != ''">
|
||||
AND abc.ACT_START_DATE <= TO_DATE(SUBSTR(#{startActEndDate},1,10), 'YYYY-MM-DD')
|
||||
</if>
|
||||
<if test="endActStartDate != null">
|
||||
AND abc.ACT_END_DATE >= #{endActStartDate,javaType=DATE}
|
||||
<if test="endActStartDate != null and endActStartDate != ''">
|
||||
AND abc.ACT_END_DATE >= TO_DATE(SUBSTR(#{endActStartDate},1,10), 'YYYY-MM-DD')
|
||||
</if>
|
||||
<if test="endActEndDate != null">
|
||||
AND abc.ACT_END_DATE <= #{endActEndDate,javaType=DATE}
|
||||
<if test="endActEndDate != null and endActEndDate != ''">
|
||||
AND abc.ACT_END_DATE <= TO_DATE(SUBSTR(#{endActEndDate},1,10), 'YYYY-MM-DD')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
|
|
@ -51,6 +51,13 @@ public class DataMaskingUtil {
|
|||
|
||||
return result.toString();
|
||||
}
|
||||
public static String mask(String input, int keepPrefix, int keepSuffix, int maxLength) {
|
||||
String str = mask(input, keepPrefix, keepSuffix);
|
||||
if(str.length() > maxLength) {
|
||||
str = str.substring(0, maxLength);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
/**
|
||||
* 对字符串进行脱敏处理,可自定义脱敏字符
|
||||
|
|
|
@ -69,10 +69,12 @@ public class JdPayAggregateCreateOrderRequest implements Serializable {
|
|||
* 同步通知页面url
|
||||
*/
|
||||
private String pageBackUrl;
|
||||
private String pagebackUrl;
|
||||
|
||||
/**
|
||||
* 点击完成按钮后跳转页面
|
||||
*/
|
||||
private String callbackUrl;
|
||||
private String callBackUrl;
|
||||
/**
|
||||
* 风控信息map-- json串
|
||||
|
|
|
@ -242,8 +242,14 @@ public class JdPayServiceImpl implements IJdPayService {
|
|||
// 用户标识(收银台必传)
|
||||
.userId(userId)
|
||||
// 同步通知URL(收银台必传,页面回调地址)
|
||||
|
||||
.pagebackUrl(jdPayBankProperties.getPageBackUrl() + "?extParam=" + onlinePayment.getExtParam())
|
||||
.pageBackUrl(jdPayBankProperties.getPageBackUrl() + "?extParam=" + onlinePayment.getExtParam())
|
||||
|
||||
.callbackUrl(jdPayBankProperties.getPageBackUrl() + "?extParam=" + onlinePayment.getExtParam())
|
||||
.callBackUrl(jdPayBankProperties.getPageBackUrl() + "?extParam=" + onlinePayment.getExtParam())
|
||||
|
||||
// 支付回调地址.callBackUrl(jdPayBankProperties.getPageBackUrl() + "?extParam=" + onlinePayment.getExtParam())
|
||||
// 支付回调地址
|
||||
.notifyUrl(jdPayBankProperties.getNotifyUrl())
|
||||
// 交易类型
|
||||
|
|
Loading…
Reference in New Issue