Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
Project
Project
Details
Activity
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
9e53e4dd
Commit
9e53e4dd
authored
Aug 06, 2021
by
liao_ds
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/v2' into v2
parents
eb97f754
e2b128d9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
OrderAfterSalePageVO.java
...i/order/model/vo/common/request/OrderAfterSalePageVO.java
+18
-0
OrderCommonServiceImpl.java
.../lingxi/order/serviceimpl/web/OrderCommonServiceImpl.java
+4
-0
No files found.
order-service/src/main/java/com/ssy/lingxi/order/model/vo/common/request/OrderAfterSalePageVO.java
View file @
9e53e4dd
...
@@ -4,6 +4,8 @@ import com.ssy.lingxi.common.model.vo.PageVO;
...
@@ -4,6 +4,8 @@ import com.ssy.lingxi.common.model.vo.PageVO;
import
com.ssy.lingxi.order.handler.annotation.DateStringFormatAnnotation
;
import
com.ssy.lingxi.order.handler.annotation.DateStringFormatAnnotation
;
import
com.ssy.lingxi.order.handler.annotation.OrderTypeAnnotation
;
import
com.ssy.lingxi.order.handler.annotation.OrderTypeAnnotation
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Positive
;
import
javax.validation.constraints.Positive
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -39,6 +41,14 @@ public class OrderAfterSalePageVO extends PageVO implements Serializable {
...
@@ -39,6 +41,14 @@ public class OrderAfterSalePageVO extends PageVO implements Serializable {
private
Integer
orderType
;
private
Integer
orderType
;
/**
/**
* 售后类型,2-换货,3-退货,4-维修
*/
@NotNull
(
message
=
"售后类型不能为空,2-换货,3-退货,4-维修"
)
@Min
(
value
=
2
,
message
=
"售后类型参数错误,2-换货,3-退货,4-维修"
)
@Max
(
value
=
4
,
message
=
"售后类型参数错误,2-换货,3-退货,4-维修"
)
private
Integer
afterSalesType
;
/**
* 订单编号
* 订单编号
*/
*/
private
String
orderNo
;
private
String
orderNo
;
...
@@ -84,6 +94,14 @@ public class OrderAfterSalePageVO extends PageVO implements Serializable {
...
@@ -84,6 +94,14 @@ public class OrderAfterSalePageVO extends PageVO implements Serializable {
this
.
orderType
=
orderType
;
this
.
orderType
=
orderType
;
}
}
public
Integer
getAfterSalesType
()
{
return
afterSalesType
;
}
public
void
setAfterSalesType
(
Integer
afterSalesType
)
{
this
.
afterSalesType
=
afterSalesType
;
}
public
String
getOrderNo
()
{
public
String
getOrderNo
()
{
return
orderNo
;
return
orderNo
;
}
}
...
...
order-service/src/main/java/com/ssy/lingxi/order/serviceimpl/web/OrderCommonServiceImpl.java
View file @
9e53e4dd
...
@@ -135,6 +135,8 @@ public class OrderCommonServiceImpl implements IOrderCommonService {
...
@@ -135,6 +135,8 @@ public class OrderCommonServiceImpl implements IOrderCommonService {
query
.
where
(
qOrder
.
buyerMemberId
.
eq
(
buyerMemberId
).
and
(
qOrder
.
buyerRoleId
.
eq
(
buyerRoleId
)).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
vendorRoleId
.
eq
(
pageVO
.
getVendorRoleId
())).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
orderType
.
eq
(
pageVO
.
getOrderType
())));
query
.
where
(
qOrder
.
buyerMemberId
.
eq
(
buyerMemberId
).
and
(
qOrder
.
buyerRoleId
.
eq
(
buyerRoleId
)).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
vendorRoleId
.
eq
(
pageVO
.
getVendorRoleId
())).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
orderType
.
eq
(
pageVO
.
getOrderType
())));
//订单状态:只显示已收到第一批货之后的订单且当前订单外部状态不是待确认支付结果
//订单状态:只显示已收到第一批货之后的订单且当前订单外部状态不是待确认支付结果
query
.
where
(
qOrder
.
hasPaid
.
isTrue
().
and
(
qOrder
.
outerStatus
.
ne
(
OrderOuterStatusEnum
.
TO_CONFIRM_PAYMENT
.
getCode
())));
query
.
where
(
qOrder
.
hasPaid
.
isTrue
().
and
(
qOrder
.
outerStatus
.
ne
(
OrderOuterStatusEnum
.
TO_CONFIRM_PAYMENT
.
getCode
())));
//流程类型
query
.
where
(
qOrderTradeProcess
.
processType
.
eq
(
pageVO
.
getAfterSalesType
()));
//流程规则配置
//流程规则配置
query
.
where
(
qOrderTradeProcess
.
allProducts
.
isTrue
().
or
(
qOrderTradeProcessProduct
.
productId
.
eq
(
qOrderProduct
.
productId
).
and
(
qOrderTradeProcessProduct
.
skuId
.
eq
(
qOrderProduct
.
skuId
))));
query
.
where
(
qOrderTradeProcess
.
allProducts
.
isTrue
().
or
(
qOrderTradeProcessProduct
.
productId
.
eq
(
qOrderProduct
.
productId
).
and
(
qOrderTradeProcessProduct
.
skuId
.
eq
(
qOrderProduct
.
skuId
))));
...
@@ -212,6 +214,8 @@ public class OrderCommonServiceImpl implements IOrderCommonService {
...
@@ -212,6 +214,8 @@ public class OrderCommonServiceImpl implements IOrderCommonService {
query
.
where
(
qOrder
.
buyerMemberId
.
eq
(
buyerMemberId
).
and
(
qOrder
.
buyerRoleId
.
eq
(
buyerRoleId
)).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
vendorRoleId
.
eq
(
pageVO
.
getVendorRoleId
())).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
orderType
.
eq
(
pageVO
.
getOrderType
())));
query
.
where
(
qOrder
.
buyerMemberId
.
eq
(
buyerMemberId
).
and
(
qOrder
.
buyerRoleId
.
eq
(
buyerRoleId
)).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
vendorRoleId
.
eq
(
pageVO
.
getVendorRoleId
())).
and
(
qOrder
.
vendorMemberId
.
eq
(
pageVO
.
getVendorMemberId
())).
and
(
qOrder
.
orderType
.
eq
(
pageVO
.
getOrderType
())));
//订单状态:只显示已收到第一批货之后的订单且当前订单外部状态不是待确认支付结果
//订单状态:只显示已收到第一批货之后的订单且当前订单外部状态不是待确认支付结果
query
.
where
(
qOrder
.
hasPaid
.
isTrue
().
and
(
qOrder
.
outerStatus
.
ne
(
OrderOuterStatusEnum
.
TO_CONFIRM_PAYMENT
.
getCode
())));
query
.
where
(
qOrder
.
hasPaid
.
isTrue
().
and
(
qOrder
.
outerStatus
.
ne
(
OrderOuterStatusEnum
.
TO_CONFIRM_PAYMENT
.
getCode
())));
//流程类型
query
.
where
(
qOrderPurchaseProcess
.
processType
.
eq
(
pageVO
.
getAfterSalesType
()));
//流程规则配置
//流程规则配置
query
.
where
(
qOrderPurchaseProcess
.
allContracts
.
isTrue
().
or
(
qOrderPurchaseProcessContract
.
contractId
.
eq
(
qOrderContract
.
contractId
)));
query
.
where
(
qOrderPurchaseProcess
.
allContracts
.
isTrue
().
or
(
qOrderPurchaseProcessContract
.
contractId
.
eq
(
qOrderContract
.
contractId
)));
...
...
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