diff --git a/hai-bweb/src/main/java/com/bweb/controller/Etc/EtcCustomerController.java b/hai-bweb/src/main/java/com/bweb/controller/Etc/EtcCustomerController.java index 4006a157..12734770 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/Etc/EtcCustomerController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/Etc/EtcCustomerController.java @@ -399,10 +399,6 @@ public class EtcCustomerController { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未查询到相关内容!"); } - if (etcCarMsg.getVehStatus() == 11 || etcCarMsg.getVehStatus() == 12 || etcCarMsg.getVehStatus() == 13 || etcCarMsg.getVehStatus() == 15 || etcCarMsg.getVehStatus() == 20) { - throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "状态错误!"); - } - etcCarMsgService.deleteEtcCar(id); return ResponseMsgUtil.success("删除成功!"); @@ -424,8 +420,7 @@ public class EtcCustomerController { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未查询到相关内容!"); } - etcCustMsg.setStatus(0); - etcCustMsgService.editEtcCust(etcCustMsg); + etcCustMsgService.deleteEtcCust(id); return ResponseMsgUtil.success("删除成功!"); diff --git a/hai-order/src/main/java/com/web/controller/OrderPayController.java b/hai-order/src/main/java/com/web/controller/OrderPayController.java index 9f2176bf..cf39b77f 100644 --- a/hai-order/src/main/java/com/web/controller/OrderPayController.java +++ b/hai-order/src/main/java/com/web/controller/OrderPayController.java @@ -373,20 +373,7 @@ public class OrderPayController { weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1667177808); } else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE12.getNumber())) { -// weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1614670195); -// - // 查询支付配置 - HighGasChannelConfig gasChannelConfig = gasChannelConfigService.getConfig(GasChannel.type2); - if (gasChannelConfig == null) { - throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未配置支付参数,请稍后重试!"); - } - - payPlatformType = gasChannelConfig.getPayPlatformType(); - payPlatformKey = gasChannelConfig.getPayPlatformMerKey(); - payPlatformMerNo = gasChannelConfig.getPayPlatformMerNo(); - - weChatPayReqInfo.setSub_mch_id(gasChannelConfig.getPayPlatformMerNo()); - profitSharing = gasChannelConfig.getProfitSharingStatus().equals(true) ? "Y" : "N"; + weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1614670195); } else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE15.getNumber())) { // 查询支付配置 HighGasChannelConfig gasChannelConfig = gasChannelConfigService.getConfig(GasChannel.type7); diff --git a/hai-service/src/main/java/com/hai/etc/EtcCustMsgService.java b/hai-service/src/main/java/com/hai/etc/EtcCustMsgService.java index d14b6b9d..2775597f 100644 --- a/hai-service/src/main/java/com/hai/etc/EtcCustMsgService.java +++ b/hai-service/src/main/java/com/hai/etc/EtcCustMsgService.java @@ -37,6 +37,8 @@ public interface EtcCustMsgService { void editEtcCust(EtcCustMsg etcCustMsg) throws Exception; + void deleteEtcCust(Long id) throws Exception; + /** * @Author Sum1Dream * @Name getCustInfoList diff --git a/hai-service/src/main/java/com/hai/etc/impl/EtcCustMsgServiceImpl.java b/hai-service/src/main/java/com/hai/etc/impl/EtcCustMsgServiceImpl.java index 1a9f5c14..2050c7ba 100644 --- a/hai-service/src/main/java/com/hai/etc/impl/EtcCustMsgServiceImpl.java +++ b/hai-service/src/main/java/com/hai/etc/impl/EtcCustMsgServiceImpl.java @@ -47,6 +47,11 @@ public class EtcCustMsgServiceImpl implements EtcCustMsgService { etcCustMsgMapper.updateByPrimaryKey(etcCustMsg); } + @Override + public void deleteEtcCust(Long id) throws Exception { + etcCustMsgMapper.deleteByPrimaryKey(id); + } + @Override public List getEtcCustList(Map map) {