| | |
| | | import com.emergencyrepair.system.mapper.SysTenantMenuMapper; |
| | | import com.emergencyrepair.system.service.ButtonPermissionCatalog; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.core.annotation.Order; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | private final JdbcTemplate jdbcTemplate; |
| | | private final ButtonPermissionCatalog buttonPermissionCatalog; |
| | | |
| | | @Value("${app.seed-demo-data:false}") |
| | | private boolean seedDemoData; |
| | | |
| | | private final Map<String, Long> menuIds = new HashMap<>(); |
| | | private final Map<String, Long> productDeviceIds = new HashMap<>(); |
| | | private final List<Long> contractorIds = new ArrayList<>(); |
| | |
| | | backfillFaultEquipmentIds(); |
| | | upgradeDemoFaultEquipment(); |
| | | upgradeDemoMultiEquipmentFault(); |
| | | seedBusinessData(); |
| | | if (seedDemoData) { |
| | | seedBusinessData(); |
| | | } |
| | | backfillCompletionConsumableCounts(); |
| | | normalizeParentSystemSeparators(); |
| | | } |