TbAssetAllocationDTOController.java 1.0 KB

12345678910111213141516171819202122232425262728
  1. package com.ruoyi.change.controller;
  2. import com.ruoyi.change.domain.dto.TbAssetAllocationDTO;
  3. import com.ruoyi.change.service.ITbAssetAllocationDTOService;
  4. import com.ruoyi.common.core.controller.BaseController;
  5. import com.ruoyi.common.core.page.TableDataInfo;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.security.access.prepost.PreAuthorize;
  8. import org.springframework.web.bind.annotation.GetMapping;
  9. import java.util.List;
  10. public class TbAssetAllocationDTOController extends BaseController {
  11. @Autowired
  12. private ITbAssetAllocationDTOService tbAssetAllocationDTOService;
  13. /**
  14. * 查询资产调拨列表
  15. */
  16. @PreAuthorize("@ss.hasPermi('change:allocation:list')")
  17. @GetMapping("/list")
  18. public TableDataInfo list(TbAssetAllocationDTO tbAssetAllocationDTO)
  19. {
  20. startPage();
  21. List<TbAssetAllocationDTO> list = tbAssetAllocationDTOService.selectTbAssetAllocationList(tbAssetAllocationDTO);
  22. return getDataTable(list);
  23. }
  24. }