Browse Source

Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd

sd
zhizhi wu 5 years ago
parent
commit
e7836aea15
  1. 1
      ht/src/main/java/com/ccsens/ht/service/ImportService.java
  2. 34
      ht/src/main/resources/application-test.yml
  3. 2
      tall/src/main/resources/application-dev.yml
  4. 4
      tall/src/main/resources/application-test.yml

1
ht/src/main/java/com/ccsens/ht/service/ImportService.java

@ -416,6 +416,7 @@ public class ImportService implements IImportService {
log.info("追加选项{}", json.get(Constant.Import.RELATION_OPTION)); log.info("追加选项{}", json.get(Constant.Import.RELATION_OPTION));
JSONArray options = json.getJSONArray(Constant.Import.RELATION_OPTION); JSONArray options = json.getJSONArray(Constant.Import.RELATION_OPTION);
for (Object obj: options) { for (Object obj: options) {
log.info("导入的选项信息{}", obj);
HtQuestionRecordOption recordOption = JSONObject.parseObject(((JSONObject) obj).toJSONString(), HtQuestionRecordOption.class); HtQuestionRecordOption recordOption = JSONObject.parseObject(((JSONObject) obj).toJSONString(), HtQuestionRecordOption.class);
if (CollectionUtil.isEmpty(questionRecords)) { if (CollectionUtil.isEmpty(questionRecords)) {
recordOption.setId(snowflake.nextId()); recordOption.setId(snowflake.nextId());

34
ht/src/main/resources/application-test.yml

@ -7,23 +7,23 @@ spring:
name: ht name: ht
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:
host: 127.0.0.1 host: 127.0.0.1
password: 111111 password: guest
port: 5672 port: 5672
username: admin username: guest
redis: redis:
database: 0 database: 0
host: 127.0.0.1 host: 127.0.0.1
jedis: jedis:
pool: pool:
max-active: 200 max-active: 200
max-idle: 10 max-idle: 10
max-wait: -1ms max-wait: -1ms
min-idle: 0 min-idle: 0
password: '' password: ''
port: 6379 port: 6379
timeout: 1000ms timeout: 1000ms
swagger: swagger:

2
tall/src/main/resources/application-dev.yml

@ -11,7 +11,7 @@ spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:
host: 192.168.31.13 host: 192.168.4.113
# host: 127.0.0.1 # host: 127.0.0.1
password: 111111 password: 111111
port: 5672 port: 5672

4
tall/src/main/resources/application-test.yml

@ -12,9 +12,9 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:
host: 127.0.0.1 host: 127.0.0.1
password: 111111 password: guest
port: 5672 port: 5672
username: admin username: guest
redis: redis:
database: 0 database: 0
host: 127.0.0.1 host: 127.0.0.1

Loading…
Cancel
Save