| | |
| | | @Autowired |
| | | DictService dictService; |
| | | |
| | | @GetMapping({"/selectCount"}) |
| | | public Integer selectCount(String tab) { |
| | | return dictService.selectCount(tab); |
| | | } |
| | | |
| | | @GetMapping(value = "/selectByPage") |
| | | public List<DictEntity> selectByPage(String tab, Integer pageSize, Integer pageIndex) { |
| | | if (pageSize < 1 || pageIndex < 0) { |
| | | return null; |
| | | } |
| | | |
| | | return dictService.selectByPage(tab, pageSize, pageSize * pageIndex); |
| | | } |
| | | |
| | | @RequestMapping(value = "/insertDict", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | public Integer insertDict(DictEntity dictEntity) { |
| | | |
| | |
| | | return dictService.selectDictAll(); |
| | | } |
| | | |
| | | |
| | | @GetMapping(value = "/selectDictTab") |
| | | public List<DictEntity> selectDictTab() { |
| | | return dictService.selectDictTab(); |
| | | } |
| | | } |