提交代码

master
胡锐 4 months ago
parent 43ab8c041c
commit ec8aefb60b
  1. 28
      bweb/src/main/java/com/bweb/controller/BsDeviceController.java
  2. 2
      bweb/src/main/java/com/bweb/controller/BsGasChannelConfigController.java
  3. 49
      cweb/src/main/java/com/cweb/controller/order/OrderPayController.java
  4. 32
      service/src/main/java/com/hfkj/dao/BsGasChannelConfigMapper.java
  5. 14
      service/src/main/java/com/hfkj/dao/BsGasChannelConfigSqlProvider.java
  6. 16
      service/src/main/java/com/hfkj/entity/BsGasChannelConfig.java
  7. 60
      service/src/main/java/com/hfkj/entity/BsGasChannelConfigExample.java
  8. 2
      service/src/main/java/com/hfkj/service/order/impl/BsOrderRefundServiceImpl.java

@ -27,6 +27,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
@Controller @Controller
@ -204,4 +205,31 @@ public class BsDeviceController {
} }
} }
@RequestMapping(value="/settingReceipt",method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "设置小票打印内容")
public ResponseData settingReceipt(@RequestBody JSONObject body) {
try {
if (body == null
|| StringUtils.isBlank(body.getString("merNo"))
|| body.getInteger("receiptOutContent") == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
}
Map<String,Object> param = new HashMap<>();
param.put("merNo", body.getString("merNo"));
List<BsDevice> deviceList = deviceService.getDeviceList(param);
for (BsDevice device : deviceList) {
device.setReceiptOutContent(body.getInteger("receiptOutContent"));
deviceService.editDevice(device);
}
return ResponseMsgUtil.success("操作成功");
} catch (Exception e) {
log.error("HighDeviceController -> settingReceipt() error!",e);
return ResponseMsgUtil.exception(e);
}
}
} }

@ -39,6 +39,7 @@ public class BsGasChannelConfigController {
|| body.getGasChannelType() == null || body.getGasChannelType() == null
|| StringUtils.isBlank(body.getChannelMerNo()) || StringUtils.isBlank(body.getChannelMerNo())
|| StringUtils.isBlank(body.getChannelMerKey()) || StringUtils.isBlank(body.getChannelMerKey())
|| body.getTradeStatus() == null
|| body.getLedgerAccountFlag() == null || body.getLedgerAccountFlag() == null
) { ) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
@ -68,6 +69,7 @@ public class BsGasChannelConfigController {
} else { } else {
config.setLedgerAccountData(null); config.setLedgerAccountData(null);
} }
config.setTradeStatus(body.getTradeStatus());
config.setChannelMerNo(body.getChannelMerNo()); config.setChannelMerNo(body.getChannelMerNo());
config.setChannelMerKey(body.getChannelMerKey()); config.setChannelMerKey(body.getChannelMerKey());
config.setLedgerAccountFlag(body.getLedgerAccountFlag()); config.setLedgerAccountFlag(body.getLedgerAccountFlag());

