Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jgjy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jgjy
Commits
384ab521
提交
384ab521
authored
4月 28, 2019
作者:
lvwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
6876cc23
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
2 行删除
+15
-2
PhyResourceController.java
...e/controller/goods/phyresource/PhyResourceController.java
+1
-1
PhyResourceMapper.java
.../resource/mapper/goods/phyresource/PhyResourceMapper.java
+14
-1
没有找到文件。
com.zrqx.bg.resource/src/main/java/com/zrqx/bg/resource/controller/goods/phyresource/PhyResourceController.java
浏览文件 @
384ab521
...
@@ -171,7 +171,7 @@ public class PhyResourceController {
...
@@ -171,7 +171,7 @@ public class PhyResourceController {
@ApiOperation
(
"获取关联资源类型"
)
@ApiOperation
(
"获取关联资源类型"
)
@GetMapping
(
ResourceRequestPath
.
MAP_TYPES
)
@GetMapping
(
ResourceRequestPath
.
MAP_TYPES
)
public
CallBack
<
Map
<
String
,
String
>>
map
(
@ApiParam
(
"获取哪种列表的标志 职业培训、技工教育:1|教参:2|习题册:3"
)
Integer
sign
){
public
CallBack
<
Map
<
String
,
String
>>
map
(
@ApiParam
(
"获取哪种列表的标志 职业培训、技工教育:1|教参:2|习题册:3"
)
@RequestParam
Integer
sign
){
return
CallBack
.
success
(
GoodsTypeEnum
.
getRelationResourceTypeMap
(
sign
));
return
CallBack
.
success
(
GoodsTypeEnum
.
getRelationResourceTypeMap
(
sign
));
}
}
}
}
com.zrqx.bg.resource/src/main/java/com/zrqx/bg/resource/mapper/goods/phyresource/PhyResourceMapper.java
浏览文件 @
384ab521
...
@@ -93,7 +93,20 @@ public interface PhyResourceMapper extends BaseMapper<PhyResource> {
...
@@ -93,7 +93,20 @@ public interface PhyResourceMapper extends BaseMapper<PhyResource> {
// 实体表
// 实体表
+
" <if test = '(query.typeSign) != 2'> "
+
" <if test = '(query.typeSign) != 2'> "
+
" SELECT id, name, author, type, createTime, status FROM res_physical_resource "
+
" SELECT id, name, author, type, createTime, status FROM res_physical_resource "
+
" WHERE (type = '1-3' or type = '1-4') "
+
" WHERE 1 = 1 "
+
" <if test = '1 == (query.sign)'> "
+
" AND (type = '1-3' or type = '1-4') "
+
" </if> "
+
" <if test = '2 == (query.sign)'> "
+
" AND type = '1-3' "
+
" </if> "
+
" <if test = '3 == (query.sign)'> "
+
" AND type = '1-4' "
+
" </if> "
+
" <if test = '"
+
NOTBLANK
+
"(query.type)'> "
+
" <if test = '"
+
NOTBLANK
+
"(query.type)'> "
+
" AND type = #{query.type} "
+
" AND type = #{query.type} "
+
" </if> "
+
" </if> "
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论