Skip to content

Commit

Permalink
修复相关bug,参见issue:#29
Browse files Browse the repository at this point in the history
  • Loading branch information
lulu2panpan committed Jan 14, 2020
1 parent 585d205 commit efbf51b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ ALTER TABLE `t_dl_media_mapping` ADD COLUMN `es_routing` VARCHAR(100) DEFAULT NU
COMMENT 'esRouting字段';
ALTER TABLE `t_dl_media_mapping` ADD COLUMN `es_routing_ignore` VARCHAR(5) DEFAULT NULL
COMMENT '如果routing字段值不存在,写入的数据是否可忽略写入,true:可以忽略,false:不可以忽略';
ALTER TABLE `t_dl_sys_properties` MODIFY `properties_key` VARCHAR(30);


INSERT INTO t_dl_menu (CODE, NAME, parent_code, type, url, icon, create_time, modify_time) VALUES
Expand Down
2 changes: 1 addition & 1 deletion dl-biz/src/main/resources/biz/sql/ucar_datalink.sql
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ DROP TABLE IF EXISTS `t_dl_sys_properties`;
CREATE TABLE `t_dl_sys_properties` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT
COMMENT '主键',
`properties_key` VARCHAR(20) NOT NULL
`properties_key` VARCHAR(30) NOT NULL
COMMENT '参数key',
`properties_value` VARCHAR(50) NOT NULL
COMMENT '参数值',
Expand Down
3 changes: 1 addition & 2 deletions dl-biz/src/main/resources/biz/sqlmap/mapper-task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@
SELECT
<include refid="allTaskColumns"/>
from t_dl_task t
LEFT JOIN t_dl_media_source m ON t.READER_MEDIA_SOURCE_ID = m.id
where is_delete='false'
where t.is_delete='false'
<if test="groupId != null">
and t.GROUP_ID = #{groupId}
</if>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ucar.datalink.manager.core.boot;

import com.alibaba.fastjson.parser.ParserConfig;
import com.ucar.datalink.manager.core.server.ServerContainer;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
Expand All @@ -18,6 +19,10 @@ public class ManagerBootStrap {
private static final Logger logger = LoggerFactory.getLogger(ManagerBootStrap.class);
private static final String CLASSPATH_URL_PREFIX = "classpath:";

static{
ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
}

public static void main(String args[]) {
ManagerBootStrap bootStrap = new ManagerBootStrap();
bootStrap.boot(args);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ucar.datalink.worker.core.boot;

import com.alibaba.fastjson.parser.ParserConfig;
import com.ucar.datalink.biz.service.*;
import com.ucar.datalink.common.utils.IPUtils;
import com.ucar.datalink.domain.worker.WorkerInfo;
Expand Down Expand Up @@ -36,6 +37,10 @@ public class WorkerBootStrap {

private static final String CLASSPATH_URL_PREFIX = "classpath:";

static{
ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
}

public void boot(String[] args) {
try {
//boot spring
Expand Down

0 comments on commit efbf51b

Please sign in to comment.