| | |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.CheckRule; |
| | | import com.ycl.platform.domain.query.CheckRuleQuery; |
| | | import com.ycl.platform.domain.vo.CheckRuleVO; |
| | | import com.ycl.platform.service.ICheckRuleService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | |
| | | * 查询考核规则列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(CheckRule checkRule) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody CheckRuleQuery checkRuleQuery) |
| | | { |
| | | startPage(); |
| | | List<CheckRule> list = checkRuleService.selectCheckRuleList(checkRule); |
| | | List<CheckRuleVO> list = checkRuleService.selectCheckRuleList(checkRuleQuery); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:rule:export')") |
| | | @Log(title = "考核规则", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, CheckRule checkRule) |
| | | public void export(HttpServletResponse response, CheckRuleQuery checkRuleQuery) |
| | | { |
| | | List<CheckRule> list = checkRuleService.selectCheckRuleList(checkRule); |
| | | ExcelUtil<CheckRule> util = new ExcelUtil<CheckRule>(CheckRule.class); |
| | | List<CheckRuleVO> list = checkRuleService.selectCheckRuleList(checkRuleQuery); |
| | | ExcelUtil<CheckRuleVO> util = new ExcelUtil<CheckRuleVO>(CheckRuleVO.class); |
| | | util.exportExcel(response, list, "考核规则数据"); |
| | | } |
| | | |