diff --git a/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java b/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java index 71fc125ac..c3cc1b12c 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java +++ b/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java @@ -9,7 +9,7 @@ public interface ModuleNameConstant { /** * 如果不需要 "" */ - public static final String DEVAUTH ="-pref"; + public static final String DEVAUTH =""; /** * 工厂对接服务名称 diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java index 5247a6b2a..be15ea6d1 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java @@ -99,4 +99,6 @@ public interface AftersalesWorkOrderMapper extends BaseMapper findWorkOrderByOrderPackageCodeAndWarehouseIdAndOtherNodex(@Param("warehouseId") Long warehouseId, @Param("orderPackageCode") String orderPackageCode, @Param("workOrderType")int workOrderType, @Param("discoveryNode")int discoveryNode); + + IPage getListSettlementNew(IPage page,@Param("param") AftersalesSettlementEntity aftersalesSettlementEntity); } diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml index 48dab7273..03b8258ad 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml @@ -395,9 +395,9 @@ from logpm_aftersales_settlement las las.processing_status = '4' and las.is_deleted = 0 - and las.business_id LIKE CONCAT('%', #{param.businessId}, '%') - and las.business_name LIKE CONCAT('%', #{param.businessName}, '%') - and las.work_order_number LIKE CONCAT('%', #{param.workOrderNumber}, '%') + and las.business_id =#{param.businessId + and las.business_name LIKE CONCAT( #{param.businessName}, '%') + and las.work_order_number LIKE CONCAT( #{param.workOrderNumber}, '%') and las.brand_name LIKE CONCAT('%', #{param.brandName}, '%') and las.mall_name LIKE CONCAT('%', #{param.mallName}, '%') and las.waybill_number LIKE CONCAT('%', #{param.waybillNumber}, '%') @@ -438,6 +438,60 @@ AND lawo.work_order_type = #{workOrderType} AND lawo.is_deleted = 0; + diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java index 57dd74c98..f20513b9f 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java @@ -1908,7 +1908,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl getListSettlement(Map aftersalesWorkOrder, IPage page) { AftersalesSettlementEntity aftersalesSettlementEntity = JSONObject.parseObject(JSONObject.toJSONString(aftersalesWorkOrder), AftersalesSettlementEntity.class); - IPage iPage = baseMapper.getListSettlement(page, aftersalesSettlementEntity); + IPage iPage = baseMapper.getListSettlementNew(page, aftersalesSettlementEntity); iPage.getRecords().forEach(i -> { i.setWorkOrderTypeName(DictBizCache.getValue(DictBizConstant.PC_WORK_ORDER, i.getWorkOrderType())); i.setDiscoveryNodeName(DictBizCache.getValue(DictBizConstant.PC_DISCOVERY_NODE, i.getDiscoveryNode())); diff --git a/blade-service/logpm-aftersales/src/main/resources/application-dev.yml b/blade-service/logpm-aftersales/src/main/resources/application-dev.yml index 570ee13f2..4feaa5d33 100644 --- a/blade-service/logpm-aftersales/src/main/resources/application-dev.yml +++ b/blade-service/logpm-aftersales/src/main/resources/application-dev.yml @@ -42,12 +42,12 @@ spring: url: ${blade.datasource.aftersales.627683.url} username: ${blade.datasource.aftersales.627683.username} password: ${blade.datasource.aftersales.627683.password} - 703923: - druid: - #独立校验配置 - validation-query: select 1 - #oracle校验 - #validation-query: select 1 from dual - url: ${blade.datasource.aftersales.703923.url} - username: ${blade.datasource.aftersales.703923.username} - password: ${blade.datasource.aftersales.703923.password} +# 703923: +# druid: +# #独立校验配置 +# validation-query: select 1 +# #oracle校验 +# #validation-query: select 1 from dual +# url: ${blade.datasource.aftersales.703923.url} +# username: ${blade.datasource.aftersales.703923.username} +# password: ${blade.datasource.aftersales.703923.password} diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java index 9341e5f17..0425b45ac 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java @@ -338,8 +338,18 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl>>>>> basicdataClient.getClientCode() {}", basicdataClient.getClientCode()); //查询客户编码和客户名称是否存在 - boolean b = basicdataClients.stream().anyMatch(ii -> ii.getClientCode().equals(basicdataClient.getClientCode()) - || ii.getClientName().equals(basicdataClient.getClientName().trim())); + boolean b = basicdataClients.stream().anyMatch(ii -> { + if (ii.getClientCode()!=null && !ii.getClientCode().equals("")) { + log.info(">>>>>>>>>>>>> 1{}",ii.getClientCode()); + log.info(">>>>>>>>>>>>> 2{}",ii.getClientName()); + + if (ii.getClientCode().equals(basicdataClient.getClientCode()) + || ii.getClientName().equals(basicdataClient.getClientName().trim())){ + return true; + } + } + return false; + }); if (b) { List basicdataClientEntities = basicdataClients.stream().filter(ii -> ii.getClientCode().equals(basicdataClient.getClientCode()) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java index ee41aed7f..65e04017a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java @@ -45,9 +45,7 @@ public class DistributionBusinessPreOrderAppController { Resp resp = null; try { resp = distributionBusinessPreOrderService.inOrderWarehourse(businessSanDTO.getOrderPackageCode(),businessSanDTO.getReservationCode()); - } catch (ExecutionException e) { - throw new RuntimeException(e); - } catch (InterruptedException e) { + } catch (ExecutionException | InterruptedException e) { throw new RuntimeException(e); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/IDistributionBusinessPreOrderServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/IDistributionBusinessPreOrderServiceImpl.java index 09296e577..22b391ddd 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/IDistributionBusinessPreOrderServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/IDistributionBusinessPreOrderServiceImpl.java @@ -202,7 +202,6 @@ public class IDistributionBusinessPreOrderServiceImpl extends BaseServiceImpl