@ -107,6 +107,9 @@ public class OrderPayController {
if (payConfig == null) { if (payConfig == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商户未配置支付"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商户未配置支付");
} }
if (payConfig.getTradeStatus().equals(false)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "油站维护中暂停交易!");
}
payMerNo = payConfig.getChannelMerNo(); payMerNo = payConfig.getChannelMerNo();
payMerKey = payConfig.getChannelMerKey(); payMerKey = payConfig.getChannelMerKey();
ledgerAccountFlag = payConfig.getLedgerAccountFlag(); ledgerAccountFlag = payConfig.getLedgerAccountFlag();
@ -165,26 +168,54 @@ public class OrderPayController {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "交易订单不处于待支付"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "交易订单不处于待支付");
} }
String merNo = order.getOrderChildList().get(0).getMerNo(); String merNo = order.getOrderChildList().get(0).getMerNo();
// 查询平台 // 查询商户
BsMerchantPayConfig merPay = merPayConfigService.getConfig(merNo); BsMerchant merchant = merchantService.getMerchant(merNo);
if (merPay == null) { if (merchant == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商户未配置支付"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的商户");
}
String payMerNo = "";
String payMerKey = "";
Boolean ledgerAccountFlag = false;
if (merchant.getSourceType().equals(MerchantSourceTypeEnum.type1.getNumber())) {
// 查询平台
BsMerchantPayConfig merPay = merPayConfigService.getConfig(merNo);
if (merPay == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商户未配置支付");
}
payMerNo = merPay.getChannelMerNo();
payMerKey = merPay.getChannelMerKey();
ledgerAccountFlag = merPay.getLedgerAccountFlag();
} else if (merchant.getSourceType().equals(MerchantSourceTypeEnum.type2.getNumber())) {
// 查询渠道支付配置
BsGasChannelConfig payConfig = gasChannelConfigService.getDetail(MerchantSourceTypeEnum.type2);
if (payConfig == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商户未配置支付");
}
if (payConfig.getTradeStatus().equals(false)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "油站维护中暂停交易!");
}
payMerNo = payConfig.getChannelMerNo();
payMerKey = payConfig.getChannelMerKey();
ledgerAccountFlag = payConfig.getLedgerAccountFlag();
} }
order.setPayType(OrderPayTypeEnum.type2.getCode()); order.setPayType(OrderPayTypeEnum.type2.getCode());
// 请求支付渠道 // 请求支付渠道
Map<Object, Object> preorder = HuiPayService.preorder(merPay.getChannelMerNo(), merPay.getChannelMerKey(), null, body.getString("userId"), merPay.getLedgerAccountFlag(), order); Map<Object, Object> preorder = HuiPayService.preorder(payMerNo, payMerKey, null, body.getString("userId"), ledgerAccountFlag, order);
// 交易入账 // 交易入账
BsOrderSettle orderSettle = orderSettleService.getData(order.getOrderNo()); BsOrderSettle orderSettle = orderSettleService.getData(order.getOrderNo());
if (orderSettle == null) { if (orderSettle == null) {
orderSettle = new BsOrderSettle(); orderSettle = new BsOrderSettle();
} }
orderSettle.setMerNo(merPay.getMerNo()); orderSettle.setMerNo(merNo);
orderSettle.setOrderNo(order.getOrderNo()); orderSettle.setOrderNo(order.getOrderNo());
orderSettle.setSettleMerNo(merPay.getChannelMerNo()); orderSettle.setSettleMerNo(payMerNo);
orderSettle.setSettleMerKey(merPay.getChannelMerKey()); orderSettle.setSettleMerKey(payMerKey);
orderSettle.setSettleAmount(order.getPayRealPrice()); orderSettle.setSettleAmount(order.getPayRealPrice());
orderSettle.setLedgerFlag(merPay.getLedgerAccountFlag()); orderSettle.setLedgerFlag(ledgerAccountFlag);
if (orderSettle.getLedgerFlag()) { if (orderSettle.getLedgerFlag()) {
orderSettle.setLedgerAmount(order.getPayRealPrice()); orderSettle.setLedgerAmount(order.getPayRealPrice());
orderSettle.setLedgerOrderNo("L"+ DateUtil.date2String(new Date(), "yyMMddHHmmss") + RandomUtils.number(3, false)); orderSettle.setLedgerOrderNo("L"+ DateUtil.date2String(new Date(), "yyMMddHHmmss") + RandomUtils.number(3, false));

@ -39,18 +39,18 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt {
int deleteByPrimaryKey(Long id); int deleteByPrimaryKey(Long id);
@Insert({ @Insert({
"insert into bs_gas_channel_config (gas_channel_type, channel_type, ", "insert into bs_gas_channel_config (gas_channel_type, trade_status, ",
"channel_mer_no, channel_mer_key, ", "channel_type, channel_mer_no, ",
"ledger_account_flag, ledger_account_data, ", "channel_mer_key, ledger_account_flag, ",
"create_time, update_time, ", "ledger_account_data, create_time, ",
"`status`, ext_1, ext_2, ", "update_time, `status`, ",
"ext_3)", "ext_1, ext_2, ext_3)",
"values (#{gasChannelType,jdbcType=INTEGER}, #{channelType,jdbcType=INTEGER}, ", "values (#{gasChannelType,jdbcType=INTEGER}, #{tradeStatus,jdbcType=BIT}, ",
"#{channelMerNo,jdbcType=VARCHAR}, #{channelMerKey,jdbcType=VARCHAR}, ", "#{channelType,jdbcType=INTEGER}, #{channelMerNo,jdbcType=VARCHAR}, ",
"#{ledgerAccountFlag,jdbcType=BIT}, #{ledgerAccountData,jdbcType=VARCHAR}, ", "#{channelMerKey,jdbcType=VARCHAR}, #{ledgerAccountFlag,jdbcType=BIT}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{ledgerAccountData,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ",
"#{ext3,jdbcType=VARCHAR})" "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(BsGasChannelConfig record); int insert(BsGasChannelConfig record);
@ -63,6 +63,7 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt {
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="gas_channel_type", property="gasChannelType", jdbcType=JdbcType.INTEGER), @Result(column="gas_channel_type", property="gasChannelType", jdbcType=JdbcType.INTEGER),
@Result(column="trade_status", property="tradeStatus", jdbcType=JdbcType.BIT),
@Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER), @Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER),
@Result(column="channel_mer_no", property="channelMerNo", jdbcType=JdbcType.VARCHAR), @Result(column="channel_mer_no", property="channelMerNo", jdbcType=JdbcType.VARCHAR),
@Result(column="channel_mer_key", property="channelMerKey", jdbcType=JdbcType.VARCHAR), @Result(column="channel_mer_key", property="channelMerKey", jdbcType=JdbcType.VARCHAR),
@ -79,14 +80,16 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt {
@Select({ @Select({
"select", "select",
"id, gas_channel_type, channel_type, channel_mer_no, channel_mer_key, ledger_account_flag, ", "id, gas_channel_type, trade_status, channel_type, channel_mer_no, channel_mer_key, ",
"ledger_account_data, create_time, update_time, `status`, ext_1, ext_2, ext_3", "ledger_account_flag, ledger_account_data, create_time, update_time, `status`, ",
"ext_1, ext_2, ext_3",
"from bs_gas_channel_config", "from bs_gas_channel_config",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="gas_channel_type", property="gasChannelType", jdbcType=JdbcType.INTEGER), @Result(column="gas_channel_type", property="gasChannelType", jdbcType=JdbcType.INTEGER),
@Result(column="trade_status", property="tradeStatus", jdbcType=JdbcType.BIT),
@Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER), @Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER),
@Result(column="channel_mer_no", property="channelMerNo", jdbcType=JdbcType.VARCHAR), @Result(column="channel_mer_no", property="channelMerNo", jdbcType=JdbcType.VARCHAR),
@Result(column="channel_mer_key", property="channelMerKey", jdbcType=JdbcType.VARCHAR), @Result(column="channel_mer_key", property="channelMerKey", jdbcType=JdbcType.VARCHAR),
@ -113,6 +116,7 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt {
@Update({ @Update({
"update bs_gas_channel_config", "update bs_gas_channel_config",
"set gas_channel_type = #{gasChannelType,jdbcType=INTEGER},", "set gas_channel_type = #{gasChannelType,jdbcType=INTEGER},",
"trade_status = #{tradeStatus,jdbcType=BIT},",
"channel_type = #{channelType,jdbcType=INTEGER},", "channel_type = #{channelType,jdbcType=INTEGER},",
"channel_mer_no = #{channelMerNo,jdbcType=VARCHAR},", "channel_mer_no = #{channelMerNo,jdbcType=VARCHAR},",
"channel_mer_key = #{channelMerKey,jdbcType=VARCHAR},", "channel_mer_key = #{channelMerKey,jdbcType=VARCHAR},",

@ -32,6 +32,10 @@ public class BsGasChannelConfigSqlProvider {
sql.VALUES("gas_channel_type", "#{gasChannelType,jdbcType=INTEGER}"); sql.VALUES("gas_channel_type", "#{gasChannelType,jdbcType=INTEGER}");
} }
if (record.getTradeStatus() != null) {
sql.VALUES("trade_status", "#{tradeStatus,jdbcType=BIT}");
}
if (record.getChannelType() != null) { if (record.getChannelType() != null) {
sql.VALUES("channel_type", "#{channelType,jdbcType=INTEGER}"); sql.VALUES("channel_type", "#{channelType,jdbcType=INTEGER}");
} }
@ -87,6 +91,7 @@ public class BsGasChannelConfigSqlProvider {
sql.SELECT("id"); sql.SELECT("id");
} }
sql.SELECT("gas_channel_type"); sql.SELECT("gas_channel_type");
sql.SELECT("trade_status");
sql.SELECT("channel_type"); sql.SELECT("channel_type");
sql.SELECT("channel_mer_no"); sql.SELECT("channel_mer_no");
sql.SELECT("channel_mer_key"); sql.SELECT("channel_mer_key");
@ -123,6 +128,10 @@ public class BsGasChannelConfigSqlProvider {
sql.SET("gas_channel_type = #{record.gasChannelType,jdbcType=INTEGER}"); sql.SET("gas_channel_type = #{record.gasChannelType,jdbcType=INTEGER}");
} }
if (record.getTradeStatus() != null) {
sql.SET("trade_status = #{record.tradeStatus,jdbcType=BIT}");
}
if (record.getChannelType() != null) { if (record.getChannelType() != null) {
sql.SET("channel_type = #{record.channelType,jdbcType=INTEGER}"); sql.SET("channel_type = #{record.channelType,jdbcType=INTEGER}");
} }
@ -177,6 +186,7 @@ public class BsGasChannelConfigSqlProvider {
sql.SET("id = #{record.id,jdbcType=BIGINT}"); sql.SET("id = #{record.id,jdbcType=BIGINT}");
sql.SET("gas_channel_type = #{record.gasChannelType,jdbcType=INTEGER}"); sql.SET("gas_channel_type = #{record.gasChannelType,jdbcType=INTEGER}");
sql.SET("trade_status = #{record.tradeStatus,jdbcType=BIT}");
sql.SET("channel_type = #{record.channelType,jdbcType=INTEGER}"); sql.SET("channel_type = #{record.channelType,jdbcType=INTEGER}");
sql.SET("channel_mer_no = #{record.channelMerNo,jdbcType=VARCHAR}"); sql.SET("channel_mer_no = #{record.channelMerNo,jdbcType=VARCHAR}");
sql.SET("channel_mer_key = #{record.channelMerKey,jdbcType=VARCHAR}"); sql.SET("channel_mer_key = #{record.channelMerKey,jdbcType=VARCHAR}");
@ -202,6 +212,10 @@ public class BsGasChannelConfigSqlProvider {
sql.SET("gas_channel_type = #{gasChannelType,jdbcType=INTEGER}"); sql.SET("gas_channel_type = #{gasChannelType,jdbcType=INTEGER}");
} }
if (record.getTradeStatus() != null) {
sql.SET("trade_status = #{tradeStatus,jdbcType=BIT}");
}
if (record.getChannelType() != null) { if (record.getChannelType() != null) {
sql.SET("channel_type = #{channelType,jdbcType=INTEGER}"); sql.SET("channel_type = #{channelType,jdbcType=INTEGER}");
} }

@ -20,6 +20,11 @@ public class BsGasChannelConfig implements Serializable {
*/ */
private Integer gasChannelType; private Integer gasChannelType;
/**
* 交易状态 0禁用 1正常
*/
private Boolean tradeStatus;
/** /**
* 支付渠道类型 * 支付渠道类型
*/ */
@ -84,6 +89,14 @@ public class BsGasChannelConfig implements Serializable {
this.gasChannelType = gasChannelType; this.gasChannelType = gasChannelType;
} }
public Boolean getTradeStatus() {
return tradeStatus;
}
public void setTradeStatus(Boolean tradeStatus) {
this.tradeStatus = tradeStatus;
}
public Integer getChannelType() { public Integer getChannelType() {
return channelType; return channelType;
} }
@ -186,6 +199,7 @@ public class BsGasChannelConfig implements Serializable {
BsGasChannelConfig other = (BsGasChannelConfig) that; BsGasChannelConfig other = (BsGasChannelConfig) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getGasChannelType() == null ? other.getGasChannelType() == null : this.getGasChannelType().equals(other.getGasChannelType())) && (this.getGasChannelType() == null ? other.getGasChannelType() == null : this.getGasChannelType().equals(other.getGasChannelType()))
&& (this.getTradeStatus() == null ? other.getTradeStatus() == null : this.getTradeStatus().equals(other.getTradeStatus()))
&& (this.getChannelType() == null ? other.getChannelType() == null : this.getChannelType().equals(other.getChannelType())) && (this.getChannelType() == null ? other.getChannelType() == null : this.getChannelType().equals(other.getChannelType()))
&& (this.getChannelMerNo() == null ? other.getChannelMerNo() == null : this.getChannelMerNo().equals(other.getChannelMerNo())) && (this.getChannelMerNo() == null ? other.getChannelMerNo() == null : this.getChannelMerNo().equals(other.getChannelMerNo()))
&& (this.getChannelMerKey() == null ? other.getChannelMerKey() == null : this.getChannelMerKey().equals(other.getChannelMerKey())) && (this.getChannelMerKey() == null ? other.getChannelMerKey() == null : this.getChannelMerKey().equals(other.getChannelMerKey()))
@ -205,6 +219,7 @@ public class BsGasChannelConfig implements Serializable {
int result = 1; int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getGasChannelType() == null) ? 0 : getGasChannelType().hashCode()); result = prime * result + ((getGasChannelType() == null) ? 0 : getGasChannelType().hashCode());
result = prime * result + ((getTradeStatus() == null) ? 0 : getTradeStatus().hashCode());
result = prime * result + ((getChannelType() == null) ? 0 : getChannelType().hashCode()); result = prime * result + ((getChannelType() == null) ? 0 : getChannelType().hashCode());
result = prime * result + ((getChannelMerNo() == null) ? 0 : getChannelMerNo().hashCode()); result = prime * result + ((getChannelMerNo() == null) ? 0 : getChannelMerNo().hashCode());
result = prime * result + ((getChannelMerKey() == null) ? 0 : getChannelMerKey().hashCode()); result = prime * result + ((getChannelMerKey() == null) ? 0 : getChannelMerKey().hashCode());
@ -227,6 +242,7 @@ public class BsGasChannelConfig implements Serializable {
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", gasChannelType=").append(gasChannelType); sb.append(", gasChannelType=").append(gasChannelType);
sb.append(", tradeStatus=").append(tradeStatus);
sb.append(", channelType=").append(channelType); sb.append(", channelType=").append(channelType);
sb.append(", channelMerNo=").append(channelMerNo); sb.append(", channelMerNo=").append(channelMerNo);
sb.append(", channelMerKey=").append(channelMerKey); sb.append(", channelMerKey=").append(channelMerKey);

@ -245,6 +245,66 @@ public class BsGasChannelConfigExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTradeStatusIsNull() {
addCriterion("trade_status is null");
return (Criteria) this;
}
public Criteria andTradeStatusIsNotNull() {
addCriterion("trade_status is not null");
return (Criteria) this;
}
public Criteria andTradeStatusEqualTo(Boolean value) {
addCriterion("trade_status =", value, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusNotEqualTo(Boolean value) {
addCriterion("trade_status <>", value, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusGreaterThan(Boolean value) {
addCriterion("trade_status >", value, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusGreaterThanOrEqualTo(Boolean value) {
addCriterion("trade_status >=", value, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusLessThan(Boolean value) {
addCriterion("trade_status <", value, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusLessThanOrEqualTo(Boolean value) {
addCriterion("trade_status <=", value, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusIn(List<Boolean> values) {
addCriterion("trade_status in", values, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusNotIn(List<Boolean> values) {
addCriterion("trade_status not in", values, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusBetween(Boolean value1, Boolean value2) {
addCriterion("trade_status between", value1, value2, "tradeStatus");
return (Criteria) this;
}
public Criteria andTradeStatusNotBetween(Boolean value1, Boolean value2) {
addCriterion("trade_status not between", value1, value2, "tradeStatus");
return (Criteria) this;
}
public Criteria andChannelTypeIsNull() { public Criteria andChannelTypeIsNull() {
addCriterion("channel_type is null"); addCriterion("channel_type is null");
return (Criteria) this; return (Criteria) this;

@ -107,7 +107,7 @@ public class BsOrderRefundServiceImpl implements BsOrderRefundService {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单");
} }
if (!order.getOrderStatus().equals(OrderStatusEnum.status2.getCode()) if (!order.getOrderStatus().equals(OrderStatusEnum.status2.getCode())
|| !order.getOrderStatus().equals(OrderStatusEnum.status3.getCode())) { && !order.getOrderStatus().equals(OrderStatusEnum.status3.getCode())) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "订单交易状态错误"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "订单交易状态错误");
} }

Loading…
Cancel
Save