提交 0f2f1470 authored 作者: 李炎's avatar 李炎

增加租户标识和拦截域名字段

上级 97f282cd
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
resultMap="BaseResultMap"> resultMap="BaseResultMap">
SELECT SELECT
id, lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval, module_verification, id,tenant_id,domain_name, lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval,
module_verification,
docker_services, docker_services,
remark, create_time remark, create_time
FROM tb_lic_info FROM tb_lic_info
...@@ -29,9 +30,9 @@ ...@@ -29,9 +30,9 @@
<insert id="licInfoCreate" parameterType="com.system.transfer.lic.LicInfoCreateInVo"> <insert id="licInfoCreate" parameterType="com.system.transfer.lic.LicInfoCreateInVo">
INSERT INTO tb_lic_info ( INSERT INTO tb_lic_info (tenant_id,domain_name,
lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval, docker_services, remark lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval, docker_services, remark
) VALUES ( ) VALUES (#{tenantId}, #{domainName},
#{lqLicName}, #{macAddress}, #{effectiveTime}, #{fileEffectiveTime}, #{verificationInterval}, #{lqLicName}, #{macAddress}, #{effectiveTime}, #{fileEffectiveTime}, #{verificationInterval},
#{dockerServices,jdbcType=LONGVARCHAR,typeHandler=com.system.handler.DockerServiceDtoTypeHandler}, #{dockerServices,jdbcType=LONGVARCHAR,typeHandler=com.system.handler.DockerServiceDtoTypeHandler},
#{remark} #{remark}
...@@ -42,7 +43,7 @@ ...@@ -42,7 +43,7 @@
<update id="licInfoUpdate" parameterType="com.system.transfer.lic.LicInfoUpdateInVo"> <update id="licInfoUpdate" parameterType="com.system.transfer.lic.LicInfoUpdateInVo">
UPDATE tb_lic_info SET UPDATE tb_lic_info SET tenant_id = #{tenantId},domain_name = #{domainName},
lq_lic_name = #{lqLicName}, mac_address = #{macAddress}, effective_time = #{effectiveTime}, file_effective_time = #{fileEffectiveTime}, lq_lic_name = #{lqLicName}, mac_address = #{macAddress}, effective_time = #{effectiveTime}, file_effective_time = #{fileEffectiveTime},
verification_interval = #{verificationInterval}, verification_interval = #{verificationInterval},
docker_services = #{dockerServices,jdbcType=LONGVARCHAR,typeHandler=com.system.handler.DockerServiceDtoTypeHandler}, docker_services = #{dockerServices,jdbcType=LONGVARCHAR,typeHandler=com.system.handler.DockerServiceDtoTypeHandler},
...@@ -63,7 +64,7 @@ ...@@ -63,7 +64,7 @@
resultType="com.system.transfer.lic.LicInfoListOutVoRecords"> resultType="com.system.transfer.lic.LicInfoListOutVoRecords">
SELECT SELECT
id, lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval, module_verification, docker_services, create_time id,tenant_id,domain_name, lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval, module_verification, docker_services, create_time
FROM tb_lic_info WHERE mac_address = #{macAddress} FROM tb_lic_info WHERE mac_address = #{macAddress}
</select> </select>
...@@ -72,7 +73,7 @@ ...@@ -72,7 +73,7 @@
resultType="com.system.transfer.lic.LicInfoListOutVoRecords"> resultType="com.system.transfer.lic.LicInfoListOutVoRecords">
SELECT SELECT
id, lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval, module_verification, docker_services, create_time id,tenant_id,domain_name, lq_lic_name, mac_address, effective_time, file_effective_time, verification_interval, module_verification, docker_services, create_time
FROM tb_lic_info WHERE id = #{id} FROM tb_lic_info WHERE id = #{id}
</select> </select>
......
...@@ -20,8 +20,14 @@ public class LicInfoCreateInVo { ...@@ -20,8 +20,14 @@ public class LicInfoCreateInVo {
* MAC地址 * MAC地址
*/ */
private String macAddress; private String macAddress;
/**
* 租户ID
*/
private String tenantId;
/**
* 租户域名
*/
private String domainName;
/** /**
* 导入有效时间 * 导入有效时间
*/ */
......
...@@ -15,7 +15,14 @@ public class LicInfoListOutVoRecords { ...@@ -15,7 +15,14 @@ public class LicInfoListOutVoRecords {
* ID * ID
*/ */
private Integer id; private Integer id;
/**
* 租户ID
*/
private String tenantId;
/**
* 租户域名
*/
private String domainName;
/** /**
* lic名称 * lic名称
*/ */
......
...@@ -20,7 +20,14 @@ public class LicInfoUpdateInVo { ...@@ -20,7 +20,14 @@ public class LicInfoUpdateInVo {
* lic名称 * lic名称
*/ */
private String lqLicName; private String lqLicName;
/**
* 租户ID
*/
private String tenantId;
/**
* 租户域名
*/
private String domainName;
/** /**
* MAC地址 * MAC地址
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论