| | |
| | | return true; |
| | | } |
| | | |
| | | public ConfigItemChangeDto getDto(Long projectId, Long warehouseId) { |
| | | public ConfigItemChangeDto getDto(Long projectId, Long changeId) { |
| | | ConfigItemChangeDto data = new ConfigItemChangeDto(); |
| | | if (warehouseId != null) { |
| | | data.setId(warehouseId); |
| | | ConfigItemChange configItemChange = this.get(warehouseId); |
| | | if (changeId != null) { |
| | | data.setId(changeId); |
| | | ConfigItemChange configItemChange = this.get(changeId); |
| | | data.setConfigItemChange(configItemChange); |
| | | |
| | | if (projectId == null) { |
| | | projectId = configItemChange.getProjectId(); |
| | | } |
| | | List<WarehouseCmAudit> CmAuditList = cmAuditService.getList(warehouseId); |
| | | List<WarehouseCmAudit> CmAuditList = cmAuditService.getList(changeId); |
| | | data.setCmAuditList(CmAuditList); |
| | | List<WarehouseQaAudit> QaAuditList = qaAuditService.getList(warehouseId); |
| | | List<WarehouseQaAudit> QaAuditList = qaAuditService.getList(changeId); |
| | | data.setQaAuditList(QaAuditList); |
| | | List<WarehouseConfigItem> ConfigItemList = configItemService.getList(warehouseId); |
| | | List<WarehouseConfigItem> ConfigItemList = configItemService.getList(changeId); |
| | | data.setConfigItemList(ConfigItemList); |
| | | |
| | | } else { |