|
@@ -264,4 +264,17 @@ public class PurchasePriceServiceImpl extends ServiceImpl<PurchasePriceMapper, P
|
|
|
return tidalGrainPrice;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Float dryGrainPrice(PurchasePrice purchasePrice) {
|
|
|
+ Float dryGrainPrice=0.0f;
|
|
|
+ PurchasePrice purchasePrice1=this.selectOne(new EntityWrapper<PurchasePrice>()
|
|
|
+ .eq("warehouse_id",purchasePrice.getWarehouseId())
|
|
|
+ .eq("goods_name",purchasePrice.getGoodsName())
|
|
|
+ .eq("status_flag","3"));
|
|
|
+ if (purchasePrice1!=null){
|
|
|
+ dryGrainPrice=purchasePrice1.getDryGrainPrice();
|
|
|
+ }
|
|
|
+ return dryGrainPrice;
|
|
|
+ }
|
|
|
+
|
|
|
}
|