|
|
@@ -53,8 +53,8 @@ import java.util.List;
|
|
|
@Service
|
|
|
@AllArgsConstructor
|
|
|
public class PriceBankServiceImpl extends ServiceImpl<PriceBankMapper, PriceBank> implements IPriceBankService {
|
|
|
- private ICorpsDescClient corpsDescClient;//获取客户信息
|
|
|
- private IGoodsDescClient goodsDescClient;//商品信息
|
|
|
+ private final ICorpsDescClient corpsDescClient;//获取客户信息
|
|
|
+ private final IGoodsDescClient goodsDescClient;//商品信息
|
|
|
private IUserClient userClient;//用户信息
|
|
|
@Override
|
|
|
public IPage<PriceBankVO> selectPriceBankPage(IPage<PriceBankVO> page, PriceBankVO priceBank) {
|
|
|
@@ -144,10 +144,10 @@ public class PriceBankServiceImpl extends ServiceImpl<PriceBankMapper, PriceBank
|
|
|
//采购报价=单价 / (1+税率/100) *(1+FOB系数/100)
|
|
|
priceBank.setPurchaseAmount(priceBank.getPrice().divide((new BigDecimal(1).add((priceBank.getTaxRate().divide(new BigDecimal(100))))),4).multiply(new BigDecimal(1).add((priceBank.getCoefficient().divide(new BigDecimal(100))))));
|
|
|
if (StringUtils.isNotBlank(item.getCorpName())){
|
|
|
- CorpsDesc corpsDesc = new CorpsDesc();
|
|
|
+ /*CorpsDesc corpsDesc = new CorpsDesc();
|
|
|
corpsDesc.setCname(item.getCorpName());
|
|
|
- corpsDesc.setCorpType("GYS");
|
|
|
- CorpsDesc corpByName = corpsDescClient.getCorpsDesc(corpsDesc);
|
|
|
+ corpsDesc.setCorpType("GYS");*/
|
|
|
+ CorpsDesc corpByName = corpsDescClient.getCorpsDesc(item.getCorpName(),"GYS");
|
|
|
if (corpByName != null){
|
|
|
priceBank.setCorpName(item.getCorpName());//供应商
|
|
|
priceBank.setCorpId(corpByName.getId());//供应商id
|