no message

This commit is contained in:
DESKTOP-369JRHT\12997 2024-06-06 11:50:31 +08:00
parent 791e98aa14
commit 5a794a225d
7 changed files with 73 additions and 16 deletions

View File

@ -27,6 +27,7 @@ public class CardValueRecordDTO extends CardValueRecord {
private String appltType; private String appltType;
private String paymentType; private String paymentType;
private String payStatus; private String payStatus;
private String payChannel;
private String types; private String types;
@JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
private Date expireTime; private Date expireTime;

View File

@ -434,6 +434,7 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
map.put("type","CVR"); map.put("type","CVR");
map.put("orderId",cardValueRecordDTO.getId().toString()); map.put("orderId",cardValueRecordDTO.getId().toString());
map.put("storeId",nowAccountInfo.getStoreId().toString()); map.put("storeId",nowAccountInfo.getStoreId().toString());
map.put("payChannel",cardValueRecordDTO.getPayChannel());
// 调用支付接口 // 调用支付接口
try { try {

View File

@ -148,7 +148,9 @@ public class Handover {
sb.append("<table><tr><td>支付方式</td><td>金额</td></tr>"); sb.append("<table><tr><td>支付方式</td><td>金额</td></tr>");
if (ObjectUtil.isNotEmpty(paymentAggregationAll)) { if (ObjectUtil.isNotEmpty(paymentAggregationAll)) {
for (Map<String, Object> stringObjectMap : paymentAggregationAll) { for (Map<String, Object> stringObjectMap : paymentAggregationAll) {
sb.append("<tr><td>"+calculatePaymentMethod(stringObjectMap.get("payType").toString()).toString()+"</td>");
sb.append("<tr><td>"+calculatePaymentMethod(stringObjectMap.get("payType").toString())+"</td>");
sb.append("<td>"+Optional.ofNullable(stringObjectMap.get("paidAmount")).orElse("0").toString()+"</td></tr>"); sb.append("<td>"+Optional.ofNullable(stringObjectMap.get("paidAmount")).orElse("0").toString()+"</td></tr>");
} }
} }

View File

@ -22,7 +22,7 @@ public class PrintIntegralReport {
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
sb.append("<center>订单统计\r\n</center>"); sb.append("<center>积分兑换\r\n</center>");
sb.append("打印时间:"+formattedDateTime +"\r\n"); sb.append("打印时间:"+formattedDateTime +"\r\n");
sb.append("店铺名称:"+nowAccountInfo.getStoreName() +"\r\n"); sb.append("店铺名称:"+nowAccountInfo.getStoreName() +"\r\n");
@ -30,10 +30,10 @@ public class PrintIntegralReport {
if (ObjectUtil.isNotEmpty(handover.get("shoppingCart"))) { if (ObjectUtil.isNotEmpty(handover.get("shoppingCart"))) {
sb.append("<table><tr><td>商品名称</td><td>商品数量</td><td>价格</td></tr>"); sb.append("<table><tr><td>商品名称</td><td>商品数量</td><td>价格</td></tr>");
List<Map<String,String>> o = (List<Map<String,String>>)handover.get("shoppingCart"); List<Map<String,Object>> o = (List<Map<String,Object>>)handover.get("shoppingCart");
for (Map<String, String> stringStringMap : o) { for (Map<String, Object> stringStringMap : o) {
sb.append("<tr><td>"+stringStringMap.get("giftName")+"</td>"); sb.append("<tr><td>"+stringStringMap.get("giftName")+"</td>");
sb.append("<td>"+((ObjectUtil.isNotEmpty(stringStringMap.get("markPurchases")))?stringStringMap.get("markPurchases").toString():"0"+"</td>"); sb.append("<td>"+((ObjectUtil.isNotEmpty(stringStringMap.get("markPurchases")))?stringStringMap.get("markPurchases").toString():"0")+"</td>");
sb.append("<td>"+ stringStringMap.get("price")+"</td></tr>"); sb.append("<td>"+ stringStringMap.get("price")+"</td></tr>");
} }
sb.append("</table>"); sb.append("</table>");
@ -45,12 +45,10 @@ public class PrintIntegralReport {
if (ObjectUtil.isNotEmpty(handover.get("allPoints"))) { if (ObjectUtil.isNotEmpty(handover.get("allPoints"))) {
sb.append("总积分:"+handover.get("allPoints")+"\r\n"); sb.append("总积分:"+handover.get("allPoints")+"\r\n");
sb.append("--------------------------------\r\n"); sb.append("--------------------------------\r\n");
} }
if (ObjectUtil.isNotEmpty(handover.get("allAmout"))) { if (ObjectUtil.isNotEmpty(handover.get("allAmout"))) {
sb.append("总价格:¥"+handover.get("allAmout")+"\r\n"); sb.append("总价格:¥"+handover.get("allAmout")+"\r\n");
sb.append("--------------------------------\r\n"); sb.append("--------------------------------\r\n");
} }
sb.append("<center>谢谢惠顾,欢迎下次光临!</center>"); sb.append("<center>谢谢惠顾,欢迎下次光临!</center>");

View File

@ -9,7 +9,7 @@
left join mt_invitation mi on mu.id = mi.userId left join mt_invitation mi on mu.id = mi.userId
</sql> </sql>
<sql id="selectUserAndBalance"> <sql id="selectUserAndBalance">
select mu.*,mub.grade_id,mub.card_balance,mub.points,mub.consume_num,mub.growth_value,mub.refuel_money, select mu.*,mub.id balanceId,mub.grade_id,mub.card_balance,mub.points,mub.consume_num,mub.growth_value,mub.refuel_money,
mub.second_card,mub.fixing_level,mub.create_time balCreateTime mub.second_card,mub.fixing_level,mub.create_time balCreateTime
FROM mt_user mu FROM mt_user mu
LEFT JOIN mt_user_balance mub ON mu.id = mub.mt_user_id LEFT JOIN mt_user_balance mub ON mu.id = mub.mt_user_id

View File

@ -175,7 +175,7 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
*/ */
@Override @Override
public LJUserVo selectUserById(int id,Integer storeId) { public LJUserVo selectUserById(int id,Integer storeId) {
if (storeId==null){ if (ObjectUtil.isEmpty(storeId)){
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
storeId = nowAccountInfo.getStoreId(); storeId = nowAccountInfo.getStoreId();
} }

View File

@ -127,11 +127,11 @@
listindex: 0, listindex: 0,
memberId: 0, memberId: 0,
numList: [ numList: [
"50元", // "50",
"100元", // "100",
"300元", // "300",
"500元", // "500",
"1000元", // "1000",
"自定义金额", "自定义金额",
], ],
isChooseUser: false, isChooseUser: false,
@ -173,6 +173,29 @@
methods: { methods: {
// //
custom() { custom() {
if (this.numList.length > 0) {
// const changeList = this.cardValueList
this.numList.forEach(change => {
if (data >= change.rechargeBalance) {
this.order.points = change.points
this.order.bidBalance = change.bidBalance
this.order.giftBalance = change.giftBalance
this.order.growthValue = change.growthValue
this.order.rechargeBalance = change.rechargeBalance
this.order.royaltyType = change.royaltyType
this.order.percentageCommissions = change.percentageCommissions
this.order.amountCommission = change.amountCommission
this.order.cardValueId = change.id
}
})
}
this.order.rechargType = 1
console.log(this.value); console.log(this.value);
this.order.amount = this.value this.order.amount = this.value
this.realyPayBills = this.order.amount this.realyPayBills = this.order.amount
@ -189,11 +212,25 @@
} }
}).then((res) => { }).then((res) => {
this.numList = res.data.records this.numList = res.data.records
this.numList.sort((a, b) => a.rechargeBalance - b.rechargeBalance);
this.order.amount = this.numList[0].rechargeBalance this.order.amount = this.numList[0].rechargeBalance
this.order.rechargeBalance = this.numList[0].rechargeBalance this.order.rechargeBalance = this.numList[0].rechargeBalance
this.order.points = this.numList[0].points this.order.points = this.numList[0].points
this.realyPayBills = this.numList[0].rechargeBalance this.realyPayBills = this.numList[0].rechargeBalance
this.order.bidBalance = this.numList[0].bidBalance
this.order.points = this.numList[0].points
this.order.giftBalance = this.numList[0].giftBalance
this.order.growthValue = this.numList[0].growthValue
this.order.cardValueId = this.numList[0].id
// this.order.amount = null
this.order.royaltyType = this.numList[0].royaltyType
this.order.rechargType = 0
this.order.percentageCommissions = this.numList[0].percentageCommissions
this.order.amountCommission = this.numList[0].amountCommission
}) })
}, },
getmemberId(num, payType) { getmemberId(num, payType) {
@ -216,12 +253,24 @@
}, },
getindex(index, data) { getindex(index, data) {
this.listindex = index this.listindex = index
this.order.rechargType = 0
if (data) { if (data) {
this.order.amount = data.rechargeBalance this.order.amount = data.rechargeBalance
this.order.rechargeBalance = data.rechargeBalance this.order.rechargeBalance = data.rechargeBalance
this.order.points = data.points this.order.points = data.points
this.realyPayBills = data.rechargeBalance this.realyPayBills = data.rechargeBalance
this.order.rechargeBalance = data.rechargeBalance
this.order.bidBalance = file.bidBalance
this.order.points = file.points
this.order.giftBalance = file.giftBalance
this.order.growthValue = file.growthValue
this.order.cardValueId = file.id
// this.order.amount = null
this.order.royaltyType = file.royaltyType
this.order.percentageCommissions = file.percentageCommissions
this.order.amountCommission = file.amountCommission
} else { } else {
this.order.amount = this.value this.order.amount = this.value
this.realyPayBills = this.value this.realyPayBills = this.value
@ -273,9 +322,15 @@
this.order.authCode = this.authCode this.order.authCode = this.authCode
this.order.realyPayBills = this.realyPayBills this.order.realyPayBills = this.realyPayBills
this.order.actualPayment = actualPayment this.order.actualPayment = actualPayment
// cardValueId
// growthValue
// rechargeType
// royaltyType
this.order.makeChange = 0
// url: 'business/marketingActivi ty/cardFuelRecord/prepaidFuelTopUp',
request({ request({
url: 'business/marketingActivity/cardFuelRecord/prepaidFuelTopUp', url: 'business/marketingActivity/cardValueRecord/prepaidCardTopUp',
method: 'post', method: 'post',
data: this.order data: this.order
}).then((res) => { }).then((res) => {