修改主数据

This commit is contained in:
lvleigang 2024-07-04 13:56:09 +08:00
parent 195846ba99
commit c84d5017aa
2 changed files with 42 additions and 8 deletions

View File

@ -22,15 +22,15 @@ spring:
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
# type: com.alibaba.druid.pool.DruidDataSource
# url: jdbc:mysql://hzya.ufyct.com:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
# username: root
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
username: hzyazt
url: jdbc:mysql://hzya.ufyct.com:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: dm.jdbc.driver.DmDriver
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
savefile:
# 文件保存路径
path: /Users/apple/Desktop/log/local

View File

@ -880,6 +880,40 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
distribute_id.setCreate();
distribute_id.setDataType("1");
mdmModuleDbFiledsEntities.add(distribute_id);
MdmModuleDbFiledsEntity app_id = new MdmModuleDbFiledsEntity();
app_id.setMdmId(entity.getMdmId());
app_id.setDbId(entity.getId());
app_id.setEnName("app_id");
app_id.setChName("app_id");
app_id.setFiledType("3");
app_id.setAddType("1");
app_id.setUpdateType("1");
app_id.setShowType("1");
app_id.setQueryType("1");
app_id.setListType("1");
app_id.setViewType("1");
app_id.setFiledLength("50");
app_id.setCreate();
app_id.setDataType("1");
mdmModuleDbFiledsEntities.add(app_id);
MdmModuleDbFiledsEntity api_id = new MdmModuleDbFiledsEntity();
api_id.setMdmId(entity.getMdmId());
api_id.setDbId(entity.getId());
api_id.setEnName("api_id");
api_id.setChName("api_id");
api_id.setFiledType("3");
api_id.setAddType("1");
api_id.setUpdateType("1");
api_id.setShowType("1");
api_id.setQueryType("1");
api_id.setListType("1");
api_id.setViewType("1");
api_id.setFiledLength("50");
api_id.setCreate();
api_id.setDataType("1");
mdmModuleDbFiledsEntities.add(api_id);
}
if ("2".equals(entity.getDbType()) || "1".equals(entity.getDbType())) {
MdmModuleDbFiledsEntity data_status = new MdmModuleDbFiledsEntity();