Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zcq
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
zcq
Commits
c59528c8
提交
c59528c8
authored
5月 12, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
a5dae29d
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
17 行增加
和
28 行删除
+17
-28
.classpath
com.zrqx.core/.classpath
+0
-17
ResourceTypeEnum.java
...e/src/main/java/com/zrqx/core/enums/ResourceTypeEnum.java
+4
-0
QueryResourceForPoPForm.java
...m/zrqx/core/form/resource/bg/QueryResourceForPoPForm.java
+1
-1
SaveResourceRelationForm.java
.../zrqx/core/form/resource/bg/SaveResourceRelationForm.java
+1
-3
org.eclipse.core.resources.prefs
com.zrqx.resource/.settings/org.eclipse.core.resources.prefs
+4
-0
ArticleLibraryController.java
...g/controller/articlelibrary/ArticleLibraryController.java
+1
-1
AuthorLibraryController.java
.../bg/controller/authorLibrary/AuthorLibraryController.java
+2
-2
EbookController.java
...om/zrqx/resource/bg/controller/ebook/EbookController.java
+4
-4
没有找到文件。
com.zrqx.core/.classpath
浏览文件 @
c59528c8
...
...
@@ -35,22 +35,5 @@
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.junit.JUNIT_CONTAINER/4"
/>
<classpathentry
kind=
"src"
path=
"target/generated-sources/annotations"
>
<attributes>
<attribute
name=
"optional"
value=
"true"
/>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
<attribute
name=
"ignore_optional_problems"
value=
"true"
/>
<attribute
name=
"m2e-apt"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"src"
output=
"target/test-classes"
path=
"target/generated-test-sources/test-annotations"
>
<attributes>
<attribute
name=
"optional"
value=
"true"
/>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
<attribute
name=
"ignore_optional_problems"
value=
"true"
/>
<attribute
name=
"m2e-apt"
value=
"true"
/>
<attribute
name=
"test"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"output"
path=
"target/classes"
/>
</classpath>
com.zrqx.core/src/main/java/com/zrqx/core/enums/ResourceTypeEnum.java
浏览文件 @
c59528c8
...
...
@@ -17,6 +17,10 @@ public enum ResourceTypeEnum {
*/
ARTICLE
(
2
,
"文章"
),
/**
* 文章
*/
AUTHOR
(
3
,
"作者"
),
/**
/**
* 视频
*/
...
...
com.zrqx.core/src/main/java/com/zrqx/core/form/resource/bg/QueryResourceForPoPForm.java
浏览文件 @
c59528c8
...
...
@@ -16,6 +16,6 @@ public class QueryResourceForPoPForm {
private
String
title
;
@ApiModelProperty
(
"自定义分类code"
)
private
String
diyTypeCode
;
@ApiModelProperty
(
value
=
"1图书 2文章"
,
required
=
true
)
@ApiModelProperty
(
value
=
"1图书 2文章
,3专家
"
,
required
=
true
)
private
Integer
resourceType
;
}
com.zrqx.core/src/main/java/com/zrqx/core/form/resource/bg/SaveResourceRelationForm.java
浏览文件 @
c59528c8
...
...
@@ -7,10 +7,8 @@ import lombok.Data;
@Data
public
class
SaveResourceRelationForm
{
@ApiModelProperty
(
"当前id"
)
private
Integer
id
;
@ApiModelProperty
(
"管理资源id"
)
private
String
object
Id
;
private
String
Id
;
@ApiModelProperty
(
"被关联资源id"
)
private
List
<
String
>
resourceIds
;
@ApiModelProperty
(
"资源类型 1图书 2 文章 "
)
...
...
com.zrqx.resource/.settings/org.eclipse.core.resources.prefs
浏览文件 @
c59528c8
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/articlelibrary/ArticleLibraryController.java
浏览文件 @
c59528c8
...
...
@@ -230,7 +230,7 @@ public class ArticleLibraryController {
List
<
ArticleResource
>
list
=
resourceService
.
selectByExample
(
example
);
if
(
list
==
null
||
list
.
size
()==
0
)
{
ArticleResource
e
=
new
ArticleResource
();
e
.
setObjectId
(
entity
.
get
Object
Id
());
e
.
setObjectId
(
entity
.
getId
());
e
.
setResourceId
(
entity
.
getResourceIds
().
get
(
i
));
e
.
setCreateTime
(
new
Date
());
e
.
setResourceType
(
entity
.
getResourceType
());
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/authorLibrary/AuthorLibraryController.java
浏览文件 @
c59528c8
...
...
@@ -224,7 +224,7 @@ public class AuthorLibraryController {
@ApiOperation
(
value
=
"保存相关资源"
,
notes
=
"保存相关资源"
)
@PostMapping
(
value
=
ResourceRequestPath
.
RELATION_RESOURCE
+
ResourceRequestPath
.
SAVE
)
public
CallBack
<
Boolean
>
saveRelation
(
@RequestBody
SaveResourceRelationForm
entity
)
{
if
(
entity
.
get
Id
()
==
null
||
entity
.
get
ResourceIds
()
==
null
||
entity
.
getResourceType
()
==
null
if
(
entity
.
getResourceIds
()
==
null
||
entity
.
getResourceType
()
==
null
||
entity
.
getResourceIds
().
size
()
==
0
)
{
throw
new
ParameterValidateException
(
ResponseCodeEnum
.
MISS_EXCEPTION
.
getCode
(),
"必须指定id、被关联的resourceId、资源类型"
);
}
...
...
@@ -236,7 +236,7 @@ public class AuthorLibraryController {
List
<
AuthorResource
>
list
=
resourceService
.
selectByExample
(
example
);
if
(
list
==
null
||
list
.
size
()==
0
)
{
AuthorResource
e
=
new
AuthorResource
();
e
.
setObjectId
(
entity
.
get
Object
Id
());
e
.
setObjectId
(
entity
.
getId
());
e
.
setResourceId
(
entity
.
getResourceIds
().
get
(
i
));
e
.
setCreateTime
(
new
Date
());
e
.
setResourceType
(
entity
.
getResourceType
());
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/ebook/EbookController.java
浏览文件 @
c59528c8
...
...
@@ -285,7 +285,7 @@ public class EbookController {
@ApiOperation
(
value
=
"保存相关资源"
,
notes
=
"保存相关资源"
)
@PostMapping
(
value
=
ResourceRequestPath
.
RELATION_RESOURCE
+
ResourceRequestPath
.
SAVE
)
public
CallBack
<
Boolean
>
saveRelation
(
@RequestBody
SaveResourceRelationForm
entity
)
{
if
(
entity
.
getId
()
=
=
null
||
entity
.
getResourceIds
()
==
null
||
entity
.
getResourceType
()
==
null
if
(
entity
.
getId
()
!
=
null
||
entity
.
getResourceIds
()
==
null
||
entity
.
getResourceType
()
==
null
||
entity
.
getResourceIds
().
size
()
==
0
)
{
throw
new
ParameterValidateException
(
ResponseCodeEnum
.
MISS_EXCEPTION
.
getCode
(),
"必须指定id、被关联的resourceId、资源类型"
);
}
...
...
@@ -297,16 +297,16 @@ public class EbookController {
List
<
EbookResource
>
list
=
resourceService
.
selectByExample
(
example
);
if
(
list
==
null
||
list
.
size
()==
0
)
{
EbookResource
e
=
new
EbookResource
();
e
.
setObjectId
(
entity
.
get
Object
Id
());
e
.
setObjectId
(
entity
.
getId
());
e
.
setResourceId
(
entity
.
getResourceIds
().
get
(
i
));
e
.
setCreateTime
(
new
Date
());
e
.
setResourceType
(
entity
.
getResourceType
());
Integer
maxOrderNum
=
resourceService
.
getMaxOrderNum
();
e
.
setSort
(
maxOrderNum
+
1
);
re
cordList
.
add
(
e
);
re
sourceService
.
insert
(
e
);
}
}
return
CallBack
.
success
(
resourceService
.
insertList
(
recordList
)
);
return
CallBack
.
success
();
}
@ApiOperation
(
value
=
"批量删除关联资源"
,
notes
=
"批量删除"
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论