| | |
| | | |
| | | int increaseWorkQty(@Param("orderId")Long orderId, @Param("matnr")String matnr, @Param("batch")String batch, @Param("workQty")Double workQty); |
| | | |
| | | int increaseWorkQty2(@Param("id")Long id, @Param("workQty")Double workQty); |
| | | |
| | | /** |
| | | * 查询打印订单明细二维码数据 |
| | | * @param id 订单明细id |
| | |
| | | * @return |
| | | */ |
| | | boolean increaseWorkQty(Long orderId, String matnr, String batch, Double workQty); |
| | | |
| | | boolean increaseWorkQty2(Long id, Double workQty); |
| | | } |
| | |
| | | throw new CoolException(orderDetl.getMatnr() + "入库数量不合法"); |
| | | } |
| | | // 修改订单作业数量 |
| | | if (!orderDetlService.increaseWorkQty(order.getId(), elem.getMatnr(), elem.getBatch(), elem.getAnfme())) { |
| | | if (!orderDetlService.increaseWorkQty2(orderDetl.getId(), elem.getAnfme())) { |
| | | throw new CoolException("修改单据作业数量失败"); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean increaseWorkQty(Long orderId, String matnr, String batch, Double workQty) { |
| | | return this.baseMapper.increaseWorkQty(orderId, matnr, batch, workQty) > 0; |
| | | public boolean increaseWorkQty(Long id, String matnr, String batch, Double workQty) { |
| | | return this.baseMapper.increaseWorkQty(id, matnr,batch,workQty) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public boolean increaseWorkQty2(Long id, Double workQty) { |
| | | return this.baseMapper.increaseWorkQty2(id, workQty) > 0; |
| | | } |
| | | } |
| | |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | | // 修改订单明细 |
| | | if (!orderDetlService.increaseWorkQty(orderDetl.getOrderId(), orderDetl.getMatnr(), orderDetl.getBatch(), locDto.getAnfme())) { |
| | | if (!orderDetlService.increaseWorkQty2(orderDetl.getId(), locDto.getAnfme())) { |
| | | throw new CoolException("修改订单明细数量失败"); |
| | | } |
| | | orderService.updateSettle(orderDetl.getOrderId(), 2L, userId); |
| | |
| | | </choose> |
| | | </update> |
| | | |
| | | |
| | | <update id="increaseWorkQty2"> |
| | | update man_order_detl |
| | | set work_qty = work_qty + #{workQty} |
| | | where 1=1 |
| | | and id = #{id} |
| | | </update> |
| | | </mapper> |