Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nrgl
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
nrgl
Commits
15e5eacf
提交
15e5eacf
authored
4月 24, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
e9a16282
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
110 行增加
和
165 行删除
+110
-165
BatchUpdateAnimationLibraryForm.java
...esource/bg/animation/BatchUpdateAnimationLibraryForm.java
+2
-1
BatchUpdateArticleLibraryForm.java
...urce/bg/articlelibrary/BatchUpdateArticleLibraryForm.java
+2
-1
AnimationLibraryController.java
...ntroller/animationlibrary/AnimationLibraryController.java
+17
-24
ArticleLibraryController.java
...g/controller/articlelibrary/ArticleLibraryController.java
+17
-23
AudioLibraryController.java
...ce/bg/controller/audiolibrary/AudioLibraryController.java
+14
-22
CoursewareLibraryController.java
...roller/coursewarelibrary/CoursewareLibraryController.java
+14
-25
EbookLibraryController.java
...ce/bg/controller/ebooklibrary/EbookLibraryController.java
+0
-0
ImageLibraryController.java
...ce/bg/controller/imagelibrary/ImageLibraryController.java
+13
-21
PdfLibraryController.java
...source/bg/controller/pdflibrary/PdfLibraryController.java
+14
-22
VideoLibraryController.java
...ce/bg/controller/videolibrary/VideoLibraryController.java
+13
-22
EbookMapper.java
...n/java/com/zrqx/resource/bg/mapper/ebook/EbookMapper.java
+4
-4
没有找到文件。
com.zrqx.core/src/main/java/com/zrqx/core/form/resource/bg/animation/BatchUpdateAnimationLibraryForm.java
浏览文件 @
15e5eacf
...
@@ -3,6 +3,7 @@ package com.zrqx.core.form.resource.bg.animation;
...
@@ -3,6 +3,7 @@ package com.zrqx.core.form.resource.bg.animation;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -18,7 +19,7 @@ public class BatchUpdateAnimationLibraryForm {
...
@@ -18,7 +19,7 @@ public class BatchUpdateAnimationLibraryForm {
@ApiModelProperty
(
"自定义分类code"
)
@ApiModelProperty
(
"自定义分类code"
)
private
List
<
String
>
diyTypeCode
;
private
List
<
String
>
diyTypeCode
;
@ApiModelProperty
(
"售价 "
)
@ApiModelProperty
(
"售价 "
)
private
String
sellingPrice
;
private
BigDecimal
sellingPrice
;
@ApiModelProperty
(
"价格状态 1:付费 2:免费"
)
@ApiModelProperty
(
"价格状态 1:付费 2:免费"
)
private
Integer
priceType
;
private
Integer
priceType
;
}
}
com.zrqx.core/src/main/java/com/zrqx/core/form/resource/bg/articlelibrary/BatchUpdateArticleLibraryForm.java
浏览文件 @
15e5eacf
package
com
.
zrqx
.
core
.
form
.
resource
.
bg
.
articlelibrary
;
package
com
.
zrqx
.
core
.
form
.
resource
.
bg
.
articlelibrary
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -17,7 +18,7 @@ public class BatchUpdateArticleLibraryForm {
...
@@ -17,7 +18,7 @@ public class BatchUpdateArticleLibraryForm {
@ApiModelProperty
(
"自定义分类code"
)
@ApiModelProperty
(
"自定义分类code"
)
private
List
<
String
>
diyTypeCode
;
private
List
<
String
>
diyTypeCode
;
@ApiModelProperty
(
"售价 "
)
@ApiModelProperty
(
"售价 "
)
private
String
sellingPrice
;
private
BigDecimal
sellingPrice
;
@ApiModelProperty
(
"价格状态 1:付费 2:免费"
)
@ApiModelProperty
(
"价格状态 1:付费 2:免费"
)
private
Integer
priceType
;
private
Integer
priceType
;
}
}
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/animationlibrary/AnimationLibraryController.java
浏览文件 @
15e5eacf
...
@@ -39,6 +39,7 @@ import com.zrqx.core.model.resource.animationlibrary.AnimationLibrary;
...
@@ -39,6 +39,7 @@ import com.zrqx.core.model.resource.animationlibrary.AnimationLibrary;
import
com.zrqx.core.model.resource.animationlibrary.AnimationLibraryDiyType
;
import
com.zrqx.core.model.resource.animationlibrary.AnimationLibraryDiyType
;
import
com.zrqx.core.model.resource.animationlibrary.AnimationLibraryLabel
;
import
com.zrqx.core.model.resource.animationlibrary.AnimationLibraryLabel
;
import
com.zrqx.core.model.resource.animationlibrary.AnimationResource
;
import
com.zrqx.core.model.resource.animationlibrary.AnimationResource
;
import
com.zrqx.core.model.resource.ebook.BookGoods
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibraryLabel
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibraryLabel
;
import
com.zrqx.core.util.CallBack
;
import
com.zrqx.core.util.CallBack
;
import
com.zrqx.core.util.PageInfo
;
import
com.zrqx.core.util.PageInfo
;
...
@@ -119,37 +120,29 @@ public class AnimationLibraryController {
...
@@ -119,37 +120,29 @@ public class AnimationLibraryController {
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
throw
new
BaseException
(
"请选择售价类型"
);
throw
new
BaseException
(
"请选择售价类型"
);
}
}
Criteria
cr
=
goodsService
.
createCriteria
();
for
(
String
str
:
form
.
getIds
())
{
cr
.
andIn
(
"objectId"
,
form
.
getIds
());
AnimationGoods
entity
=
new
AnimationGoods
();
List
<
AnimationGoods
>
list
=
goodsService
.
selectByCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
))
{
if
(
list
.
size
()>
0
){
entity
.
setSellingPrice
(
form
.
getSellingPrice
());
for
(
AnimationGoods
entity
:
list
)
{
}
else
{
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
null
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
else
{
entity
.
setSellingPrice
(
null
);
}
entity
.
setPriceType
(
form
.
getPriceType
());
if
(!
goodsService
.
updateByCriteria
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
else
{
entity
.
setPriceType
(
form
.
getPriceType
());
for
(
String
str
:
form
.
getIds
())
{
AnimationGoods
entity
=
new
AnimationGoods
();
Criteria
cr
=
goodsService
.
createCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
)){
cr
.
andEqualTo
(
"objectId"
,
str
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
AnimationGoods
bookGoods
=
goodsService
.
selectOneByCriteria
();
}
else
{
if
(
bookGoods
!=
null
){
entity
.
setSellingPrice
(
null
);
if
(!
goodsService
.
updateByCriteria
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
entity
.
setPriceType
(
form
.
getPriceType
());
}
else
{
entity
.
setObjectId
(
str
);
entity
.
setObjectId
(
str
);
if
(!
goodsService
.
insert
(
entity
))
{
if
(!
goodsService
.
insert
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
}
}
return
CallBack
.
success
();
return
CallBack
.
success
();
}
}
@ApiOperation
(
value
=
"批量审核"
,
notes
=
"批量审核"
)
@ApiOperation
(
value
=
"批量审核"
,
notes
=
"批量审核"
)
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/articlelibrary/ArticleLibraryController.java
浏览文件 @
15e5eacf
...
@@ -32,6 +32,7 @@ import com.zrqx.core.form.resource.bg.SaverFileForm;
...
@@ -32,6 +32,7 @@ import com.zrqx.core.form.resource.bg.SaverFileForm;
import
com.zrqx.core.form.resource.bg.articlelibrary.BatchUpdateArticleLibraryForm
;
import
com.zrqx.core.form.resource.bg.articlelibrary.BatchUpdateArticleLibraryForm
;
import
com.zrqx.core.form.resource.bg.articlelibrary.QueryArticleLibraryForm
;
import
com.zrqx.core.form.resource.bg.articlelibrary.QueryArticleLibraryForm
;
import
com.zrqx.core.form.resource.bg.articlelibrary.SaveUpdateArticleLibraryForm
;
import
com.zrqx.core.form.resource.bg.articlelibrary.SaveUpdateArticleLibraryForm
;
import
com.zrqx.core.model.resource.animationlibrary.AnimationGoods
;
import
com.zrqx.core.model.resource.articlelibrary.ArticleGoods
;
import
com.zrqx.core.model.resource.articlelibrary.ArticleGoods
;
import
com.zrqx.core.model.resource.articlelibrary.ArticleLibrary
;
import
com.zrqx.core.model.resource.articlelibrary.ArticleLibrary
;
import
com.zrqx.core.model.resource.articlelibrary.ArticleLibraryDiyType
;
import
com.zrqx.core.model.resource.articlelibrary.ArticleLibraryDiyType
;
...
@@ -133,32 +134,25 @@ public class ArticleLibraryController {
...
@@ -133,32 +134,25 @@ public class ArticleLibraryController {
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
throw
new
BaseException
(
"请选择售价类型"
);
throw
new
BaseException
(
"请选择售价类型"
);
}
}
Criteria
cr
=
articleGoodsService
.
createCriteria
();
for
(
String
str
:
form
.
getIds
())
{
cr
.
andIn
(
"objectId"
,
form
.
getIds
());
ArticleGoods
entity
=
new
ArticleGoods
();
List
<
ArticleGoods
>
list
=
articleGoodsService
.
selectByCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
))
{
if
(
list
.
size
()>
0
){
entity
.
setSellingPrice
(
form
.
getSellingPrice
());
for
(
ArticleGoods
entity
:
list
)
{
}
else
{
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
null
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
else
{
entity
.
setSellingPrice
(
null
);
}
entity
.
setPriceType
(
form
.
getPriceType
());
if
(!
articleGoodsService
.
updateByCriteria
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
else
{
entity
.
setPriceType
(
form
.
getPriceType
());
for
(
String
str
:
form
.
getIds
())
{
ArticleGoods
entity
=
new
ArticleGoods
();
Criteria
cr
=
articleGoodsService
.
createCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
)){
cr
.
andEqualTo
(
"objectId"
,
str
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
ArticleGoods
bookGoods
=
articleGoodsService
.
selectOneByCriteria
();
}
else
{
if
(
bookGoods
!=
null
){
entity
.
setSellingPrice
(
null
);
if
(!
articleGoodsService
.
updateByCriteria
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
entity
.
setPriceType
(
form
.
getPriceType
());
}
else
{
entity
.
setObjectId
(
str
);
entity
.
setObjectId
(
str
);
if
(!
articleGoodsService
.
insert
(
entity
))
{
if
(!
articleGoodsService
.
insert
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/audiolibrary/AudioLibraryController.java
浏览文件 @
15e5eacf
...
@@ -119,35 +119,27 @@ public class AudioLibraryController {
...
@@ -119,35 +119,27 @@ public class AudioLibraryController {
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
throw
new
BaseException
(
"请选择售价类型"
);
throw
new
BaseException
(
"请选择售价类型"
);
}
}
Criteria
cr
=
audioGoodsService
.
createCriteria
();
for
(
String
str
:
form
.
getIds
())
{
cr
.
andIn
(
"objectId"
,
form
.
getIds
());
AudioGoods
entity
=
new
AudioGoods
();
List
<
AudioGoods
>
list
=
audioGoodsService
.
selectByCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
)){
if
(
list
.
size
()>
0
){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
for
(
AudioGoods
entity
:
list
)
{
}
else
{
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
null
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
}
else
{
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setSellingPrice
(
null
);
Criteria
cr
=
audioGoodsService
.
createCriteria
();
}
cr
.
andEqualTo
(
"objectId"
,
str
);
entity
.
setPriceType
(
form
.
getPriceType
());
AudioGoods
list
=
audioGoodsService
.
selectOneByCriteria
();
if
(
list
!=
null
){
if
(!
audioGoodsService
.
updateByCriteria
(
entity
))
{
if
(!
audioGoodsService
.
updateByCriteria
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
else
{
}
else
{
for
(
String
str
:
form
.
getIds
())
{
AudioGoods
entity
=
new
AudioGoods
();
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
else
{
entity
.
setSellingPrice
(
null
);
}
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setObjectId
(
str
);
entity
.
setObjectId
(
str
);
if
(!
audioGoodsService
.
insert
(
entity
))
{
if
(!
audioGoodsService
.
insert
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
}
}
return
CallBack
.
success
();
return
CallBack
.
success
();
}
}
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/coursewarelibrary/CoursewareLibraryController.java
浏览文件 @
15e5eacf
...
@@ -118,39 +118,28 @@ public class CoursewareLibraryController {
...
@@ -118,39 +118,28 @@ public class CoursewareLibraryController {
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
throw
new
BaseException
(
"请选择售价类型"
);
throw
new
BaseException
(
"请选择售价类型"
);
}
}
Criteria
cr
=
goodsService
.
createCriteria
();
for
(
String
str
:
form
.
getIds
())
{
cr
.
andIn
(
"objectId"
,
form
.
getIds
());
CoursewareGoods
entity
=
new
CoursewareGoods
();
List
<
CoursewareGoods
>
list
=
goodsService
.
selectByCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
)){
if
(
list
.
size
()>
0
){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
for
(
CoursewareGoods
entity
:
list
)
{
}
else
{
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
null
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
}
else
{
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setSellingPrice
(
null
);
Criteria
cr
=
goodsService
.
createCriteria
();
}
cr
.
andEqualTo
(
"objectId"
,
str
);
entity
.
setPriceType
(
form
.
getPriceType
());
CoursewareGoods
list
=
goodsService
.
selectOneByCriteria
();
if
(
list
!=
null
){
if
(!
goodsService
.
updateByCriteria
(
entity
))
{
if
(!
goodsService
.
updateByCriteria
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
else
{
}
else
{
List
<
String
>
objIds
=
form
.
getIds
();
for
(
String
str
:
objIds
)
{
CoursewareGoods
entity
=
new
CoursewareGoods
();
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
else
{
entity
.
setSellingPrice
(
null
);
}
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setObjectId
(
str
);
entity
.
setObjectId
(
str
);
if
(!
goodsService
.
insert
(
entity
))
{
if
(!
goodsService
.
insert
(
entity
))
{
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
}
}
return
CallBack
.
success
();
return
CallBack
.
success
();
}
}
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/ebooklibrary/EbookLibraryController.java
浏览文件 @
15e5eacf
差异被折叠。
点击展开。
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/imagelibrary/ImageLibraryController.java
浏览文件 @
15e5eacf
...
@@ -120,30 +120,22 @@ public class ImageLibraryController {
...
@@ -120,30 +120,22 @@ public class ImageLibraryController {
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
throw
new
BaseException
(
"请选择售价类型"
);
throw
new
BaseException
(
"请选择售价类型"
);
}
}
Criteria
cr
=
goodsService
.
createCriteria
();
for
(
String
str
:
form
.
getIds
())
{
cr
.
andIn
(
"objectId"
,
form
.
getIds
());
ImageGoods
entity
=
new
ImageGoods
();
List
<
ImageGoods
>
list
=
goodsService
.
selectByCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
)){
if
(
list
.
size
()>
0
)
{
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
for
(
ImageGoods
entity
:
list
)
{
}
else
{
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
null
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
}
else
{
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setSellingPrice
(
null
);
Criteria
cr
=
goodsService
.
createCriteria
();
}
cr
.
andEqualTo
(
"objectId"
,
str
);
entity
.
setPriceType
(
form
.
getPriceType
());
ImageGoods
list
=
goodsService
.
selectOneByCriteria
();
if
(
list
!=
null
){
if
(!
goodsService
.
updateByCriteria
(
entity
)){
if
(!
goodsService
.
updateByCriteria
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
else
{
}
else
{
for
(
String
str
:
form
.
getIds
())
{
ImageGoods
entity
=
new
ImageGoods
();
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
else
{
entity
.
setSellingPrice
(
null
);
}
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setObjectId
(
str
);
entity
.
setObjectId
(
str
);
if
(!
goodsService
.
insert
(
entity
)){
if
(!
goodsService
.
insert
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/pdflibrary/PdfLibraryController.java
浏览文件 @
15e5eacf
...
@@ -118,34 +118,26 @@ public class PdfLibraryController {
...
@@ -118,34 +118,26 @@ public class PdfLibraryController {
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
throw
new
BaseException
(
"请选择售价类型"
);
throw
new
BaseException
(
"请选择售价类型"
);
}
}
Criteria
cr
=
goodsService
.
createCriteria
();
for
(
String
str
:
form
.
getIds
())
{
cr
.
andIn
(
"objectId"
,
form
.
getIds
());
PdfGoods
entity
=
new
PdfGoods
();
List
<
PdfGoods
>
list
=
goodsService
.
selectByCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
)){
if
(
list
.
size
()>
0
){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
for
(
PdfGoods
entity
:
list
)
{
}
else
{
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
null
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
}
else
{
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setSellingPrice
(
null
);
Criteria
cr
=
goodsService
.
createCriteria
();
}
cr
.
andEqualTo
(
"objectId"
,
str
);
entity
.
setPriceType
(
form
.
getPriceType
());
PdfGoods
list
=
goodsService
.
selectOneByCriteria
();
if
(
list
!=
null
){
if
(!
goodsService
.
updateByCriteria
(
entity
)){
if
(!
goodsService
.
updateByCriteria
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
else
{
}
else
{
for
(
String
str
:
form
.
getIds
())
{
PdfGoods
entity
=
new
PdfGoods
();
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
else
{
entity
.
setSellingPrice
(
null
);
}
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setObjectId
(
str
);
entity
.
setObjectId
(
str
);
if
(!
goodsService
.
insert
(
entity
)){
if
(!
goodsService
.
insert
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
}
}
return
CallBack
.
success
();
return
CallBack
.
success
();
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/videolibrary/VideoLibraryController.java
浏览文件 @
15e5eacf
...
@@ -121,37 +121,28 @@ public class VideoLibraryController {
...
@@ -121,37 +121,28 @@ public class VideoLibraryController {
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
if
(
form
.
getPriceType
()==
null
||
form
.
getPriceType
().
equals
(
""
)){
throw
new
BaseException
(
"请选择售价类型"
);
throw
new
BaseException
(
"请选择售价类型"
);
}
}
Criteria
cr
=
goodsService
.
createCriteria
();
for
(
String
str
:
form
.
getIds
())
{
cr
.
andIn
(
"objectId"
,
form
.
getIds
());
VideoGoods
entity
=
new
VideoGoods
();
List
<
VideoGoods
>
list
=
goodsService
.
selectByCriteria
();
if
(
form
.
getPriceType
().
equals
(
1
)){
if
(
list
.
size
()>
0
)
{
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
for
(
VideoGoods
entity
:
list
)
{
}
else
{
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
null
);
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
}
else
{
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setSellingPrice
(
null
);
Criteria
cr
=
goodsService
.
createCriteria
();
}
cr
.
andEqualTo
(
"objectId"
,
str
);
entity
.
setPriceType
(
form
.
getPriceType
());
VideoGoods
list
=
goodsService
.
selectOneByCriteria
();
if
(
list
!=
null
){
if
(!
goodsService
.
updateByCriteria
(
entity
)){
if
(!
goodsService
.
updateByCriteria
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
else
{
}
else
{
for
(
String
str
:
form
.
getIds
())
{
VideoGoods
entity
=
new
VideoGoods
();
if
(
form
.
getPriceType
().
equals
(
1
)){
entity
.
setSellingPrice
(
new
BigDecimal
(
form
.
getSellingPrice
()));
}
else
{
entity
.
setSellingPrice
(
null
);
}
entity
.
setPriceType
(
form
.
getPriceType
());
entity
.
setObjectId
(
str
);
entity
.
setObjectId
(
str
);
if
(!
goodsService
.
insert
(
entity
)){
if
(!
goodsService
.
insert
(
entity
)){
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
throw
new
BaseException
(
ResponseCodeEnum
.
FAIL
);
}
}
}
}
}
}
return
CallBack
.
success
();
return
CallBack
.
success
();
}
}
@ApiOperation
(
value
=
"批量审核"
,
notes
=
"批量审核"
)
@ApiOperation
(
value
=
"批量审核"
,
notes
=
"批量审核"
)
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/mapper/ebook/EbookMapper.java
浏览文件 @
15e5eacf
...
@@ -33,7 +33,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
...
@@ -33,7 +33,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
*/
*/
@Select
(
"<script>"
@Select
(
"<script>"
+
"<if test='form.diyTypeCode == null'>"
+
"<if test='form.diyTypeCode == null'>"
+
"SELECT bb.id,bb.name,bb.cover,bb.subheading,bb.author,bb.isbn,bb.executiveEditor,bb.keywords,be.authorIntro,"
+
"SELECT
DISTINCT
bb.id,bb.name,bb.cover,bb.subheading,bb.author,bb.isbn,bb.executiveEditor,bb.keywords,be.authorIntro,"
+
" DATE_FORMAT(bb.uploadTime,'%Y-%m-%d %H:%i:%s') uploadTime,DATE_FORMAT(bb.publishTime,'%Y-%m-%d %H:%i:%s') publishTime,bb.updateTime,bb.status,"
+
" DATE_FORMAT(bb.uploadTime,'%Y-%m-%d %H:%i:%s') uploadTime,DATE_FORMAT(bb.publishTime,'%Y-%m-%d %H:%i:%s') publishTime,bb.updateTime,bb.status,"
+
" g.sellingPrice as sellingPrice,g.priceType,be.epubFile,be.bookIntro,bi.binding, "
+
" g.sellingPrice as sellingPrice,g.priceType,be.epubFile,be.bookIntro,bi.binding, "
+
" be.xmlFile,g.dataSources,bi.edition,bi.print,bb.resourceType FROM res_book bb "
+
" be.xmlFile,g.dataSources,bi.edition,bi.print,bb.resourceType FROM res_book bb "
...
@@ -43,7 +43,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
...
@@ -43,7 +43,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
+
" WHERE 1 = 1 and bb.isDelete=0 "
+
" WHERE 1 = 1 and bb.isDelete=0 "
+
"</if>"
+
"</if>"
+
"<if test='form.diyTypeCode != null and form.diyTypeCode != \"\"'>"
+
"<if test='form.diyTypeCode != null and form.diyTypeCode != \"\"'>"
+
"SELECT bb.id,bb.name,bb.cover,bb.subheading,bb.author,bb.isbn,bb.executiveEditor,bb.keywords,be.authorIntro,"
+
"SELECT
DISTINCT
bb.id,bb.name,bb.cover,bb.subheading,bb.author,bb.isbn,bb.executiveEditor,bb.keywords,be.authorIntro,"
+
" DATE_FORMAT(bb.uploadTime,'%Y-%m-%d %H:%i:%s') uploadTime,DATE_FORMAT(bb.publishTime,'%Y-%m-%d %H:%i:%s') publishTime,bb.updateTime,bb.status,"
+
" DATE_FORMAT(bb.uploadTime,'%Y-%m-%d %H:%i:%s') uploadTime,DATE_FORMAT(bb.publishTime,'%Y-%m-%d %H:%i:%s') publishTime,bb.updateTime,bb.status,"
+
" g.sellingPrice as sellingPrice,g.priceType,be.epubFile,be.bookIntro,bdt.code,bi.binding, "
+
" g.sellingPrice as sellingPrice,g.priceType,be.epubFile,be.bookIntro,bdt.code,bi.binding, "
+
" bdt.dtId,be.xmlFile,g.dataSources,bi.edition,bi.print,bb.resourceType FROM res_book bb "
+
" bdt.dtId,be.xmlFile,g.dataSources,bi.edition,bi.print,bb.resourceType FROM res_book bb "
...
@@ -120,7 +120,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
...
@@ -120,7 +120,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
List
<
EbookListVO
>
page
(
@Param
(
"form"
)
QueryEbookForm
form
);
List
<
EbookListVO
>
page
(
@Param
(
"form"
)
QueryEbookForm
form
);
@Select
(
"<script>"
@Select
(
"<script>"
+
" <if test='form.diyTypeCode == null'>"
+
" <if test='form.diyTypeCode == null'>"
+
"SELECT bb.id,bb.cover,bb.name,bb.author,bb.isbn,bb.executiveEditor,"
+
"SELECT
DISTINCT
bb.id,bb.cover,bb.name,bb.author,bb.isbn,bb.executiveEditor,"
+
" DATE_FORMAT(bb.uploadTime,'%Y-%m-%d %H:%i:%s') uploadTime,bb.status,bb.resourceType as type"
+
" DATE_FORMAT(bb.uploadTime,'%Y-%m-%d %H:%i:%s') uploadTime,bb.status,bb.resourceType as type"
+
" FROM res_book bb where 1=1 and bb.isDelete=0"
+
" FROM res_book bb where 1=1 and bb.isDelete=0"
+
" </if>"
+
" </if>"
...
@@ -143,7 +143,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
...
@@ -143,7 +143,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
@Select
(
"<script>"
@Select
(
"<script>"
+
"SELECT "
+
"SELECT "
+
"bb.id,${form.names}"
+
"
DISTINCT
bb.id,${form.names}"
+
" FROM res_book bb "
+
" FROM res_book bb "
+
" LEFT JOIN res_ebook be ON bb.id = be.bookId "
+
" LEFT JOIN res_ebook be ON bb.id = be.bookId "
+
" LEFT JOIN res_book_issued bi ON be.bookId = bi.objectId "
+
" LEFT JOIN res_book_issued bi ON be.bookId = bi.objectId "
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论