|
|
@@ -72,17 +72,17 @@ public interface DataConnectorMapper {
|
|
|
@Update("<script>" +
|
|
|
"UPDATE bi_data_connectors set " +
|
|
|
"data_name = #{dataName}" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"dataTag != null\"> , data_tag = #{dataTag} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"loadObject != null\"> , LOAD_OBJECT = #{loadObject} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"columnConfig != null\"> , columns_config = #{columnConfig} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"dbConfig != null\"> , DB_CONFIG = #{dbConfig} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"usedNumber != null\"> , used_number = #{usedNumber} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"createBy != null\"> , create_by = #{createBy} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"type != null\"> , con_TYPE = #{type} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"note != null\"> , DATA_NOTE = #{note} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"tableName != null\"> , table_name = #{tableName} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"connectorGroup != null\"> , BD_GROUP = #{connectorGroup} </if>"+
|
|
|
- "<if com.usoftchina.bi.starter.test=\"updateDate != null\"> , UPDATE_DATE = to_date(#{updateDate},'YYYY-MM-DD hh24:mi:ss') </if>" +
|
|
|
+ "<if test=\"dataTag != null\"> , data_tag = #{dataTag} </if>" +
|
|
|
+ "<if test=\"loadObject != null\"> , LOAD_OBJECT = #{loadObject} </if>" +
|
|
|
+ "<if test=\"columnConfig != null\"> , columns_config = #{columnConfig} </if>" +
|
|
|
+ "<if test=\"dbConfig != null\"> , DB_CONFIG = #{dbConfig} </if>" +
|
|
|
+ "<if test=\"usedNumber != null\"> , used_number = #{usedNumber} </if>" +
|
|
|
+ "<if test=\"createBy != null\"> , create_by = #{createBy} </if>" +
|
|
|
+ "<if test=\"type != null\"> , con_TYPE = #{type} </if>" +
|
|
|
+ "<if test=\"note != null\"> , DATA_NOTE = #{note} </if>" +
|
|
|
+ "<if test=\"tableName != null\"> , table_name = #{tableName} </if>" +
|
|
|
+ "<if test=\"connectorGroup != null\"> , BD_GROUP = #{connectorGroup} </if>"+
|
|
|
+ "<if test=\"updateDate != null\"> , UPDATE_DATE = to_date(#{updateDate},'YYYY-MM-DD hh24:mi:ss') </if>" +
|
|
|
"where id = #{dataId}" +
|
|
|
"</script>")
|
|
|
void updateData(DataConnector dataConnector);
|
|
|
@@ -140,13 +140,13 @@ public interface DataConnectorMapper {
|
|
|
@Update("<script>"+
|
|
|
"UPDATE BI_DATABASES set " +
|
|
|
"BASES_NAME = #{name}" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"addrass != null\"> , ADDRASS = #{addrass} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"port != null\"> , PORT = #{port} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"databaseType != null\"> , DATABASE_TYPE = #{databaseType} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"dataName != null\"> , DATA_NAME = #{dataName} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"userName != null\"> , USER_NAME = #{userName} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"passWord != null\"> , PASS_WORD = #{passWord} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"note != null\"> , NOTE = #{note} </if>" +
|
|
|
+ "<if test=\"addrass != null\"> , ADDRASS = #{addrass} </if>" +
|
|
|
+ "<if test=\"port != null\"> , PORT = #{port} </if>" +
|
|
|
+ "<if test=\"databaseType != null\"> , DATABASE_TYPE = #{databaseType} </if>" +
|
|
|
+ "<if test=\"dataName != null\"> , DATA_NAME = #{dataName} </if>" +
|
|
|
+ "<if test=\"userName != null\"> , USER_NAME = #{userName} </if>" +
|
|
|
+ "<if test=\"passWord != null\"> , PASS_WORD = #{passWord} </if>" +
|
|
|
+ "<if test=\"note != null\"> , NOTE = #{note} </if>" +
|
|
|
"where id = #{id}" +
|
|
|
"</script>")
|
|
|
void updatabases(Databases databases);
|
|
|
@@ -191,8 +191,8 @@ public interface DataConnectorMapper {
|
|
|
@Update("<script>"+
|
|
|
"UPDATE bi_base_group_by set "+
|
|
|
"bb_group_name = #{groupName}" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"groupIndex != null\"> , bb_index = #{groupIndex} </if>" +
|
|
|
- "<if com.usoftchina.bi.starter.test=\"fatherId != null\"> , bb_father_id = #{fatherId} </if>" +
|
|
|
+ "<if test=\"groupIndex != null\"> , bb_index = #{groupIndex} </if>" +
|
|
|
+ "<if test=\"fatherId != null\"> , bb_father_id = #{fatherId} </if>" +
|
|
|
",updata_date = to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss') "+
|
|
|
" where bb_id = #{id}" +
|
|
|
"</script>")
|