记得上下班打卡 | 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
7533ab39
Commit
7533ab39
authored
Jun 04, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交 代码 缺少 大麦相关
parent
d19a9ff0
Changes
27
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
610 additions
and
126 deletions
+610
-126
CheckUserParam.java
...com/liquidnet/service/kylin/dto/param/CheckUserParam.java
+5
-0
PayOrderParam.java
.../com/liquidnet/service/kylin/dto/param/PayOrderParam.java
+9
-2
SyncOrderParam.java
...com/liquidnet/service/kylin/dto/param/SyncOrderParam.java
+1
-0
SysDamaiParam.java
.../com/liquidnet/service/kylin/dto/param/SysDamaiParam.java
+0
-3
KylinPerformanceAgentVo.java
...quidnet/service/kylin/dto/vo/KylinPerformanceAgentVo.java
+17
-0
KylinPerformanceDamaiVo.java
...quidnet/service/kylin/dto/vo/KylinPerformanceDamaiVo.java
+17
-0
IKylinPerformancesAdminService.java
...e/kylin/service/admin/IKylinPerformancesAdminService.java
+6
-0
DamaiService.java
...m/liquidnet/service/kylin/service/other/DamaiService.java
+13
-0
KylinPerformancesController.java
...ontroller/zhengzai/kylin/KylinPerformancesController.java
+43
-2
agent.html
...esources/templates/zhengzai/kylin/performances/agent.html
+77
-0
damai.html
...esources/templates/zhengzai/kylin/performances/damai.html
+110
-0
details.html
...ources/templates/zhengzai/kylin/performances/details.html
+23
-3
KylinDamaiServiceImpl.java
...in/zhengzai/kylin/service/impl/KylinDamaiServiceImpl.java
+62
-0
KylinPerformancesAdminServiceImpl.java
...kylin/service/impl/KylinPerformancesAdminServiceImpl.java
+45
-20
CurrentUtil.java
...ain/java/com/liquidnet/commons/lang/util/CurrentUtil.java
+0
-10
TicketAgentDao.java
.../java/com/liquidnet/service/kylin/dao/TicketAgentDao.java
+12
-0
TicketDamaiDao.java
.../java/com/liquidnet/service/kylin/dao/TicketDamaiDao.java
+10
-0
KylinTicketsMapper.java
...om/liquidnet/service/kylin/mapper/KylinTicketsMapper.java
+8
-0
KylinTicketsMapper.xml
...com.liquidnet.service.kylin.mapper/KylinTicketsMapper.xml
+40
-0
KylinOrderTicketsController.java
...service/kylin/controller/KylinOrderTicketsController.java
+11
-8
KylinBuyNoticeParnterController.java
...n/controller/partner/KylinBuyNoticeParnterController.java
+1
-1
KylinCheckUserPartnerController.java
...n/controller/partner/KylinCheckUserPartnerController.java
+21
-17
KylinCheckUserPerformancesPartnerController.java
.../partner/KylinCheckUserPerformancesPartnerController.java
+14
-10
KylinTicketTimesPartnerController.java
...controller/partner/KylinTicketTimesPartnerController.java
+3
-2
KylinTicketsPartnerController.java
...lin/controller/partner/KylinTicketsPartnerController.java
+6
-5
PerformancePartnerController.java
...ylin/controller/partner/PerformancePartnerController.java
+7
-6
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+49
-37
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/CheckUserParam.java
View file @
7533ab39
...
@@ -3,12 +3,17 @@ package com.liquidnet.service.kylin.dto.param;
...
@@ -3,12 +3,17 @@ package com.liquidnet.service.kylin.dto.param;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
public
class
CheckUserParam
{
public
class
CheckUserParam
{
@ApiModelProperty
(
value
=
"演出id"
)
@ApiModelProperty
(
value
=
"演出id"
)
@NotNull
private
String
checkUserId
;
private
String
checkUserId
;
@ApiModelProperty
(
value
=
"可下载时间"
)
@ApiModelProperty
(
value
=
"可下载时间"
)
@NotNull
@Size
(
min
=
1
)
private
List
<
CheckPerformanceRelationParam
>
checkPerformanceRelationParamList
;
private
List
<
CheckPerformanceRelationParam
>
checkPerformanceRelationParamList
;
}
}
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/PayOrderParam.java
View file @
7533ab39
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
param
;
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
import
java.util.List
;
...
@@ -19,16 +21,19 @@ public class PayOrderParam {
...
@@ -19,16 +21,19 @@ public class PayOrderParam {
private
String
ticketId
;
private
String
ticketId
;
@ApiModelProperty
(
value
=
"数量"
)
@ApiModelProperty
(
value
=
"数量"
)
@NotNull
(
message
=
"必传"
)
@NotNull
(
message
=
"必传"
)
@Min
(
value
=
1
,
message
=
"太小了"
)
private
Integer
number
;
private
Integer
number
;
// @ApiModelProperty(value = "是否学生票")
// @ApiModelProperty(value = "是否学生票")
// @NotNull(message = "必传")
// @NotNull(message = "必传")
// private Integer isStudent;
// private Integer isStudent;
@ApiModelProperty
(
value
=
"是否电子票"
)
@ApiModelProperty
(
value
=
"是否电子票"
)
@NotNull
(
message
=
"必传"
)
@Min
(
0
)
@Min
(
1
)
private
Integer
isElectronic
;
private
Integer
isElectronic
;
@ApiModelProperty
(
value
=
"是否快递票"
)
@ApiModelProperty
(
value
=
"是否快递票"
)
@NotNull
(
message
=
"必传"
)
@Min
(
0
)
@Min
(
1
)
private
Integer
isExpress
;
private
Integer
isExpress
;
@ApiModelProperty
(
value
=
"收货地址id"
)
@ApiModelProperty
(
value
=
"收货地址id"
)
...
@@ -40,6 +45,8 @@ public class PayOrderParam {
...
@@ -40,6 +45,8 @@ public class PayOrderParam {
private
String
agentId
;
private
String
agentId
;
@ApiModelProperty
(
value
=
"快递类型 1寄付 2到付"
)
@ApiModelProperty
(
value
=
"快递类型 1寄付 2到付"
)
@NotNull
(
message
=
"必传"
)
@NotNull
(
message
=
"必传"
)
@Min
(
0
)
@Min
(
1
)
private
Integer
expressType
;
private
Integer
expressType
;
...
...
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/SyncOrderParam.java
View file @
7533ab39
...
@@ -3,6 +3,7 @@ package com.liquidnet.service.kylin.dto.param;
...
@@ -3,6 +3,7 @@ package com.liquidnet.service.kylin.dto.param;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.Min
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
@Data
@Data
...
...
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/SysDamaiParam.java
View file @
7533ab39
...
@@ -5,10 +5,7 @@ import lombok.Data;
...
@@ -5,10 +5,7 @@ import lombok.Data;
@Data
@Data
public
class
SysDamaiParam
{
public
class
SysDamaiParam
{
@ApiModelProperty
(
value
=
"类型id"
,
example
=
""
)
private
String
id
;
private
String
id
;
@ApiModelProperty
(
value
=
"类型 演出/performance ticket/票"
,
example
=
""
)
private
String
type
;
private
String
type
;
@ApiModelProperty
(
value
=
"状态 1同步 2不同步"
,
example
=
""
)
private
Integer
status
;
private
Integer
status
;
}
}
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinPerformanceAgentVo.java
0 → 100644
View file @
7533ab39
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
;
import
com.liquidnet.service.kylin.dao.TicketAgentDao
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
import
java.util.List
;
@ApiModel
@Data
public
class
KylinPerformanceAgentVo
{
private
String
performancesId
;
private
String
title
;
private
List
<
TicketAgentDao
>
tickets
;
}
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinPerformanceDamaiVo.java
0 → 100644
View file @
7533ab39
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
;
import
com.liquidnet.service.kylin.dao.TicketAgentDao
;
import
com.liquidnet.service.kylin.dao.TicketDamaiDao
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.util.List
;
@ApiModel
@Data
public
class
KylinPerformanceDamaiVo
{
private
String
performancesId
;
private
String
title
;
private
Integer
syncDamai
;
private
List
<
TicketDamaiDao
>
damaiTickets
;
}
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/service/admin/IKylinPerformancesAdminService.java
View file @
7533ab39
...
@@ -6,6 +6,8 @@ import com.liquidnet.service.kylin.dao.*;
...
@@ -6,6 +6,8 @@ import com.liquidnet.service.kylin.dao.*;
import
com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam
;
import
com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam
;
import
com.liquidnet.service.kylin.dto.param.PerformanceMemberAuditParam
;
import
com.liquidnet.service.kylin.dto.param.PerformanceMemberAuditParam
;
import
com.liquidnet.service.kylin.dto.param.SysDamaiParam
;
import
com.liquidnet.service.kylin.dto.param.SysDamaiParam
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceAgentVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceDamaiVo
;
import
com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo
;
import
com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo
;
import
com.liquidnet.service.kylin.entity.KylinPerformances
;
import
com.liquidnet.service.kylin.entity.KylinPerformances
;
...
@@ -168,5 +170,9 @@ public interface IKylinPerformancesAdminService extends IService<KylinPerformanc
...
@@ -168,5 +170,9 @@ public interface IKylinPerformancesAdminService extends IService<KylinPerformanc
*/
*/
boolean
changeSysDamai
(
List
<
SysDamaiParam
>
params
);
boolean
changeSysDamai
(
List
<
SysDamaiParam
>
params
);
KylinPerformanceAgentVo
getPerformanceAgent
(
String
performancesId
);
KylinPerformanceDamaiVo
getPerformanceDamai
(
String
performancesId
);
List
<
PerformanceOrderStatisticalDao
>
getPerformanceOrderStatisticalList
(
String
performancesId
);
List
<
PerformanceOrderStatisticalDao
>
getPerformanceOrderStatisticalList
(
String
performancesId
);
}
}
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/service/other/DamaiService.java
0 → 100644
View file @
7533ab39
package
com
.
liquidnet
.
service
.
kylin
.
service
.
other
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.kylin.dto.vo.tmp.CourierListVo
;
public
interface
DamaiService
{
//同步演出
ResponseDto
<
Boolean
>
sycPerformance
(
String
performanceId
);
//同步场次
ResponseDto
<
Boolean
>
sycTimes
(
String
timeId
);
//同步票
ResponseDto
<
Boolean
>
sycTicket
(
String
ticketId
);
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/kylin/KylinPerformancesController.java
View file @
7533ab39
package
com
.
liquidnet
.
client
.
admin
.
web
.
controller
.
zhengzai
.
kylin
;
package
com
.
liquidnet
.
client
.
admin
.
web
.
controller
.
zhengzai
.
kylin
;
import
com.alibaba.druid.support.json.JSONUtils
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.client.admin.common.core.controller.BaseController
;
import
com.liquidnet.client.admin.common.core.controller.BaseController
;
import
com.liquidnet.client.admin.common.core.domain.AjaxResult
;
import
com.liquidnet.client.admin.common.core.domain.AjaxResult
;
import
com.liquidnet.client.admin.common.core.page.TableDataInfo
;
import
com.liquidnet.client.admin.common.core.page.TableDataInfo
;
import
com.liquidnet.client.admin.common.json.JSON
;
import
com.liquidnet.client.admin.zhengzai.kylin.dto.PerformanceOrderStatisCountResp
;
import
com.liquidnet.client.admin.zhengzai.kylin.dto.PerformanceOrderStatisCountResp
;
import
com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinPerformancesAdminServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinPerformancesAdminServiceImpl
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.kylin.dao.PerformanceAdminListDao
;
import
com.liquidnet.service.kylin.dao.PerformanceAdminListDao
;
import
com.liquidnet.service.kylin.dao.PerformanceMemberAuditDao
;
import
com.liquidnet.service.kylin.dao.PerformanceMemberAuditDao
;
import
com.liquidnet.service.kylin.dao.PerformanceOrderStatisticalDao
;
import
com.liquidnet.service.kylin.dao.PerformanceOrderStatisticalDao
;
import
com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam
;
import
com.liquidnet.service.kylin.dto.param.PerformanceAdminListParam
;
import
com.liquidnet.service.kylin.dto.param.PerformanceMemberAuditParam
;
import
com.liquidnet.service.kylin.dto.param.PerformanceMemberAuditParam
;
import
com.liquidnet.service.kylin.dto.param.SysDamaiParam
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceAgentVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceDamaiVo
;
import
com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo
;
import
com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -104,8 +111,8 @@ public class KylinPerformancesController extends BaseController {
...
@@ -104,8 +111,8 @@ public class KylinPerformancesController extends BaseController {
//构造top统计数据
//构造top统计数据
PerformanceOrderStatisCountResp
perCountResp
=
new
PerformanceOrderStatisCountResp
();
PerformanceOrderStatisCountResp
perCountResp
=
new
PerformanceOrderStatisCountResp
();
perCountResp
.
setPerformanceTitle
(
performanceMisVo
.
getTitle
());
perCountResp
.
setPerformanceTitle
(
performanceMisVo
.
getTitle
());
if
(
result
.
size
()>=
2
)
{
if
(
result
.
size
()
>=
2
)
{
PerformanceOrderStatisticalDao
resdao
=
result
.
get
(
result
.
size
()
-
1
);
PerformanceOrderStatisticalDao
resdao
=
result
.
get
(
result
.
size
()
-
1
);
perCountResp
.
setTotalSalePrice
(
resdao
.
getTotalSalePrice
());
perCountResp
.
setTotalSalePrice
(
resdao
.
getTotalSalePrice
());
perCountResp
.
setSaleGeneral
(
resdao
.
getSaleGeneral
());
perCountResp
.
setSaleGeneral
(
resdao
.
getSaleGeneral
());
perCountResp
.
setTotalGeneral
(
resdao
.
getTotalGeneral
());
perCountResp
.
setTotalGeneral
(
resdao
.
getTotalGeneral
());
...
@@ -120,4 +127,38 @@ public class KylinPerformancesController extends BaseController {
...
@@ -120,4 +127,38 @@ public class KylinPerformancesController extends BaseController {
mmap
.
put
(
"perOrderStaticList"
,
result
);
mmap
.
put
(
"perOrderStaticList"
,
result
);
return
prefix
+
"/performancesStatic"
;
return
prefix
+
"/performancesStatic"
;
}
}
@RequiresPermissions
(
"kylin:performances:damai"
)
@GetMapping
(
value
=
"/damai/{performancesId}"
)
public
String
damai
(
@PathVariable
(
"performancesId"
)
String
performancesId
,
ModelMap
mmap
)
{
KylinPerformanceDamaiVo
result
=
kylinPerformancesService
.
getPerformanceDamai
(
performancesId
);
mmap
.
put
(
"kylinPerformanceDamaiVo"
,
result
);
return
prefix
+
"/damai"
;
}
@RequiresPermissions
(
"kylin:performances:agent"
)
@GetMapping
(
value
=
"/agent/{performancesId}"
)
public
String
agent
(
@PathVariable
(
"performancesId"
)
String
performancesId
,
ModelMap
mmap
)
{
KylinPerformanceAgentVo
result
=
kylinPerformancesService
.
getPerformanceAgent
(
performancesId
);
mmap
.
put
(
"kylinPerformanceAgentVo"
,
result
);
return
prefix
+
"/agent"
;
}
@RequiresPermissions
(
"kylin:performances:agent"
)
@PostMapping
(
value
=
"/agent/change"
)
@ResponseBody
public
AjaxResult
changeTicketAgent
(
@RequestParam
(
"ticketsId"
)
String
ticketsId
,
@RequestParam
(
"status"
)
Integer
status
)
{
boolean
result
=
kylinPerformancesService
.
changeTicketAgent
(
ticketsId
,
status
);
return
toAjax
(
result
);
}
@RequiresPermissions
(
"kylin:performances:damai"
)
@PostMapping
(
value
=
"/damai/change"
)
@ResponseBody
public
AjaxResult
changeSysDamai
(
@RequestParam
(
"params"
)
String
params
)
{
List
<
SysDamaiParam
>
data
=
JsonUtils
.
fromJson
(
params
,
new
TypeReference
<
List
<
SysDamaiParam
>>()
{
});
boolean
result
=
kylinPerformancesService
.
changeSysDamai
(
data
);
return
toAjax
(
result
);
}
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performances/agent.html
0 → 100644
View file @
7533ab39
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('代理相关')"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-agent-edit"
th:object=
"${kylinPerformanceAgentVo}"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
performances_id:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"performancesId"
th:field=
"*{performancesId}"
class=
"form-control"
type=
"text"
readonly
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
演出名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"title"
th:value=
"*{title}"
class=
"form-control"
type=
"text"
readonly
>
</div>
</div>
<div
th:each=
"ticket : ${kylinPerformanceAgentVo.tickets}"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
票种名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"title"
th:value=
"${ticket.title}"
class=
"form-control"
type=
"text"
readonly
>
<input
name=
"ticketsId"
th:value=
"${ticket.ticketsId}"
class=
"form-control"
type=
"hidden"
readonly
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
是否代理:
</label>
<div
class=
"col-sm-8"
th:if=
"${ticket.isAgent==1}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
th:name=
"'ticket_agent:'+${ticket.ticketsId}"
checked
>
代理
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
th:name=
"'ticket_agent:'+${ticket.ticketsId}"
>
不代理
</label>
</div>
<button
type=
"button"
class=
"btn btn-w-m btn-success"
onclick=
"submitHandler(this)"
>
修改
</button>
</div>
<div
class=
"col-sm-8"
th:if=
"${ticket.isAgent==0}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
th:name=
"'ticket_agent:'+${ticket.ticketsId}"
>
代理
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
th:name=
"'ticket_agent:'+${ticket.ticketsId}"
checked
>
不代理
</label>
</div>
<button
type=
"button"
class=
"btn btn-w-m btn-success"
onclick=
"submitHandler(this)"
>
修改
</button>
</div>
</div>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"kylin/performances"
;
$
(
"#form-performances-edit"
).
validate
({
focusCleanup
:
true
});
function
submitHandler
(
res
)
{
var
param
=
{
"ticketsId"
:
$
(
res
).
parent
().
parent
().
parent
().
find
(
"input[name^='ticketsId']"
).
val
(),
"status"
:
$
(
res
).
parent
().
find
(
"input[name^='ticket_agent:"
+
$
(
res
).
parent
().
parent
().
parent
().
find
(
"input[name^='ticketsId']"
).
val
()
+
"']:checked"
).
val
()
}
$
.
operate
.
post
(
prefix
+
"/agent/change"
,
param
,
function
(
res
)
{
location
.
reload
();
});
}
</script>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performances/damai.html
0 → 100644
View file @
7533ab39
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('代理相关')"
/>
</head>
<body
class=
"white-bg"
>
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m"
id=
"form-damai-edit"
th:object=
"${kylinPerformanceDamaiVo}"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
performances_id:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"performancesId"
th:field=
"*{performancesId}"
class=
"form-control"
type=
"text"
readonly
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
演出名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"title"
th:field=
"*{title}"
class=
"form-control"
type=
"text"
readonly
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
是否同步:
</label>
<div
class=
"col-sm-8"
th:if=
"*{syncDamai==1}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
name=
"performance_sync_damai"
checked
>
同步
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
name=
"performance_sync_damai"
>
不同步
</label>
</div>
</div>
<div
class=
"col-sm-8"
th:if=
"*{syncDamai==0}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
name=
"performance_sync_damai"
>
同步
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
name=
"performance_sync_damai"
checked
>
不同步
</label>
</div>
</div>
</div>
<div
th:each=
"tickets : ${kylinPerformanceDamaiVo.damaiTickets}"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
票种名称:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"title"
th:value=
"${tickets.title}"
class=
"form-control"
type=
"text"
readonly
>
<input
name=
"ticketsId"
th:value=
"${tickets.ticketsId}"
class=
"form-control"
type=
"hidden"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
是否同步:
</label>
<div
class=
"col-sm-8"
th:if=
"${tickets.syncDamai==1}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
th:name=
"'ticket_syncDamai:'+${tickets.ticketsId}"
checked
>
同步
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
th:name=
"'ticket_syncDamai:'+${tickets.ticketsId}"
>
不同步
</label>
</div>
</div>
<div
class=
"col-sm-8"
th:if=
"${tickets.syncDamai==0}"
>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"1"
th:name=
"'ticket_syncDamai:'+${tickets.ticketsId}"
>
同步
</label>
</div>
<div
class=
"radio check-box"
>
<input
type=
"radio"
value=
"0"
th:name=
"'ticket_syncDamai:'+${tickets.ticketsId}"
checked
>
不同步
</label>
</div>
</div>
</div>
</div>
<button
type=
"button"
class=
"btn btn-w-m btn-success"
onclick=
"submitHandler()"
>
修改
</button>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"kylin/performances"
;
$
(
"#form-performances-edit"
).
validate
({
focusCleanup
:
true
});
function
submitHandler
()
{
const
paramList
=
[];
var
param
=
{
id
:
'[[${kylinPerformanceDamaiVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
),
type
:
"performance"
,
status
:
parseInt
(
$
(
"input[name^='performance_sync_damai']:checked"
).
val
())
}
paramList
.
push
(
param
)
var
ticketObj
=
JSON
.
parse
(
'[[${kylinPerformanceDamaiVo.damaiTickets}]]'
);
$
.
each
(
ticketObj
,
function
(
i
,
damaiTickets
)
{
var
param
=
{
id
:
damaiTickets
.
ticketsId
,
type
:
"ticket"
,
status
:
parseInt
(
$
(
"input[name^='ticket_syncDamai:"
+
damaiTickets
.
ticketsId
+
"']:checked"
).
val
())
}
paramList
.
push
(
param
)
});
$
.
operate
.
post
(
prefix
+
"/damai/change"
,
{
params
:
JSON
.
stringify
(
paramList
)},
function
(
res
)
{
location
.
reload
();
});
}
</script>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performances/details.html
View file @
7533ab39
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
</li>
</li>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-3"
aria-expanded=
"false"
onclick=
"memberInfo()"
>
会员信息配置
</a>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-3"
aria-expanded=
"false"
onclick=
"memberInfo()"
>
会员信息配置
</a>
</li>
</li>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-
2"
aria-expanded=
"false"
>
关联直播数量
配置
</a>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-
4"
aria-expanded=
"false"
onclick=
"agentInfo()"
>
代理
配置
</a>
</li>
</li>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-
2"
aria-expanded=
"false"
>
云南摩登权限
</a>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-
5"
aria-expanded=
"false"
onclick=
"damaiInfo()"
>
大麦配置
</a>
</li>
</li>
</ul>
</ul>
<div
class=
"tab-content"
>
<div
class=
"tab-content"
>
...
@@ -221,6 +221,16 @@
...
@@ -221,6 +221,16 @@
<iframe
id=
"content_iframe"
name=
"content_iframe"
marginwidth=
0
marginheight=
0
width=
100%
height=
800px
frameborder=
0
></iframe>
<iframe
id=
"content_iframe"
name=
"content_iframe"
marginwidth=
0
marginheight=
0
width=
100%
height=
800px
frameborder=
0
></iframe>
</div>
</div>
</div>
</div>
<div
id=
"tab-4"
class=
"tab-pane"
>
<div
class=
"panel-body"
>
<iframe
id=
"agent_iframe"
name=
"agent_iframe"
marginwidth=
0
marginheight=
0
width=
100%
height=
800px
frameborder=
0
></iframe>
</div>
</div>
<div
id=
"tab-5"
class=
"tab-pane"
>
<div
class=
"panel-body"
>
<iframe
id=
"damai_iframe"
name=
"damai_iframe"
marginwidth=
0
marginheight=
0
width=
100%
height=
800px
frameborder=
0
></iframe>
</div>
</div>
</div>
</div>
...
@@ -272,7 +282,8 @@
...
@@ -272,7 +282,8 @@
};
};
$
.
operate
.
post
(
prefix
+
"/audit"
,
param
,
function
(
res
)
{
$
.
operate
.
post
(
prefix
+
"/audit"
,
param
,
function
(
res
)
{
// $.modal.close();
// $.modal.close();
$
.
table
.
refresh
();
// $.table.refresh();
location
.
reload
();
});
});
}
}
}
}
...
@@ -284,7 +295,16 @@
...
@@ -284,7 +295,16 @@
//会员详情
//会员详情
function
memberInfo
()
{
function
memberInfo
()
{
document
.
getElementById
(
"content_iframe"
).
src
=
"../memberInfo/"
+
'[[${kylinPerformanceMisVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
);
document
.
getElementById
(
"content_iframe"
).
src
=
"../memberInfo/"
+
'[[${kylinPerformanceMisVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
);
}
//代理详情
function
agentInfo
()
{
document
.
getElementById
(
"agent_iframe"
).
src
=
"../agent/"
+
'[[${kylinPerformanceMisVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
);
}
//大麦详情
function
damaiInfo
()
{
document
.
getElementById
(
"damai_iframe"
).
src
=
"../damai/"
+
'[[${kylinPerformanceMisVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
);
}
}
$
(
"#tab-nav-1"
).
bind
(
"click"
,
function
(){
$
(
"#tab-nav-1"
).
bind
(
"click"
,
function
(){
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinDamaiServiceImpl.java
0 → 100644
View file @
7533ab39
package
com
.
liquidnet
.
client
.
admin
.
zhengzai
.
kylin
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.kylin.dao.RoadShowAdminListDao
;
import
com.liquidnet.service.kylin.dto.param.CreateRoadShowParam
;
import
com.liquidnet.service.kylin.dto.vo.KylinRoadShowVo
;
import
com.liquidnet.service.kylin.dto.vo.admin.KylinRoadShowAdminVo
;
import
com.liquidnet.service.kylin.entity.KylinRoadShows
;
import
com.liquidnet.service.kylin.mapper.KylinRoadShowsMapper
;
import
com.liquidnet.service.kylin.service.admin.IKylinRoadShowsAdminService
;
import
com.liquidnet.service.kylin.service.other.DamaiService
;
import
com.mongodb.BasicDBObject
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.mongodb.core.MongoTemplate
;
import
org.springframework.data.mongodb.core.convert.MongoConverter
;
import
org.springframework.data.mongodb.core.query.Criteria
;
import
org.springframework.data.mongodb.core.query.Query
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
/**
* <p>
* 巡演 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-05-11
*/
@Service
public
class
KylinDamaiServiceImpl
extends
ServiceImpl
<
KylinRoadShowsMapper
,
KylinRoadShows
>
implements
DamaiService
{
@Autowired
private
MongoTemplate
mongoTemplate
;
@Autowired
private
MongoConverter
mongoConverter
;
@Override
public
ResponseDto
<
Boolean
>
sycPerformance
(
String
performanceId
)
{
return
null
;
}
@Override
public
ResponseDto
<
Boolean
>
sycTimes
(
String
timeId
)
{
return
null
;
}
@Override
public
ResponseDto
<
Boolean
>
sycTicket
(
String
ticketId
)
{
return
null
;
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinPerformancesAdminServiceImpl.java
View file @
7533ab39
...
@@ -9,6 +9,8 @@ import com.liquidnet.client.admin.zhengzai.kylin.utils.PerformanceVoUtils;
...
@@ -9,6 +9,8 @@ import com.liquidnet.client.admin.zhengzai.kylin.utils.PerformanceVoUtils;
import
com.liquidnet.commons.lang.util.BeanUtil
;
import
com.liquidnet.commons.lang.util.BeanUtil
;
import
com.liquidnet.service.kylin.dao.*
;
import
com.liquidnet.service.kylin.dao.*
;
import
com.liquidnet.service.kylin.dto.param.*
;
import
com.liquidnet.service.kylin.dto.param.*
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceAgentVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceDamaiVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinTicketVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinTicketVo
;
import
com.liquidnet.service.kylin.dto.vo.admin.KylinPerformanceMemberHistoryVo
;
import
com.liquidnet.service.kylin.dto.vo.admin.KylinPerformanceMemberHistoryVo
;
...
@@ -227,8 +229,8 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -227,8 +229,8 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
}
}
@Override
@Override
public
List
<
PerformanceTitleDao
>
getListByStatus
(
String
status
,
String
title
)
{
public
List
<
PerformanceTitleDao
>
getListByStatus
(
String
status
,
String
title
)
{
List
<
PerformanceTitleDao
>
voList
=
performancesMapper
.
misTitleByStatusList
(
status
,
title
);
List
<
PerformanceTitleDao
>
voList
=
performancesMapper
.
misTitleByStatusList
(
status
,
title
);
return
voList
;
return
voList
;
}
}
...
@@ -236,8 +238,8 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -236,8 +238,8 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
public
boolean
changeRoadShowId
(
String
performancesId
,
String
roadShowId
)
{
public
boolean
changeRoadShowId
(
String
performancesId
,
String
roadShowId
)
{
try
{
try
{
//mysql
//mysql
if
(
null
==
roadShowId
||
roadShowId
.
isEmpty
())
{
if
(
null
==
roadShowId
||
roadShowId
.
isEmpty
())
{
roadShowId
=
"0"
;
roadShowId
=
"0"
;
}
}
KylinPerformanceRelations
performanceRelations
=
new
KylinPerformanceRelations
();
KylinPerformanceRelations
performanceRelations
=
new
KylinPerformanceRelations
();
performanceRelations
.
setRoadShowId
(
roadShowId
);
performanceRelations
.
setRoadShowId
(
roadShowId
);
...
@@ -265,10 +267,10 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -265,10 +267,10 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
}
}
@Override
@Override
public
boolean
setRecommend
(
String
performancesId
,
Integer
isRecommend
)
{
public
boolean
setRecommend
(
String
performancesId
,
Integer
isRecommend
)
{
try
{
try
{
if
(
null
==
isRecommend
)
{
if
(
null
==
isRecommend
)
{
isRecommend
=
0
;
isRecommend
=
0
;
}
}
KylinPerformanceStatus
performanceStatus
=
new
KylinPerformanceStatus
();
KylinPerformanceStatus
performanceStatus
=
new
KylinPerformanceStatus
();
// performanceStatus.setIsRecommend(0);
// performanceStatus.setIsRecommend(0);
...
@@ -284,16 +286,16 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -284,16 +286,16 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
// );
// );
// for (PerformanceRecommendAdminParam item : performancesIdList) {
// for (PerformanceRecommendAdminParam item : performancesIdList) {
performanceStatus
.
setIsRecommend
(
isRecommend
);
performanceStatus
.
setIsRecommend
(
isRecommend
);
performanceStatusMapper
.
update
(
performanceStatus
,
new
UpdateWrapper
<
KylinPerformanceStatus
>().
eq
(
"performance_id"
,
performancesId
));
performanceStatusMapper
.
update
(
performanceStatus
,
new
UpdateWrapper
<
KylinPerformanceStatus
>().
eq
(
"performance_id"
,
performancesId
));
HashMap
<
String
,
Object
>
map2
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map2
=
new
HashMap
<>();
map2
.
put
(
"isRecommend"
,
isRecommend
);
map2
.
put
(
"isRecommend"
,
isRecommend
);
BasicDBObject
object2
=
new
BasicDBObject
(
"$set"
,
map2
);
BasicDBObject
object2
=
new
BasicDBObject
(
"$set"
,
map2
);
mongoTemplate
.
getCollection
(
KylinPerformanceVo
.
class
.
getSimpleName
()).
updateOne
(
mongoTemplate
.
getCollection
(
KylinPerformanceVo
.
class
.
getSimpleName
()).
updateOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performancesId
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performancesId
)).
getQueryObject
(),
object2
object2
);
);
// }
// }
// dataUtils.delPerformanceRecommendRedis(item.getPerformanceId());
// dataUtils.delPerformanceRecommendRedis(item.getPerformanceId());
return
true
;
return
true
;
...
@@ -307,9 +309,9 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -307,9 +309,9 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
try
{
try
{
Integer
resultInt
=
0
;
Integer
resultInt
=
0
;
if
(
isShow
==
0
)
{
if
(
isShow
==
0
)
{
resultInt
=
performanceStatusMapper
.
hideIsShow
(
performancesId
);
resultInt
=
performanceStatusMapper
.
hideIsShow
(
performancesId
);
}
else
{
}
else
{
resultInt
=
performanceStatusMapper
.
showIsShow
(
performancesId
);
resultInt
=
performanceStatusMapper
.
showIsShow
(
performancesId
);
}
}
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"isShow"
,
isShow
);
map
.
put
(
"isShow"
,
isShow
);
...
@@ -422,8 +424,8 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -422,8 +424,8 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
@Override
@Override
public
PerformanceMemberAuditDao
performanceMemberAuditInfo
(
String
performanceId
,
Integer
status
)
{
public
PerformanceMemberAuditDao
performanceMemberAuditInfo
(
String
performanceId
,
Integer
status
)
{
if
(
null
==
status
)
{
if
(
null
==
status
)
{
status
=
1
;
status
=
1
;
}
}
PerformanceMemberAuditParam
memberAuditVo
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performanceId
).
and
(
"status"
).
is
(
status
)),
PerformanceMemberAuditParam
.
class
,
PerformanceMemberAuditParam
.
class
.
getSimpleName
());
PerformanceMemberAuditParam
memberAuditVo
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performanceId
).
and
(
"status"
).
is
(
status
)),
PerformanceMemberAuditParam
.
class
,
PerformanceMemberAuditParam
.
class
.
getSimpleName
());
if
(
memberAuditVo
==
null
)
{
if
(
memberAuditVo
==
null
)
{
...
@@ -632,6 +634,29 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -632,6 +634,29 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
}
}
}
}
@Override
public
KylinPerformanceAgentVo
getPerformanceAgent
(
String
performancesId
)
{
KylinPerformances
performanceData
=
performancesMapper
.
selectOne
(
new
UpdateWrapper
<
KylinPerformances
>().
eq
(
"performances_id"
,
performancesId
));
List
<
TicketAgentDao
>
ticketData
=
ticketsMapper
.
ticketAgent
(
performancesId
);
KylinPerformanceAgentVo
vo
=
new
KylinPerformanceAgentVo
();
vo
.
setPerformancesId
(
performanceData
.
getPerformancesId
());
vo
.
setTitle
(
performanceData
.
getTitle
());
vo
.
setTickets
(
ticketData
);
return
vo
;
}
public
KylinPerformanceDamaiVo
getPerformanceDamai
(
String
performancesId
)
{
KylinPerformances
performanceData
=
performancesMapper
.
selectOne
(
new
UpdateWrapper
<
KylinPerformances
>().
eq
(
"performances_id"
,
performancesId
));
KylinPerformanceStatus
performanceStatusData
=
performanceStatusMapper
.
selectOne
(
new
UpdateWrapper
<
KylinPerformanceStatus
>().
eq
(
"performance_id"
,
performancesId
));
List
<
TicketDamaiDao
>
ticketData
=
ticketsMapper
.
ticketDamai
(
performancesId
);
KylinPerformanceDamaiVo
vo
=
new
KylinPerformanceDamaiVo
();
vo
.
setPerformancesId
(
performanceData
.
getPerformancesId
());
vo
.
setTitle
(
performanceData
.
getTitle
());
vo
.
setSyncDamai
(
performanceStatusData
.
getSyncDamai
());
vo
.
setDamaiTickets
(
ticketData
);
return
vo
;
}
@Override
@Override
public
List
<
PerformanceOrderStatisticalDao
>
getPerformanceOrderStatisticalList
(
String
performancesId
)
{
public
List
<
PerformanceOrderStatisticalDao
>
getPerformanceOrderStatisticalList
(
String
performancesId
)
{
PerformanceOrderStatisticalDao
countBean
=
new
PerformanceOrderStatisticalDao
();
PerformanceOrderStatisticalDao
countBean
=
new
PerformanceOrderStatisticalDao
();
...
...
liquidnet-bus-common/liquidnet-common-base/src/main/java/com/liquidnet/commons/lang/util/CurrentUtil.java
View file @
7533ab39
...
@@ -21,16 +21,6 @@ public class CurrentUtil {
...
@@ -21,16 +21,6 @@ public class CurrentUtil {
public
static
Map
getTokenClaims
()
{
public
static
Map
getTokenClaims
()
{
String
utag
=
ServletUtils
.
getRequest
().
getHeader
(
uTag
);
String
utag
=
ServletUtils
.
getRequest
().
getHeader
(
uTag
);
// TODO: 2021/5/14 dev联调API未启用token默认使用1
if
(
StringUtils
.
isEmpty
(
utag
))
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"mobile"
,
"000"
);
map
.
put
(
"nickname"
,
"111"
);
map
.
put
(
"sub"
,
"1"
);
return
map
;
}
return
JsonUtils
.
fromJson
(
utag
,
Map
.
class
);
return
JsonUtils
.
fromJson
(
utag
,
Map
.
class
);
}
}
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/dao/TicketAgentDao.java
0 → 100644
View file @
7533ab39
package
com
.
liquidnet
.
service
.
kylin
.
dao
;
import
lombok.Data
;
import
java.math.BigDecimal
;
@Data
public
class
TicketAgentDao
{
private
String
ticketsId
;
private
String
title
;
private
Integer
isAgent
;
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/dao/TicketDamaiDao.java
0 → 100644
View file @
7533ab39
package
com
.
liquidnet
.
service
.
kylin
.
dao
;
import
lombok.Data
;
@Data
public
class
TicketDamaiDao
{
private
String
ticketsId
;
private
String
title
;
private
Integer
syncDamai
;
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/mapper/KylinTicketsMapper.java
View file @
7533ab39
package
com
.
liquidnet
.
service
.
kylin
.
mapper
;
package
com
.
liquidnet
.
service
.
kylin
.
mapper
;
import
com.liquidnet.service.kylin.dao.TicketAgentDao
;
import
com.liquidnet.service.kylin.dao.TicketDamaiDao
;
import
com.liquidnet.service.kylin.entity.KylinTickets
;
import
com.liquidnet.service.kylin.entity.KylinTickets
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
java.util.List
;
/**
/**
* <p>
* <p>
* 票 Mapper 接口
* 票 Mapper 接口
...
@@ -13,4 +17,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -13,4 +17,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
*/
public
interface
KylinTicketsMapper
extends
BaseMapper
<
KylinTickets
>
{
public
interface
KylinTicketsMapper
extends
BaseMapper
<
KylinTickets
>
{
List
<
TicketAgentDao
>
ticketAgent
(
String
performanceIs
);
List
<
TicketDamaiDao
>
ticketDamai
(
String
performanceIs
);
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinTicketsMapper.xml
View file @
7533ab39
...
@@ -2,4 +2,44 @@
...
@@ -2,4 +2,44 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.liquidnet.service.kylin.mapper.KylinTicketsMapper"
>
<mapper
namespace=
"com.liquidnet.service.kylin.mapper.KylinTicketsMapper"
>
<resultMap
id=
"ticketAgentResult"
type=
"com.liquidnet.service.kylin.dao.TicketAgentDao"
>
<result
column=
"tickets_id"
property=
"ticketsId"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"is_agent"
property=
"isAgent"
/>
</resultMap>
<resultMap
id=
"ticketDamaiResult"
type=
"com.liquidnet.service.kylin.dao.TicketDamaiDao"
>
<result
column=
"tickets_id"
property=
"ticketsId"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"is_agent"
property=
"isAgent"
/>
</resultMap>
<!-- 票分销情况-->
<select
id=
"ticketAgent"
parameterType=
"java.lang.String"
resultMap=
"ticketAgentResult"
>
SELECT
tickets_id ,
concat(title,' - ',use_start) as 'title',
ts.is_agent
FROM
kylin_ticket_status AS ts
LEFT JOIN kylin_ticket_relations AS tr ON tr.ticket_id = ts.ticket_id
LEFT JOIN kylin_ticket_time_relation AS ttr ON tr.times_id = ttr.times_id
LEFT JOIN kylin_tickets AS t ON t.tickets_id = ts.ticket_id
where performance_id = ${performanceIds}
</select>
<!-- 票大麦情况-->
<select
id=
"ticketDamai"
parameterType=
"java.lang.String"
resultMap=
"ticketDamaiResult"
>
SELECT
tickets_id ,
concat(title,' - ',use_start) as 'title',
ts.sync_damai
FROM
kylin_ticket_status AS ts
LEFT JOIN kylin_ticket_relations AS tr ON tr.ticket_id = ts.ticket_id
LEFT JOIN kylin_ticket_time_relation AS ttr ON tr.times_id = ttr.times_id
LEFT JOIN kylin_tickets AS t ON t.tickets_id = ts.ticket_id
where performance_id = ${performanceIds}
</select>
</mapper>
</mapper>
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/KylinOrderTicketsController.java
View file @
7533ab39
...
@@ -16,6 +16,9 @@ import io.swagger.annotations.ApiResponse;
...
@@ -16,6 +16,9 @@ import io.swagger.annotations.ApiResponse;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -38,43 +41,43 @@ public class KylinOrderTicketsController {
...
@@ -38,43 +41,43 @@ public class KylinOrderTicketsController {
@PostMapping
(
"pre"
)
@PostMapping
(
"pre"
)
@ApiOperation
(
"下单"
)
@ApiOperation
(
"下单"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PayResultVo
>
checkCanOrder
(
@RequestBody
PayOrderParam
payOrderParam
)
{
public
ResponseDto
<
PayResultVo
>
checkCanOrder
(
@RequestBody
@Valid
PayOrderParam
payOrderParam
)
{
return
orderTicketsService
.
checkCanOrder
(
payOrderParam
);
return
orderTicketsService
.
checkCanOrder
(
payOrderParam
);
}
}
@PostMapping
(
"payAgain"
)
@PostMapping
(
"payAgain"
)
@ApiOperation
(
"再次支付"
)
@ApiOperation
(
"再次支付"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PayResultVo
>
payAgain
(
@RequestBody
PayAgainParam
payAgainParam
)
{
public
ResponseDto
<
PayResultVo
>
payAgain
(
@RequestBody
@Valid
PayAgainParam
payAgainParam
)
{
return
orderTicketsService
.
payAgain
(
payAgainParam
);
return
orderTicketsService
.
payAgain
(
payAgainParam
);
}
}
@PostMapping
(
"syncOrder"
)
@PostMapping
(
"syncOrder"
)
@ApiOperation
(
"支付回调"
)
@ApiOperation
(
"支付回调"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
String
payAgain
(
@RequestBody
SyncOrderParam
syncOrderParam
)
{
public
String
payAgain
(
@RequestBody
@Valid
SyncOrderParam
syncOrderParam
)
{
return
orderTicketsService
.
syncOrder
(
syncOrderParam
);
return
orderTicketsService
.
syncOrder
(
syncOrderParam
);
}
}
@GetMapping
(
"list"
)
@GetMapping
(
"list"
)
@ApiOperation
(
"订单列表"
)
@ApiOperation
(
"订单列表"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PageInfo
<
List
<
KylinOrderListVo
>>>
payAgain
(
@RequestParam
(
"page"
)
int
page
,
public
ResponseDto
<
PageInfo
<
List
<
KylinOrderListVo
>>>
orderList
(
@RequestParam
(
"page"
)
@NotNull
@Min
(
1
)
int
page
,
@RequestParam
(
"size"
)
int
size
)
{
@RequestParam
(
"size"
)
@NotNull
@Min
(
1
)
int
size
)
{
return
ResponseDto
.
success
(
orderTicketsService
.
orderList
(
page
,
size
));
return
ResponseDto
.
success
(
orderTicketsService
.
orderList
(
page
,
size
));
}
}
@GetMapping
(
"details"
)
@GetMapping
(
"details"
)
@ApiOperation
(
"订单详情"
)
@ApiOperation
(
"订单详情"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
OrderDetailsVo
>
orderDetails
(
@RequestParam
(
"orderId"
)
String
orderId
)
{
public
ResponseDto
<
OrderDetailsVo
>
orderDetails
(
@RequestParam
(
"orderId"
)
@NotNull
String
orderId
)
{
return
ResponseDto
.
success
(
orderTicketsService
.
orderDetails
(
orderId
));
return
ResponseDto
.
success
(
orderTicketsService
.
orderDetails
(
orderId
));
}
}
@GetMapping
(
"checkPayment"
)
@GetMapping
(
"checkPayment"
)
@ApiOperation
(
"订单
详情
"
)
@ApiOperation
(
"订单
状态
"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
HashMap
>
checkOrderResult
(
@RequestParam
(
"orderId"
)
String
orderId
)
{
public
ResponseDto
<
HashMap
>
checkOrderResult
(
@RequestParam
(
"orderId"
)
@NotNull
String
orderId
)
{
Integer
status
=
orderTicketsService
.
checkOrderResult
(
orderId
).
getData
();
Integer
status
=
orderTicketsService
.
checkOrderResult
(
orderId
).
getData
();
HashMap
<
String
,
Integer
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
map
=
new
HashMap
<>();
map
.
put
(
"status"
,
status
);
map
.
put
(
"status"
,
status
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/KylinBuyNoticeParnterController.java
View file @
7533ab39
...
@@ -30,7 +30,7 @@ public class KylinBuyNoticeParnterController {
...
@@ -30,7 +30,7 @@ public class KylinBuyNoticeParnterController {
@GetMapping
(
value
=
""
)
@GetMapping
(
value
=
""
)
@ApiOperation
(
value
=
"购票须知列表"
,
position
=
1
)
@ApiOperation
(
value
=
"购票须知列表"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PageInfo
<
KylinBuyNoticeVo
>>
copyPerforman
ce
()
{
public
ResponseDto
<
PageInfo
<
KylinBuyNoticeVo
>>
getBuyNoti
ce
()
{
PageInfo
<
KylinBuyNoticeVo
>
result
=
buyNoticePartnerService
.
getBuyNotice
();
PageInfo
<
KylinBuyNoticeVo
>
result
=
buyNoticePartnerService
.
getBuyNotice
();
if
(
null
==
result
)
{
if
(
null
==
result
)
{
return
ResponseDto
.
failure
(
"查询失败"
);
return
ResponseDto
.
failure
(
"查询失败"
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/KylinCheckUserPartnerController.java
View file @
7533ab39
...
@@ -11,9 +11,13 @@ import com.liquidnet.service.kylin.service.impl.partner.KylinCheckUserPartnerSer
...
@@ -11,9 +11,13 @@ import com.liquidnet.service.kylin.service.impl.partner.KylinCheckUserPartnerSer
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponse
;
import
org.hibernate.validator.constraints.Length
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
/**
/**
* <p>
* <p>
* 验票用户表 前端控制器
* 验票用户表 前端控制器
...
@@ -33,39 +37,39 @@ public class KylinCheckUserPartnerController {
...
@@ -33,39 +37,39 @@ public class KylinCheckUserPartnerController {
@PostMapping
(
value
=
""
)
@PostMapping
(
value
=
""
)
@ApiOperation
(
value
=
"创建验票账号"
,
position
=
1
)
@ApiOperation
(
value
=
"创建验票账号"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
create
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
String
>
create
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"name"
)
@NotNull
String
name
,
@RequestParam
(
"pwd"
)
String
pwd
,
@RequestParam
(
"pwd"
)
@NotNull
String
pwd
,
@RequestParam
(
"mobile"
)
String
mobile
)
{
@RequestParam
(
"mobile"
)
@NotNull
@Length
(
max
=
11
)
String
mobile
)
{
return
checkUserPartnerService
.
create
(
merchantId
,
name
,
pwd
,
mobile
);
return
checkUserPartnerService
.
create
(
merchantId
,
name
,
pwd
,
mobile
);
}
}
@DeleteMapping
(
value
=
""
)
@DeleteMapping
(
value
=
""
)
@ApiOperation
(
value
=
"删除验票账号"
,
position
=
1
)
@ApiOperation
(
value
=
"删除验票账号"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
del
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
String
>
del
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
)
{
@RequestParam
(
"checkUserId"
)
@NotNull
String
checkUserId
)
{
return
checkUserPartnerService
.
del
(
merchantId
,
checkUserId
);
return
checkUserPartnerService
.
del
(
merchantId
,
checkUserId
);
}
}
@PutMapping
(
value
=
""
)
@PutMapping
(
value
=
""
)
@ApiOperation
(
value
=
"修改验票账号"
,
position
=
1
)
@ApiOperation
(
value
=
"修改验票账号"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
change
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
String
>
change
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
,
@RequestParam
(
"checkUserId"
)
@NotNull
String
checkUserId
,
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"name"
)
@NotNull
String
name
,
@RequestParam
(
value
=
"pwd"
,
required
=
false
)
String
pwd
,
@RequestParam
(
value
=
"pwd"
,
required
=
false
)
@NotNull
String
pwd
,
@RequestParam
(
"mobile"
)
String
mobile
)
{
@RequestParam
(
"mobile"
)
@Length
(
max
=
11
)
String
mobile
)
{
return
checkUserPartnerService
.
change
(
merchantId
,
checkUserId
,
name
,
pwd
,
mobile
);
return
checkUserPartnerService
.
change
(
merchantId
,
checkUserId
,
name
,
pwd
,
mobile
);
}
}
@GetMapping
(
value
=
"list"
)
@GetMapping
(
value
=
"list"
)
@ApiOperation
(
value
=
"验票账号列表"
,
position
=
1
)
@ApiOperation
(
value
=
"验票账号列表"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PageInfo
<
ChildListDao
>>
getCheckUserList
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
PageInfo
<
ChildListDao
>>
getCheckUserList
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
@RequestParam
(
value
=
"mobile"
,
required
=
false
)
String
mobile
,
@RequestParam
(
value
=
"mobile"
,
required
=
false
)
@Length
(
max
=
11
)
String
mobile
,
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"page"
)
@NotNull
@Min
(
1
)
int
page
,
@RequestParam
(
"size"
)
int
size
)
{
@RequestParam
(
"size"
)
@NotNull
@Min
(
1
)
int
size
)
{
PageInfo
<
ChildListDao
>
result
=
checkUserPartnerService
.
getCheckUserList
(
merchantId
,
mobile
,
page
,
size
);
PageInfo
<
ChildListDao
>
result
=
checkUserPartnerService
.
getCheckUserList
(
merchantId
,
mobile
,
page
,
size
);
if
(
null
==
result
)
{
if
(
null
==
result
)
{
return
ResponseDto
.
failure
(
"查询失败"
);
return
ResponseDto
.
failure
(
"查询失败"
);
...
@@ -77,8 +81,8 @@ public class KylinCheckUserPartnerController {
...
@@ -77,8 +81,8 @@ public class KylinCheckUserPartnerController {
@GetMapping
(
value
=
"details"
)
@GetMapping
(
value
=
"details"
)
@ApiOperation
(
value
=
"验票账号详情"
,
position
=
1
)
@ApiOperation
(
value
=
"验票账号详情"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
ChildDetailsDao
>
details
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
ChildDetailsDao
>
details
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
)
{
@RequestParam
(
"checkUserId"
)
@NotNull
String
checkUserId
)
{
ResponseDto
<
ChildDetailsDao
>
result
=
checkUserPartnerService
.
details
(
merchantId
,
checkUserId
);
ResponseDto
<
ChildDetailsDao
>
result
=
checkUserPartnerService
.
details
(
merchantId
,
checkUserId
);
if
(
null
==
result
)
{
if
(
null
==
result
)
{
return
ResponseDto
.
failure
(
"查询失败"
);
return
ResponseDto
.
failure
(
"查询失败"
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/KylinCheckUserPerformancesPartnerController.java
View file @
7533ab39
...
@@ -15,6 +15,10 @@ import io.swagger.annotations.ApiResponse;
...
@@ -15,6 +15,10 @@ import io.swagger.annotations.ApiResponse;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
...
@@ -37,14 +41,14 @@ public class KylinCheckUserPerformancesPartnerController {
...
@@ -37,14 +41,14 @@ public class KylinCheckUserPerformancesPartnerController {
@PostMapping
(
value
=
""
)
@PostMapping
(
value
=
""
)
@ApiOperation
(
value
=
"添加关联关系"
,
position
=
1
)
@ApiOperation
(
value
=
"添加关联关系"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
setPerformance
(
@RequestBody
CheckUserParam
param
)
{
public
ResponseDto
<
String
>
setPerformance
(
@RequestBody
@Valid
CheckUserParam
param
)
{
return
userPerformancesPartnerService
.
setPerformance
(
param
);
return
userPerformancesPartnerService
.
setPerformance
(
param
);
}
}
@DeleteMapping
(
value
=
""
)
@DeleteMapping
(
value
=
""
)
@ApiOperation
(
value
=
"删除关联关系"
,
position
=
1
)
@ApiOperation
(
value
=
"删除关联关系"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
delPerformance
(
@RequestParam
(
"performanceIds"
)
List
<
String
>
performanceIds
,
public
ResponseDto
<
String
>
delPerformance
(
@RequestParam
(
"performanceIds"
)
@Size
(
min
=
1
)
@NotNull
List
<
String
>
performanceIds
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
)
{
@RequestParam
(
"checkUserId"
)
String
checkUserId
)
{
return
userPerformancesPartnerService
.
delPerformance
(
performanceIds
,
checkUserId
);
return
userPerformancesPartnerService
.
delPerformance
(
performanceIds
,
checkUserId
);
}
}
...
@@ -52,10 +56,10 @@ public class KylinCheckUserPerformancesPartnerController {
...
@@ -52,10 +56,10 @@ public class KylinCheckUserPerformancesPartnerController {
@GetMapping
(
value
=
"relation"
)
@GetMapping
(
value
=
"relation"
)
@ApiOperation
(
value
=
"关联演出列表"
,
position
=
1
)
@ApiOperation
(
value
=
"关联演出列表"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
,
@RequestParam
(
"checkUserId"
)
@NotNull
String
checkUserId
,
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"page"
)
@NotNull
@Min
(
1
)
int
page
,
@RequestParam
(
"size"
)
int
size
,
@RequestParam
(
"size"
)
@NotNull
@Min
(
1
)
int
size
,
@RequestParam
(
"name"
)
String
name
)
{
@RequestParam
(
"name"
)
String
name
)
{
return
userPerformancesPartnerService
.
childPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
,
name
);
return
userPerformancesPartnerService
.
childPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
,
name
);
}
}
...
@@ -63,10 +67,10 @@ public class KylinCheckUserPerformancesPartnerController {
...
@@ -63,10 +67,10 @@ public class KylinCheckUserPerformancesPartnerController {
@GetMapping
(
value
=
"unRelation"
)
@GetMapping
(
value
=
"unRelation"
)
@ApiOperation
(
value
=
"未关联演出列表"
,
position
=
1
)
@ApiOperation
(
value
=
"未关联演出列表"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
,
@RequestParam
(
"checkUserId"
)
@NotNull
String
checkUserId
,
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"page"
)
@NotNull
@Min
(
1
)
int
page
,
@RequestParam
(
"size"
)
int
size
,
@RequestParam
(
"size"
)
@NotNull
@Min
(
1
)
int
size
,
@RequestParam
(
"name"
)
String
name
)
{
@RequestParam
(
"name"
)
String
name
)
{
return
userPerformancesPartnerService
.
unChildPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
,
name
);
return
userPerformancesPartnerService
.
unChildPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
,
name
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/KylinTicketTimesPartnerController.java
View file @
7533ab39
...
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotNull
;
/**
/**
* <p>
* <p>
...
@@ -39,7 +40,7 @@ public class KylinTicketTimesPartnerController {
...
@@ -39,7 +40,7 @@ public class KylinTicketTimesPartnerController {
@DeleteMapping
(
value
=
""
)
@DeleteMapping
(
value
=
""
)
@ApiOperation
(
value
=
"删除场次"
,
position
=
2
)
@ApiOperation
(
value
=
"删除场次"
,
position
=
2
)
@ApiResponse
(
response
=
KylinTicketTimesPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
response
=
KylinTicketTimesPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
deleteTimes
(
@RequestParam
(
"ticketTimesId"
)
String
ticketTimesId
)
{
public
ResponseDto
<
String
>
deleteTimes
(
@RequestParam
(
"ticketTimesId"
)
@NotNull
String
ticketTimesId
)
{
return
ticketTimesPartnerService
.
deleteTimes
(
ticketTimesId
);
return
ticketTimesPartnerService
.
deleteTimes
(
ticketTimesId
);
}
}
...
@@ -53,7 +54,7 @@ public class KylinTicketTimesPartnerController {
...
@@ -53,7 +54,7 @@ public class KylinTicketTimesPartnerController {
@GetMapping
(
value
=
"/details"
)
@GetMapping
(
value
=
"/details"
)
@ApiOperation
(
value
=
"获取场次详情"
,
position
=
4
)
@ApiOperation
(
value
=
"获取场次详情"
,
position
=
4
)
@ApiResponse
(
response
=
KylinTicketTimesPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
response
=
KylinTicketTimesPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
KylinTicketTimesPartnerVo
>
getTimesMongo
(
@RequestParam
(
"ticketTimesId"
)
String
ticketTimesId
)
{
public
ResponseDto
<
KylinTicketTimesPartnerVo
>
getTimesMongo
(
@RequestParam
(
"ticketTimesId"
)
@NotNull
String
ticketTimesId
)
{
KylinTicketTimesPartnerVo
result
=
null
;
KylinTicketTimesPartnerVo
result
=
null
;
result
=
ticketTimesPartnerService
.
getTimesMongo
(
ticketTimesId
);
result
=
ticketTimesPartnerService
.
getTimesMongo
(
ticketTimesId
);
if
(
null
==
result
)
{
if
(
null
==
result
)
{
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/KylinTicketsPartnerController.java
View file @
7533ab39
...
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotNull
;
/**
/**
* <p>
* <p>
...
@@ -46,21 +47,21 @@ public class KylinTicketsPartnerController {
...
@@ -46,21 +47,21 @@ public class KylinTicketsPartnerController {
@DeleteMapping
(
value
=
""
)
@DeleteMapping
(
value
=
""
)
@ApiOperation
(
value
=
"删除票务"
,
position
=
3
)
@ApiOperation
(
value
=
"删除票务"
,
position
=
3
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
deleteTicket
(
@RequestParam
(
"ticketsId"
)
String
ticketsId
)
{
public
ResponseDto
<
String
>
deleteTicket
(
@RequestParam
(
"ticketsId"
)
@NotNull
String
ticketsId
)
{
return
ticketsPartnerService
.
deleteTicket
(
ticketsId
);
return
ticketsPartnerService
.
deleteTicket
(
ticketsId
);
}
}
@PostMapping
(
value
=
"/copy"
)
@PostMapping
(
value
=
"/copy"
)
@ApiOperation
(
value
=
"复制票务"
,
position
=
4
)
@ApiOperation
(
value
=
"复制票务"
,
position
=
4
)
@ApiResponse
(
response
=
KylinTicketPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
response
=
KylinTicketPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
KylinTicketPartnerVo
>
copyTicket
(
@RequestParam
(
"ticketsId"
)
String
ticketsId
)
{
public
ResponseDto
<
KylinTicketPartnerVo
>
copyTicket
(
@RequestParam
(
"ticketsId"
)
@NotNull
String
ticketsId
)
{
return
ticketsPartnerService
.
copyTicket
(
ticketsId
);
return
ticketsPartnerService
.
copyTicket
(
ticketsId
);
}
}
@GetMapping
(
value
=
"/details"
)
@GetMapping
(
value
=
"/details"
)
@ApiOperation
(
value
=
"获取票务详情"
,
position
=
5
)
@ApiOperation
(
value
=
"获取票务详情"
,
position
=
5
)
@ApiResponse
(
response
=
KylinTicketPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
response
=
KylinTicketPartnerVo
.
class
,
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
KylinTicketPartnerVo
>
getTicketsMongo
(
@RequestParam
(
"ticketsId"
)
String
ticketsId
)
{
public
ResponseDto
<
KylinTicketPartnerVo
>
getTicketsMongo
(
@RequestParam
(
"ticketsId"
)
@NotNull
String
ticketsId
)
{
KylinTicketPartnerVo
result
=
null
;
KylinTicketPartnerVo
result
=
null
;
result
=
ticketsPartnerService
.
getTicketsMongo
(
ticketsId
);
result
=
ticketsPartnerService
.
getTicketsMongo
(
ticketsId
);
if
(
null
==
result
)
{
if
(
null
==
result
)
{
...
@@ -73,14 +74,14 @@ public class KylinTicketsPartnerController {
...
@@ -73,14 +74,14 @@ public class KylinTicketsPartnerController {
@PostMapping
(
value
=
"/onLine"
)
@PostMapping
(
value
=
"/onLine"
)
@ApiOperation
(
value
=
"票上线"
,
position
=
6
)
@ApiOperation
(
value
=
"票上线"
,
position
=
6
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
onLine
(
@RequestParam
(
"ticketsId"
)
String
ticketsId
)
{
public
ResponseDto
<
String
>
onLine
(
@RequestParam
(
"ticketsId"
)
@NotNull
String
ticketsId
)
{
return
ticketsPartnerService
.
onLine
(
ticketsId
);
return
ticketsPartnerService
.
onLine
(
ticketsId
);
}
}
@PostMapping
(
value
=
"/outLine"
)
@PostMapping
(
value
=
"/outLine"
)
@ApiOperation
(
value
=
"票下线"
,
position
=
7
)
@ApiOperation
(
value
=
"票下线"
,
position
=
7
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
outLine
(
@RequestParam
(
"ticketsId"
)
String
ticketsId
)
{
public
ResponseDto
<
String
>
outLine
(
@RequestParam
(
"ticketsId"
)
@NotNull
String
ticketsId
)
{
return
ticketsPartnerService
.
outLine
(
ticketsId
);
return
ticketsPartnerService
.
outLine
(
ticketsId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/PerformancePartnerController.java
View file @
7533ab39
...
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
javax.validation.constraints.NotNull
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -33,7 +34,7 @@ public class PerformancePartnerController {
...
@@ -33,7 +34,7 @@ public class PerformancePartnerController {
@PostMapping
(
value
=
"copy"
)
@PostMapping
(
value
=
"copy"
)
@ApiOperation
(
value
=
"复制演出"
,
position
=
6
)
@ApiOperation
(
value
=
"复制演出"
,
position
=
6
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
Map
<
String
,
String
>>
copyPerformance
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
public
ResponseDto
<
Map
<
String
,
String
>>
copyPerformance
(
@RequestParam
(
"performancesId"
)
@NotNull
String
performancesId
)
{
String
result
=
performancesPartnerService
.
copyPerformance
(
performancesId
);
String
result
=
performancesPartnerService
.
copyPerformance
(
performancesId
);
if
(
null
==
result
)
{
if
(
null
==
result
)
{
return
ResponseDto
.
failure
(
"复制失败"
);
return
ResponseDto
.
failure
(
"复制失败"
);
...
@@ -48,7 +49,7 @@ public class PerformancePartnerController {
...
@@ -48,7 +49,7 @@ public class PerformancePartnerController {
@GetMapping
(
value
=
"step1"
)
@GetMapping
(
value
=
"step1"
)
@ApiOperation
(
value
=
"获取演出第一步数据"
,
position
=
3
)
@ApiOperation
(
value
=
"获取演出第一步数据"
,
position
=
3
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PerformancePartnerVo
>
getStep1
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
public
ResponseDto
<
PerformancePartnerVo
>
getStep1
(
@RequestParam
(
"performancesId"
)
@NotNull
String
performancesId
)
{
return
performancesPartnerService
.
getStep1
(
performancesId
);
return
performancesPartnerService
.
getStep1
(
performancesId
);
}
}
...
@@ -79,28 +80,28 @@ public class PerformancePartnerController {
...
@@ -79,28 +80,28 @@ public class PerformancePartnerController {
@GetMapping
(
value
=
"step2"
)
@GetMapping
(
value
=
"step2"
)
@ApiOperation
(
value
=
"获取演出第二步数据"
,
position
=
5
)
@ApiOperation
(
value
=
"获取演出第二步数据"
,
position
=
5
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
PerformanceStep2Param
>
getStep2
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
public
ResponseDto
<
PerformanceStep2Param
>
getStep2
(
@RequestParam
(
"performancesId"
)
@NotNull
String
performancesId
)
{
return
performancesPartnerService
.
getStep2
(
performancesId
);
return
performancesPartnerService
.
getStep2
(
performancesId
);
}
}
@PostMapping
(
value
=
"online"
)
@PostMapping
(
value
=
"online"
)
@ApiOperation
(
value
=
"演出上线"
,
position
=
7
)
@ApiOperation
(
value
=
"演出上线"
,
position
=
7
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
onLinePerformance
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
public
ResponseDto
<
String
>
onLinePerformance
(
@RequestParam
(
"performancesId"
)
@NotNull
String
performancesId
)
{
return
performancesPartnerService
.
onLinePerformance
(
performancesId
);
return
performancesPartnerService
.
onLinePerformance
(
performancesId
);
}
}
@PostMapping
(
value
=
"outline"
)
@PostMapping
(
value
=
"outline"
)
@ApiOperation
(
value
=
"演出下线"
,
position
=
8
)
@ApiOperation
(
value
=
"演出下线"
,
position
=
8
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
outLinePerformance
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
public
ResponseDto
<
String
>
outLinePerformance
(
@RequestParam
(
"performancesId"
)
@NotNull
String
performancesId
)
{
return
performancesPartnerService
.
outLinePerformance
(
performancesId
);
return
performancesPartnerService
.
outLinePerformance
(
performancesId
);
}
}
@PostMapping
(
value
=
"withdraw"
)
@PostMapping
(
value
=
"withdraw"
)
@ApiOperation
(
value
=
"演出撤回"
,
position
=
9
)
@ApiOperation
(
value
=
"演出撤回"
,
position
=
9
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
withdraw
(
@RequestParam
(
"performancesId"
)
String
performancesId
)
{
public
ResponseDto
<
String
>
withdraw
(
@RequestParam
(
"performancesId"
)
@NotNull
String
performancesId
)
{
return
performancesPartnerService
.
withdraw
(
performancesId
);
return
performancesPartnerService
.
withdraw
(
performancesId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
7533ab39
This diff is collapsed.
Click to expand it.
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