| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | | import com.ruoyi.system.domain.TOrderStock; |
| | | import com.ruoyi.system.domain.TOrderStockGoods; |
| | |
| | | @PostMapping(value = "/pageList") |
| | | public AjaxResult<PageInfo<TOrderStockVO>> pageList(@RequestBody TOrderStockQuery query) { |
| | | query.setShopId(tokenService.getLoginUser().getObjectId()); |
| | | query.setIsCover(1); |
| | | return AjaxResult.success(orderStockService.pageList(query)); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 编辑进货单下单接口 |
| | | */ |
| | | @ApiOperation( value = "编辑生成进货单接口") |
| | | @PostMapping(value = "/editGenerator") |
| | | public AjaxResult<String> editGenerator(@RequestBody TOrderStockDTO dto) { |
| | | orderStockService.editGenerator(dto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 查看进货单详情 |
| | | */ |
| | | @ApiOperation( value = "查看进货单详情") |
| | |
| | | /** |
| | | * 删除进货单 |
| | | */ |
| | | @Log(title = "进货单-删除进货单", businessType = BusinessType.DELETE) |
| | | @ApiOperation( value = "删除进货单") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public AjaxResult<Boolean> deleteById(@RequestParam("id") Long id) { |