Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mzyy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
mzyy
Commits
233d2c4d
提交
233d2c4d
authored
2月 19, 2019
作者:
liupengfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
cafa69af
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
12 行增加
和
16 行删除
+12
-16
AudioLibrarySerivceImpl.java
...urce/bg/service/audiolibrary/AudioLibrarySerivceImpl.java
+2
-4
LabelSerivceImpl.java
.../com/zrqx/resource/bg/service/label/LabelSerivceImpl.java
+2
-2
VideoLibrarySerivceImpl.java
...urce/bg/service/videolibrary/VideoLibrarySerivceImpl.java
+2
-3
FgEbookController.java
.../zrqx/resource/fg/controller/ebook/FgEbookController.java
+2
-3
FgArticleLibrarySerivceImpl.java
...g/service/articlelibrary/FgArticleLibrarySerivceImpl.java
+2
-2
FgRecordServiceImpl.java
.../zrqx/resource/fg/service/record/FgRecordServiceImpl.java
+2
-2
没有找到文件。
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/audiolibrary/AudioLibrarySerivceImpl.java
浏览文件 @
233d2c4d
...
...
@@ -5,7 +5,6 @@ import java.util.Date;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -21,7 +20,7 @@ import com.zrqx.core.mapper.BaseMapper;
import
com.zrqx.core.model.resource.audiolibrary.AudioLibrary
;
import
com.zrqx.core.model.resource.audiolibrary.AudioLibraryDiyType
;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.core.util.bean.
Copy
;
import
com.zrqx.core.util.bean.
BeanUtils
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.vo.resource.audiolibrary.AudioLibraryListVO
;
...
...
@@ -70,8 +69,7 @@ public class AudioLibrarySerivceImpl extends BaseServiceImpl<AudioLibrary,Intege
}
@Override
public
boolean
batchInsert
(
List
<
SaveAudioLibraryForm
>
form
)
{
List
<
AudioLibrary
>
list
=
Copy
.
copyList
(
form
,
AudioLibrary
.
class
);
list
.
forEach
(
li
->{
List
<
AudioLibrary
>
list
=
BeanUtils
.
copyList
(
form
,
AudioLibrary
.
class
,
li
->
{
li
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
li
.
setUpdateTime
(
new
Date
());
});
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/label/LabelSerivceImpl.java
浏览文件 @
233d2c4d
...
...
@@ -6,7 +6,6 @@ import java.util.Date;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -20,6 +19,7 @@ import com.zrqx.core.model.resource.label.LabelDataType;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.bean.BeanUtils
;
import
com.zrqx.core.util.bean.Copy
;
import
com.zrqx.core.vo.resource.label.LabelListVO
;
import
com.zrqx.core.vo.resource.label.LabelOneVO
;
...
...
@@ -51,7 +51,7 @@ public class LabelSerivceImpl extends BaseServiceImpl<Label,Integer> implements
Label
label
=
labelMapper
.
selectByPrimaryKey
(
oid
);
BeanUtils
.
copyProperties
(
label
,
form
);
List
<
LabelDataType
>
li
=
labelDataTypeMapper
.
queryBylabelId
(
oid
);
form
.
setDataType
(
Copy
.
copyList
(
li
,
LabelDataTypeForm
.
class
));
form
.
setDataType
(
BeanUtils
.
copyList
(
li
,
LabelDataTypeForm
.
class
));
return
form
;
}
@Override
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/videolibrary/VideoLibrarySerivceImpl.java
浏览文件 @
233d2c4d
...
...
@@ -5,7 +5,6 @@ import java.util.Date;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -21,6 +20,7 @@ import com.zrqx.core.mapper.BaseMapper;
import
com.zrqx.core.model.resource.videolibrary.VideoLibrary
;
import
com.zrqx.core.model.resource.videolibrary.VideoLibraryDiyTypeRelation
;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.core.util.bean.BeanUtils
;
import
com.zrqx.core.util.bean.Copy
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
...
...
@@ -84,8 +84,7 @@ public class VideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,Intege
*/
@Override
public
boolean
batchInsert
(
List
<
SaveVideoLibraryForm
>
form
)
{
List
<
VideoLibrary
>
list
=
Copy
.
copyList
(
form
,
VideoLibrary
.
class
);
list
.
forEach
(
li
->{
List
<
VideoLibrary
>
list
=
BeanUtils
.
copyList
(
form
,
VideoLibrary
.
class
,
li
->
{
li
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
li
.
setUpdateTime
(
new
Date
());
});
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/controller/ebook/FgEbookController.java
浏览文件 @
233d2c4d
...
...
@@ -7,7 +7,6 @@ import java.util.List;
import
java.util.Map
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -22,6 +21,7 @@ import com.zrqx.core.form.resource.fg.ebook.FgQueryEbookInfoForm;
import
com.zrqx.core.form.resource.fg.ebook.FgQueryOtherEbookForm
;
import
com.zrqx.core.model.resource.ebook.Book
;
import
com.zrqx.core.model.resource.ebook.Ebook
;
import
com.zrqx.core.util.bean.BeanUtils
;
import
com.zrqx.core.util.bean.Copy
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
...
...
@@ -110,8 +110,7 @@ public class FgEbookController {
public
CallBack
<
List
<
FgEbookVO
>>
getListByIds
(
@RequestParam
(
value
=
"ids"
)
List
<
Integer
>
ids
)
{
bookservice
.
createCriteria
().
andIn
(
"id"
,
ids
);
List
<
Book
>
books
=
bookservice
.
selectByCriteria
();
List
<
FgEbookVO
>
vos
=
Copy
.
copyList
(
books
,
FgEbookVO
.
class
);
vos
.
forEach
(
vo
->{
List
<
FgEbookVO
>
vos
=
BeanUtils
.
copyList
(
books
,
FgEbookVO
.
class
,
vo
->
{
Ebook
ebook
=
ebookservice
.
selectByPrimaryKey
(
vo
.
getId
());
BeanUtils
.
copyProperties
(
ebook
,
vo
);
});
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/service/articlelibrary/FgArticleLibrarySerivceImpl.java
浏览文件 @
233d2c4d
...
...
@@ -8,7 +8,6 @@ import java.util.Map;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -36,6 +35,7 @@ import com.zrqx.core.model.resource.articlelibrary.ArticleLibraryDiyType;
import
com.zrqx.core.model.resource.ebook.Book
;
import
com.zrqx.core.model.resource.ebook.EbookDiyType
;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.core.util.bean.BeanUtils
;
import
com.zrqx.core.util.bean.Copy
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.response.CallBack
;
...
...
@@ -379,7 +379,7 @@ public class FgArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,
ArticleLibrary
article
=
new
ArticleLibrary
();
article
.
setBookId
(
form
.
getBookId
());
article
.
setStatus
(
StatusEnum
.
ENABLE
.
getCode
());
List
<
FgArticleLibraryListVO
>
list
=
Copy
.
copyList
(
mapper
.
select
(
article
),
FgArticleLibraryListVO
.
class
);
List
<
FgArticleLibraryListVO
>
list
=
BeanUtils
.
copyList
(
mapper
.
select
(
article
),
FgArticleLibraryListVO
.
class
);
return
list
;
}
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/service/record/FgRecordServiceImpl.java
浏览文件 @
233d2c4d
...
...
@@ -14,6 +14,7 @@ import com.zrqx.core.model.resource.ebook.Book;
import
com.zrqx.core.model.resource.ebook.Ebook
;
import
com.zrqx.core.model.resource.record.Record
;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.core.util.bean.BeanUtils
;
import
com.zrqx.core.util.bean.Copy
;
import
com.zrqx.core.vo.resource.fg.record.FgMyRecordVO
;
import
com.zrqx.resource.commons.Redis
;
...
...
@@ -96,8 +97,7 @@ public class FgRecordServiceImpl extends BaseServiceImpl<Record, Integer>
record
.
setMemberId
(
123456
);
List
<
Record
>
list
=
mapper
.
select
(
record
);
if
(
list
!=
null
&&
list
.
size
()
>
0
){
List
<
FgMyRecordVO
>
vos
=
Copy
.
copyList
(
list
,
FgMyRecordVO
.
class
);
vos
.
forEach
(
vo
->{
List
<
FgMyRecordVO
>
vos
=
BeanUtils
.
copyList
(
list
,
FgMyRecordVO
.
class
,
vo
->
{
//文章2-2
if
(
GoodsTypeEnum
.
ARTICLE
.
getCode
().
equals
(
vo
.
getGoodsType
())){
ArticleLibrary
article
=
articleLibraryMapper
.
selectByPrimaryKey
(
vo
.
getGoodsId
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论