Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
周健威
rs-cloud-platform
Commits
0c5e15f7
Commit
0c5e15f7
authored
Jan 05, 2021
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通知信息
parent
8ca5178e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
ImageInfoRelationBiz.java
.../upyuns/platform/rs/website/biz/ImageInfoRelationBiz.java
+1
-3
ImageInfoRelationMapper.java
...s/platform/rs/website/mapper/ImageInfoRelationMapper.java
+3
-1
ImageInfoRelationMapper.xml
...ver/src/main/resources/mapper/ImageInfoRelationMapper.xml
+10
-0
No files found.
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/ImageInfoRelationBiz.java
View file @
0c5e15f7
...
@@ -112,8 +112,6 @@ public class ImageInfoRelationBiz extends BaseBiz<ImageInfoRelationMapper,ImageI
...
@@ -112,8 +112,6 @@ public class ImageInfoRelationBiz extends BaseBiz<ImageInfoRelationMapper,ImageI
if
(
arr
==
null
)
{
if
(
arr
==
null
)
{
return
new
ArrayList
<>();
return
new
ArrayList
<>();
}
}
Example
example
=
new
Example
(
ImageInfoRelation
.
class
);
return
mapper
.
getListByIds
(
Arrays
.
asList
(
arr
));
example
.
createCriteria
().
andIn
(
"id"
,
Arrays
.
asList
(
arr
));
return
mapper
.
selectByExample
(
example
);
}
}
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/mapper/ImageInfoRelationMapper.java
View file @
0c5e15f7
...
@@ -3,6 +3,8 @@ package com.upyuns.platform.rs.website.mapper;
...
@@ -3,6 +3,8 @@ package com.upyuns.platform.rs.website.mapper;
import
com.upyuns.platform.rs.website.entity.ImageInfoRelation
;
import
com.upyuns.platform.rs.website.entity.ImageInfoRelation
;
import
tk.mybatis.mapper.common.Mapper
;
import
tk.mybatis.mapper.common.Mapper
;
import
java.util.List
;
/**
/**
* 影像图库上传图片关联信息
* 影像图库上传图片关联信息
*
*
...
@@ -11,5 +13,5 @@ import tk.mybatis.mapper.common.Mapper;
...
@@ -11,5 +13,5 @@ import tk.mybatis.mapper.common.Mapper;
* @date 2020-12-04 14:38:23
* @date 2020-12-04 14:38:23
*/
*/
public
interface
ImageInfoRelationMapper
extends
Mapper
<
ImageInfoRelation
>
{
public
interface
ImageInfoRelationMapper
extends
Mapper
<
ImageInfoRelation
>
{
List
<
ImageInfoRelation
>
getListByIds
(
List
<
String
>
list
);
}
}
rs-website/rs-website-server/src/main/resources/mapper/ImageInfoRelationMapper.xml
View file @
0c5e15f7
...
@@ -3,4 +3,14 @@
...
@@ -3,4 +3,14 @@
<mapper
namespace=
"com.upyuns.platform.rs.website.mapper.ImageInfoRelationMapper"
>
<mapper
namespace=
"com.upyuns.platform.rs.website.mapper.ImageInfoRelationMapper"
>
<select
id=
"getListByIds"
resultType=
"com.upyuns.platform.rs.website.entity.ImageInfoRelation"
>
select iir.* from image_info_relation iir
LEFT JOIN image_img_storage iis on iir.relation_id = iis.id
where iir.id in
<foreach
collection=
"list"
item=
"emp"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{emp}
</foreach>
and iis.`status` = 1
</select>
</mapper>
</mapper>
\ No newline at end of file
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