| | |
| | | * @author ruoyi |
| | | * @date 2025-12-15 |
| | | */ |
| | | @Api(description = "供者转运登记") |
| | | @Api(description = "供者转运登记",tags = {"供者转运登记"}) |
| | | @RestController |
| | | @RequestMapping("/system/transport") |
| | | @RequestMapping("/project/transport") |
| | | public class ServiceTransportController extends BaseController { |
| | | @Autowired |
| | | private IServiceTransportService serviceTransportService; |
| | |
| | | @ApiOperation("查询供者转运登记列表") |
| | | // @PreAuthorize("@ss.hasPermi('system:transport:list')") |
| | | @PostMapping("/list") |
| | | public Map<String, Object> list(ServiceTransport serviceTransport) { |
| | | public Map<String, Object> list(@RequestBody ServiceTransport serviceTransport) { |
| | | Page<ServiceTransport> serviceTransportPage = serviceTransportService.queryList(serviceTransport); |
| | | return getDataTable(serviceTransportPage.getRecords(), (int) serviceTransportPage.getTotal()); |
| | | } |
| | |
| | | @ApiOperation("删除供者转运登记") |
| | | // @PreAuthorize("@ss.hasPermi('system:transport:remove')") |
| | | @Log(title = "供者转运登记", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceTransportService.removeByIds(Arrays.asList(ids))); |
| | | @GetMapping("/remove/{id}") |
| | | public AjaxResult remove(@PathVariable Long id) { |
| | | ServiceTransport serviceTransport = new ServiceTransport(); |
| | | serviceTransport.setId(id); |
| | | serviceTransport.setDelFlag(1); |
| | | return toAjax(serviceTransportService.updateById(serviceTransport)); |
| | | } |
| | | } |