Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9013d23d
authored
Oct 25, 2017
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the delay order
parent
f8d73ef7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
0 deletions
src/main/java/com/ctrip/fun/golf/dao/order/OrderDao.java
src/main/java/com/ctrip/fun/golf/dao/order/OrderExcelDao.java
src/main/java/com/ctrip/fun/golf/domain/order/OrderListExcel.java
src/main/java/com/ctrip/fun/golf/service/order/OpCourseOrderService.java
src/main/java/com/ctrip/fun/golf/dao/order/OrderDao.java
View file @
9013d23d
...
...
@@ -1436,6 +1436,9 @@ public class OrderDao extends GenericHibernateDao<Order, Integer> {
}
else
if
(
orderQuery
.
getOrderSourceCategory
()
==
OrderSourceCategoryEnum
.
OFFLINE
.
getValue
())
{
sb
.
append
(
" and od.onlineOrderFlag = false "
);
}
if
(
orderQuery
.
getDelayOrder
()
!=
null
&&
orderQuery
.
getDelayOrder
()){
sb
.
append
(
" and od.channel1 = 'Off_D' and od.channel2='01'"
);
}
if
(
orderQuery
.
getOrderStatuses
()
!=
null
&&
orderQuery
.
getOrderStatuses
().
size
()
>
0
)
{
sb
.
append
(
" and ("
);
int
index
=
0
;
...
...
src/main/java/com/ctrip/fun/golf/dao/order/OrderExcelDao.java
View file @
9013d23d
...
...
@@ -55,6 +55,8 @@ public class OrderExcelDao extends GenericHibernateDao<OrderListExcel, Integer>
+
",orderitem.quantity"
+
",od.userType"
+
",od.insuranceAmount"
+
",od.channel1"
+
",od.channel2"
+
" from ord_order od join ord_orderitem orderitem on od.OrderID=orderitem.OrderID"
+
" join prd_course course on course.id=orderitem.courseId"
+
" left join prd_resourceprice prc on orderitem.PlayDate = prc.priceDate AND orderitem.ResourceID = prc.ResourceID"
...
...
@@ -140,6 +142,11 @@ public class OrderExcelDao extends GenericHibernateDao<OrderListExcel, Integer>
}
else
if
(
orderQuery
.
getOrderSourceCategory
()
==
OrderSourceCategoryEnum
.
OFFLINE
.
getValue
())
{
sb
.
append
(
" and od.onlineOrderFlag = false "
);
}
if
(
orderQuery
.
getDelayOrder
()
!=
null
&&
orderQuery
.
getDelayOrder
()){
sb
.
append
(
" and od.channel1 = 'Off_D' and od.channel2='01'"
);
}
if
(
orderQuery
.
getOrderStatuses
()
!=
null
&&
orderQuery
.
getOrderStatuses
().
size
()
>
0
)
{
sb
.
append
(
" and ("
);
int
index
=
0
;
...
...
src/main/java/com/ctrip/fun/golf/domain/order/OrderListExcel.java
View file @
9013d23d
...
...
@@ -169,6 +169,16 @@ public class OrderListExcel {
* */
private
Double
insuranceAmount
;
/**
*后台下单渠道1
**/
private
String
channel1
;
/**
*后台下单渠道2
**/
private
String
channel2
;
public
long
getOrderNo
()
{
return
orderNo
;
}
...
...
@@ -632,6 +642,23 @@ public class OrderListExcel {
this
.
insuranceAmount
=
insuranceAmount
;
}
public
String
getChannel1
()
{
return
channel1
;
}
public
void
setChannel1
(
String
channel1
)
{
this
.
channel1
=
channel1
;
}
public
String
getChannel2
()
{
return
channel2
;
}
public
void
setChannel2
(
String
channel2
)
{
this
.
channel2
=
channel2
;
}
}
src/main/java/com/ctrip/fun/golf/service/order/OpCourseOrderService.java
View file @
9013d23d
...
...
@@ -1073,6 +1073,12 @@ public class OpCourseOrderService extends AbstractOpOrderService<CourseOrderProc
}
//增加保险 add by caosy
bean
.
setInsuranceAmount
(
xsl
.
getInsuranceAmount
());
//add by caosy for delay order
if
(
"Off_D"
.
equals
(
xsl
.
getChannel1
())&&
"01"
.
equals
(
xsl
.
getChannel2
())){
bean
.
setDelayOrder
(
true
);
}
else
{
bean
.
setDelayOrder
(
false
);
}
return
bean
;
}
...
...
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