Commit e1b0bfb8 by zhangtw

入库结合物料组件

parent 203b5590
...@@ -83,10 +83,10 @@ public class InboundOrdersController extends BaseController ...@@ -83,10 +83,10 @@ public class InboundOrdersController extends BaseController
} }
/** /**
* 修改入库单 * 修改入库单
*/ */
@PreAuthorize("@ss.hasPermi('inventory:inbound:edit')") @PreAuthorize("@ss.hasPermi('inventory:inbound:edit')")
@Log(title = "入库单", businessType = BusinessType.UPDATE) @Log(title = "入库单", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody InboundOrders inboundOrders) public AjaxResult edit(@RequestBody InboundOrders inboundOrders)
{ {
...@@ -94,10 +94,10 @@ public class InboundOrdersController extends BaseController ...@@ -94,10 +94,10 @@ public class InboundOrdersController extends BaseController
} }
/** /**
* 删除入库单 * 删除入库单
*/ */
@PreAuthorize("@ss.hasPermi('inventory:inbound:remove')") @PreAuthorize("@ss.hasPermi('inventory:inbound:remove')")
@Log(title = "入库单", businessType = BusinessType.DELETE) @Log(title = "入库单", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids) public AjaxResult remove(@PathVariable String[] ids)
{ {
......
...@@ -77,7 +77,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService ...@@ -77,7 +77,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
public int updateInboundOrders(InboundOrders inboundOrders) public int updateInboundOrders(InboundOrders inboundOrders)
{ {
inboundOrders.setUpdateTime(DateUtils.getNowDate()); inboundOrders.setUpdateTime(DateUtils.getNowDate());
inboundOrdersMapper.deleteInboundOrderItemsByOrderId(inboundOrders.getId()); inboundOrdersMapper.deleteInboundOrderItemsByOrderId(inboundOrders.getOrderId());
insertInboundOrderItems(inboundOrders); insertInboundOrderItems(inboundOrders);
return inboundOrdersMapper.updateInboundOrders(inboundOrders); return inboundOrdersMapper.updateInboundOrders(inboundOrders);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论