master
Jiang Peng 2024-05-08 17:14:54 +08:00
parent dab5d1212c
commit 78683f698c
4 changed files with 69 additions and 76 deletions

View File

@ -27,6 +27,8 @@ public class LoginUser implements Serializable {
*/ */
private String username; private String username;
private String email;
/** /**
* *
*/ */
@ -128,4 +130,8 @@ public class LoginUser implements Serializable {
public void setSysUser (SysUser sysUser) { public void setSysUser (SysUser sysUser) {
this.sysUser = sysUser; this.sysUser = sysUser;
} }
public CharSequence getEmail() {
return this.email=email;
}
} }

View File

@ -67,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isDict != null">is_dict,</if> <if test="isDict != null">is_dict,</if>
<if test="defaultValue != null">default_value,</if> <if test="defaultValue != null">default_value,</if>
<if test="dictKey != null">dict_key,</if> <if test="dictKey != null">dict_key,</if>
<if test="dictionaryId != null">dictionary_id,</if>
<if test="createBy != null and createBy != ''">create_by,</if> <if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if> <if test="updateBy != null">update_by,</if>
@ -86,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isDict != null">#{isDict},</if> <if test="isDict != null">#{isDict},</if>
<if test="defaultValue != null">#{defaultValue},</if> <if test="defaultValue != null">#{defaultValue},</if>
<if test="dictKey != null">#{dictKey},</if> <if test="dictKey != null">#{dictKey},</if>
<if test="dictionaryId != null">#{dictionaryId},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if> <if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if> <if test="updateBy != null">#{updateBy},</if>
@ -93,45 +95,68 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
</trim> </trim>
</insert> </insert>
<insert id="batchInsert" parameterType="com.muyu.etl.domain.AssetModel" useGeneratedKeys="true" keyProperty="id" >
insert into `asset_model_copy1`
<trim prefix="(" suffix=")" suffixOverrides=",">
`data_asset_id`,
`name`,
`comment`,
`is_primary_key`,
`type`,
`mapping_type`,
`length`,
`decimal_places`,
`is_null`,
`is_dict`,
`default_value`,
`dict_key`,
`create_by`,
`create_time`,
</trim>
values
<foreach collection="tableAssets" item="item" separator=",">
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="item.dataAssetId != null">#{item.dataAssetId},</if>
<if test="item.name != null">#{item.name},</if>
<if test="item.comment != null">#{item.comment},</if>
<if test="item.isPrimaryKey != null">#{item.isPrimaryKey},</if>
<if test="item.type != null">#{item.type},</if>
<if test="item.mappingType != null">#{item.mappingType},</if>
<if test="item.length != null">#{item.length},</if>
<if test="item.decimalPlaces != null">#{item.decimalPlaces},</if>
<if test="item.isNull != null">#{item.isNull},</if>
<if test="item.isDict != null">#{item.isDict},</if>
<if test="item.defaultValue != null">#{item.defaultValue},</if>
<if test="item.dictKey != null">#{item.dictKey},</if>
<if test="item.createBy != null and item.createBy != ''">#{item.createBy},</if>
<if test="item.createTime != null">#{item.createTime},</if>
</trim>
</foreach>
<insert id="batchInsert" parameterType="com.muyu.etl.domain.AssetModel">
INSERT INTO `asset_model_copy1` (
`data_asset_id`, `name`, `comment`, `is_primary_key`, `type`, `mapping_type`,
`length`, `decimal_places`, `is_null`, `is_dict`, `default_value`, `dict_key`,
`dictionary_id`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`
) VALUES
<foreach collection="tableAssets" item="item" index="index" separator=",">
(
#{item.dataAssetId}, #{item.name}, #{item.comment}, #{item.isPrimaryKey}, #{item.type}, #{item.mappingType},
#{item.length}, #{item.decimalPlaces}, #{item.isNull}, #{item.isDict}, #{item.defaultValue}, #{item.dictKey},
#{item.dictionaryId}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}
)
</foreach>
</insert> </insert>
<!-- <insert id="batchInsert" parameterType="com.muyu.etl.domain.AssetModel" useGeneratedKeys="true" keyProperty="id" >-->
<!-- insert into `asset_model_copy1`-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- `data_asset_id`,-->
<!-- `name`,-->
<!-- `comment`,-->
<!-- `is_primary_key`,-->
<!-- `type`,-->
<!-- `mapping_type`,-->
<!-- `length`,-->
<!-- `decimal_places`,-->
<!-- `is_null`,-->
<!-- `is_dict`,-->
<!-- `default_value`,-->
<!-- `dict_key`,-->
<!-- `dictionary_id`,-->
<!-- `create_by`,-->
<!-- `create_time`,-->
<!-- `update_by`,-->
<!-- `update_time`,-->
<!-- `remark`-->
<!-- </trim>-->
<!-- values-->
<!-- <foreach collection="tableAssets" item="item" separator=",">-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="item.dataAssetId != null">#{item.dataAssetId},</if>-->
<!-- <if test="item.name != null">#{item.name},</if>-->
<!-- <if test="item.comment != null">#{item.comment},</if>-->
<!-- <if test="item.isPrimaryKey != null">#{item.isPrimaryKey},</if>-->
<!-- <if test="item.type != null">#{item.type},</if>-->
<!-- <if test="item.mappingType != null">#{item.mappingType},</if>-->
<!-- <if test="item.length != null">#{item.length},</if>-->
<!-- <if test="item.decimalPlaces != null">#{item.decimalPlaces},</if>-->
<!-- <if test="item.isNull != null">#{item.isNull},</if>-->
<!-- <if test="item.isDict != null">#{item.isDict},</if>-->
<!-- <if test="item.defaultValue != null">#{item.defaultValue},</if>-->
<!-- <if test="item.dictKey != null">#{item.dictKey},</if>-->
<!-- <if test="item.dictionaryId != null">#{item.dictionaryId},</if>-->
<!-- <if test="item.createBy != null and item.createBy != ''">#{item.createBy},</if>-->
<!-- <if test="item.createTime != null">#{item.createTime},</if>-->
<!-- <if test="item.updateBy != null">#{item.updateBy},</if>-->
<!-- <if test="item.updateTime != null">#{item.updateTime},</if>-->
<!-- <if test="item.remark != null">#{item.remark},</if>-->
<!-- </trim>-->
<!-- </foreach>-->
<!-- </insert>-->
<update id="updateAssetModel" parameterType="com.muyu.etl.domain.AssetModel"> <update id="updateAssetModel" parameterType="com.muyu.etl.domain.AssetModel">
update asset_model_copy1 update asset_model_copy1

View File

@ -6,45 +6,6 @@ import java.net.URL;
import java.net.URLClassLoader; import java.net.URLClassLoader;
public class CustomClassLoader extends ClassLoader { public class CustomClassLoader extends ClassLoader {
// public CustomClassLoader(ClassLoader parent, String classPath) throws MalformedURLException {
// super(new URL[]{new URL("file:" + classPath)},parent);
// }
//
// @Override
// protected Class<?> findClass(String name) throws ClassNotFoundException {
// try {
// byte[] classBytes = loadClassData(name);
// return defineClass(name, classBytes, 0, classBytes.length);
// } catch (IOException e) {
// throw new ClassNotFoundException(name, e);
// }
// }
//
// private byte[] loadClassData(String className) throws IOException {
// String fileName = className.replace('.', File.separatorChar) + ".class";
// File classFile = new File(getPathForResource(fileName));
// if (!classFile.exists()) {
// throw new FileNotFoundException("Class file not found: " + classFile.getAbsolutePath());
// }
//
// try (InputStream in = new FileInputStream(classFile)) {
// ByteArrayOutputStream out = new ByteArrayOutputStream();
// byte[] buffer = new byte[4096];
// int n;
// while ((n = in.read(buffer)) != -1) {
// out.write(buffer, 0, n);
// }
// return out.toByteArray();
// }
// }
//
// private String getPathForResource(String resource) {
// URL url = super.getResource(resource);
// if (url == null) {
// throw new IllegalArgumentException("Resource not found: " + resource);
// }
// return url.getPath();
// }
public Class<?> defineClassFromBytes(String name, byte[] data) { public Class<?> defineClassFromBytes(String name, byte[] data) {
return defineClass(name, data, 0, data.length); return defineClass(name, data, 0, data.length);

View File

@ -107,4 +107,5 @@ public class EngineMaintenanceController extends BaseController
{ {
return toAjax(engineMaintenanceService.deleteEngineMaintenanceByIds(ids)); return toAjax(engineMaintenanceService.deleteEngineMaintenanceByIds(ids));
} }
} }