| | |
| | | import org.springblade.modules.process.service.IProcessService; |
| | | import org.springblade.modules.processInv.entity.ProcessInv; |
| | | import org.springblade.modules.processInv.service.IProcessInvService; |
| | | import org.springblade.modules.processInv.vo.ProcessInvVO; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | processInv.setUpdateUser(sale.getCreateUser()); |
| | | processInv.setUpdateTime(new Date()); |
| | | processInv.setId(Long.parseLong(sale.getProid())); |
| | | ProcessInvVO processInvVO = processInvService.getLand(processInv); |
| | | sale.setLandId(processInvVO.getLandId()); |
| | | processInvService.updateById(processInv); |
| | | } |
| | | return R.status(saleService.saveOrUpdate(sale)); |
| | |
| | | * 按行政区统计市场流通 |
| | | */ |
| | | @GetMapping("/selectMarketDistrict") |
| | | public R selectMarketDistrict(String farmId) { |
| | | return R.data(saleService.selectMarketDistrict(farmId)); |
| | | public R selectMarketDistrict(String farmId,String startTime,String endTime) { |
| | | return R.data(saleService.selectMarketDistrict(farmId,startTime,endTime)); |
| | | } |
| | | |
| | | } |