ShowTestPlanDtController.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.railway.business.bi.controller;
  2. import com.railway.business.bi.domain.ShowTestPlanDt;
  3. import com.railway.business.bi.domain.vo.TestPlanDtQuery;
  4. import com.railway.business.bi.service.IShowTestPlanDtService;
  5. import com.railway.common.core.controller.BaseController;
  6. import com.railway.common.core.page.TableDataInfo;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import java.util.List;
  10. import org.springframework.validation.annotation.Validated;
  11. import org.springframework.web.bind.annotation.GetMapping;
  12. import org.springframework.web.bind.annotation.RequestMapping;
  13. import org.springframework.web.bind.annotation.RestController;
  14. /**
  15. * @author zhaomn
  16. */
  17. @Api(value = "rest/bi", tags = "大屏展示-试验计划兑现情况-单体")
  18. @RestController
  19. @Validated
  20. @RequestMapping(value = "show/syjhdx/dt")
  21. public class ShowTestPlanDtController extends BaseController {
  22. private final IShowTestPlanDtService showTestPlanDtService;
  23. public ShowTestPlanDtController(IShowTestPlanDtService showTestPlanDtService) {
  24. this.showTestPlanDtService = showTestPlanDtService;
  25. }
  26. @ApiOperation(value = "列表")
  27. @GetMapping(value = "/list")
  28. public TableDataInfo getList(TestPlanDtQuery query) {
  29. startPage();
  30. List<ShowTestPlanDt> list = showTestPlanDtService.getList(query);
  31. return getDataTable(list);
  32. }
  33. }