Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zgzx
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
zgzx
Commits
8fa1241c
提交
8fa1241c
authored
9月 09, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
143fd0e6
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
2 行增加
和
38 行删除
+2
-38
EbookController.java
...om/zrqx/resource/bg/controller/ebook/EbookController.java
+0
-0
ImageLibraryController.java
...ce/bg/controller/imagelibrary/ImageLibraryController.java
+2
-38
ResourceLibraryController.java
...controller/resourcelibrary/ResourceLibraryController.java
+0
-0
没有找到文件。
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/ebook/EbookController.java
deleted
100644 → 0
浏览文件 @
143fd0e6
差异被折叠。
点击展开。
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/imagelibrary/ImageLibraryController.java
浏览文件 @
8fa1241c
...
...
@@ -29,12 +29,9 @@ import com.zrqx.core.form.resource.bg.imagelibrary.BatchUpdateImageLibraryForm;
import
com.zrqx.core.form.resource.bg.imagelibrary.QueryImageLibraryForm
;
import
com.zrqx.core.form.resource.bg.imagelibrary.SaveImageLibraryForm
;
import
com.zrqx.core.form.resource.bg.imagelibrary.SaveUpdateImageLibraryForm
;
import
com.zrqx.core.form.resource.bg.recommend.UpdateRecommendResourceForm
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibrary
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibraryDiyType
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibraryLabelContentDiyType
;
import
com.zrqx.core.model.resource.imagelibrary.ImageResource
;
import
com.zrqx.core.model.resource.marketing.PromotionContent
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.response.CallBack
;
...
...
@@ -44,11 +41,8 @@ import com.zrqx.core.vo.resource.imagelibrary.ImageLibraryOneVO;
import
com.zrqx.resource.bg.service.ResourceRelationService
;
import
com.zrqx.resource.bg.service.imagelibrary.ImageLibraryDiyTypeRelationService
;
import
com.zrqx.resource.bg.service.imagelibrary.ImageLibraryDiyTypeService
;
import
com.zrqx.resource.bg.service.imagelibrary.ImageLibraryLabelContentDiyTypeService
;
import
com.zrqx.resource.bg.service.imagelibrary.ImageLibraryService
;
import
com.zrqx.resource.bg.service.imagelibrary.ImageResourceService
;
import
com.zrqx.resource.bg.service.marketing.PromotionContentService
;
import
com.zrqx.resource.bg.service.recommend.RecommendResourceService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -71,16 +65,7 @@ public class ImageLibraryController {
@Autowired
private
ResourceRelationService
resourceRelationService
;
@Autowired
private
ImageLibraryLabelContentDiyTypeService
lcdtservice
;
@Autowired
private
ImageLibraryDiyTypeService
imageLibraryDiyTypeService
;
/** 推荐位内容*/
@Autowired
private
RecommendResourceService
recommendResourceService
;
/** 促销内容*/
@Autowired
private
PromotionContentService
promotionContentService
;
...
...
@@ -109,19 +94,7 @@ public class ImageLibraryController {
throw
new
BusinessValidateException
(
"操作失败"
);
}
ImageLibrary
entity
=
service
.
selectByPrimaryKey
(
form
.
getId
());
//促销活动内容修改
PromotionContent
con
=
new
PromotionContent
();
con
.
setResourceId
(
form
.
getId
());
con
.
setResourceType
(
entity
.
getResourceType
());
con
.
setName
(
form
.
getName
());
promotionContentService
.
updateContent
(
con
);
//推荐位内容修改
UpdateRecommendResourceForm
res
=
new
UpdateRecommendResourceForm
();
res
.
setResId
(
form
.
getId
());
res
.
setResType
(
entity
.
getResourceType
());
res
.
setResImg
(
form
.
getImage
());
res
.
setResName
(
form
.
getName
());
recommendResourceService
.
updateResourceContent
(
res
);
return
CallBack
.
success
();
}
@ApiOperation
(
value
=
"批量修改价格"
,
notes
=
"批量修改价格"
)
...
...
@@ -248,16 +221,7 @@ public class ImageLibraryController {
List
<
ImageLibraryDiyType
>
list
=
idrService
.
selectByExample
(
example
);
//组装自定义分类
vo
.
setDiyType
(
list
);
//组装标签分类
example
=
lcdtservice
.
createExample
();
example
.
createCriteria
().
andEqualTo
(
"imageId"
,
oid
);
List
<
ImageLibraryLabelContentDiyType
>
ilcdList
=
lcdtservice
.
selectByExample
(
example
);
vo
.
setLabel
(
ilcdList
);
List
<
Integer
>
labelContentDiyTypeIds
=
new
ArrayList
<
Integer
>();
ilcdList
.
forEach
(
f
->{
labelContentDiyTypeIds
.
add
(
f
.
getLabelContentDiyTypeId
());
});
vo
.
setLabelContentDiyTypeIds
(
labelContentDiyTypeIds
);
return
CallBack
.
success
(
vo
);
}
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"查询列表"
)
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/resourcelibrary/ResourceLibraryController.java
浏览文件 @
8fa1241c
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论