|
@@ -1,6 +1,5 @@
|
|
package com.qmth.ops.biz.service;
|
|
package com.qmth.ops.biz.service;
|
|
|
|
|
|
-import com.qmth.boot.mybatis.service.SqlProvider;
|
|
|
|
import com.qmth.boot.tools.models.ByteArray;
|
|
import com.qmth.boot.tools.models.ByteArray;
|
|
import com.qmth.ops.api.security.Permission;
|
|
import com.qmth.ops.api.security.Permission;
|
|
import com.qmth.ops.biz.domain.Role;
|
|
import com.qmth.ops.biz.domain.Role;
|
|
@@ -15,7 +14,7 @@ import javax.annotation.Resource;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
-public class InitService implements SqlProvider, CommandLineRunner {
|
|
|
|
|
|
+public class InitService implements CommandLineRunner {
|
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(InitService.class);
|
|
private static final Logger log = LoggerFactory.getLogger(InitService.class);
|
|
|
|
|
|
@@ -31,7 +30,7 @@ public class InitService implements SqlProvider, CommandLineRunner {
|
|
@Resource
|
|
@Resource
|
|
private OcrClientService ocrClientService;
|
|
private OcrClientService ocrClientService;
|
|
|
|
|
|
- @Override
|
|
|
|
|
|
+ @Deprecated
|
|
public String get() {
|
|
public String get() {
|
|
try {
|
|
try {
|
|
return ByteArray.fromResource("script/init.sql").toString();
|
|
return ByteArray.fromResource("script/init.sql").toString();
|