| | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.constants.OperaType; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.system.dto.QuerySystemDictDataDTO; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.dao.system.vo.SystemDictDataListVO; |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation("查询咖豆任务规则") |
| | | @PostMapping("/findAllList") |
| | | @RequiresPermissions("system:dict:update") |
| | | public ApiResponse findAllList (@RequestBody PageWrap<QuerySystemDictDataDTO> pageWrap) { |
| | | List<SystemDictData> list= systemDictDataBiz.queryListByCode(Constants.COFFEE_BEAN_TASK,null); |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("编辑查询咖豆任务规则") |
| | | @PostMapping("/createCoffeeTask") |
| | | @RequiresPermissions("system:dict:update") |
| | | public ApiResponse createCoffeeTask(@Validated(OperaType.Create.class) @RequestBody List<SystemDictData> list) { |
| | | systemDictDataBiz.updateByDicId(list); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查询字典值数据" ) |
| | | @GetMapping("/getSystemDictData") |
| | | @ApiImplicitParams({ |
| | |
| | | public ApiResponse<SystemDictData> getSystemDictData(@RequestParam String dictCode, @RequestParam String label) { |
| | | return ApiResponse.success(systemDictDataBiz.queryByCode(dictCode,label)); |
| | | } |
| | | |
| | | |
| | | } |