Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e73ff9722c
@ -463,7 +463,9 @@ public class CardFuelRecordServiceImpl implements CardFuelRecordService {
|
|||||||
//会员信息
|
//会员信息
|
||||||
LJUserVo ljUserVo = ljUserMapper.queryUserByChainStoreId(nowAccountInfo.getId(),store.getChainStoreId());
|
LJUserVo ljUserVo = ljUserMapper.queryUserByChainStoreId(nowAccountInfo.getId(),store.getChainStoreId());
|
||||||
//员工信息
|
//员工信息
|
||||||
LJStaff ljStaff = mtStaffService.selectStaffById(cardFuelRecordDTO.getMtStaffId());
|
LJStaff ljStaff = new LJStaff();
|
||||||
|
if (ObjectUtil.isNotEmpty(cardFuelRecordDTO.getMtStaffId()))
|
||||||
|
ljStaff = mtStaffService.selectStaffById(cardFuelRecordDTO.getMtStaffId());
|
||||||
//查询囤油卡信息
|
//查询囤油卡信息
|
||||||
CardFuelDiesel cardFuelDiesel = cardFuelDieselService.getById(cardFuelRecordDTO.getId());
|
CardFuelDiesel cardFuelDiesel = cardFuelDieselService.getById(cardFuelRecordDTO.getId());
|
||||||
cardFuleOrders.setCardFuleId(cardFuelDiesel.getId());
|
cardFuleOrders.setCardFuleId(cardFuelDiesel.getId());
|
||||||
@ -491,9 +493,11 @@ public class CardFuelRecordServiceImpl implements CardFuelRecordService {
|
|||||||
cardFuleOrders.setName(ljUserVo.getName());
|
cardFuleOrders.setName(ljUserVo.getName());
|
||||||
cardFuleOrders.setMobile(ljUserVo.getMobile());
|
cardFuleOrders.setMobile(ljUserVo.getMobile());
|
||||||
//员工信息
|
//员工信息
|
||||||
|
if (ObjectUtil.isNotEmpty(ljStaff)) {
|
||||||
cardFuleOrders.setStaffId(ljStaff.getId());
|
cardFuleOrders.setStaffId(ljStaff.getId());
|
||||||
cardFuleOrders.setRealName(ljStaff.getRealName());
|
cardFuleOrders.setRealName(ljStaff.getRealName());
|
||||||
cardFuleOrders.setStaffMobile(ljStaff.getMobile());
|
cardFuleOrders.setStaffMobile(ljStaff.getMobile());
|
||||||
|
}
|
||||||
//订单金额
|
//订单金额
|
||||||
cardFuleOrders.setAmount(cardFuelDiesel.getRechargeBalance());
|
cardFuleOrders.setAmount(cardFuelDiesel.getRechargeBalance());
|
||||||
//支付金额
|
//支付金额
|
||||||
@ -522,7 +526,8 @@ public class CardFuelRecordServiceImpl implements CardFuelRecordService {
|
|||||||
if (map.get("code").equals("success")){
|
if (map.get("code").equals("success")){
|
||||||
return JSONObject.parseObject(JSONObject.toJSONString(map.get("data")),ReturnParameter.class);
|
return JSONObject.parseObject(JSONObject.toJSONString(map.get("data")),ReturnParameter.class);
|
||||||
}else {
|
}else {
|
||||||
throw new Exception(map.get("msg").toString());
|
// throw new Exception(map.get("msg").toString());
|
||||||
|
return new ReturnParameter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,7 +282,8 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
|
|||||||
if (map.get("code").equals("success")){
|
if (map.get("code").equals("success")){
|
||||||
return JSONObject.parseObject(JSONObject.toJSONString(map.get("data")),ReturnParameter.class);
|
return JSONObject.parseObject(JSONObject.toJSONString(map.get("data")),ReturnParameter.class);
|
||||||
}else {
|
}else {
|
||||||
throw new Exception(map.get("msg").toString());
|
// throw new Exception(map.get("msg").toString());
|
||||||
|
return new ReturnParameter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -316,6 +316,14 @@
|
|||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
console.log(res, _this.appltType)
|
console.log(res, _this.appltType)
|
||||||
if (_this.appltType == "WECHAT") {
|
if (_this.appltType == "WECHAT") {
|
||||||
|
if(!res.data.reservedPayInfo){
|
||||||
|
uni.showToast({
|
||||||
|
title:'支付失败,请联系商家',
|
||||||
|
icon:"none"
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let payProvider = "wxpay"
|
let payProvider = "wxpay"
|
||||||
_this.orderInfo = JSON.parse(res.data.reservedPayInfo);
|
_this.orderInfo = JSON.parse(res.data.reservedPayInfo);
|
||||||
uni.requestPayment({
|
uni.requestPayment({
|
||||||
@ -352,6 +360,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_this.appltType == "ALIPAY") {
|
if (_this.appltType == "ALIPAY") {
|
||||||
|
if(!res.data.reservedTransactionId){
|
||||||
|
uni.showToast({
|
||||||
|
title:'支付失败,请联系商家',
|
||||||
|
icon:"none"
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
my.tradePay({
|
my.tradePay({
|
||||||
tradeNO: res.data.reservedTransactionId
|
tradeNO: res.data.reservedTransactionId
|
||||||
}, function(resp) {
|
}, function(resp) {
|
||||||
@ -414,6 +429,13 @@
|
|||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
|
||||||
if (_this.appltType == "WECHAT") {
|
if (_this.appltType == "WECHAT") {
|
||||||
|
if(!res.data.reservedPayInfo){
|
||||||
|
uni.showToast({
|
||||||
|
title:'支付失败,请联系商家',
|
||||||
|
icon:"none"
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
let payProvider = "wxpay"
|
let payProvider = "wxpay"
|
||||||
_this.orderInfo = JSON.parse(res.data.reservedPayInfo);
|
_this.orderInfo = JSON.parse(res.data.reservedPayInfo);
|
||||||
uni.requestPayment({
|
uni.requestPayment({
|
||||||
@ -450,23 +472,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_this.appltType == "ALIPAY") {
|
if (_this.appltType == "ALIPAY") {
|
||||||
|
if(!res.data.reservedTransactionId){
|
||||||
|
uni.showToast({
|
||||||
|
title:'支付失败,请联系商家',
|
||||||
|
icon:"none"
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
my.tradePay({
|
my.tradePay({
|
||||||
tradeNO: res.data.reservedTransactionId
|
tradeNO: res.data.reservedTransactionId
|
||||||
}, function(resp) {
|
}, function(resp) {
|
||||||
if (resp.resultCode == '9000') {
|
if (resp.resultCode == '9000') {
|
||||||
console.log("支付成功")
|
console.log("支付成功")
|
||||||
// 支付成功后调用修改使用后的优惠券情况
|
|
||||||
/* _this.preferentialData.storeId = _this.oilOrder.storeId
|
|
||||||
_this.preferentialData.orderAmount = _this.oilOrder.orderAmount
|
|
||||||
_this.preferentialData.oilId = _this.oilOrder.oils
|
|
||||||
_this.preferentialData.mtUserLevel = _this.user.gradeId
|
|
||||||
request({
|
|
||||||
url: "business/marketingActivity/cardFavorableRecord/updateCardAndActiveById",
|
|
||||||
method: 'post',
|
|
||||||
data: _this.preferentialData,
|
|
||||||
}).then((res)=>{
|
|
||||||
console.log(res);
|
|
||||||
}) */
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pagesRefuel/orderSuccess/index'
|
url: '/pagesRefuel/orderSuccess/index'
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user