记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
7ea0c780
Commit
7ea0c780
authored
Jun 01, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交 admin 审核
parent
7608cd7a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
48 deletions
+78
-48
KylinPerformanceMisVo.java
...t/service/kylin/dto/vo/partner/KylinPerformanceMisVo.java
+4
-0
details.html
...ources/templates/zhengzai/kylin/performances/details.html
+70
-47
PerformanceVoUtils.java
...client/admin/zhengzai/kylin/utils/PerformanceVoUtils.java
+4
-1
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/partner/KylinPerformanceMisVo.java
View file @
7ea0c780
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
.
partner
;
import
com.liquidnet.service.kylin.dto.vo.KylinBuyNoticeVo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -57,6 +58,9 @@ public class KylinPerformanceMisVo {
@ApiModelProperty
(
value
=
"购票须知"
)
private
String
noticeImage
;
@ApiModelProperty
(
value
=
"购票须知数组"
)
private
List
<
KylinBuyNoticeVo
>
noticeImageList
;
@ApiModelProperty
(
value
=
"状态"
)
private
Integer
status
;
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performances/details.html
View file @
7ea0c780
...
...
@@ -70,7 +70,9 @@
</div>
<div>
<label>
演出类型:
</label>
<span
id=
"type"
></span>
<span
th:if=
"*{type==101}"
>
音乐节
</span>
<span
th:if=
"*{type==102}"
>
小型演出
</span>
<span
th:if=
"*{type==103}"
>
巡演
</span>
</div>
<div>
<label>
场地:
</label>
...
...
@@ -107,12 +109,16 @@
</div>
<div
id=
"noticeImg"
>
<span>
购票须知:
</span>
<div
th:each=
"dict : ${kylinPerformanceMisVo.noticeImageList}"
>
<span
th:text=
"${dict.title}"
></span>
<img
th:src=
"${dict.imgUrl}"
/>
<span
th:text=
"${dict.message}"
></span>
</div>
</div>
<div
th:each=
"dict : ${kylinPerformanceMisVo.ticketTimes}"
>
<div
th:each=
"dict2 : ${dict.ticket}"
>
<br/>
<br/>
<div>
<span>
票种名称:
</span>
...
...
@@ -132,17 +138,21 @@
<span>
票种说明:
</span>
<span
th:text=
"${dict2.title}"
></span>
</div>
<!-- <div>-->
<!-- <span>电子票说明:</span>-->
<!-- <span th:text="${dict2.describeElectronic}"></span>-->
<!-- </div>-->
<!-- <div>-->
<!-- <span>快递票说明:</span>-->
<!-- <span th:text="${dict2.describesExpress}"></span>-->
<!-- </div>-->
<div>
<!-- <div>-->
<!-- <span>电子票说明:</span>-->
<!-- <span th:text="${dict2.describeElectronic}"></span>-->
<!-- </div>-->
<!-- <div>-->
<!-- <span>快递票说明:</span>-->
<!-- <span th:text="${dict2.describesExpress}"></span>-->
<!-- </div>-->
<div
th:if=
"${dict2.limitCount == 0}"
>
<span>
限购:
</span>
<span
th:text=
"${dict2.limitCount}"
></span>
<span>
不限购
</span>
</div>
<div
th:if=
"${dict2.limitCount != 0}"
>
<span>
限购:
</span>
<span
th:text=
"${dict2.limitCount}"
>
不限购
</span>
</div>
<div>
<span>
库存总量:
</span>
...
...
@@ -150,7 +160,14 @@
</div>
<div>
<span>
售票状态:
</span>
<span
th:text=
"${dict2.status}"
></span>
<span
th:if=
"${dict2.status == 1}"
>
审核中
</span>
<span
th:if=
"${dict2.status == 3}"
>
审核通过
</span>
<span
th:if=
"${dict2.status == 4}"
>
未通过
</span>
<span
th:if=
"${dict2.status == 6}"
>
在售
</span>
<span
th:if=
"${dict2.status == 7}"
>
下架
</span>
<span
th:if=
"${dict2.status == 8}"
>
售罄
</span>
<span
th:if=
"${dict2.status == 9}"
>
未开始
</span>
<span
th:if=
"${dict2.status == 10}"
>
已结束
</span>
</div>
<div>
<span>
开始售票时间:
</span>
...
...
@@ -158,22 +175,24 @@
</div>
<div>
<span>
是否学生票:
</span>
<span
th:text=
"${dict2.isStudent}"
></span>
<span
th:if=
"${dict2.isStudent==1}"
>
是
</span>
<span
th:if=
"${dict2.isStudent==0}"
>
否
</span>
</div>
<div>
<span>
是否显示二维码:
</span>
<span
th:text=
"${dict2.isShowCode}"
></span>
<span
th:if=
"${dict2.isShowCode==1}"
>
是
</span>
<span
th:if=
"${dict2.isShowCode==0}"
>
否
</span>
</div>
<div>
<div
th:if=
"${dict2.isShowCode==1}"
>
<span>
二维码显示时间:
</span>
<span
th:
if=
"${dict2.isShowCode==1}"
th:
text=
"${dict2.qrCodeShowTime}"
></span>
<span
th:text=
"${dict2.qrCodeShowTime}"
></span>
</div>
<div>
<span>
取票方式:
</span>
<span
th:
text=
"${dict2.isElectronic}"
>
</span>
<span
th:
text=
"${dict2.isExpress}"
>
</span>
<span
th:
if=
"${dict2.isElectronic==1}"
>
电子票
</span>
<span
th:
if=
"${dict2.isExpress==1}"
>
快递票
</span>
</div>
<div>
<div
th:if=
"${dict2.isExpress==1}"
>
<span>
快递票停售时间:
</span>
<span
th:text=
"${dict2.timeEndExpress}"
></span>
</div>
...
...
@@ -181,7 +200,7 @@
</div>
</form>
</div>
<div
class=
"panel-body"
th:width=
"max"
style=
"margin-top: 10px"
>
<div
class=
"panel-body"
th:width=
"max"
style=
"margin-top: 10px"
name=
"auditBtn"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
name=
"auditCheck"
>
同意
</label>
</div>
...
...
@@ -189,7 +208,8 @@
<input
type=
"radio"
value=
"0"
name=
"auditCheck"
>
拒绝
</label>
</div>
<input
name=
"rejectTxt"
class=
"form-control"
type=
"text"
/>
<button
type=
"button"
class=
"btn btn-w-m btn-success"
name=
"isShowBtn"
style=
"margin-top: 10px"
<button
type=
"button"
class=
"btn btn-w-m btn-success"
style=
"margin-top: 10px"
onclick=
"aduitHandler()"
>
审核
</button>
</div>
...
...
@@ -207,6 +227,12 @@
const
isShow
=
'[[${kylinPerformanceMisVo.isShow}]]'
;
const
auditStatus
=
'[[${kylinPerformanceMisVo.auditStatus}]]'
;
if
(
auditStatus
!=
0
)
{
document
.
getElementsByName
(
"auditBtn"
)[
0
].
style
.
display
=
"none"
;
}
if
(
isShow
==
1
)
{
document
.
getElementsByName
(
"isShowCheck"
)[
0
].
checked
=
true
;
}
else
{
...
...
@@ -216,7 +242,7 @@
//修改 演出是否显示
function
submitHandler
()
{
var
param
=
{
"isShow"
:
document
.
getElementsByName
(
"
audit
Check"
)[
0
].
checked
?
1
:
0
,
"isShow"
:
document
.
getElementsByName
(
"
isShow
Check"
)[
0
].
checked
?
1
:
0
,
"performancesId"
:
'[[${kylinPerformanceMisVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
)
};
$
.
operate
.
post
(
prefix
+
"/isShow"
,
param
,
function
(
res
)
{
...
...
@@ -225,35 +251,32 @@
//演出审核
function
aduitHandler
()
{
const
auditStatus
=
document
.
getElementsByName
(
"
isShow
Check"
)[
0
].
checked
?
3
:
4
;
const
auditStatus
=
document
.
getElementsByName
(
"
audit
Check"
)[
0
].
checked
?
3
:
4
;
var
auditRejectTxt
=
""
if
(
4
===
auditStatus
)
{
auditRejectTxt
=
document
.
getElementsByName
(
"rejectTxt"
)[
0
].
textContent
;
if
(
4
===
auditStatus
)
{
auditRejectTxt
=
document
.
getElementsByName
(
"rejectTxt"
)[
0
].
value
;
}
if
(
4
===
auditStatus
&&
auditRejectTxt
===
""
)
{
alert
(
"请填写拒绝理由"
);
}
else
{
var
param
=
{
"status"
:
auditStatus
,
"performancesId"
:
'[[${kylinPerformanceMisVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
),
"rejectTxt"
:
auditRejectTxt
"rejectTxt"
:
auditRejectTxt
};
$
.
operate
.
post
(
prefix
+
"/audit"
,
param
,
function
(
res
)
{
});
}
//演出信息
const
type
=
document
.
getElementById
(
"type"
);
var
typeInt
=
'[[${kylinPerformanceMisVo.type}]]'
;
if
(
typeInt
==
101
)
{
type
.
textContent
=
'音乐节'
}
else
if
(
typeInt
==
102
)
{
type
.
textContent
=
'小型演出'
}
else
if
(
typeInt
==
103
||
typeInt
==
3
)
{
type
.
textContent
=
'巡演'
}
// 演出详情 购票须知
var
subText
=
document
.
getElementById
(
"subText"
)
subText
.
innerHTML
=
"演出详情:"
+
'[[${kylinPerformanceMisVo.details}]]'
.
replaceAll
(
"
\"
"
,
""
);
var
noticeImg
=
document
.
getElementById
(
"noticeImg"
)
noticeImg
.
innerHTML
=
"购票须知:"
+
'[[${kylinPerformanceMisVo.noticeImage}]]'
.
replaceAll
(
"
\"
"
,
""
);
// var noticeImg = document.getElementById("noticeImg")
// noticeImg.innerHTML = "购票须知:" + '[[${kylinPerformanceMisVo.noticeImage}]]'.replaceAll("\"", "");
// var noticeImgJson = $.parseJSON('[[${kylinPerformanceMisVo.noticeImage}]]'.substr(1, '[[${kylinPerformanceMisVo.noticeImage}]]'.length-2));
// alert(noticeImgJson[0]['title']);
</script>
</body>
</html>
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/utils/PerformanceVoUtils.java
View file @
7ea0c780
package
com
.
liquidnet
.
client
.
admin
.
zhengzai
.
kylin
.
utils
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.liquidnet.common.cache.redis.util.RedisUtil
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.kylin.dto.param.PerformancePartnerVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinBuyNoticeVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinTicketTimesVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinTicketVo
;
...
...
@@ -279,7 +282,7 @@ public class PerformanceVoUtils {
// performanceMisVo.setIsShow(1);
kylinPerformanceMisVo
.
setIsDistribution
(
0
);
kylinPerformanceMisVo
.
setSyncAgent
(
0
);
kylinPerformanceMisVo
.
set
AuditStatus
(
0
);
kylinPerformanceMisVo
.
set
NoticeImageList
(
JsonUtils
.
fromJson
(
kylinPerformanceMisVo
.
getNoticeImage
(),
new
TypeReference
<
List
<
KylinBuyNoticeVo
>>()
{})
);
// }
// boolean exists = mongoTemplate.exists(Query.query(Criteria.where("performancesId").is(performancesId)), PerformanceMisVo.class, PerformanceMisVo.class.getSimpleName());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment