Browse Source

1修复物料名称重复

single_db
pref_mail@163.com 1 year ago
parent
commit
368eb01091
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -6455,7 +6455,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
* @return * @return
*/ */
private String getUnit(Long stockArticleId) { private String getUnit(Long stockArticleId) {
List<DistributionParcelListEntity> list = distributionParcelListService.list(Wrappers.<DistributionParcelListEntity>query().lambda().eq(DistributionParcelListEntity::getStockArticleId, stockArticleId)); List<DistributionParcelListEntity> list = distributionParcelListService.list(Wrappers.<DistributionParcelListEntity>query().select("DISTINCT material_unit").lambda().eq(DistributionParcelListEntity::getStockArticleId, stockArticleId));
if (!list.isEmpty()) { if (!list.isEmpty()) {
StringBuffer str = new StringBuffer(); StringBuffer str = new StringBuffer();
list.forEach(i -> { list.forEach(i -> {

Loading…
Cancel
Save