|
@@ -159,6 +159,7 @@ public class ElectronicMembershipCardController {
|
|
customerCardSetting.setStationId(stationId);
|
|
customerCardSetting.setStationId(stationId);
|
|
customerCardSetting.setCardOilsType(cardOilsType);
|
|
customerCardSetting.setCardOilsType(cardOilsType);
|
|
customerCardSetting.setOrderBy("DESC");
|
|
customerCardSetting.setOrderBy("DESC");
|
|
|
|
+ customerCardSetting.setDelFlag("0");
|
|
//获取用户要充值电子卡的优惠规则信息
|
|
//获取用户要充值电子卡的优惠规则信息
|
|
List<CustomerCardSetting> cardRechargeSettingList = electronicMembershipCardService.getCardRechargeSettingList(customerCardSetting);
|
|
List<CustomerCardSetting> cardRechargeSettingList = electronicMembershipCardService.getCardRechargeSettingList(customerCardSetting);
|
|
if(cardRechargeSettingList !=null && cardRechargeSettingList.size() ==1){
|
|
if(cardRechargeSettingList !=null && cardRechargeSettingList.size() ==1){
|
|
@@ -317,7 +318,7 @@ public class ElectronicMembershipCardController {
|
|
String oilLiters = resultMap.get("orderLiters").toString(); //orderLiters
|
|
String oilLiters = resultMap.get("orderLiters").toString(); //orderLiters
|
|
String receivableAmt = resultMap.get("receivableAmt").toString();
|
|
String receivableAmt = resultMap.get("receivableAmt").toString();
|
|
String amt = resultMap.get("amt").toString();
|
|
String amt = resultMap.get("amt").toString();
|
|
- String orderType = resultMap.get("orderType").toString();
|
|
|
|
|
|
+ String oilType = resultMap.get("oilType").toString();
|
|
String groupId = resultMap.get("groupId").toString();
|
|
String groupId = resultMap.get("groupId").toString();
|
|
String oilGun = resultMap.get("oilGun").toString();
|
|
String oilGun = resultMap.get("oilGun").toString();
|
|
|
|
|
|
@@ -478,7 +479,7 @@ public class ElectronicMembershipCardController {
|
|
calculateIntegral.setReceivableAmt(new BigDecimal(receivableAmt)); //应收金额
|
|
calculateIntegral.setReceivableAmt(new BigDecimal(receivableAmt)); //应收金额
|
|
calculateIntegral.setOilLiters(new BigDecimal(oilLiters)); //加油升数
|
|
calculateIntegral.setOilLiters(new BigDecimal(oilLiters)); //加油升数
|
|
calculateIntegral.setOilName(oilName); //油品名称
|
|
calculateIntegral.setOilName(oilName); //油品名称
|
|
- calculateIntegral.setOilType(orderType); //油类
|
|
|
|
|
|
+ calculateIntegral.setOilType(oilType); //油类
|
|
calculateIntegral.setStationId(Integer.valueOf(stationId)); //油站ID
|
|
calculateIntegral.setStationId(Integer.valueOf(stationId)); //油站ID
|
|
calculateIntegral.setUnionId(unionId); //客户UnionID
|
|
calculateIntegral.setUnionId(unionId); //客户UnionID
|
|
calculateIntegral.setOpenId(minaOpenid); //小程序openId
|
|
calculateIntegral.setOpenId(minaOpenid); //小程序openId
|
|
@@ -585,10 +586,14 @@ public class ElectronicMembershipCardController {
|
|
m.put("stationId", infoMap.get("stationId").toString());
|
|
m.put("stationId", infoMap.get("stationId").toString());
|
|
}
|
|
}
|
|
|
|
|
|
-// if(infoMap !=null && infoMap.containsKey("orderType") && infoMap.get("orderType") !=null){
|
|
|
|
-// m.put("orderType", infoMap.get("orderType").toString());
|
|
|
|
-// }
|
|
|
|
- m.put("orderType", "oil");
|
|
|
|
|
|
+ if(infoMap !=null && infoMap.containsKey("oilType") && infoMap.get("oilType") !=null){
|
|
|
|
+ if(infoMap.get("oilType").equals("3")){
|
|
|
|
+ m.put("orderType", "noOil");
|
|
|
|
+ }else {
|
|
|
|
+ m.put("orderType", "oil");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //m.put("orderType", "oil");
|
|
logger.info("要推送的订单的信息:" +m.toString());
|
|
logger.info("要推送的订单的信息:" +m.toString());
|
|
//定义推送格式
|
|
//定义推送格式
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
@@ -656,7 +661,7 @@ public class ElectronicMembershipCardController {
|
|
if(infoMap.containsKey("oilName") && infoMap.get("oilName") !=null ){
|
|
if(infoMap.containsKey("oilName") && infoMap.get("oilName") !=null ){
|
|
oilNameP =infoMap.get("oilName").toString();
|
|
oilNameP =infoMap.get("oilName").toString();
|
|
}
|
|
}
|
|
- if(!infoMap.containsKey("orderType") && infoMap.get("orderType").equals("3")) {
|
|
|
|
|
|
+ if(!infoMap.containsKey("oilType") && infoMap.get("oilType").equals("3")) {
|
|
//加油升数
|
|
//加油升数
|
|
if (infoMap.containsKey("orderLiters") && infoMap.get("orderLiters") != null) {
|
|
if (infoMap.containsKey("orderLiters") && infoMap.get("orderLiters") != null) {
|
|
orderLitersP = infoMap.get("orderLiters") + "";
|
|
orderLitersP = infoMap.get("orderLiters") + "";
|
|
@@ -699,13 +704,13 @@ public class ElectronicMembershipCardController {
|
|
content1 += "订单号:"+orderNoP+" <BR>";
|
|
content1 += "订单号:"+orderNoP+" <BR>";
|
|
content1 += "时间:"+createdDateP+" <BR>";
|
|
content1 += "时间:"+createdDateP+" <BR>";
|
|
content1 += "油站:"+stationNameP+" <BR>";
|
|
content1 += "油站:"+stationNameP+" <BR>";
|
|
- if(!infoMap.containsKey("orderType") && infoMap.get("orderType").toString().equals("3")){
|
|
|
|
|
|
+ if(!infoMap.containsKey("oilType") && infoMap.get("oilType").toString().equals("3")){
|
|
content1 += "油品: "+oilNameP+" <BR>";
|
|
content1 += "油品: "+oilNameP+" <BR>";
|
|
content1 += "油量: "+orderLitersP+" 升<BR>";
|
|
content1 += "油量: "+orderLitersP+" 升<BR>";
|
|
content1 += "单价: "+oilPirceP+" L/元<BR>";
|
|
content1 += "单价: "+oilPirceP+" L/元<BR>";
|
|
}
|
|
}
|
|
content1 += "<BOLD><B>原价: "+receivableAmtP+" 元</B></BOLD><BR>";
|
|
content1 += "<BOLD><B>原价: "+receivableAmtP+" 元</B></BOLD><BR>";
|
|
- if(!infoMap.containsKey("orderType") && infoMap.get("orderType").toString().equals("3")){
|
|
|
|
|
|
+ if(!infoMap.containsKey("oilType") && infoMap.get("oilType").toString().equals("3")){
|
|
content1 += "优惠: "+discountAmtP+" 元<BR>";
|
|
content1 += "优惠: "+discountAmtP+" 元<BR>";
|
|
}
|
|
}
|
|
content1 += "支付: "+amtP+" 元<BR>";
|
|
content1 += "支付: "+amtP+" 元<BR>";
|
|
@@ -718,13 +723,13 @@ public class ElectronicMembershipCardController {
|
|
content2 += "订单号:"+orderNoP+" <BR>";
|
|
content2 += "订单号:"+orderNoP+" <BR>";
|
|
content2 += "时间:"+createdDateP+"<BR>";
|
|
content2 += "时间:"+createdDateP+"<BR>";
|
|
content2 += "油站:"+stationNameP+" <BR>";
|
|
content2 += "油站:"+stationNameP+" <BR>";
|
|
- if(!infoMap.containsKey("orderType") && infoMap.get("orderType").toString().equals("3")){
|
|
|
|
|
|
+ if(!infoMap.containsKey("oilType") && infoMap.get("oilType").toString().equals("3")){
|
|
content2 += "油品: "+oilNameP+" <BR>";
|
|
content2 += "油品: "+oilNameP+" <BR>";
|
|
content2 += "油量: "+orderLitersP+" 升<BR>";
|
|
content2 += "油量: "+orderLitersP+" 升<BR>";
|
|
content2 += "单价: "+oilPirceP+" L/元<BR>";
|
|
content2 += "单价: "+oilPirceP+" L/元<BR>";
|
|
}
|
|
}
|
|
content2 += "<BOLD><B>原价: "+receivableAmtP+" 元</B></BOLD><BR>";
|
|
content2 += "<BOLD><B>原价: "+receivableAmtP+" 元</B></BOLD><BR>";
|
|
- if(!infoMap.containsKey("orderType") && infoMap.get("orderType").toString().equals("3")){
|
|
|
|
|
|
+ if(!infoMap.containsKey("oilType") && infoMap.get("oilType").toString().equals("3")){
|
|
content2 += "优惠: "+discountAmtP+" 元<BR>";
|
|
content2 += "优惠: "+discountAmtP+" 元<BR>";
|
|
}
|
|
}
|
|
content2 += "支付: "+amtP+" 元<BR>";
|
|
content2 += "支付: "+amtP+" 元<BR>";
|