行架盘点时序变更 条码更新细节修改 任务完成修改

This commit is contained in:
张江玮
2023-01-11 16:13:53 +08:00
parent e749e23a93
commit db73b74654
3 changed files with 11 additions and 7 deletions

View File

@@ -345,11 +345,14 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
//将新的条码 物料等信息更新到到库存表中
StructivtDto structivtDto = structivtService.findByCode(device_code);
structivtDto.setMaterial_id(materialId);
structivtDto.setVehicle_code(barcode);
structivtDto.setIvt_qty(new BigDecimal(ivt_qty));
VehicleDto vehicleDto = vehicleService.findByCode(barcode);
if (ObjectUtil.isNotEmpty(vehicleDto)) {
structivtDto.setVehicle_code(barcode);
structivtDto.setVehicle_type(vehicleDto.getVehicle_type());
} else {
structivtDto.setVehicle_code("");
structivtDto.setVehicle_type("");
}
structivtDto.setUpdate_time(DateUtil.now());
structivtDto.setUpdate_optname("acs");