| | |
| | | record.setType("12"); |
| | | record.setLandId(recovery.getLandId()); |
| | | record.setDeptId(recovery.getDeptId()); |
| | | record.setTenantId(recovery.getTenantId()); |
| | | record.setStrainId(recovery.getStrainId()); |
| | | record.setOperator(recovery.getOperator()); |
| | | Strain strain = strainService.getById(recovery.getStrainId()); |
| | |
| | | //库存 |
| | | //先查询是否有该农产品的库存 |
| | | FarmProductStock stock = new FarmProductStock(); |
| | | stock.setFarmPlantId(recovery.getFarmPlantId()); |
| | | // stock.setFarmPlantId(recovery.getFarmPlantId()); |
| | | stock.setStrainId(recovery.getStrainId()); |
| | | FarmProductStock stock1 = farmProductStockService.getOne(new QueryWrapper<>(stock)); |
| | | if (null != stock1) { |