| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.framework.common.R; |
| | | 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:orderType:list')") |
| | | @PostMapping("/orderType/page") |
| | | @CacheData(tableName = {"man_order_type"}) |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<OrderType, BaseParam> pageParam = new PageParam<>(baseParam, OrderType.class); |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:orderType:list')") |
| | | @PostMapping("/orderType/list") |
| | | @CacheData(tableName = {"man_order_type"}) |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | | return R.ok().add(orderTypeService.list()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:orderType:list')") |
| | | @GetMapping("/orderType/{id}") |
| | | @CacheData(tableName = {"man_order_type"}) |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok().add(orderTypeService.getById(id)); |
| | | } |