Merge branch 'master' into pre

dev-discount
胡锐 2 years ago
commit 48547bb148
  1. 13
      hai-bweb/src/main/java/com/bweb/model/ExportOutRechargeOrder.java
  2. 1
      hai-service/src/main/java/com/hai/dao/OutRechargeOrderMapperExt.java
  3. 11
      hai-service/src/main/java/com/hai/model/OutRechargeOrderModel.java
  4. 28
      hai-service/src/main/java/com/hai/service/impl/HltUnionCardVipServiceImpl.java

@ -19,6 +19,9 @@ public class ExportOutRechargeOrder {
@ExcelProperty("支付方式") @ExcelProperty("支付方式")
private String payTypeName; private String payTypeName;
@ExcelProperty("工会卡")
private String laborUnionCard;
@ExcelProperty("充值内容") @ExcelProperty("充值内容")
private String rechargeContent; private String rechargeContent;
@ -55,6 +58,8 @@ public class ExportOutRechargeOrder {
@ExcelProperty("充值状态") @ExcelProperty("充值状态")
private String rechargeStatusName; private String rechargeStatusName;
// 错误消息 // 错误消息
private String errorMessage; private String errorMessage;
@ -187,6 +192,14 @@ public class ExportOutRechargeOrder {
this.rechargeStatusName = rechargeStatusName; this.rechargeStatusName = rechargeStatusName;
} }
public String getLaborUnionCard() {
return laborUnionCard;
}
public void setLaborUnionCard(String laborUnionCard) {
this.laborUnionCard = laborUnionCard;
}
public String getErrorMessage() { public String getErrorMessage() {
return errorMessage; return errorMessage;
} }

@ -66,6 +66,7 @@ public interface OutRechargeOrderMapperExt {
"SELECT" + "SELECT" +
" order_no as orderNo," + " order_no as orderNo," +
" operator_name as operatorName," + " operator_name as operatorName," +
" labor_union_card as laborUnionCard," +
" case recharge_type when 1 then '快充' when 2 then '慢充' end rechargeTypeName ," + " case recharge_type when 1 then '快充' when 2 then '慢充' end rechargeTypeName ," +
" case pay_type when 2 then '微信支付' when 3 then '工会卡支付' when 4 then '银联支付' when null then '积分抵扣' end payTypeName," + " case pay_type when 2 then '微信支付' when 3 then '工会卡支付' when 4 then '银联支付' when null then '积分抵扣' end payTypeName," +
" recharge_content as rechargeContent,recharge_price as rechargePrice,pay_price as payPrice,discount_deduction_price as discountDeductionPrice,integral_deduction_price as integralDeductionPrice,pay_real_price as payRealPrice," + " recharge_content as rechargeContent,recharge_price as rechargePrice,pay_price as payPrice,discount_deduction_price as discountDeductionPrice,integral_deduction_price as integralDeductionPrice,pay_real_price as payRealPrice," +

@ -23,6 +23,7 @@ public class OutRechargeOrderModel extends OutRechargeOrder {
private Date payTime; private Date payTime;
private String payStatusName; private String payStatusName;
private String rechargeStatusName; private String rechargeStatusName;
private String laborUnionCard;
@Override @Override
public String getOrderNo() { public String getOrderNo() {
@ -174,4 +175,14 @@ public class OutRechargeOrderModel extends OutRechargeOrder {
public void setRechargeStatusName(String rechargeStatusName) { public void setRechargeStatusName(String rechargeStatusName) {
this.rechargeStatusName = rechargeStatusName; this.rechargeStatusName = rechargeStatusName;
} }
@Override
public String getLaborUnionCard() {
return laborUnionCard;
}
@Override
public void setLaborUnionCard(String laborUnionCard) {
this.laborUnionCard = laborUnionCard;
}
} }

@ -83,19 +83,21 @@ public class HltUnionCardVipServiceImpl implements HltUnionCardVipService {
// 1: 1-E信通会员权益,2-工会卡会员权益 // 1: 1-E信通会员权益,2-工会卡会员权益
int equityLevel = 0; int equityLevel = 0;
// 判断用户是否有会员权益 if (cardInfoObject != null) {
for (Object dataObject : cardInfoObject.getJSONArray("data")) { // 判断用户是否有会员权益
JSONObject d = (JSONObject) dataObject; for (Object dataObject : cardInfoObject.getJSONArray("data")) {
if (d.getInteger("level").equals(1) || d.getInteger("level").equals(12)) { JSONObject d = (JSONObject) dataObject;
isVip = true; if (d.getInteger("level").equals(1) || d.getInteger("level").equals(12)) {
equityLevel = 1; isVip = true;
} else if (d.getInteger("level").equals(2)) { equityLevel = 1;
isVip = true; } else if (d.getInteger("level").equals(2)) {
equityLevel = 2; isVip = true;
} else if (d.getInteger("level").equals(3)) { equityLevel = 2;
isVip = true; } else if (d.getInteger("level").equals(3)) {
isFree = true; isVip = true;
equityLevel = 1; isFree = true;
equityLevel = 1;
}
} }
} }

Loading…
Cancel
Save