|
|
|
@ -35,6 +35,7 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author liangyuhuan |
|
|
|
@ -447,6 +448,9 @@ public class BuyerServiceImpl implements BuyerService { |
|
|
|
|
} |
|
|
|
|
String buyerId = baseService.getGenerateShotKey(); |
|
|
|
|
if (CollectionUtil.isNotEmpty(buyerEntity.getBuyerEntityDetail())) { |
|
|
|
|
Map<String, BuyerEntityDetail> collect = buyerEntity.getBuyerEntityDetail().stream().collect(Collectors.toMap(t -> t.getAddress() + t.getPhone() + t.getBankName() + t.getBankAccount(), t -> t)); |
|
|
|
|
List<BuyerEntityDetail> collect1 = collect.values().stream().collect(Collectors.toList()); |
|
|
|
|
buyerEntity.setBuyerEntityDetail(collect1); |
|
|
|
|
for (BuyerEntityDetail t : buyerEntity.getBuyerEntityDetail()) { |
|
|
|
|
if(ConfigureConstant.STRING_1.equals(buyerEntity.getIsEdit())){ |
|
|
|
|
t.setUpdateUser(""); |
|
|
|
|