|
|
@ -433,7 +433,10 @@ public class AsBusrepairInventorybillService extends MybatisBaseService<AsBusrep |
|
|
|
recordDto.setCost(goodsPrice.toString()); |
|
|
|
recordDto.setAmount(goodsPrice.multiply(count).toString()); |
|
|
|
wmsInventoryRecordFeign.save(recordDto); |
|
|
|
wmsInventoryFeign.updateInventoryCount(countQuery); |
|
|
|
} else if (busTypeKey.equals("1")) { |
|
|
|
//判断所选库位,是否存在该goodsId记录,如果有增加库存,如果没有新增库存记录。
|
|
|
|
|
|
|
|
//维修退库
|
|
|
|
countQuery.setAddOrReduce(0); |
|
|
|
WmsInventoryRecordDto recordDto = new WmsInventoryRecordDto(); |
|
|
@ -460,11 +463,12 @@ public class AsBusrepairInventorybillService extends MybatisBaseService<AsBusrep |
|
|
|
recordDto.setCost(goodsPrice.toString()); |
|
|
|
recordDto.setAmount(goodsPrice.multiply(count).toString()); |
|
|
|
wmsInventoryRecordFeign.save(recordDto); |
|
|
|
} |
|
|
|
wmsInventoryFeign.updateInventoryCount(countQuery); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return entity.getSid(); |
|
|
|
} |
|
|
|