| | |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.framework.common.R; |
| | | import com.zy.asrs.wms.asrs.entity.Tag; |
| | | import com.zy.asrs.wms.common.annotation.CacheData; |
| | | import com.zy.asrs.wms.common.annotation.OperationLog; |
| | | import com.zy.asrs.wms.common.domain.BaseParam; |
| | | import com.zy.asrs.wms.common.domain.KeyValVo; |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:locAreaType:list')") |
| | | @PostMapping("/locAreaType/page") |
| | | @CacheData(tableName = {"man_loc_area_type"}) |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<LocAreaType, BaseParam> pageParam = new PageParam<>(baseParam, LocAreaType.class); |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:locAreaType:list')") |
| | | @PostMapping("/locAreaType/tree") |
| | | @CacheData(tableName = {"man_loc_area_type"}) |
| | | public R tree(@RequestBody Map<String, Object> map) { |
| | | List<LocAreaType> locAreaTypeList = locAreaTypeService.list(new LambdaQueryWrapper<LocAreaType>().orderByAsc(LocAreaType::getSort)); |
| | | List<LocAreaType> treeData = Utils.toTreeData(locAreaTypeList, 0L, LocAreaType::getParentId, LocAreaType::getId, LocAreaType::setChildren); |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:locAreaType:list')") |
| | | @PostMapping("/locAreaType/list") |
| | | @CacheData(tableName = {"man_loc_area_type"}) |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | | return R.ok().add(locAreaTypeService.list()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:locAreaType:list')") |
| | | @GetMapping("/locAreaType/{id}") |
| | | @CacheData(tableName = {"man_loc_area_type"}) |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok().add(locAreaTypeService.getById(id)); |
| | | } |