Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
7a2cb03f
Commit
7a2cb03f
authored
Mar 14, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自提时间
parent
b0ca3975
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+4
-6
GicOrderController.java
...aoban/manage/web/controller/order/GicOrderController.java
+19
-9
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
7a2cb03f
...
@@ -600,12 +600,10 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -600,12 +600,10 @@ public class MessageApiServiceImpl implements MessageApiService {
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
failure
(
"9999"
,
"导购查不到"
);
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
failure
(
"9999"
,
"导购查不到"
);
}
}
Map
<
String
,
Object
>
extendContent
=
new
HashMap
<>();
Map
<
String
,
Object
>
extendContent
=
new
HashMap
<>();
if
(
messageTypeEnum
.
getCategory
()
==
5
)
{
if
(
messageTypeEnum
.
equals
(
NoticeMessageTypeEnum
.
ORDER_PAY
))
{
if
(
messageTypeEnum
.
equals
(
NoticeMessageTypeEnum
.
ORDER_PAY
))
{
extendContent
.
put
(
"currentTab "
,
0
);
extendContent
.
put
(
"currentTab "
,
0
);
}
else
{
}
else
{
extendContent
.
put
(
"currentTab "
,
1
);
extendContent
.
put
(
"currentTab "
,
1
);
}
}
}
Map
<
String
,
String
>
map
=
this
.
toMapValue
(
memberId
,
valueList
);
Map
<
String
,
String
>
map
=
this
.
toMapValue
(
memberId
,
valueList
);
NoticeMessageQDTO
qdto
=
this
.
getDTO
(
enterpriseId
,
clerkId
,
relationId
,
noticeType
,
map
,
extendContent
);
NoticeMessageQDTO
qdto
=
this
.
getDTO
(
enterpriseId
,
clerkId
,
relationId
,
noticeType
,
map
,
extendContent
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/order/GicOrderController.java
View file @
7a2cb03f
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.web.controller.order;
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.web.controller.order;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -148,6 +149,7 @@ public class GicOrderController {
...
@@ -148,6 +149,7 @@ public class GicOrderController {
List
<
ListOrderItemDTO
>
itemList
=
order
.
getOrderItemDTOList
();
List
<
ListOrderItemDTO
>
itemList
=
order
.
getOrderItemDTOList
();
List
<
OrderListItemVO
>
voItemList
=
EntityUtil
.
changeEntityListNew
(
OrderListItemVO
.
class
,
itemList
);
List
<
OrderListItemVO
>
voItemList
=
EntityUtil
.
changeEntityListNew
(
OrderListItemVO
.
class
,
itemList
);
vo
.
setOrderItemList
(
voItemList
);
vo
.
setOrderItemList
(
voItemList
);
vo
.
setPickUpTime
(
order
.
getWriteOffTime
());
voList
.
add
(
vo
);
voList
.
add
(
vo
);
}
}
}
}
...
@@ -249,7 +251,7 @@ public class GicOrderController {
...
@@ -249,7 +251,7 @@ public class GicOrderController {
boolean
canDeliverFlag
=
false
;
boolean
canDeliverFlag
=
false
;
// 发货操作类型(0后台/1好办门店):用于判断好办操作发货还是后台,防止双边发货
// 发货操作类型(0后台/1好办门店):用于判断好办操作发货还是后台,防止双边发货
Integer
deliveryOptType
=
orderInfo
.
getDeliveryOptType
();
Integer
deliveryOptType
=
orderInfo
.
getDeliveryOptType
();
String
deliverStoreId
=
null
;
String
deliverStoreId
=
orderInfo
.
getDeliverStoreId
()
;
logger
.
info
(
"发货类型={},发货门店={},orderId={}"
,
deliveryOptType
,
deliverStoreId
,
orderInfo
.
getOrderId
());
logger
.
info
(
"发货类型={},发货门店={},orderId={}"
,
deliveryOptType
,
deliverStoreId
,
orderInfo
.
getOrderId
());
if
(
null
==
deliveryOptType
)
{
if
(
null
==
deliveryOptType
)
{
canDeliverFlag
=
true
;
canDeliverFlag
=
true
;
...
@@ -258,8 +260,8 @@ public class GicOrderController {
...
@@ -258,8 +260,8 @@ public class GicOrderController {
}
}
orderDetailVO
.
setCanDeliverFlag
(
canDeliverFlag
);
orderDetailVO
.
setCanDeliverFlag
(
canDeliverFlag
);
// 核销导购
// 核销导购
String
verificationClerkName
=
""
;
String
verificationClerkName
=
orderInfo
.
getWriteOffClerkName
()
;
orderDetailVO
.
setVerificationClerkName
(
"核销导购"
);
orderDetailVO
.
setVerificationClerkName
(
verificationClerkName
);
return
orderDetailVO
;
return
orderDetailVO
;
}
}
...
@@ -328,7 +330,7 @@ public class GicOrderController {
...
@@ -328,7 +330,7 @@ public class GicOrderController {
return
RestResponse
.
successResult
(
voList
);
return
RestResponse
.
successResult
(
voList
);
}
}
// 订单-
可发货订单项列表查询
// 订单-
发货
@RequestMapping
(
"order-logistics-deliver"
)
@RequestMapping
(
"order-logistics-deliver"
)
public
RestResponse
<
Object
>
orderDeliver
(
String
enterpriseId
,
String
orderId
,
String
storeId
,
String
orderItemIds
,
public
RestResponse
<
Object
>
orderDeliver
(
String
enterpriseId
,
String
orderId
,
String
storeId
,
String
orderItemIds
,
String
companyCode
,
String
logisticsNo
,
String
companyId
,
String
companyName
)
{
String
companyCode
,
String
logisticsNo
,
String
companyId
,
String
companyName
)
{
...
@@ -366,7 +368,7 @@ public class GicOrderController {
...
@@ -366,7 +368,7 @@ public class GicOrderController {
@RequestMapping
(
"list-member-order"
)
@RequestMapping
(
"list-member-order"
)
public
RestResponse
<
Object
>
orderList
(
String
enterpriseId
,
String
memberId
,
String
search
,
public
RestResponse
<
Object
>
orderList
(
String
enterpriseId
,
String
memberId
,
String
search
,
@RequestParam
(
defaultValue
=
"-1"
)
int
status
,
@RequestParam
(
defaultValue
=
"0"
)
int
deliveryChannel
,
@RequestParam
(
defaultValue
=
"-1"
)
int
status
,
@RequestParam
(
defaultValue
=
"0"
)
int
deliveryChannel
,
@RequestParam
(
defaultValue
=
"-1"
)
int
orderType
,
BasePageInfo
pageInfo
)
{
@RequestParam
(
defaultValue
=
"-1"
)
int
orderType
,
BasePageInfo
pageInfo
,
String
startTime
,
String
endTime
)
{
if
(
StringUtils
.
isEmpty
(
memberId
))
{
if
(
StringUtils
.
isEmpty
(
memberId
))
{
return
RestResponse
.
failure
(
"9999"
,
"memberId为空"
);
return
RestResponse
.
failure
(
"9999"
,
"memberId为空"
);
}
}
...
@@ -374,11 +376,22 @@ public class GicOrderController {
...
@@ -374,11 +376,22 @@ public class GicOrderController {
if
(
status
==
-
1
)
{
if
(
status
==
-
1
)
{
strStatus
=
null
;
strStatus
=
null
;
}
}
Date
startDate
=
null
;
if
(
StringUtils
.
isNotEmpty
(
startTime
))
{
startDate
=
DateUtil
.
strToDate
(
startTime
,
"yyyy-MM-dd"
);
}
Date
endDate
=
null
;
if
(
StringUtils
.
isNotEmpty
(
endTime
))
{
endDate
=
DateUtil
.
strToDate
(
endTime
,
"yyyy-MM-dd"
);
endDate
=
DateUtil
.
getEndTimeOfDay
(
endDate
);
}
// 查询门店
// 查询门店
ListOrderManageQDTO
qdto
=
new
ListOrderManageQDTO
();
ListOrderManageQDTO
qdto
=
new
ListOrderManageQDTO
();
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setOrderStep
(
strStatus
);
qdto
.
setOrderStep
(
strStatus
);
qdto
.
setMemberId
(
memberId
);
qdto
.
setMemberId
(
memberId
);
qdto
.
setStartDate
(
startDate
);
qdto
.
setEndDate
(
endDate
);
qdto
.
setBusinessType
(
OrderEnum
.
BusinessTypeEnum
.
MICRO_MALL
.
getType
());
qdto
.
setBusinessType
(
OrderEnum
.
BusinessTypeEnum
.
MICRO_MALL
.
getType
());
if
(
StringUtils
.
isNotEmpty
(
search
))
{
if
(
StringUtils
.
isNotEmpty
(
search
))
{
qdto
.
setSearchOrderParam
(
search
);
qdto
.
setSearchOrderParam
(
search
);
...
@@ -392,6 +405,7 @@ public class GicOrderController {
...
@@ -392,6 +405,7 @@ public class GicOrderController {
public
RestResponse
<
Object
>
modifyOrderDeliver
(
String
memberId
,
String
enterpriseId
,
String
orderId
,
String
storeId
,
public
RestResponse
<
Object
>
modifyOrderDeliver
(
String
memberId
,
String
enterpriseId
,
String
orderId
,
String
storeId
,
String
logisticsId
,
String
companyCode
,
String
logisticsNo
,
String
companyId
,
String
companyName
,
String
logisticsId
,
String
companyCode
,
String
logisticsNo
,
String
companyId
,
String
companyName
,
@RequestParam
(
defaultValue
=
"1"
)
int
type
)
{
@RequestParam
(
defaultValue
=
"1"
)
int
type
)
{
logger
.
info
(
"换货单修改物流={}"
,
orderId
,
type
);
if
(
type
==
2
)
{
if
(
type
==
2
)
{
ExchangeDeliveryBackQDTO
qdto
=
new
ExchangeDeliveryBackQDTO
();
ExchangeDeliveryBackQDTO
qdto
=
new
ExchangeDeliveryBackQDTO
();
qdto
.
setCourierNumber
(
logisticsNo
);
qdto
.
setCourierNumber
(
logisticsNo
);
...
@@ -400,7 +414,6 @@ public class GicOrderController {
...
@@ -400,7 +414,6 @@ public class GicOrderController {
qdto
.
setLogisticsCompanyName
(
companyName
);
qdto
.
setLogisticsCompanyName
(
companyName
);
ServiceResponse
<
Void
>
resp
=
this
.
afterSalesManageApiService
.
exchangeSellerDeliveryGoods
(
enterpriseId
,
ServiceResponse
<
Void
>
resp
=
this
.
afterSalesManageApiService
.
exchangeSellerDeliveryGoods
(
enterpriseId
,
memberId
,
qdto
);
memberId
,
qdto
);
logger
.
info
(
"换货单发货={}"
,
JSON
.
toJSONString
(
resp
));
if
(
resp
.
isSuccess
())
{
if
(
resp
.
isSuccess
())
{
return
RestResponse
.
successResult
();
return
RestResponse
.
successResult
();
}
}
...
@@ -532,9 +545,6 @@ public class GicOrderController {
...
@@ -532,9 +545,6 @@ public class GicOrderController {
}
}
private
String
createIntegralRecord
(
String
enterpriseId
,
int
status
,
ClerkQo
clerkDTO
,
String
writeOffCode
)
{
private
String
createIntegralRecord
(
String
enterpriseId
,
int
status
,
ClerkQo
clerkDTO
,
String
writeOffCode
)
{
if
(
logger
.
isDebugEnabled
())
{
logger
.
debug
(
"创建核销记录........"
);
}
DubboResult
<
IntegralMallExchangeLogDTO
>
integralResult
=
integralmallService
DubboResult
<
IntegralMallExchangeLogDTO
>
integralResult
=
integralmallService
.
getIntegralMallExchangeLogByWriteOffCode
(
enterpriseId
,
writeOffCode
);
.
getIntegralMallExchangeLogByWriteOffCode
(
enterpriseId
,
writeOffCode
);
IntegralMallExchangeLogDTO
data
=
integralResult
.
getData
();
IntegralMallExchangeLogDTO
data
=
integralResult
.
getData
();
...
...
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