Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-scrm-shopmall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 34035147
authored
Nov 21, 2025
by
春觉晓
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分商城,订单优化
1 parent
47172221
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
src/main/java/cn/com/glsx/scrm/shopmall/controller/order/PlatformSubOrderController.java
src/main/java/cn/com/glsx/scrm/shopmall/vo/excel/PlatformShopmallOrderExportVO.java
src/main/java/cn/com/glsx/scrm/shopmall/controller/order/PlatformSubOrderController.java
View file @
3403514
...
@@ -12,6 +12,7 @@ import cn.com.glsx.scrm.shopmall.remote.PlatformSubOrderRemote;
...
@@ -12,6 +12,7 @@ import cn.com.glsx.scrm.shopmall.remote.PlatformSubOrderRemote;
import
cn.com.glsx.scrm.shopmall.request.order.SubOrderCodeRequest
;
import
cn.com.glsx.scrm.shopmall.request.order.SubOrderCodeRequest
;
import
cn.com.glsx.scrm.shopmall.request.order.platform.PlatformOrderCreateRequest
;
import
cn.com.glsx.scrm.shopmall.request.order.platform.PlatformOrderCreateRequest
;
import
cn.com.glsx.scrm.shopmall.response.order.PlatformOrderCreateResponse
;
import
cn.com.glsx.scrm.shopmall.response.order.PlatformOrderCreateResponse
;
import
cn.com.glsx.scrm.system.dto.LoginUserDTO
;
import
cn.com.glsx.scrm.system.dto.WechatAppLoginUserDTO
;
import
cn.com.glsx.scrm.system.dto.WechatAppLoginUserDTO
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.NeedInSessionType
;
...
@@ -71,7 +72,22 @@ public class PlatformSubOrderController {
...
@@ -71,7 +72,22 @@ public class PlatformSubOrderController {
if
(
wechatLoginUserInfo
==
null
||
wechatLoginUserInfo
.
getAccountId
()
==
null
)
{
if
(
wechatLoginUserInfo
==
null
||
wechatLoginUserInfo
.
getAccountId
()
==
null
)
{
return
RopResponse
.
error
(
"用户登录异常,请重新登录"
);
return
RopResponse
.
error
(
"用户登录异常,请重新登录"
);
}
}
RpcResponse
<
Integer
>
rpcResponse
=
platformSubOrderRemote
.
updateOrderStatusBySubOrderCode
(
request
.
getSubOrderCode
(),
PlatformOrderStatusEnum
.
COMPLETED
.
getValue
(),
wechatLoginUserInfo
.
getNickName
());
RpcResponse
<
Integer
>
rpcResponse
=
platformSubOrderRemote
.
confirmReceipt
(
request
.
getSubOrderCode
(),
PlatformOrderStatusEnum
.
COMPLETED
.
getValue
(),
wechatLoginUserInfo
.
getNickName
());
if
(
rpcResponse
.
isSuccess
()){
return
RopResponse
.
success
(
rpcResponse
.
getResult
());
}
else
{
return
RopResponse
.
error
(
rpcResponse
.
getMessage
());
}
}
@ApiOperation
(
"web端确认收货"
)
@ServiceMethod
(
method
=
"scrm.api.shopmall.platform.web.confirm.receipt"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
Integer
>
webConfirmReceipt
(
SubOrderCodeRequest
request
)
{
LoginUserDTO
loginUser
=
RopThreadLocal
.
getLoginUser
(
LoginUserDTO
.
class
);
if
(
loginUser
==
null
||
loginUser
.
getAccountName
()
==
null
)
{
return
RopResponse
.
error
(
"用户登录异常,请重新登录"
);
}
RpcResponse
<
Integer
>
rpcResponse
=
platformSubOrderRemote
.
confirmReceipt
(
request
.
getSubOrderCode
(),
PlatformOrderStatusEnum
.
COMPLETED
.
getValue
(),
loginUser
.
getAccountName
());
if
(
rpcResponse
.
isSuccess
()){
if
(
rpcResponse
.
isSuccess
()){
return
RopResponse
.
success
(
rpcResponse
.
getResult
());
return
RopResponse
.
success
(
rpcResponse
.
getResult
());
}
else
{
}
else
{
...
...
src/main/java/cn/com/glsx/scrm/shopmall/vo/excel/PlatformShopmallOrderExportVO.java
View file @
3403514
...
@@ -5,6 +5,7 @@ import com.alibaba.excel.annotation.format.DateTimeFormat;
...
@@ -5,6 +5,7 @@ import com.alibaba.excel.annotation.format.DateTimeFormat;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -45,9 +46,16 @@ public class PlatformShopmallOrderExportVO implements Serializable {
...
@@ -45,9 +46,16 @@ public class PlatformShopmallOrderExportVO implements Serializable {
@ExcelProperty
(
value
=
"数量"
)
@ExcelProperty
(
value
=
"数量"
)
private
Integer
sellQty
;
private
Integer
sellQty
;
@ExcelProperty
(
value
=
"
实收金额
"
)
@ExcelProperty
(
value
=
"
商品总价
"
)
private
String
totalPrice
;
private
String
totalPrice
;
@ExcelProperty
(
value
=
"实际金额"
)
private
BigDecimal
totalScore
;
@ExcelProperty
(
value
=
"运费"
)
private
BigDecimal
freightAmount
;
@ExcelValueReplace
(
replace
={
"普通订单_0"
,
"积分订单_1"
},
repeatValue
=
true
)
@ExcelValueReplace
(
replace
={
"普通订单_0"
,
"积分订单_1"
},
repeatValue
=
true
)
@ExcelProperty
(
value
=
"订单类型"
,
converter
=
ReplaceIntegerToStringConvert
.
class
)
@ExcelProperty
(
value
=
"订单类型"
,
converter
=
ReplaceIntegerToStringConvert
.
class
)
private
Integer
businessType
;
private
Integer
businessType
;
...
@@ -108,4 +116,5 @@ public class PlatformShopmallOrderExportVO implements Serializable {
...
@@ -108,4 +116,5 @@ public class PlatformShopmallOrderExportVO implements Serializable {
@ExcelProperty
(
value
=
"详细地址"
)
@ExcelProperty
(
value
=
"详细地址"
)
private
String
address
;
private
String
address
;
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment