Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jgjy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jgjy
Commits
f8356313
提交
f8356313
authored
7月 26, 2019
作者:
malei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(fg-resource): 资源服务
1. 附属资源名称不显示 References: N/A
上级
6d5df332
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
6 行删除
+21
-6
ResourceBindingMapper.java
.../zrqx/fg/resource/mapper/goods/ResourceBindingMapper.java
+21
-6
没有找到文件。
com.zrqx.fg.resource/src/main/java/com/zrqx/fg/resource/mapper/goods/ResourceBindingMapper.java
浏览文件 @
f8356313
package
com
.
zrqx
.
fg
.
resource
.
mapper
.
goods
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.form.resource.bg.goods.ResourceBindingQuery
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.resource.goods.ResourceBinding
;
import
com.zrqx.core.vo.resource.bg.goods.ResourceBindingVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
@Mapper
public
interface
ResourceBindingMapper
extends
BaseMapper
<
ResourceBinding
>
{
...
...
@@ -29,6 +28,22 @@ public interface ResourceBindingMapper extends BaseMapper<ResourceBinding> {
+
" </script> "
)
List
<
ResourceBindingVo
>
pageBinding
(
@Param
(
"query"
)
ResourceBindingQuery
query
);
@Select
(
" <script> "
+
" SELECT a.id, b.name, a.otherType type, a.sort, a.createTime, a.otherId FROM "
+
" res_resource_binding a LEFT JOIN res_physical_resource b ON a.otherId = b.id "
+
" WHERE 1 = 1 "
// 主资源id
+
" <if test = '"
+
NOTBLANK
+
"(query.mainId)'> "
+
" and a.mainId = #{query.mainId} "
+
" </if> "
// 附属资源类型
+
" <if test = '"
+
NOTBLANK
+
"(query.otherType)'> "
+
" and a.otherType = #{query.otherType} "
+
" </if> "
+
" </script> "
)
List
<
ResourceBindingVo
>
getBindingResource
(
@Param
(
"query"
)
ResourceBindingQuery
query
);
/**
* 根据主资源id和附属资源类型获取该附属资源类型最大排序号
* @param mainId
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论