记得上下班打卡 | 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
6d45a994
Commit
6d45a994
authored
Jun 08, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步大麦
parent
6f6ca89f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
202 additions
and
64 deletions
+202
-64
DamaiService.java
...m/liquidnet/service/kylin/service/other/DamaiService.java
+4
-2
KylinDamaiServiceImpl.java
...in/zhengzai/kylin/service/impl/KylinDamaiServiceImpl.java
+75
-19
OrderPushDamaiDto.java
...va/com/liquidnet/service/kylin/dao/OrderPushDamaiDto.java
+27
-0
KylinOrderTicketsMapper.java
...quidnet/service/kylin/mapper/KylinOrderTicketsMapper.java
+6
-0
KylinOrderTicketsMapper.xml
...iquidnet.service.kylin.mapper/KylinOrderTicketsMapper.xml
+84
-37
bootstrap-service-kylin.yml
...kylin-impl/src/main/resources/bootstrap-service-kylin.yml
+6
-6
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/service/other/DamaiService.java
View file @
6d45a994
...
...
@@ -11,7 +11,9 @@ public interface DamaiService {
//同步演出
Boolean
sycPerformance
(
String
performanceId
);
//同步场次
Boolean
sycTimes
(
Stri
ng
performanceId
,
KylinTicketTimes
timesData
);
Boolean
sycTimes
(
lo
ng
performanceId
,
KylinTicketTimes
timesData
);
//同步票
Boolean
sycTicket
(
String
timeId
,
KylinTickets
ticketsData
);
Boolean
sycTicket
(
long
timeId
,
KylinTickets
ticketsData
);
//订单
Boolean
sycOrder
(
long
timeId
,
String
ticketsId
,
long
ticketsmId
);
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinDamaiServiceImpl.java
View file @
6d45a994
...
...
@@ -2,19 +2,23 @@ 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.liquidnet.client.admin.common.utils.DateUtils
;
import
com.liquidnet.client.admin.zhengzai.kylin.utils.TaobaoTicketUtils
;
import
com.liquidnet.service.kylin.dao.OrderPushDamaiDto
;
import
com.liquidnet.service.kylin.entity.*
;
import
com.liquidnet.service.kylin.mapper.*
;
import
com.liquidnet.service.kylin.service.other.DamaiService
;
import
com.taobao.api.TaobaoClient
;
import
com.taobao.api.internal.util.StringUtils
;
import
com.taobao.api.request.AlibabaDamaiMevOpenBatchpushticketRequest
;
import
com.taobao.api.request.AlibabaDamaiMevOpenBatchpushticketRequest.ThirdTicketPushOpenParam
;
import
com.taobao.api.request.AlibabaDamaiMevOpenPushitemRequest
;
import
com.taobao.api.request.AlibabaDamaiMevOpenPushitemRequest.PushTicketItemPushOpenParam
;
import
com.taobao.api.request.AlibabaDamaiMevOpenPushperformRequest
;
import
com.taobao.api.request.AlibabaDamaiMevOpenPushperformRequest.ThirdPerformPushOpenParam
;
import
com.taobao.api.request.AlibabaDamaiMevOpenPushprojectRequest
;
import
com.taobao.api.request.AlibabaDamaiMevOpenPushprojectRequest.ThirdProjectPushOpenParam
;
import
com.taobao.api.response.AlibabaDamaiMevOpen
Pushface
Response
;
import
com.taobao.api.response.AlibabaDamaiMevOpen
Batchpushticket
Response
;
import
com.taobao.api.response.AlibabaDamaiMevOpenPushitemResponse
;
import
com.taobao.api.response.AlibabaDamaiMevOpenPushperformResponse
;
import
com.taobao.api.response.AlibabaDamaiMevOpenPushprojectResponse
;
...
...
@@ -24,6 +28,7 @@ import org.springframework.data.mongodb.core.convert.MongoConverter;
import
org.springframework.stereotype.Service
;
import
java.time.format.DateTimeFormatter
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -46,6 +51,8 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
@Autowired
private
TaobaoTicketUtils
taobaoTicketUtils
;
@Autowired
private
KylinOrderTicketsMapper
orderTicketsMapper
;
@Autowired
private
KylinPerformancesMapper
performancesMapper
;
...
...
@@ -59,6 +66,8 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
private
KylinTicketsMapper
ticketsMapper
;
@Autowired
private
KylinTicketRelationsMapper
ticketRelationsMapper
;
@Autowired
private
KylinTicketStatusMapper
ticketStatusMapper
;
@Override
...
...
@@ -76,17 +85,12 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
KylinPerformances
performanceData
=
performancesMapper
.
selectOne
(
new
UpdateWrapper
<
KylinPerformances
>().
eq
(
"performances_id"
,
performanceId
));
obj1
.
setPicUrl
(
performanceData
.
getImgPoster
());
obj1
.
setProjectId
(
Long
.
parseLong
(
performanceData
.
getPerformancesId
()
));
obj1
.
setProjectId
(
performanceData
.
getMid
().
longValue
(
));
obj1
.
setProjectName
(
performanceData
.
getTitle
());
obj1
.
setCityId
(
performanceData
.
getCityId
().
longValue
());
obj1
.
setSupplierSecret
(
taobaoTicketUtils
.
getSupplierSecret
());
obj1
.
setSystemId
(
taobaoTicketUtils
.
getSystemId
());
// obj1.setPushTime(DateUtils.getNowDate());
// obj1.setSupplierSecret("foo");
// obj1.setSystemId(0L);
// obj1.setVenueId(0L);
req
.
setPushProjectParam
(
obj1
);
AlibabaDamaiMevOpenPushprojectResponse
rsp
=
client
.
execute
(
req
);
if
(
rsp
.
getResult
().
getSuccess
())
{
...
...
@@ -94,7 +98,7 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
for
(
int
i
=
0
;
i
<
timeRelation
.
size
();
i
++)
{
KylinTicketTimes
timeData
=
ticketTimesMapper
.
selectOne
(
new
UpdateWrapper
<
KylinTicketTimes
>().
eq
(
"ticket_times_id"
,
timeRelation
.
get
(
i
).
getTimesId
()));
boolean
result
=
sycTimes
(
performance
Id
,
timeData
);
boolean
result
=
sycTimes
(
performance
Data
.
getMid
().
longValue
()
,
timeData
);
if
(!
result
)
{
return
false
;
}
...
...
@@ -110,16 +114,16 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
}
@Override
public
Boolean
sycTimes
(
String
performances
Id
,
KylinTicketTimes
timesData
)
{
public
Boolean
sycTimes
(
long
performancesm
Id
,
KylinTicketTimes
timesData
)
{
try
{
TaobaoClient
client
=
taobaoTicketUtils
.
initTaobaoClient
();
AlibabaDamaiMevOpenPushperformRequest
req
=
new
AlibabaDamaiMevOpenPushperformRequest
();
ThirdPerformPushOpenParam
obj1
=
new
ThirdPerformPushOpenParam
();
obj1
.
setEndTime
(
StringUtils
.
parseDateTime
(
timesData
.
getUseEnd
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
))));
obj1
.
setPerformId
(
Long
.
parseLong
(
timesData
.
getTicketTimesId
()
));
obj1
.
setPerformId
(
timesData
.
getMid
().
longValue
(
));
obj1
.
setPerformName
(
timesData
.
getTitle
());
obj1
.
setProjectId
(
Long
.
parseLong
(
performancesId
)
);
obj1
.
setProjectId
(
performancesmId
);
obj1
.
setStartTime
(
StringUtils
.
parseDateTime
(
timesData
.
getUseStart
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
))));
obj1
.
setSupplierSecret
(
taobaoTicketUtils
.
getSupplierSecret
());
obj1
.
setSystemId
(
taobaoTicketUtils
.
getSystemId
());
...
...
@@ -128,12 +132,14 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
if
(
rsp
.
getResult
().
getSuccess
())
{
List
<
KylinTicketRelations
>
ticketRelation
=
ticketRelationsMapper
.
selectList
(
new
UpdateWrapper
<
KylinTicketRelations
>().
eq
(
"times_id"
,
timesData
.
getTicketTimesId
()));
for
(
int
i
=
0
;
i
<
ticketRelation
.
size
();
i
++)
{
if
(
null
!=
ticketStatusMapper
.
selectOne
(
new
UpdateWrapper
<
KylinTicketStatus
>().
eq
(
"ticket_id"
,
ticketRelation
.
get
(
i
).
getTicketId
()).
eq
(
"sync_damai"
,
1
)))
{
KylinTickets
ticketData
=
ticketsMapper
.
selectOne
(
new
UpdateWrapper
<
KylinTickets
>().
eq
(
"tickets_id"
,
ticketRelation
.
get
(
i
).
getTicketId
()));
boolean
result
=
sycTicket
(
timesData
.
getTicketTimesId
(),
ticketData
);
boolean
result
=
sycTicket
(
timesData
.
getMid
().
longValue
(),
ticketData
);
if
(!
result
)
{
return
false
;
}
}
}
return
true
;
}
else
{
return
false
;
...
...
@@ -145,25 +151,75 @@ public class KylinDamaiServiceImpl extends ServiceImpl<KylinRoadShowsMapper, Kyl
}
@Override
public
Boolean
sycTicket
(
String
time
Id
,
KylinTickets
ticketsData
)
{
public
Boolean
sycTicket
(
long
timem
Id
,
KylinTickets
ticketsData
)
{
try
{
TaobaoClient
client
=
taobaoTicketUtils
.
initTaobaoClient
();
AlibabaDamaiMevOpenPushitemRequest
req
=
new
AlibabaDamaiMevOpenPushitemRequest
();
PushTicketItemPushOpenParam
obj1
=
new
PushTicketItemPushOpenParam
();
obj1
.
setItemId
(
Long
.
parseLong
(
ticketsData
.
getTicketsId
()
));
obj1
.
setItemId
(
ticketsData
.
getMid
().
longValue
(
));
obj1
.
setItemName
(
ticketsData
.
getTitle
());
obj1
.
setItemPrice
(
ticketsData
.
getPrice
().
longValue
());
obj1
.
setPerformId
(
Long
.
parseLong
(
timeId
)
);
obj1
.
setPerformId
(
timemId
);
obj1
.
setSupplierSecret
(
taobaoTicketUtils
.
getSupplierSecret
());
obj1
.
setSystemId
(
taobaoTicketUtils
.
getSystemId
());
// obj1.setRemark("0");
req
.
setPushItemParam
(
obj1
);
AlibabaDamaiMevOpenPushitemResponse
rsp
=
client
.
execute
(
req
);
return
rsp
.
getResult
().
getSuccess
();
if
(
rsp
.
getResult
().
getSuccess
())
{
return
sycOrder
(
timemId
,
ticketsData
.
getTicketsId
(),
ticketsData
.
getMid
().
longValue
());
}
else
{
return
false
;
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
false
;
}
}
@Override
public
Boolean
sycOrder
(
long
timemId
,
String
ticketsId
,
long
ticketsmId
)
{
try
{
TaobaoClient
client
=
taobaoTicketUtils
.
initTaobaoClient
();
AlibabaDamaiMevOpenBatchpushticketRequest
req
=
new
AlibabaDamaiMevOpenBatchpushticketRequest
();
List
<
ThirdTicketPushOpenParam
>
list2
=
new
ArrayList
<
ThirdTicketPushOpenParam
>();
List
<
OrderPushDamaiDto
>
data
=
orderTicketsMapper
.
pushDamaiDetailsList
(
ticketsId
);
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++)
{
OrderPushDamaiDto
item
=
data
.
get
(
i
);
ThirdTicketPushOpenParam
obj3
=
new
ThirdTicketPushOpenParam
();
list2
.
add
(
obj3
);
obj3
.
setUserName
(
item
.
getEnterName
());
//用户名 入场人姓名
obj3
.
setCertificateNo
(
item
.
getEnterIdCode
());
//证件号 入场人身份证
obj3
.
setOrderUserMobile
(
item
.
getEnterMobile
());
//用户手机号 入场人手机号
obj3
.
setCertificateType
(
item
.
getEnterType
().
longValue
());
//证件内容 入场人证件type
obj3
.
setPayTime
(
DateUtils
.
parseDate
(
item
.
getTimePay
()));
//支付时间
obj3
.
setPerformId
(
timemId
);
//场次id
obj3
.
setTicketItemId
(
ticketsmId
);
// if (item.getIsMember() == 1) {
// obj3.setTicketItemId(Long.parseLong(item.getTicketId() + "01"));//票品id ticketId+01会员 ticketId+0非会员
// } else {
// obj3.setTicketItemId(Long.parseLong(item.getTicketId() + "00"));
// }
obj3
.
setOrderId
(
Long
.
parseLong
(
item
.
getOrderTicketsId
()));
//订单id orderId
obj3
.
setVoucherId
(
item
.
getMid
().
longValue
());
//票单号 入场人id
obj3
.
setMediumType
(
item
.
getGetTicketType
().
equals
(
"express"
)
?
1L
:
2L
);
//票类型 快递 电子
obj3
.
setSupplierSecret
(
taobaoTicketUtils
.
getSupplierSecret
());
obj3
.
setSystemId
(
taobaoTicketUtils
.
getSystemId
());
obj3
.
setSeatType
(
1L
);
obj3
.
setTicketType
(
1L
);
//票类型
}
req
.
setThirdTicketSetOpenParamList
(
list2
);
if
(
list2
.
size
()
==
0
)
{
return
true
;
}
else
{
AlibabaDamaiMevOpenBatchpushticketResponse
rsp
=
client
.
execute
(
req
);
return
rsp
.
getResult
().
getSuccess
();
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
null
;
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/dao/OrderPushDamaiDto.java
0 → 100644
View file @
6d45a994
package
com
.
liquidnet
.
service
.
kylin
.
dao
;
import
lombok.Data
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @class: PerformanceOrderListDao
* @Package com.liquidnet.service.kylin.dao
* @Copyright: LightNet @ Copyright (c) 2021
* @date 2021/6/4 13:31
*/
@Data
public
class
OrderPushDamaiDto
{
String
orderTicketsId
;
Integer
mid
;
String
enterName
;
String
enterIdCode
;
Integer
enterType
;
String
enterMobile
;
String
timePay
;
String
timeId
;
String
ticketId
;
Integer
isMember
;
String
orderTicketEntitiesId
;
String
getTicketType
;
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/mapper/KylinOrderTicketsMapper.java
View file @
6d45a994
package
com
.
liquidnet
.
service
.
kylin
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.kylin.dao.OrderPushDamaiDto
;
import
com.liquidnet.service.kylin.dao.OrderTicketsListDao
;
import
com.liquidnet.service.kylin.entity.KylinOrderTickets
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -28,4 +29,9 @@ public interface KylinOrderTicketsMapper extends BaseMapper<KylinOrderTickets> {
List
<
KylinOrderTickets
>
getOrderList
(
@Param
(
"targetId"
)
String
targetId
,
@Param
(
"mid"
)
int
mid
,
@Param
(
"limitNum"
)
int
limitNum
);
List
<
OrderTicketsListDao
>
orderList
(
HashMap
<
String
,
Object
>
map
);
List
<
OrderTicketsListDao
>
orderDamaiList
(
String
ticketsId
);
List
<
OrderPushDamaiDto
>
pushDamaiDetailsList
(
String
ticketsId
);
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinOrderTicketsMapper.xml
View file @
6d45a994
...
...
@@ -25,6 +25,22 @@
<result
column=
"user_mobile"
property=
"userMobile"
/>
<result
column=
"order_source"
property=
"orderSource"
/>
</resultMap>
<resultMap
id=
"orderPushDamaiDto"
type=
"com.liquidnet.service.kylin.dao.OrderPushDamaiDto"
>
<result
column=
"order_tickets_id"
property=
"orderTicketsId"
/>
<result
column=
"mid"
property=
"mid"
/>
<result
column=
"enter_name"
property=
"enterName"
/>
<result
column=
"enter_id_code"
property=
"enterIdCode"
/>
<result
column=
"enter_mobile"
property=
"enterMobile"
/>
<result
column=
"enter_type"
property=
"enterType"
/>
<result
column=
"time_pay"
property=
"timePay"
/>
<result
column=
"time_id"
property=
"timeId"
/>
<result
column=
"ticket_id"
property=
"ticketId"
/>
<result
column=
"is_member"
property=
"isMember"
/>
<result
column=
"order_ticket_entities_id"
property=
"orderTicketEntitiesId"
/>
<result
column=
"get_ticket_type"
property=
"getTicketType"
/>
</resultMap>
<select
id=
"getPriceNum"
resultType=
"java.util.HashMap"
>
SELECT SUM(o.price_actual) as total_price, SUM(o.number) as total_num
FROM kylin_order_tickets AS o
...
...
@@ -54,7 +70,8 @@
</foreach>
</where>
</select>
<select
id=
"getOrderList"
parameterType=
"java.lang.String"
resultType=
"com.liquidnet.service.kylin.entity.KylinOrderTickets"
>
<select
id=
"getOrderList"
parameterType=
"java.lang.String"
resultType=
"com.liquidnet.service.kylin.entity.KylinOrderTickets"
>
SELECT o.mid, order_tickets_id, number, price_actual, performance_title
FROM kylin_order_tickets AS o
JOIN kylin_order_ticket_relations AS r ON r.order_id = o.order_tickets_id
...
...
@@ -97,42 +114,72 @@
inner join kylin_order_ticket_relations kotr on kot.order_tickets_id = kotr.order_id
inner join kylin_performances kp on kotr.performance_id = kp.performances_id
<where>
<if
test=
"orderTicketsId != null and orderTicketsId != ''"
>
and kot.order_tickets_id = #{orderTicketsId}
</if>
<if
test=
"userId != null and userId != ''"
>
and kot.user_id = #{userId}
</if>
<if
test=
"userName != null and userName != ''"
>
and kot.user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"userMobile != null and userMobile != ''"
>
and kot.user_mobile = #{userMobile}
</if>
<if
test=
"performanceTitle != null and performanceTitle != ''"
>
and kot.performance_title = #{performanceTitle}
</if>
<if
test=
"orderCode != null and orderCode != ''"
>
and kot.order_code = #{orderCode}
</if>
<if
test=
"payCode != null and payCode != ''"
>
and kot.pay_code = #{payCode}
</if>
<if
test=
"qrCode != null and qrCode != ''"
>
and kot.qr_code = #{qrCode}
</if>
<if
test=
"orderType != null and orderType != ''"
>
and kot.order_type = #{orderType}
</if>
<if
test=
"orderVersion != null and orderVersion != ''"
>
and kot.order_version = #{orderVersion}
</if>
<if
test=
"number != null "
>
and kot.number = #{number}
</if>
<if
test=
"price != null "
>
and kot.price = #{price}
</if>
<if
test=
"priceMember != null "
>
and kot.price_member = #{priceMember}
</if>
<if
test=
"priceTotal != null "
>
and kot.price_total = #{priceTotal}
</if>
<if
test=
"priceVoucher != null "
>
and kot.price_voucher = #{priceVoucher}
</if>
<if
test=
"priceActual != null "
>
and kot.price_actual = #{priceActual}
</if>
<if
test=
"priceExpress != null "
>
and kot.price_express = #{priceExpress}
</if>
<if
test=
"priceRefund != null "
>
and kot.price_refund = #{priceRefund}
</if>
<if
test=
"refundNumber != null "
>
and kot.refund_number = #{refundNumber}
</if>
<if
test=
"payType != null and payType != ''"
>
and kot.pay_type = #{payType}
</if>
<if
test=
"paymentType != null and paymentType != ''"
>
and kot.payment_type = #{paymentType}
</if>
<if
test=
"timePay != null and timePay != ''"
>
and kot.time_pay = #{timePay}
</if>
<if
test=
"expressContacts != null and expressContacts != ''"
>
and kot.express_contacts = #{expressContacts}
</if>
<if
test=
"expressAddress != null and expressAddress != ''"
>
and kot.express_address = #{expressAddress}
</if>
<if
test=
"expressPhone != null and expressPhone != ''"
>
and kot.express_phone = #{expressPhone}
</if>
<if
test=
"couponType != null and couponType != ''"
>
and kot.coupon_type = #{couponType}
</if>
<if
test=
"getTicketType != null and getTicketType != ''"
>
and kot.get_ticket_type = #{getTicketType}
</if>
<if
test=
"getTicketDescribe != null and getTicketDescribe != ''"
>
and kot.get_ticket_describe = #{getTicketDescribe}
</if>
<if
test=
"payCountdownMinute != null "
>
and kot.pay_countdown_minute = #{payCountdownMinute}
</if>
<if
test=
"comment != null and comment != ''"
>
and kot.comment = #{comment}
</if>
<if
test=
"createdAt != null "
>
and kot.created_at = #{createdAt}
</if>
<if
test=
"updatedAt != null "
>
and kot.updated_at = #{updatedAt}
</if>
<if
test=
"orderSource != null and orderSource != ''"
>
and kot.order_source = #{orderSource}
</if>
<if
test=
"orderTicketsId != null and orderTicketsId != ''"
>
and kot.order_tickets_id = #{orderTicketsId}
</if>
<if
test=
"userId != null and userId != ''"
>
and kot.user_id = #{userId}
</if>
<if
test=
"userName != null and userName != ''"
>
and kot.user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"userMobile != null and userMobile != ''"
>
and kot.user_mobile = #{userMobile}
</if>
<if
test=
"performanceTitle != null and performanceTitle != ''"
>
and kot.performance_title =
#{performanceTitle}
</if>
<if
test=
"orderCode != null and orderCode != ''"
>
and kot.order_code = #{orderCode}
</if>
<if
test=
"payCode != null and payCode != ''"
>
and kot.pay_code = #{payCode}
</if>
<if
test=
"qrCode != null and qrCode != ''"
>
and kot.qr_code = #{qrCode}
</if>
<if
test=
"orderType != null and orderType != ''"
>
and kot.order_type = #{orderType}
</if>
<if
test=
"orderVersion != null and orderVersion != ''"
>
and kot.order_version = #{orderVersion}
</if>
<if
test=
"number != null "
>
and kot.number = #{number}
</if>
<if
test=
"price != null "
>
and kot.price = #{price}
</if>
<if
test=
"priceMember != null "
>
and kot.price_member = #{priceMember}
</if>
<if
test=
"priceTotal != null "
>
and kot.price_total = #{priceTotal}
</if>
<if
test=
"priceVoucher != null "
>
and kot.price_voucher = #{priceVoucher}
</if>
<if
test=
"priceActual != null "
>
and kot.price_actual = #{priceActual}
</if>
<if
test=
"priceExpress != null "
>
and kot.price_express = #{priceExpress}
</if>
<if
test=
"priceRefund != null "
>
and kot.price_refund = #{priceRefund}
</if>
<if
test=
"refundNumber != null "
>
and kot.refund_number = #{refundNumber}
</if>
<if
test=
"payType != null and payType != ''"
>
and kot.pay_type = #{payType}
</if>
<if
test=
"paymentType != null and paymentType != ''"
>
and kot.payment_type = #{paymentType}
</if>
<if
test=
"timePay != null and timePay != ''"
>
and kot.time_pay = #{timePay}
</if>
<if
test=
"expressContacts != null and expressContacts != ''"
>
and kot.express_contacts =
#{expressContacts}
</if>
<if
test=
"expressAddress != null and expressAddress != ''"
>
and kot.express_address = #{expressAddress}
</if>
<if
test=
"expressPhone != null and expressPhone != ''"
>
and kot.express_phone = #{expressPhone}
</if>
<if
test=
"couponType != null and couponType != ''"
>
and kot.coupon_type = #{couponType}
</if>
<if
test=
"getTicketType != null and getTicketType != ''"
>
and kot.get_ticket_type = #{getTicketType}
</if>
<if
test=
"getTicketDescribe != null and getTicketDescribe != ''"
>
and kot.get_ticket_describe =
#{getTicketDescribe}
</if>
<if
test=
"payCountdownMinute != null "
>
and kot.pay_countdown_minute = #{payCountdownMinute}
</if>
<if
test=
"comment != null and comment != ''"
>
and kot.comment = #{comment}
</if>
<if
test=
"createdAt != null "
>
and kot.created_at = #{createdAt}
</if>
<if
test=
"updatedAt != null "
>
and kot.updated_at = #{updatedAt}
</if>
<if
test=
"orderSource != null and orderSource != ''"
>
and kot.order_source = #{orderSource}
</if>
</where>
<!-- <if test="orderItem!=''">-->
<!-- ORDER BY ${orderItem} ${orderSc}-->
<!-- </if>-->
<!-- <if test="orderItem!=''">-->
<!-- ORDER BY ${orderItem} ${orderSc}-->
<!-- </if>-->
</select>
<select
id=
"pushDamaiDetailsList"
parameterType=
"java.lang.String"
resultMap=
"orderPushDamaiDto"
>
SELECT ote.mid,
order_tickets_id,
enter_name,
enter_id_code,
enter_type,
enter_mobile,
time_pay,
otr.time_id,
otr.ticket_id,
otr.is_member,
ote.order_ticket_entities_id,
get_ticket_type
FROM kylin_order_tickets AS ot
LEFT JOIN kylin_order_ticket_status AS ots ON ots.order_id = ot.order_tickets_id
LEFT JOIN kylin_order_ticket_relations AS otr ON otr.order_id = ot.order_tickets_id
LEFT JOIN kylin_order_ticket_entities AS ote ON ote.order_id = ot.order_tickets_id
WHERE ots.pay_status = 1
AND ote.is_payment = 1
AND ote.sys_damai = 1
AND ote.ticket_id = ${ticketsId}
</select>
</mapper>
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/resources/bootstrap-service-kylin.yml
View file @
6d45a994
...
...
@@ -9,9 +9,9 @@ eureka:
spring
:
cloud
:
config
:
# uri: http://127.0.0.1:7002/support-config
profile
:
${liquidnet.cloudConfig.profile}
name
:
${spring.application.name}
#默认为spring.application.name
discovery
:
enabled
:
true
service-id
:
liquidnet-support-config
\ No newline at end of file
uri
:
http://39.106.122.201:7002/support-config
# profile: ${liquidnet.cloudConfig.profile}
# name: ${spring.application.name} #默认为spring.application.name
# discovery:
# enabled: true
# service-id: liquidnet-support-config
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