| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.gkhy.safePlatform.commons.co.ContextCacheUser; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.commons.utils.PageUtils; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.MaterialClassifyQuery; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.SafeMaterialClassifyAddReq; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.SafeMaterialClassifyModReq; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.SafeMaterialClassifyQuery; |
| | |
| | | return new ResultVO<>(ResultCodes.OK,materialClassifyService.list()); |
| | | |
| | | } |
| | | /** |
| | | * 列表 |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "page/list") |
| | | public SearchResultVO<List<SafeMaterialClassifyDto>> listByPage(Authentication authentication,@RequestBody PageQuery<MaterialClassifyQuery> pageQuery){ |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | PageUtils.checkCheck(pageQuery); |
| | | return materialClassifyService.listByPage(pageQuery); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 新增 |