Browse Source

fix:修复feign 走了master数据库的问题

dist.1.3.0
pref_mail@163.com 9 months ago
parent
commit
e2ef3af34f
  1. 1
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/excel/BasicdataFactoryCategoryImporter.java
  2. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionStockArticleStatisticsDTO.java
  3. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleStatisticsMapper.xml
  4. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleStatisticsServiceImpl.java
  5. 2
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseUpdownGoodsClient.java
  6. 2
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseWaybillClient.java
  7. 2
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseWaybillReceivedRecordClient.java

1
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/excel/BasicdataFactoryCategoryImporter.java

@ -41,6 +41,7 @@ public class BasicdataFactoryCategoryImporter implements ExcelImporter<Basicdata
LambdaQueryWrapper<BasicdataFactoryCategoryEntity> lambdaQueryWrapper1 = new LambdaQueryWrapper<>();
lambdaQueryWrapper1.eq(BasicdataFactoryCategoryEntity::getIsDeleted, 0);
List<BasicdataFactoryCategoryEntity> allBasicdataFactoryCategoryEntities = basicdataFactoryCategoryService.list(lambdaQueryWrapper1);
//todo 这里的优化 是最好能进行品牌分组 获取对应的品牌数据 来进行匹配 这样可以减少循环次数
List<BasicdataFactoryCategoryEntity> basicdataFactoryCategoryEntities = new ArrayList<>();

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionStockArticleStatisticsDTO.java

@ -16,7 +16,7 @@ public class DistributionStockArticleStatisticsDTO {
/**
* 运单总数
*/
private Long WaybillNum;
private Long waybillNum;
/**
* 包件总数

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleStatisticsMapper.xml

@ -3,7 +3,7 @@
<mapper namespace="com.logpm.distribution.mapper.DistributionStockArticleStatisticsMapper">
<select id="collect" resultType="com.logpm.distribution.dto.DistributionStockArticleStatisticsDTO">
select
count(distinct ldsa.waybill_id) WaybillNum,
count(distinct ldsa.waybill_id) waybillNum,
count(distinct ldsa.order_code) orderNum,
count(distinct ldpl.id) packageCodeNum
from logpm_distribution_stock_article ldsa

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleStatisticsServiceImpl.java

@ -25,9 +25,9 @@ import java.util.stream.Collectors;
@Slf4j
public class DistributionStockArticleStatisticsServiceImpl implements IDistributionStockArticleStatisticsService {
private DistributionStockArticleStatisticsMapper distributionStockArticleStatisticsMapper;
private final DistributionStockArticleStatisticsMapper distributionStockArticleStatisticsMapper;
private IBasicdataWarehouseClient warehouseClient;
private final IBasicdataWarehouseClient warehouseClient;
@Override
public DistributionStockArticleStatisticsDTO collect(DistributionStockArticleOweDTO distributionStockArticleOweDTO) {

2
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseUpdownGoodsClient.java

@ -16,7 +16,7 @@ import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
@NonDS
//@NonDS
@ApiIgnore
@RestController
@AllArgsConstructor

2
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseWaybillClient.java

@ -15,7 +15,7 @@ import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
@NonDS
//@NonDS
@ApiIgnore
@RestController
@AllArgsConstructor

2
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/feign/WarehouseWaybillReceivedRecordClient.java

@ -31,7 +31,7 @@ import java.util.List;
* @author zhy
* @since 2023-07-28
*/
@NonDS
//@NonDS
@ApiIgnore
@RestController
@AllArgsConstructor

Loading…
Cancel
Save