Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
master-5.0
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
master-5.0
Commits
384eaf08
提交
384eaf08
authored
11月 11, 2019
作者:
zhouzhigang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
28e4c41b
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
39 行增加
和
39 行删除
+39
-39
PrivateMessageServiceImpl.java
.../zrqx/member/bg/pm/service/PrivateMessageServiceImpl.java
+1
-1
FgMemberServiceImpl.java
...om/zrqx/member/fg/member/service/FgMemberServiceImpl.java
+1
-1
OrderServiceImpl.java
...main/java/com/zrqx/order/bg/service/OrderServiceImpl.java
+3
-3
AnnexLibrarySerivceImpl.java
...urce/bg/service/annexlibrary/AnnexLibrarySerivceImpl.java
+1
-1
ArticleLibrarySerivceImpl.java
.../bg/service/articlelibrary/ArticleLibrarySerivceImpl.java
+1
-1
AudioLibrarySerivceImpl.java
...urce/bg/service/audiolibrary/AudioLibrarySerivceImpl.java
+1
-1
ImageLibrarySerivceImpl.java
...urce/bg/service/imagelibrary/ImageLibrarySerivceImpl.java
+1
-1
LabelSerivceImpl.java
.../com/zrqx/resource/bg/service/label/LabelSerivceImpl.java
+2
-2
PdfLibrarySerivceImpl.java
...urce/bg/service/pdffilelibrary/PdfLibrarySerivceImpl.java
+1
-1
VideoLibrarySerivceImpl.java
...urce/bg/service/videolibrary/VideoLibrarySerivceImpl.java
+1
-1
FgAnnexLibrarySerivceImpl.java
...ce/fg/service/annexlibrary/FgAnnexLibrarySerivceImpl.java
+3
-3
FgArticleLibrarySerivceImpl.java
...g/service/articlelibrary/FgArticleLibrarySerivceImpl.java
+5
-5
FgAudioLibrarySerivceImpl.java
...ce/fg/service/audiolibrary/FgAudioLibrarySerivceImpl.java
+3
-3
FgAuthorLibraryServiceImpl.java
.../fg/service/authorlibrary/FgAuthorLibraryServiceImpl.java
+2
-2
FgCourseLibrarySerivceImpl.java
.../fg/service/courselibrary/FgCourseLibrarySerivceImpl.java
+3
-3
FgBookServiceImpl.java
...com/zrqx/resource/fg/service/ebook/FgBookServiceImpl.java
+1
-1
FgImageLibrarySerivceImpl.java
...ce/fg/service/imagelibrary/FgImageLibrarySerivceImpl.java
+2
-2
FgNoteServiceImpl.java
.../com/zrqx/resource/fg/service/note/FgNoteServiceImpl.java
+1
-1
FgProjectLibrarySerivceImpl.java
...g/service/projectlibrary/FgProjectLibrarySerivceImpl.java
+1
-1
FgShoppingCartServiceImpl.java
...ce/fg/service/shoppingcart/FgShoppingCartServiceImpl.java
+3
-3
FgVideoLibrarySerivceImpl.java
...ce/fg/service/videolibrary/FgVideoLibrarySerivceImpl.java
+2
-2
没有找到文件。
app/member/src/main/java/com/zrqx/member/bg/pm/service/PrivateMessageServiceImpl.java
浏览文件 @
384eaf08
...
...
@@ -90,7 +90,7 @@ public class PrivateMessageServiceImpl extends BaseServiceImpl<PrivateMessage, I
}
@Override
public
PrivateMessageVO
getById
(
Integer
id
)
{
PrivateMessage
pm
=
mapper
.
selectByPrimaryKey
(
id
);
PrivateMessage
pm
=
super
.
notNull
(
id
);
PrivateMessageVO
vo
=
new
PrivateMessageVO
();
BeanUtils
.
copyProperties
(
pm
,
vo
);
if
(
pm
.
getAcceptMember
()
==
2
){
//指定会员 查询指定会员的名称
...
...
app/member/src/main/java/com/zrqx/member/fg/member/service/FgMemberServiceImpl.java
浏览文件 @
384eaf08
...
...
@@ -112,7 +112,7 @@ public class FgMemberServiceImpl extends BaseServiceImpl<Member, Integer> implem
* @return
*/
public
MemberInfo
getMemberById
(
Integer
id
)
{
Member
m
=
mapper
.
selectByPrimaryKey
(
id
);
Member
m
=
super
.
notNull
(
id
);
MemberInfo
info
=
new
MemberInfo
();
BeanUtils
.
copyProperties
(
m
,
info
);
if
(
m
.
getLevel
()
==
LevelEnum
.
PERSONAL
.
getCode
())
{
...
...
app/order/src/main/java/com/zrqx/order/bg/service/OrderServiceImpl.java
浏览文件 @
384eaf08
...
...
@@ -106,7 +106,7 @@ public class OrderServiceImpl extends BaseServiceImpl<Order, Integer> implements
@Override
public
OrderVO
selectById
(
Integer
oid
)
{
OrderVO
orderVO
=
new
OrderVO
();
Order
order
=
orderMapper
.
selectByPrimaryKey
(
oid
);
Order
order
=
super
.
notNull
(
oid
);
BeanUtils
.
copyProperties
(
order
,
orderVO
);
orderVO
.
setLevel_zh
(
LevelEnum
.
getName
(
orderVO
.
getLevel
()));
orderVO
.
setStatusZh
(
OrderStatusEnum
.
getName
(
orderVO
.
getStatus
()));
...
...
@@ -142,7 +142,7 @@ public class OrderServiceImpl extends BaseServiceImpl<Order, Integer> implements
if
(
orderId
==
null
)
{
throw
new
BaseException
(
"订单id为空"
);
}
Order
o
=
s
electByPrimaryKey
(
orderId
);
Order
o
=
s
uper
.
notNull
(
orderId
);
if
(
o
==
null
)
{
throw
new
BaseException
(
"未找到该订单"
);
}
...
...
@@ -176,7 +176,7 @@ public class OrderServiceImpl extends BaseServiceImpl<Order, Integer> implements
@Override
public
boolean
saveRemarkHistory
(
OrderRemarkHistoryForm
orderRemarkHistoryForm
)
{
Order
o
=
s
electByPrimaryKey
(
orderRemarkHistoryForm
.
getOrderId
());
Order
o
=
s
uper
.
notNull
(
orderRemarkHistoryForm
.
getOrderId
());
if
(
o
==
null
)
{
throw
new
BaseException
(
"未找到订单,请检查后重试"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/annexlibrary/AnnexLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -113,7 +113,7 @@ public class AnnexLibrarySerivceImpl extends BaseServiceImpl<AnnexLibrary,String
entity
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
entity
);
if
(
form
.
getPrice
()
==
null
){
AnnexLibrary
a
=
mapper
.
selectByPrimaryKey
(
entity
.
getId
());
AnnexLibrary
a
=
super
.
notNull
(
entity
.
getId
());
a
.
setPrice
(
form
.
getPrice
());
mapper
.
updateByPrimaryKey
(
a
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/articlelibrary/ArticleLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -104,7 +104,7 @@ public class ArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,St
entity
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
entity
);
if
(
form
.
getPrice
()
==
null
){
ArticleLibrary
a
=
mapper
.
selectByPrimaryKey
(
entity
.
getId
());
ArticleLibrary
a
=
super
.
notNull
(
entity
.
getId
());
a
.
setPrice
(
form
.
getPrice
());
mapper
.
updateByPrimaryKey
(
a
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/audiolibrary/AudioLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -105,7 +105,7 @@ public class AudioLibrarySerivceImpl extends BaseServiceImpl<AudioLibrary,String
entity
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
entity
);
if
(
form
.
getPrice
()
==
null
){
AudioLibrary
a
=
mapper
.
selectByPrimaryKey
(
entity
.
getId
());
AudioLibrary
a
=
super
.
notNull
(
entity
.
getId
());
a
.
setPrice
(
form
.
getPrice
());
mapper
.
updateByPrimaryKey
(
a
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/imagelibrary/ImageLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -111,7 +111,7 @@ public class ImageLibrarySerivceImpl extends BaseServiceImpl<ImageLibrary,String
entity
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
entity
);
if
(
form
.
getPrice
()
==
null
){
ImageLibrary
a
=
mapper
.
selectByPrimaryKey
(
entity
.
getId
());
ImageLibrary
a
=
super
.
notNull
(
entity
.
getId
());
a
.
setPrice
(
form
.
getPrice
());
mapper
.
updateByPrimaryKey
(
a
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/label/LabelSerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -52,7 +52,7 @@ public class LabelSerivceImpl extends BaseServiceImpl<Label,Integer> implements
@Override
public
LabelOneVO
selectOne
(
Integer
oid
){
LabelOneVO
form
=
new
LabelOneVO
();
Label
label
=
labelMapper
.
selectByPrimaryKey
(
oid
);
Label
label
=
super
.
notNull
(
oid
);
BeanUtils
.
copyProperties
(
label
,
form
);
List
<
LabelDataType
>
li
=
labelDataTypeMapper
.
queryBylabelId
(
oid
);
form
.
setDataType
(
BeanUtils
.
copyList
(
li
,
LabelDataTypeForm
.
class
));
...
...
@@ -101,7 +101,7 @@ public class LabelSerivceImpl extends BaseServiceImpl<Label,Integer> implements
labelMapper
.
insert
(
entity
);
}
else
{
//更新当前对象的信息
entity
.
setCreateTime
(
labelMapper
.
selectByPrimaryKey
(
form
.
getId
()).
getCreateTime
());
entity
.
setCreateTime
(
super
.
notNull
(
form
.
getId
()).
getCreateTime
());
entity
.
setUpdateTime
(
new
Date
());
labelMapper
.
updateByPrimaryKey
(
entity
);
//删除当前对象与数据类型的关系
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/pdffilelibrary/PdfLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -59,7 +59,7 @@ public class PdfLibrarySerivceImpl extends BaseServiceImpl<PdfLibrary,Integer> i
entity
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
entity
);
if
(
form
.
getPrice
()
==
null
){
PdfLibrary
a
=
mapper
.
selectByPrimaryKey
(
entity
.
getId
());
PdfLibrary
a
=
super
.
notNull
(
entity
.
getId
());
a
.
setPrice
(
form
.
getPrice
());
mapper
.
updateByPrimaryKey
(
a
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/videolibrary/VideoLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -109,7 +109,7 @@ public class VideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,String
entity
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
entity
);
if
(
form
.
getPrice
()
==
null
){
VideoLibrary
a
=
mapper
.
selectByPrimaryKey
(
entity
.
getId
());
VideoLibrary
a
=
super
.
notNull
(
entity
.
getId
());
a
.
setPrice
(
form
.
getPrice
());
mapper
.
updateByPrimaryKey
(
a
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/annexlibrary/FgAnnexLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -81,7 +81,7 @@ public class FgAnnexLibrarySerivceImpl extends
@Override
public
boolean
updateGoodsSales
(
List
<
OrderInfo
>
list
)
{
list
.
forEach
(
li
->
{
AnnexLibrary
video
=
mapper
.
selectByPrimaryKey
(
li
.
getGoodsid
());
AnnexLibrary
video
=
super
.
notNull
(
li
.
getGoodsid
());
if
(
video
==
null
)
{
throw
new
BaseException
(
"此商品不存在"
);
}
...
...
@@ -146,7 +146,7 @@ public class FgAnnexLibrarySerivceImpl extends
@Override
public
FgAnnexLibraryVO
selectById
(
String
oid
,
boolean
isStatus
)
{
AnnexLibrary
entity
=
mapper
.
selectByPrimaryKey
(
oid
);
AnnexLibrary
entity
=
super
.
notNull
(
oid
);
FgAnnexLibraryVO
vo
=
new
FgAnnexLibraryVO
();
if
(
entity
==
null
){
// 资源更新中,敬请期待~
...
...
@@ -310,7 +310,7 @@ public class FgAnnexLibrarySerivceImpl extends
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
){
AnnexLibrary
AnnexLibrary
=
mapper
.
selectByPrimaryKey
(
oid
);
AnnexLibrary
AnnexLibrary
=
super
.
notNull
(
oid
);
if
(
AnnexLibrary
==
null
){
throw
new
BaseException
(
"此商品不存在"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/articlelibrary/FgArticleLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -177,7 +177,7 @@ public class FgArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,
list
.
forEach
(
li
->{
FgArticleLibraryOneVO
one
=
articleOneInfoById
(
li
.
getId
(),
true
);
BeanUtils
.
copyProperties
(
one
,
li
);
ArticleLibrary
article
=
mapper
.
selectByPrimaryKey
(
li
.
getId
());
ArticleLibrary
article
=
super
.
notNull
(
li
.
getId
());
if
(
article
!=
null
){
li
.
setIsPdf
(
article
.
getPdf
()
==
null
?
Integer
.
parseInt
(
BooleanStatusEnum
.
NO
.
getCode
())
:
Integer
.
parseInt
(
BooleanStatusEnum
.
YES
.
getCode
()));
li
.
setIsAudio
(
article
.
getAudio
()
==
null
?
Integer
.
parseInt
(
BooleanStatusEnum
.
NO
.
getCode
())
:
Integer
.
parseInt
(
BooleanStatusEnum
.
YES
.
getCode
()));
...
...
@@ -190,7 +190,7 @@ public class FgArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,
@Override
public
FgArticleLibraryOneVO
articleOneInfoById
(
String
oid
,
boolean
isStatus
)
{
ArticleLibrary
entity
=
mapper
.
selectByPrimaryKey
(
oid
);
ArticleLibrary
entity
=
super
.
notNull
(
oid
);
FgArticleLibraryOneVO
vo
=
new
FgArticleLibraryOneVO
();
if
(
entity
==
null
){
vo
.
setText
(
null
);
...
...
@@ -520,7 +520,7 @@ public class FgArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
){
ArticleLibrary
article
=
mapper
.
selectByPrimaryKey
(
oid
);
ArticleLibrary
article
=
super
.
notNull
(
oid
);
if
(
article
==
null
){
throw
new
BaseException
(
"此文章不存在"
);
}
...
...
@@ -544,7 +544,7 @@ public class FgArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,
@Override
public
boolean
updateGoodsSales
(
List
<
OrderInfo
>
list
){
list
.
forEach
(
li
->
{
ArticleLibrary
article
=
mapper
.
selectByPrimaryKey
(
li
.
getGoodsid
());
ArticleLibrary
article
=
super
.
notNull
(
li
.
getGoodsid
());
if
(
article
==
null
){
throw
new
BaseException
(
"此商品不存在"
);
}
...
...
@@ -797,7 +797,7 @@ public class FgArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,
private
void
isPdf
(
List
<
FgArticleLibraryListVO
>
objectList
){
if
(
ArrayUtils
.
isNotEmpty
(
objectList
)){
objectList
.
forEach
(
obj
->
{
ArticleLibrary
ar
=
mapper
.
selectByPrimaryKey
(
obj
.
getId
());
ArticleLibrary
ar
=
super
.
notNull
(
obj
.
getId
());
if
(
ar
!=
null
&&
StringUtils
.
isNotBlank
(
ar
.
getPdf
())){
obj
.
setIsPdf
(
Integer
.
parseInt
(
BooleanStatusEnum
.
YES
.
getCode
()));
}
else
{
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/audiolibrary/FgAudioLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -86,7 +86,7 @@ public class FgAudioLibrarySerivceImpl extends
@Override
public
boolean
updateGoodsSales
(
List
<
OrderInfo
>
list
)
{
list
.
forEach
(
li
->
{
AudioLibrary
audio
=
mapper
.
selectByPrimaryKey
(
li
.
getGoodsid
());
AudioLibrary
audio
=
super
.
notNull
(
li
.
getGoodsid
());
if
(
audio
==
null
)
{
throw
new
BaseException
(
"此商品不存在"
);
}
...
...
@@ -170,7 +170,7 @@ public class FgAudioLibrarySerivceImpl extends
@Override
public
FgAudioLibraryVO
selectById
(
String
oid
,
boolean
isStatus
)
{
AudioLibrary
entity
=
mapper
.
selectByPrimaryKey
(
oid
);
AudioLibrary
entity
=
super
.
notNull
(
oid
);
FgAudioLibraryVO
vo
=
new
FgAudioLibraryVO
();
if
(
entity
==
null
){
// 资源更新中,敬请期待~
...
...
@@ -339,7 +339,7 @@ public class FgAudioLibrarySerivceImpl extends
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
){
AudioLibrary
audioLibrary
=
mapper
.
selectByPrimaryKey
(
oid
);
AudioLibrary
audioLibrary
=
super
.
notNull
(
oid
);
if
(
audioLibrary
==
null
){
throw
new
BaseException
(
"此图书不存在"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/authorlibrary/FgAuthorLibraryServiceImpl.java
浏览文件 @
384eaf08
...
...
@@ -133,7 +133,7 @@ public class FgAuthorLibraryServiceImpl extends BaseServiceImpl<AuthorLibrary, S
@Override
public
FgAuthorLibraryOneVO
authorOneInfoById
(
String
oid
){
AuthorLibrary
author
=
authorLibraryMapper
.
selectByPrimaryKey
(
oid
);
AuthorLibrary
author
=
super
.
notNull
(
oid
);
FgAuthorLibraryOneVO
vo
=
BeanUtils
.
copy
(
author
,
FgAuthorLibraryOneVO
.
class
);
// 关注数量
vo
.
setConcernedNum
(
fgMemberConllectionManage
.
queryAuthorCollectNum
(
oid
));
...
...
@@ -160,7 +160,7 @@ public class FgAuthorLibraryServiceImpl extends BaseServiceImpl<AuthorLibrary, S
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
){
AuthorLibrary
author
=
authorLibraryMapper
.
selectByPrimaryKey
(
oid
);
AuthorLibrary
author
=
super
.
notNull
(
oid
);
if
(
author
==
null
){
throw
new
BaseException
(
"此文章不存在"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/courselibrary/FgCourseLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -86,7 +86,7 @@ public class FgCourseLibrarySerivceImpl extends
@Override
public
boolean
updateGoodsSales
(
List
<
OrderInfo
>
list
)
{
list
.
forEach
(
li
->
{
CourseLibrary
Course
=
mapper
.
selectByPrimaryKey
(
li
.
getGoodsid
());
CourseLibrary
Course
=
super
.
notNull
(
li
.
getGoodsid
());
if
(
Course
==
null
)
{
throw
new
BaseException
(
"此商品不存在"
);
}
...
...
@@ -110,7 +110,7 @@ public class FgCourseLibrarySerivceImpl extends
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
){
CourseLibrary
CourseLibrary
=
mapper
.
selectByPrimaryKey
(
oid
);
CourseLibrary
CourseLibrary
=
super
.
notNull
(
oid
);
if
(
CourseLibrary
==
null
){
throw
new
BaseException
(
"此图书不存在"
);
}
...
...
@@ -151,7 +151,7 @@ public class FgCourseLibrarySerivceImpl extends
@Override
public
FgCourseLibraryVO
selectById
(
String
oid
,
boolean
isStatus
){
CourseLibrary
entity
=
mapper
.
selectByPrimaryKey
(
oid
);
CourseLibrary
entity
=
super
.
notNull
(
oid
);
FgCourseLibraryVO
vo
=
new
FgCourseLibraryVO
();
if
(
entity
==
null
){
// 资源更新中,敬请期待~
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/ebook/FgBookServiceImpl.java
浏览文件 @
384eaf08
...
...
@@ -40,7 +40,7 @@ public class FgBookServiceImpl extends BaseServiceImpl<Book, String> implements
@Override
public
boolean
updateGoodsSales
(
List
<
OrderInfo
>
list
){
list
.
forEach
(
li
->
{
Book
book
=
bookMapper
.
selectByPrimaryKey
(
li
.
getGoodsid
());
Book
book
=
super
.
notNull
(
li
.
getGoodsid
());
if
(
book
==
null
){
throw
new
BaseException
(
"此商品不存在"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/imagelibrary/FgImageLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -143,7 +143,7 @@ public class FgImageLibrarySerivceImpl extends
@Override
public
FgImageLibraryVO
selectById
(
String
oid
,
boolean
isStatus
)
{
ImageLibrary
entity
=
mapper
.
selectByPrimaryKey
(
oid
);
ImageLibrary
entity
=
this
.
notNull
(
oid
);
FgImageLibraryVO
vo
=
new
FgImageLibraryVO
();
if
(
entity
==
null
){
// 资源更新中,敬请期待~
...
...
@@ -330,7 +330,7 @@ public class FgImageLibrarySerivceImpl extends
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
)
{
ImageLibrary
imageLibrary
=
mapper
.
selectByPrimaryKey
(
oid
);
ImageLibrary
imageLibrary
=
this
.
notNull
(
oid
);
if
(
imageLibrary
==
null
)
{
throw
new
BaseException
(
"此图书不存在"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/note/FgNoteServiceImpl.java
浏览文件 @
384eaf08
...
...
@@ -65,7 +65,7 @@ public class FgNoteServiceImpl extends BaseServiceImpl<Note, String> implements
@Override
public
Integer
updateNote
(
Note
note
)
{
Note
record
=
mapper
.
selectByPrimaryKey
(
note
.
getId
());
Note
record
=
this
.
notNull
(
note
.
getId
());
if
(
record
==
null
){
throw
new
BaseException
(
"未找到笔记"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/projectlibrary/FgProjectLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -53,7 +53,7 @@ public class FgProjectLibrarySerivceImpl extends
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
){
ProjectLibrary
ProjectLibrary
=
mapper
.
selectByPrimaryKey
(
oid
);
ProjectLibrary
ProjectLibrary
=
this
.
notNull
(
oid
);
if
(
ProjectLibrary
==
null
){
throw
new
BaseException
(
"此图书不存在"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/shoppingcart/FgShoppingCartServiceImpl.java
浏览文件 @
384eaf08
...
...
@@ -117,7 +117,7 @@ public class FgShoppingCartServiceImpl extends BaseServiceImpl<ShoppingCart, Int
public
ShoppingCartVo
batchGet
(
List
<
Integer
>
ids
)
{
List
<
ShoppingCart
>
shoppingCarts
=
new
ArrayList
<
ShoppingCart
>();
for
(
Integer
id
:
ids
){
ShoppingCart
shoppingCart
=
fgShoppingCartMapper
.
selectByPrimaryKey
(
id
);
ShoppingCart
shoppingCart
=
super
.
notNull
(
id
);
if
(
shoppingCart
!=
null
){
shoppingCarts
.
add
(
shoppingCart
);
}
...
...
@@ -345,7 +345,7 @@ public class FgShoppingCartServiceImpl extends BaseServiceImpl<ShoppingCart, Int
@Override
public
List
<
CreateOrderInfoForm
>
queryByIds
(
List
<
Integer
>
ids
)
{
List
<
CreateOrderInfoForm
>
createOrderInfoForms
=
ids
.
stream
().
map
(
id
->
{
ShoppingCart
shoppingCart
=
fgShoppingCartMapper
.
selectByPrimaryKey
(
id
);
ShoppingCart
shoppingCart
=
this
.
notNull
(
id
);
CreateOrderInfoForm
createOrderInfoForm
=
new
CreateOrderInfoForm
();
createOrderInfoForm
.
setGoodsId
(
shoppingCart
.
getGoodsId
());
createOrderInfoForm
.
setGoodsType
(
shoppingCart
.
getGoodsType
());
...
...
@@ -381,7 +381,7 @@ public class FgShoppingCartServiceImpl extends BaseServiceImpl<ShoppingCart, Int
public
Integer
isContain
(
List
<
Integer
>
ids
)
{
List
<
ShoppingCart
>
shoppingCarts
=
new
ArrayList
<
ShoppingCart
>();
for
(
Integer
id
:
ids
){
ShoppingCart
shoppingCart
=
fgShoppingCartMapper
.
selectByPrimaryKey
(
id
);
ShoppingCart
shoppingCart
=
this
.
notNull
(
id
);
if
(
shoppingCart
!=
null
){
shoppingCarts
.
add
(
shoppingCart
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/videolibrary/FgVideoLibrarySerivceImpl.java
浏览文件 @
384eaf08
...
...
@@ -188,7 +188,7 @@ public class FgVideoLibrarySerivceImpl extends
}*/
@Override
public
FgVideoLibraryVO
selectById
(
String
oid
,
boolean
isStatus
)
{
VideoLibrary
entity
=
mapper
.
selectByPrimaryKey
(
oid
);
VideoLibrary
entity
=
this
.
notNull
(
oid
);
FgVideoLibraryVO
vo
=
new
FgVideoLibraryVO
();
if
(
entity
==
null
){
// 资源更新中,敬请期待~
...
...
@@ -403,7 +403,7 @@ public class FgVideoLibrarySerivceImpl extends
*/
@Override
public
boolean
updateBrowseNum
(
String
oid
){
VideoLibrary
videoLibrary
=
mapper
.
selectByPrimaryKey
(
oid
);
VideoLibrary
videoLibrary
=
super
.
notNull
(
oid
);
if
(
videoLibrary
==
null
){
throw
new
BaseException
(
"此图书不存在"
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论