| | |
| | | import com.vincent.rsf.server.manager.enums.CompanysType; |
| | | import com.vincent.rsf.server.manager.service.AsnOrderItemService; |
| | | import com.vincent.rsf.server.manager.service.CompanysService; |
| | | import com.vincent.rsf.server.manager.service.OutStockItemService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | public class OutStockItemController extends BaseController { |
| | | |
| | | @Autowired |
| | | private AsnOrderItemService asnOrderItemService; |
| | | private OutStockItemService asnOrderItemService; |
| | | |
| | | @Autowired |
| | | private CompanysService companysService; |
| | | |
| | | @PreAuthorize("hasAuthority('manager:outStockItem:list')") |
| | | @ApiOperation("分页获取列表") |
| | | @PostMapping("/outStockItem/page") |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<AsnOrderItem, BaseParam> pageParam = new PageParam<>(baseParam, AsnOrderItem.class); |
| | | return R.ok().add(asnOrderItemService.listByAsnId(pageParam, pageParam.buildWrapper(true))); |
| | | } |
| | | // @PreAuthorize("hasAuthority('manager:outStockItem:list')") |
| | | // @ApiOperation("分页获取列表") |
| | | // @PostMapping("/outStockItem/page") |
| | | // public R page(@RequestBody Map<String, Object> map) { |
| | | // BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | // PageParam<AsnOrderItem, BaseParam> pageParam = new PageParam<>(baseParam, AsnOrderItem.class); |
| | | // return R.ok().add(asnOrderItemService.listByAsnId(pageParam, pageParam.buildWrapper(true))); |
| | | // } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:outStockItem:list')") |
| | | @PostMapping("/outStockItem/list") |