记得上下班打卡 | 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
a41b4df0
Commit
a41b4df0
authored
Oct 20, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/pre' into pre
parents
ca065007
f187a680
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
35 deletions
+19
-35
add1.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add1.html
+2
-10
add101.html
...resources/templates/zhengzai/candy/coupon/mgt/add101.html
+2
-5
add2.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add2.html
+2
-6
add3.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add3.html
+3
-4
add4.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add4.html
+0
-2
KylinOrderTicketsServiceImpl.java
...vice/order/service/impl/KylinOrderTicketsServiceImpl.java
+10
-8
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add1.html
View file @
a41b4df0
...
...
@@ -306,18 +306,16 @@
// type:'get',
// url:phpMallUrl + '/admin/goodListForQuick',
// success:function(e){
// console.log(e)
// }
// });
};
function
selectOne
(
id
,
name
)
{
console
.
log
(
id
,
showId
,
'showId'
)
$
(
"#searchIpt"
).
val
(
name
);
showId
=
id
;
if
(
typeOne
==
2
)
{
return
}
let
str
=
`<option value="
0
" label="">所有</option>`
;
let
str
=
`<option value="" label="">所有</option>`
;
let
obj
=
{};
let
filterData
=
[];
searchData
.
forEach
(
item
=>
{
...
...
@@ -340,7 +338,6 @@
if
(
typeOne
==
2
)
{
getMallList
()
}
else
{
console
.
log
(
'search'
)
search
()
}
$
(
'#dataList'
).
show
()
...
...
@@ -356,16 +353,14 @@
if
(
typeOne
==
2
)
{
getMallList
()
}
else
{
console
.
log
(
'search'
)
search
()
}
});
$
(
'#selectTwo'
).
change
(
function
(
e
){
selectTwoId
=
$
(
this
).
val
();
console
.
log
(
selectTwoId
,
'kankna'
)
selectTwoName
=
$
(
'#selectTwo'
).
find
(
'option:selected'
).
attr
(
'label'
);
let
str
=
`<option value="
0
" label="" >所有</option>`
;
let
str
=
`<option value="" label="" >所有</option>`
;
searchData
.
forEach
(
item
=>
{
if
(
item
.
timeId
==
selectTwoId
)
{
str
+=
`<option value='
${
item
.
ticketId
}
' label='
${
item
.
ticketTitle
}
'>
${
item
.
ticketTitle
}
</option>`
...
...
@@ -385,7 +380,6 @@
$
(
"#searchIpt"
).
attr
(
'placeholder'
,
'全部'
);
}
if
(
typeOne
!=
0
)
{
console
.
log
(
'???'
)
showId
=
''
;
// 选中演出id
selectTwoId
=
''
;
// 选中演出下级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
...
...
@@ -520,7 +514,6 @@
}
busiName
=
$
(
"#searchIpt"
).
val
();
}
console
.
log
(
showId
,
busiId
,
'showId'
)
let
data
=
{
"bindType"
:
Number
(
typeTwo
),
// 兑换券/发放
"busiType"
:
Number
(
typeOne
),
// 业务类别
...
...
@@ -557,7 +550,6 @@
if
(
sendType
!=
2
)
{
delete
data
.
eventLimit
;
}
console
.
log
(
data
,
'data'
)
promiseMethods
(
'/candy/coupon/mgt/add'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(
res
=>
{
layer
.
msg
(
''
+
res
);
if
(
res
.
code
!=
undefined
&&
res
.
code
!=
web_status
.
SUCCESS
)
{
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add101.html
View file @
a41b4df0
...
...
@@ -306,7 +306,7 @@
if
(
typeOne
==
2
)
{
return
}
let
str
=
`<option value="
0
" label="">所有</option>`
;
let
str
=
`<option value="" label="">所有</option>`
;
searchData
.
forEach
(
item
=>
{
if
(
item
.
performancesId
==
id
)
{
str
+=
`<option value='
${
item
.
timeId
}
' label='
${
item
.
timeTitle
}
'>
${
item
.
timeTitle
}
</option>`
...
...
@@ -321,7 +321,6 @@
if
(
typeOne
==
2
)
{
getMallList
()
}
else
{
console
.
log
(
'search'
)
search
()
}
$
(
'#dataList'
).
show
()
...
...
@@ -338,9 +337,8 @@
$
(
'#selectTwo'
).
change
(
function
(
e
){
selectTwoId
=
$
(
this
).
val
();
console
.
log
(
selectTwoId
,
'kankna'
)
selectTwoName
=
$
(
'#selectTwo'
).
find
(
'option:selected'
).
attr
(
'label'
);
let
str
=
`<option value="
0
" label="" >所有</option>`
;
let
str
=
`<option value="" label="" >所有</option>`
;
searchData
.
forEach
(
item
=>
{
if
(
item
.
timeId
==
selectTwoId
)
{
str
+=
`<option value='
${
item
.
ticketId
}
' label='
${
item
.
ticketTitle
}
'>
${
item
.
ticketTitle
}
</option>`
...
...
@@ -459,7 +457,6 @@
if
(
sendType
!=
2
)
{
delete
data
.
eventLimit
;
}
console
.
log
(
data
,
'data'
)
promiseMethods
(
'/candy/coupon/mgt/add'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(
res
=>
{
layer
.
msg
(
''
+
res
);
if
(
res
.
code
!=
undefined
&&
res
.
code
!=
web_status
.
SUCCESS
)
{
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add2.html
View file @
a41b4df0
...
...
@@ -308,7 +308,6 @@
// type:'get',
// url:phpMallUrl + '/admin/goodListForQuick',
// success:function(e){
// console.log(e)
// }
// });
};
...
...
@@ -318,7 +317,7 @@
if
(
typeOne
==
2
)
{
return
}
let
str
=
`<option value="
0
" label="">所有</option>`
;
let
str
=
`<option value="" label="">所有</option>`
;
let
obj
=
{};
let
filterData
=
[];
searchData
.
forEach
(
item
=>
{
...
...
@@ -341,7 +340,6 @@
if
(
typeOne
==
2
)
{
getMallList
()
}
else
{
console
.
log
(
'search'
)
search
()
}
$
(
'#dataList'
).
show
()
...
...
@@ -357,16 +355,14 @@
if
(
typeOne
==
2
)
{
getMallList
()
}
else
{
console
.
log
(
'search'
)
search
()
}
});
$
(
'#selectTwo'
).
change
(
function
(
e
){
selectTwoId
=
$
(
this
).
val
();
console
.
log
(
selectTwoId
,
'kankna'
)
selectTwoName
=
$
(
'#selectTwo'
).
find
(
'option:selected'
).
attr
(
'label'
);
let
str
=
`<option value="
0
" label="" >所有</option>`
;
let
str
=
`<option value="" label="" >所有</option>`
;
searchData
.
forEach
(
item
=>
{
if
(
item
.
timeId
==
selectTwoId
)
{
str
+=
`<option value='
${
item
.
ticketId
}
' label='
${
item
.
ticketTitle
}
'>
${
item
.
ticketTitle
}
</option>`
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add3.html
View file @
a41b4df0
...
...
@@ -235,7 +235,7 @@
function
selectOne
(
id
,
name
)
{
$
(
"#searchIpt"
).
val
(
name
);
showId
=
id
;
let
str
=
`<option value="
0
" label="">所有</option>`
;
let
str
=
`<option value="" label="">所有</option>`
;
let
obj
=
{};
let
filterData
=
[];
searchData
.
forEach
(
item
=>
{
...
...
@@ -252,7 +252,7 @@
selectTwoId
=
''
;
// 选中演出下级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
$
(
'#selectTwo'
).
empty
().
append
(
str
);
$
(
'#selectThree'
).
empty
().
append
(
'<option value="
0
" label="">所有</option>'
);
$
(
'#selectThree'
).
empty
().
append
(
'<option value="" label="">所有</option>'
);
};
$
(
"#searchIpt"
).
focus
(
function
(){
search
()
...
...
@@ -274,9 +274,8 @@
$
(
'#selectTwo'
).
change
(
function
(
e
){
selectTwoId
=
$
(
this
).
val
();
console
.
log
(
selectTwoId
,
'kankna'
)
selectTwoName
=
$
(
'#selectTwo'
).
find
(
'option:selected'
).
attr
(
'label'
);
let
str
=
`<option value="
0
" label="" >所有</option>`
;
let
str
=
`<option value="" label="" >所有</option>`
;
searchData
.
forEach
(
item
=>
{
if
(
item
.
timeId
==
selectTwoId
)
{
str
+=
`<option value='
${
item
.
ticketId
}
' label='
${
item
.
ticketTitle
}
'>
${
item
.
ticketTitle
}
</option>`
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add4.html
View file @
a41b4df0
...
...
@@ -254,7 +254,6 @@
function
selectOne
(
id
,
name
)
{
$
(
"#searchIpt"
).
val
(
name
);
showId
=
id
;
console
.
log
(
showId
,
'showId'
)
};
$
(
"input[name=typeTwo]"
).
change
(
function
(
e
){
typeTwo
=
e
.
target
.
value
;
...
...
@@ -320,7 +319,6 @@
busiName
=
$
(
'#searchIpt'
).
val
();
busiId
=
showId
;
}
console
.
log
(
showId
,
busiId
,
'showId'
)
let
data
=
{
"bindType"
:
Number
(
typeTwo
),
// 兑换券/发放
"busiType"
:
2
,
// 业务类别
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/KylinOrderTicketsServiceImpl.java
View file @
a41b4df0
...
...
@@ -209,10 +209,12 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
if
(
isOldMember
)
{
}
else
{
advanceMap
=
orderUtils
.
useCoupon
(
payOrderParam
.
getAdvanceCode
(),
"购买 "
+
performanceData
.
getTitle
(),
BigDecimal
.
ZERO
,
payOrderParam
.
getPerformanceId
(),
payOrderParam
.
getTimeId
(),
payOrderParam
.
getTicketId
());
Integer
typeVoucher
=
(
Integer
)
advanceMap
.
get
(
"type"
);
if
(
typeVoucher
.
equals
(-
1
))
{
return
ResponseDto
.
failure
(
"优先券券不可用"
);
if
(
memberType
==
1
)
{
advanceMap
=
orderUtils
.
useCoupon
(
payOrderParam
.
getAdvanceCode
(),
"购买 "
+
performanceData
.
getTitle
(),
BigDecimal
.
ZERO
,
payOrderParam
.
getPerformanceId
(),
payOrderParam
.
getTimeId
(),
payOrderParam
.
getTicketId
());
Integer
typeVoucher
=
(
Integer
)
advanceMap
.
get
(
"type"
);
if
(
typeVoucher
.
equals
(-
1
))
{
return
ResponseDto
.
failure
(
"优先券券不可用"
);
}
}
}
}
...
...
@@ -1106,11 +1108,11 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
long
orderTicketEntitiesKey
;
if
(
item
.
getOrderTicketEntitiesId
().
length
()
>
13
)
{
if
(
isMember
==
1
)
{
if
(
isMember
==
1
)
{
orderTicketEntitiesKey
=
Long
.
valueOf
(
IDGenerator
.
getDamaiCode
(
item
.
getOrderTicketEntitiesId
()).
toString
().
concat
(
"010"
));
obj3
.
setExt
(
"登登登VIP"
);
obj3
.
setTicketItemId
(
Long
.
valueOf
(
ticketIdKey
+
""
.
concat
(
"010"
)));
}
else
{
obj3
.
setTicketItemId
(
Long
.
valueOf
(
ticketIdKey
+
""
.
concat
(
"010"
)));
}
else
{
orderTicketEntitiesKey
=
Long
.
valueOf
(
IDGenerator
.
getDamaiCode
(
item
.
getOrderTicketEntitiesId
()).
toString
().
concat
(
"020"
));
obj3
.
setExt
(
""
);
obj3
.
setTicketItemId
(
ticketIdKey
);
...
...
@@ -1120,7 +1122,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
}
obj3
.
setPerformId
(
ticketTimesKey
);
//场次id
obj3
.
setVoucherId
(
orderTicketEntitiesKey
);
//票单号 入场人id
obj3
.
setQrCode
(
"http://m.zhengzai.tv?c="
+
IDGenerator
.
ticketQrCode
(
item
.
getOrderTicketEntitiesId
()));
obj3
.
setQrCode
(
"http://m.zhengzai.tv?c="
+
IDGenerator
.
ticketQrCode
(
item
.
getOrderTicketEntitiesId
()));
obj3
.
setOrderId
(
orderIdKey
);
//订单id orderId
obj3
.
setMediumType
(
orderData
.
getGetTicketType
().
equals
(
"express"
)
?
1L
:
2L
);
//票类型 快递 电子
obj3
.
setSupplierSecret
(
taobaoTicketUtils
.
getSupplierSecret
());
...
...
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