| | |
| | | //新增危化品变动记录 |
| | | HzWarehouseRecord warehouseRecord = new HzWarehouseRecord() |
| | | .setWarehouseId(entryRecord.getWarehouseId()) |
| | | .setCupboardId(entryRecord.getCupboardId()) |
| | | .setBasicId(hazmatBasic.getId()) |
| | | .setNum(entryRecord.getNum()) |
| | | .setCompanyId(currentUser.getCompanyId()) |
| | |
| | | String lastCode= StringUtils.addZeroForNum(String.valueOf(i),4); |
| | | String code=String.format("%s%s",entryRecord.getCodePrex(),lastCode); |
| | | hazmatList.add(new HzHazmat().setWarehouseId(entryRecord.getWarehouseId()) |
| | | .setCupboardId(entryRecord.getCupboardId()) |
| | | .setBasicId(entryRecord.getBasicId()) |
| | | .setEntryId(entryRecord.getId()) |
| | | .setRemaining(hazmatBasic.getMetering()) |