Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
lic
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
inroi
lic
Commits
91b8a091
提交
91b8a091
authored
1月 25, 2024
作者:
李炎
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
租户效验
上级
74fda6ba
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
0 行删除
+21
-0
LicInfoController.java
...rc/main/java/com/system/controller/LicInfoController.java
+4
-0
LicInfoMapper.java
lic-system/src/main/java/com/system/dao/LicInfoMapper.java
+9
-0
LicInfoMapper.xml
...tem/src/main/java/com/system/dao/mapper/LicInfoMapper.xml
+8
-0
没有找到文件。
lic-system/src/main/java/com/system/controller/LicInfoController.java
浏览文件 @
91b8a091
...
@@ -39,6 +39,10 @@ public class LicInfoController {
...
@@ -39,6 +39,10 @@ public class LicInfoController {
if
(!
StringUtil
.
isNull
(
mac
))
{
if
(!
StringUtil
.
isNull
(
mac
))
{
return
RestResponse
.
fail
(
"MAC地址已存在"
);
return
RestResponse
.
fail
(
"MAC地址已存在"
);
}
}
LicInfoListOutVoRecords
licInfoByTenantId
=
licInfoMapper
.
getLicInfoByTenantId
(
inVo
.
getTenantId
());
if
(!
StringUtil
.
isNull
(
licInfoByTenantId
))
{
return
RestResponse
.
fail
(
"租户标识已存在"
);
}
locInfoService
.
licInfoCreate
(
inVo
);
locInfoService
.
licInfoCreate
(
inVo
);
return
RestResponse
.
success
();
return
RestResponse
.
success
();
}
}
...
...
lic-system/src/main/java/com/system/dao/LicInfoMapper.java
浏览文件 @
91b8a091
...
@@ -48,6 +48,15 @@ public interface LicInfoMapper {
...
@@ -48,6 +48,15 @@ public interface LicInfoMapper {
* @return Lic信息
* @return Lic信息
*/
*/
LicInfoListOutVoRecords
getLicInfoByMacAddress
(
String
macAddress
);
LicInfoListOutVoRecords
getLicInfoByMacAddress
(
String
macAddress
);
/**
* 根据tenantId地址查询Lic信息
*
* @param macAddress MAC地址
* @return Lic信息
*/
LicInfoListOutVoRecords
getLicInfoByTenantId
(
String
tenantId
);
/**
/**
* 根据id查询Lic信息
* 根据id查询Lic信息
*
*
...
...
lic-system/src/main/java/com/system/dao/mapper/LicInfoMapper.xml
浏览文件 @
91b8a091
...
@@ -69,6 +69,14 @@
...
@@ -69,6 +69,14 @@
</select>
</select>
<select
id=
"getLicInfoByTenantId"
parameterType=
"java.lang.String"
resultType=
"com.system.transfer.lic.LicInfoListOutVoRecords"
>
SELECT
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 tenant_id = #{tenantId}
</select>
<select
id=
"getLicInfoById"
parameterType=
"java.lang.Integer"
<select
id=
"getLicInfoById"
parameterType=
"java.lang.Integer"
resultType=
"com.system.transfer.lic.LicInfoListOutVoRecords"
>
resultType=
"com.system.transfer.lic.LicInfoListOutVoRecords"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论