Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
1eabef89
Commit
1eabef89
authored
Mar 03, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.7-花名册
parent
a77ea973
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
TCompleteMonitorSetBaseInfoMapper.java
...fu/archives/mapper/TCompleteMonitorSetBaseInfoMapper.java
+3
-3
TCompleteMonitorSetBaseInfoServiceImpl.java
.../service/impl/TCompleteMonitorSetBaseInfoServiceImpl.java
+9
-5
TCompleteMonitorSetBaseInfoMapper.xml
...in/resources/mapper/TCompleteMonitorSetBaseInfoMapper.xml
+3
-3
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TCompleteMonitorSetBaseInfoMapper.java
View file @
1eabef89
...
...
@@ -42,8 +42,8 @@ public interface TCompleteMonitorSetBaseInfoMapper extends BaseMapper<TCompleteM
List
<
TCompleteMonitorSetBaseInfo
>
getBaseInfoByIds
(
@Param
(
"ids"
)
String
ids
);
// 获取类型需要完整的字段名
List
<
String
>
getIdByType
(
@Param
(
"typeName"
)
String
typeName
);
List
<
String
>
getIdByOne
();
List
<
String
>
getBaseFieldById
List
(
@Param
(
"idList"
)
List
<
String
>
idList
);
String
getIdByType
(
@Param
(
"typeName"
)
String
typeName
);
String
getIdByOne
();
List
<
String
>
getBaseFieldById
Arr
(
@Param
(
"idArr"
)
String
[]
idArr
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TCompleteMonitorSetBaseInfoServiceImpl.java
View file @
1eabef89
...
...
@@ -58,18 +58,22 @@ public class TCompleteMonitorSetBaseInfoServiceImpl extends ServiceImpl<TComplet
**/
@Override
public
List
<
String
>
getBaseFieldByTypeName
(
String
typeName
)
{
List
<
String
>
idList
=
baseMapper
.
getIdByType
(
typeName
);
String
[]
idArr
=
null
;
String
ids
=
baseMapper
.
getIdByType
(
typeName
);
// 取默认配置
if
(
idList
==
null
||
idList
.
isEmpty
()
||
"-1"
.
equals
(
typeName
))
{
id
List
=
baseMapper
.
getIdByOne
();
if
(
Common
.
isEmpty
(
ids
)
||
"-1"
.
equals
(
ids
))
{
id
s
=
baseMapper
.
getIdByOne
();
}
if
(
idList
==
null
||
idList
.
isEmpty
())
{
if
(
Common
.
isNotNull
(
ids
))
{
idArr
=
ids
.
split
(
","
);
}
if
(
idArr
==
null
||
idArr
.
length
==
0
)
{
// -1表示不可以
List
<
String
>
stringList
=
new
ArrayList
<>();
stringList
.
add
(
"-1"
);
return
stringList
;
}
return
baseMapper
.
getBaseFieldById
List
(
idList
);
return
baseMapper
.
getBaseFieldById
Arr
(
idArr
);
}
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TCompleteMonitorSetBaseInfoMapper.xml
View file @
1eabef89
...
...
@@ -45,7 +45,7 @@
<!-- 获取属性字段 -->
<select
id=
"getIdByType"
resultType=
"java.lang.String"
>
select s.BASE_ID from t_complete_monitor_set s where s.CONTRACT_TYPE_NAME like concat('%', #{typeName},'%')
select s.BASE_ID from t_complete_monitor_set s where s.CONTRACT_TYPE_NAME like concat('%', #{typeName},'%')
limit 1
</select>
<!-- 获取属性字段 -->
<select
id=
"getIdByOne"
resultType=
"java.lang.String"
>
...
...
@@ -53,11 +53,11 @@
</select>
<!-- 获取属性字段 -->
<select
id=
"getBaseFieldById
List
"
resultType=
"java.lang.String"
>
<select
id=
"getBaseFieldById
Arr
"
resultType=
"java.lang.String"
>
SELECT BASE_FIELD
FROM t_complete_monitor_set_base_info a
where a.id in
<foreach
item=
"idStr"
index=
"index"
collection=
"id
List
"
open=
"("
<foreach
item=
"idStr"
index=
"index"
collection=
"id
Arr
"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment