Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
7f74b932
Commit
7f74b932
authored
May 13, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OrderQueryDTO 入参
parent
ab17a968
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
457 additions
and
69 deletions
+457
-69
OrderMapper.java
...coder/yudao/module/order/dal/mysql/order/OrderMapper.java
+10
-7
AdvanceOrderExcelExportListener.java
...rder/listener/export/AdvanceOrderExcelExportListener.java
+2
-1
ContainerNumberOrderExcelExportListener.java
...tener/export/ContainerNumberOrderExcelExportListener.java
+3
-2
CustomsOrderExcelExportListener.java
...rder/listener/export/CustomsOrderExcelExportListener.java
+2
-1
ExceptionOrderStatisticsExcelExportListener.java
...r/export/ExceptionOrderStatisticsExcelExportListener.java
+2
-1
HeavyOrderExcelExportListener.java
.../order/listener/export/HeavyOrderExcelExportListener.java
+2
-1
OrderCargoControlExcelExportListener.java
...listener/export/OrderCargoControlExcelExportListener.java
+2
-1
OrderExcelExportListener.java
...odule/order/listener/export/OrderExcelExportListener.java
+21
-21
ReturnOrderExcelExportListener.java
...order/listener/export/ReturnOrderExcelExportListener.java
+2
-1
SaleRepayOrderExcelExportListener.java
...er/listener/export/SaleRepayOrderExcelExportListener.java
+2
-1
ShippingOrderExcelExportListener.java
...der/listener/export/ShippingOrderExcelExportListener.java
+2
-1
OrderQueryService.java
...r/yudao/module/order/service/order/OrderQueryService.java
+9
-7
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+28
-9
OrderCargoControlService.java
...r/service/orderCargoControl/OrderCargoControlService.java
+3
-1
OrderCargoControlServiceImpl.java
...rvice/orderCargoControl/OrderCargoControlServiceImpl.java
+6
-7
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+361
-7
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/mysql/order/OrderMapper.java
View file @
7f74b932
...
@@ -1922,8 +1922,11 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -1922,8 +1922,11 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
List
<
OrderBackPageVO
>
adminCargoControlOrderList
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQueryVO
query
);
List
<
OrderBackPageVO
>
adminCargoControlOrderList
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQueryVO
query
);
List
<
OrderBackPageVO
>
adminCargoControlMyOrderList
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQueryDTO
query
);
long
adminCargoControlOrderCount
(
@Param
(
"query"
)
OrderQueryVO
query
);
long
adminCargoControlOrderCount
(
@Param
(
"query"
)
OrderQueryVO
query
);
long
adminCargoControlMyOrderCount
(
@Param
(
"query"
)
OrderQueryDTO
query
);
@ResultType
(
OrderBackPageVO
.
class
)
@ResultType
(
OrderBackPageVO
.
class
)
@Select
({
@Select
({
"<script>"
,
"<script>"
,
...
@@ -3839,7 +3842,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -3839,7 +3842,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @param query
* @return
* @return
*/
*/
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
/**
/**
* 重货统计
* 重货统计
...
@@ -3847,7 +3850,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -3847,7 +3850,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @param query
* @return
* @return
*/
*/
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
/**
/**
* 退仓统计
* 退仓统计
...
@@ -3855,7 +3858,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -3855,7 +3858,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @param query
* @return
* @return
*/
*/
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
/**
/**
* 售后赔付
* 售后赔付
...
@@ -3863,7 +3866,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -3863,7 +3866,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @param query
* @return
* @return
*/
*/
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
/**
/**
* 报关数据
* 报关数据
...
@@ -3871,7 +3874,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -3871,7 +3874,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @param query
* @return
* @return
*/
*/
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
/**
/**
* 出货量
* 出货量
...
@@ -3879,7 +3882,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -3879,7 +3882,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @param query
* @return
* @return
*/
*/
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
/**
/**
* 预付运费
* 预付运费
...
@@ -3887,7 +3890,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
...
@@ -3887,7 +3890,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @param query
* @return
* @return
*/
*/
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
@ResultType
(
OrderDO
.
class
)
@ResultType
(
OrderDO
.
class
)
@Select
({
@Select
({
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/AdvanceOrderExcelExportListener.java
View file @
7f74b932
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderShipDataExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderShipDataExcelVo
;
...
@@ -51,7 +52,7 @@ public class AdvanceOrderExcelExportListener {
...
@@ -51,7 +52,7 @@ public class AdvanceOrderExcelExportListener {
try
{
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
List
<
OrderShipFeeExcelVo
>
list
=
orderQueryService
.
getShipFeeExcelList
(
query
);
List
<
OrderShipFeeExcelVo
>
list
=
orderQueryService
.
getShipFeeExcelList
(
query
);
String
sheetName
=
event
.
getLang
()
==
0
?
"预付运费统计"
:
"advance fee statistics"
;
String
sheetName
=
event
.
getLang
()
==
0
?
"预付运费统计"
:
"advance fee statistics"
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/ContainerNumberOrderExcelExportListener.java
View file @
7f74b932
...
@@ -10,6 +10,7 @@ import cn.iocoder.yudao.framework.mybatis.core.vo.PageVO;
...
@@ -10,6 +10,7 @@ import cn.iocoder.yudao.framework.mybatis.core.vo.PageVO;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderCostSummaryDto
;
import
cn.iocoder.yudao.module.order.dto.OrderCostSummaryDto
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderBackPageVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderBackPageVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
@@ -60,9 +61,9 @@ public class ContainerNumberOrderExcelExportListener {
...
@@ -60,9 +61,9 @@ public class ContainerNumberOrderExcelExportListener {
PageVO
page
=
new
PageVO
();
PageVO
page
=
new
PageVO
();
page
.
setRows
(
10000
);
page
.
setRows
(
10000
);
page
.
setPage
(
1
);
page
.
setPage
(
1
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
PageResult
<
OrderBackPageVO
>
orderPage
=
orderQueryService
.
o
rderPage
(
query
,
page
);
PageResult
<
OrderBackPageVO
>
orderPage
=
orderQueryService
.
myO
rderPage
(
query
,
page
);
if
(
CollectionUtil
.
isNotEmpty
(
orderPage
.
getList
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
orderPage
.
getList
()))
{
String
nameZh
=
String
.
format
(
"自编号%s的订单费用汇总统计"
,
query
.
getContainerNumber
());
String
nameZh
=
String
.
format
(
"自编号%s的订单费用汇总统计"
,
query
.
getContainerNumber
());
String
nameEn
=
String
.
format
(
"Summary Statistics of Order Expenses from ID%s"
,
query
.
getContainerNumber
());
String
nameEn
=
String
.
format
(
"Summary Statistics of Order Expenses from ID%s"
,
query
.
getContainerNumber
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/CustomsOrderExcelExportListener.java
View file @
7f74b932
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderCustomsDatasExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderCustomsDatasExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
@@ -50,7 +51,7 @@ public class CustomsOrderExcelExportListener {
...
@@ -50,7 +51,7 @@ public class CustomsOrderExcelExportListener {
try
{
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
List
<
OrderCustomsDatasExcelVo
>
list
=
orderQueryService
.
getCustomsDatasExcelList
(
query
);
List
<
OrderCustomsDatasExcelVo
>
list
=
orderQueryService
.
getCustomsDatasExcelList
(
query
);
String
sheetName
=
event
.
getLang
()
==
0
?
"报关数据统计"
:
"customs data statistics"
;
String
sheetName
=
event
.
getLang
()
==
0
?
"报关数据统计"
:
"customs data statistics"
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/ExceptionOrderStatisticsExcelExportListener.java
View file @
7f74b932
...
@@ -5,6 +5,7 @@ import cn.iocoder.yudao.framework.apollo.core.event.export.ExceptionOrderStatist
...
@@ -5,6 +5,7 @@ import cn.iocoder.yudao.framework.apollo.core.event.export.ExceptionOrderStatist
import
cn.iocoder.yudao.framework.excel.util.ExcelUtils
;
import
cn.iocoder.yudao.framework.excel.util.ExcelUtils
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.orderException.OrderExceptionStatisticsExcelVo
;
import
cn.iocoder.yudao.module.order.vo.orderException.OrderExceptionStatisticsExcelVo
;
...
@@ -49,7 +50,7 @@ public class ExceptionOrderStatisticsExcelExportListener {
...
@@ -49,7 +50,7 @@ public class ExceptionOrderStatisticsExcelExportListener {
try
{
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
List
<
OrderExceptionStatisticsExcelVo
>
list
=
orderQueryService
.
getOrderExceptionStatisticsExcel
(
query
);
List
<
OrderExceptionStatisticsExcelVo
>
list
=
orderQueryService
.
getOrderExceptionStatisticsExcel
(
query
);
String
sheetName
=
event
.
getLang
()
==
0
?
"异常单统计"
:
"Order exception statistics"
;
String
sheetName
=
event
.
getLang
()
==
0
?
"异常单统计"
:
"Order exception statistics"
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/HeavyOrderExcelExportListener.java
View file @
7f74b932
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderHeavyExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderHeavyExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
@@ -50,7 +51,7 @@ public class HeavyOrderExcelExportListener {
...
@@ -50,7 +51,7 @@ public class HeavyOrderExcelExportListener {
try
{
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
List
<
OrderHeavyExcelVo
>
list
=
orderQueryService
.
getHeavyOrderExcelList
(
query
);
List
<
OrderHeavyExcelVo
>
list
=
orderQueryService
.
getHeavyOrderExcelList
(
query
);
String
sheetName
=
event
.
getLang
()
==
0
?
"重货单统计"
:
"heavy order statistics"
;
String
sheetName
=
event
.
getLang
()
==
0
?
"重货单统计"
:
"heavy order statistics"
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/OrderCargoControlExcelExportListener.java
View file @
7f74b932
...
@@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.order.listener.export;
...
@@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.order.listener.export;
import
cn.iocoder.yudao.framework.apollo.core.event.export.OrderCargoControlExcelExportEvent
;
import
cn.iocoder.yudao.framework.apollo.core.event.export.OrderCargoControlExcelExportEvent
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.orderCargoControl.OrderCargoControlService
;
import
cn.iocoder.yudao.module.order.service.orderCargoControl.OrderCargoControlService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -32,7 +33,7 @@ public class OrderCargoControlExcelExportListener {
...
@@ -32,7 +33,7 @@ public class OrderCargoControlExcelExportListener {
public
void
orderCargoControlExcelExportEvent
(
OrderCargoControlExcelExportEvent
event
)
{
public
void
orderCargoControlExcelExportEvent
(
OrderCargoControlExcelExportEvent
event
)
{
if
(
StringUtils
.
isNotBlank
(
event
.
getRequestParams
())){
if
(
StringUtils
.
isNotBlank
(
event
.
getRequestParams
())){
try
{
try
{
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
FileDO
fileDO
=
orderCargoControlService
.
makeCargoControlOrderExcelFile
(
event
.
getUserId
(),
event
.
getUserType
(),
query
);
FileDO
fileDO
=
orderCargoControlService
.
makeCargoControlOrderExcelFile
(
event
.
getUserId
(),
event
.
getUserType
(),
query
);
event
.
setPath
(
fileDO
.
getPath
());
event
.
setPath
(
fileDO
.
getPath
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/OrderExcelExportListener.java
View file @
7f74b932
...
@@ -33,27 +33,27 @@ public class OrderExcelExportListener {
...
@@ -33,27 +33,27 @@ public class OrderExcelExportListener {
*
*
* @param event 编号记录
* @param event 编号记录
*/
*/
@EventListener
(
OrderExcelExportEvent
.
class
)
//
@EventListener(OrderExcelExportEvent.class)
public
void
orderExcelExportEvent
(
OrderExcelExportEvent
event
)
throws
IOException
{
//
public void orderExcelExportEvent(OrderExcelExportEvent event) throws IOException {
if
(
StringUtils
.
isNotBlank
(
event
.
getRequestParams
())){
//
if (StringUtils.isNotBlank(event.getRequestParams())){
try
{
//
try {
OrderQueryVO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryVO
.
class
);
//
OrderQueryVO query = JSONObject.parseObject(event.getRequestParams(), OrderQueryVO.class);
query
.
setLang
(
event
.
getLang
());
//
query.setLang(event.getLang());
FileDO
fileDO
=
orderQueryService
.
makeOrderExcelFile
(
event
.
getUserId
(),
event
.
getUserType
(),
query
);
//
FileDO fileDO = orderQueryService.makeOrderExcelFile(event.getUserId(), event.getUserType(), query);
event
.
setPath
(
fileDO
.
getPath
());
//
event.setPath(fileDO.getPath());
event
.
setFileName
(
fileDO
.
getPath
());
//
event.setFileName(fileDO.getPath());
event
.
setUrl
(
fileDO
.
getUrl
());
//
event.setUrl(fileDO.getUrl());
event
.
setFileId
(
fileDO
.
getId
());
//
event.setFileId(fileDO.getId());
}
catch
(
Exception
e
){
//
}catch (Exception e){
// TODO 测试阶段打印堆栈错误信息,便于分析原因
//
// TODO 测试阶段打印堆栈错误信息,便于分析原因
e
.
printStackTrace
();
//
e.printStackTrace();
event
.
setResult
(
e
.
getMessage
());
//
event.setResult(e.getMessage());
}
//
}
}
else
{
//
}else {
event
.
setResult
(
"param fail"
);
//
event.setResult("param fail");
}
//
}
//
}
//
}
@EventListener
(
OrderExcelExportEvent
.
class
)
@EventListener
(
OrderExcelExportEvent
.
class
)
public
void
MyOrderExcelExportEvent
(
OrderExcelExportEvent
event
)
throws
IOException
{
public
void
MyOrderExcelExportEvent
(
OrderExcelExportEvent
event
)
throws
IOException
{
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/ReturnOrderExcelExportListener.java
View file @
7f74b932
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderReturnOrderExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderReturnOrderExcelVo
;
...
@@ -50,7 +51,7 @@ public class ReturnOrderExcelExportListener {
...
@@ -50,7 +51,7 @@ public class ReturnOrderExcelExportListener {
try
{
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
List
<
OrderReturnOrderExcelVo
>
list
=
orderQueryService
.
getReturnOrderExcelList
(
query
);
List
<
OrderReturnOrderExcelVo
>
list
=
orderQueryService
.
getReturnOrderExcelList
(
query
);
String
sheetName
=
event
.
getLang
()
==
0
?
"重货单统计"
:
"heavy order statistics"
;
String
sheetName
=
event
.
getLang
()
==
0
?
"重货单统计"
:
"heavy order statistics"
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/SaleRepayOrderExcelExportListener.java
View file @
7f74b932
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderSaleRepayExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderSaleRepayExcelVo
;
...
@@ -50,7 +51,7 @@ public class SaleRepayOrderExcelExportListener {
...
@@ -50,7 +51,7 @@ public class SaleRepayOrderExcelExportListener {
try
{
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
List
<
OrderSaleRepayExcelVo
>
list
=
orderQueryService
.
getSaleRepayExcelList
(
query
);
List
<
OrderSaleRepayExcelVo
>
list
=
orderQueryService
.
getSaleRepayExcelList
(
query
);
String
sheetName
=
event
.
getLang
()
==
0
?
"售后赔偿金额统计"
:
"sale repay statistics"
;
String
sheetName
=
event
.
getLang
()
==
0
?
"售后赔偿金额统计"
:
"sale repay statistics"
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/ShippingOrderExcelExportListener.java
View file @
7f74b932
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.infra.service.file.FileService
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.service.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderCustomsDatasExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderCustomsDatasExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
@@ -51,7 +52,7 @@ public class ShippingOrderExcelExportListener {
...
@@ -51,7 +52,7 @@ public class ShippingOrderExcelExportListener {
try
{
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
query
.
setLang
(
event
.
getLang
());
query
.
setLang
(
event
.
getLang
());
List
<
OrderShipDataExcelVo
>
list
=
orderQueryService
.
getShipDatasExcelList
(
query
);
List
<
OrderShipDataExcelVo
>
list
=
orderQueryService
.
getShipDatasExcelList
(
query
);
String
sheetName
=
event
.
getLang
()
==
0
?
"客户出货量统计"
:
"shipping data statistics"
;
String
sheetName
=
event
.
getLang
()
==
0
?
"客户出货量统计"
:
"shipping data statistics"
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/OrderQueryService.java
View file @
7f74b932
...
@@ -186,6 +186,8 @@ public interface OrderQueryService {
...
@@ -186,6 +186,8 @@ public interface OrderQueryService {
PageResult
<
OrderBackPageVO
>
adminCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
adminCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
adminCargoControlMyOrderPage
(
OrderQueryDTO
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
appCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
appCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
...
@@ -320,19 +322,19 @@ public interface OrderQueryService {
...
@@ -320,19 +322,19 @@ public interface OrderQueryService {
FileDO
makeMyOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQueryDTO
query
)
throws
Exception
;
FileDO
makeMyOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQueryDTO
query
)
throws
Exception
;
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsExcel
(
OrderQuery
V
O
query
);
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsExcel
(
OrderQuery
DT
O
query
);
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
OrderQuery
V
O
query
);
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
OrderQuery
V
O
query
);
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
OrderQuery
V
O
query
);
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
OrderQuery
V
O
query
);
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
OrderQuery
V
O
query
);
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
OrderQuery
V
O
query
);
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
OrderQuery
DT
O
query
);
/**
/**
* 查询订单的身份信息
* 查询订单的身份信息
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
7f74b932
...
@@ -1115,6 +1115,19 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -1115,6 +1115,19 @@ public class OrderQueryServiceImpl implements OrderQueryService {
return
new
PageResult
<>(
list
,
total
,
mpPage
.
getSize
(),
page
.
getPage
(),
(
total
+
mpPage
.
getSize
()
-
1
)
/
mpPage
.
getSize
());
return
new
PageResult
<>(
list
,
total
,
mpPage
.
getSize
(),
page
.
getPage
(),
(
total
+
mpPage
.
getSize
()
-
1
)
/
mpPage
.
getSize
());
}
}
@Override
public
PageResult
<
OrderBackPageVO
>
adminCargoControlMyOrderPage
(
OrderQueryDTO
query
,
PageVO
page
)
{
query
.
setLang
(
I18nMessage
.
getLang
());
caseStatus
(
query
.
getStatus
(),
query
);
IPage
<
OrderBackPageVO
>
mpPage
=
MyBatisUtils
.
buildPage
(
page
);
long
total
=
orderMapper
.
adminCargoControlMyOrderCount
(
query
);
log
.
warn
(
I18nMessage
.
getLang
().
toString
());
int
start
=
(
page
.
getPage
()
-
1
)
*
page
.
getRows
();
int
size
=
page
.
getRows
();
List
<
OrderBackPageVO
>
list
=
orderMapper
.
adminCargoControlMyOrderList
(
start
,
size
,
query
);
return
new
PageResult
<>(
list
,
total
,
mpPage
.
getSize
(),
page
.
getPage
(),
(
total
+
mpPage
.
getSize
()
-
1
)
/
mpPage
.
getSize
());
}
@Override
@Override
public
PageResult
<
OrderBackPageVO
>
appCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
)
{
public
PageResult
<
OrderBackPageVO
>
appCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
)
{
query
.
setLang
(
I18nMessage
.
getLang
());
query
.
setLang
(
I18nMessage
.
getLang
());
...
@@ -1127,7 +1140,6 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -1127,7 +1140,6 @@ public class OrderQueryServiceImpl implements OrderQueryService {
return
new
PageResult
<>(
list
,
total
,
mpPage
.
getSize
(),
page
.
getPage
(),
(
total
+
mpPage
.
getSize
()
-
1
)
/
mpPage
.
getSize
());
return
new
PageResult
<>(
list
,
total
,
mpPage
.
getSize
(),
page
.
getPage
(),
(
total
+
mpPage
.
getSize
()
-
1
)
/
mpPage
.
getSize
());
}
}
@Override
@Override
public
PageResult
<
OrderBackPageVO
>
receivedOrderPage
(
OrderQueryVO
query
,
PageVO
page
)
{
public
PageResult
<
OrderBackPageVO
>
receivedOrderPage
(
OrderQueryVO
query
,
PageVO
page
)
{
query
.
setLang
(
I18nMessage
.
getLang
());
query
.
setLang
(
I18nMessage
.
getLang
());
...
@@ -1878,7 +1890,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -1878,7 +1890,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
public
FileDO
makeMyOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQueryDTO
query
)
throws
Exception
{
public
FileDO
makeMyOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQueryDTO
query
)
throws
Exception
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
caseStatus
(
query
.
getStatus
(),
query
);
String
sheetName
=
query
.
getLang
()
==
0
?
"订单管理第{0}页"
:
"Order Management number {0}"
;
String
sheetName
=
query
.
getLang
()
==
0
?
"订单管理第{0}页"
:
"Order Management number {0}"
;
if
(
Objects
.
isNull
(
userId
))
{
if
(
Objects
.
isNull
(
userId
))
{
userId
=
0L
;
userId
=
0L
;
...
@@ -1960,7 +1972,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -1960,7 +1972,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsExcel
(
OrderQueryVO
query
)
{
public
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsExcel
(
OrderQueryDTO
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
return
orderMapper
.
getOrderExceptionStatisticsList
(
query
);
return
orderMapper
.
getOrderExceptionStatisticsList
(
query
);
}
}
...
@@ -1970,7 +1983,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -1970,7 +1983,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
OrderQueryVO
query
)
{
public
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
OrderQueryDTO
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
return
orderMapper
.
getHeavyOrderExcelList
(
query
);
return
orderMapper
.
getHeavyOrderExcelList
(
query
);
}
}
...
@@ -1981,7 +1995,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -1981,7 +1995,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
OrderQueryVO
query
)
{
public
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
OrderQueryDTO
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
return
orderMapper
.
getReturnOrderExcelList
(
query
);
return
orderMapper
.
getReturnOrderExcelList
(
query
);
}
}
...
@@ -1992,7 +2007,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -1992,7 +2007,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
OrderQueryVO
query
)
{
public
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
OrderQueryDTO
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
return
orderMapper
.
getSaleRepayExcelList
(
query
);
return
orderMapper
.
getSaleRepayExcelList
(
query
);
}
}
...
@@ -2003,7 +2019,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -2003,7 +2019,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
OrderQueryVO
query
)
{
public
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
OrderQueryDTO
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
return
orderMapper
.
getCustomsDatasExcelList
(
query
);
return
orderMapper
.
getCustomsDatasExcelList
(
query
);
}
}
...
@@ -2014,7 +2031,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -2014,7 +2031,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
OrderQueryVO
query
)
{
public
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
OrderQueryDTO
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
return
orderMapper
.
getShipDatasExcelList
(
query
);
return
orderMapper
.
getShipDatasExcelList
(
query
);
}
}
...
@@ -2025,7 +2043,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -2025,7 +2043,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
* @return
* @return
*/
*/
@Override
@Override
public
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
OrderQueryVO
query
)
{
public
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
OrderQueryDTO
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
return
orderMapper
.
getShipFeeExcelList
(
query
);
return
orderMapper
.
getShipFeeExcelList
(
query
);
}
}
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlService.java
View file @
7f74b932
...
@@ -7,6 +7,7 @@ import cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO;
...
@@ -7,6 +7,7 @@ import cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO;
import
cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserDO
;
import
cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderCargoControl.OrderCargoControlDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderCargoControl.OrderCargoControlDO
;
import
cn.iocoder.yudao.module.order.dto.OrderCargoControlReleaseInfoDto
;
import
cn.iocoder.yudao.module.order.dto.OrderCargoControlReleaseInfoDto
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderBackPageVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderBackPageVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderSendSmsReqVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderSendSmsReqVO
;
...
@@ -107,8 +108,9 @@ public interface OrderCargoControlService extends IService<OrderCargoControlDO>
...
@@ -107,8 +108,9 @@ public interface OrderCargoControlService extends IService<OrderCargoControlDO>
void
exportCargoControlOrderExcel
(
HttpServletResponse
response
,
OrderQueryVO
query
)
throws
IOException
;
void
exportCargoControlOrderExcel
(
HttpServletResponse
response
,
OrderQueryVO
query
)
throws
IOException
;
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQueryVO
query
)
throws
Exception
;
//
FileDO makeCargoControlOrderExcelFile(Long userId, Integer userType, OrderQueryVO query) throws Exception;
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQueryDTO
query
)
throws
Exception
;
/**
/**
* 判断是否控货人是否设置了控货密码
* 判断是否控货人是否设置了控货密码
*
*
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlServiceImpl.java
View file @
7f74b932
...
@@ -22,6 +22,7 @@ import cn.iocoder.yudao.module.order.dal.dataobject.orderCargoControl.OrderCargo
...
@@ -22,6 +22,7 @@ import cn.iocoder.yudao.module.order.dal.dataobject.orderCargoControl.OrderCargo
import
cn.iocoder.yudao.module.order.dal.dataobject.orderConsignor.OrderConsignorDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderConsignor.OrderConsignorDO
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControl.OrderCargoControlMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControl.OrderCargoControlMapper
;
import
cn.iocoder.yudao.module.order.dto.OrderCargoControlReleaseInfoDto
;
import
cn.iocoder.yudao.module.order.dto.OrderCargoControlReleaseInfoDto
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.enums.OrderStatusEnum
;
import
cn.iocoder.yudao.module.order.enums.OrderStatusEnum
;
import
cn.iocoder.yudao.module.order.service.order.OrderBusinessService
;
import
cn.iocoder.yudao.module.order.service.order.OrderBusinessService
;
import
cn.iocoder.yudao.module.order.service.order.OrderConsignorService
;
import
cn.iocoder.yudao.module.order.service.order.OrderConsignorService
;
...
@@ -42,6 +43,7 @@ import com.alibaba.excel.ExcelWriter;
...
@@ -42,6 +43,7 @@ import com.alibaba.excel.ExcelWriter;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
...
@@ -56,10 +58,7 @@ import java.net.URLEncoder;
...
@@ -56,10 +58,7 @@ import java.net.URLEncoder;
import
java.text.MessageFormat
;
import
java.text.MessageFormat
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.time.format.DateTimeFormatter
;
import
java.util.Collection
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
...
@@ -384,7 +383,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -384,7 +383,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
}
}
@Override
@Override
public
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
V
O
query
)
throws
Exception
{
public
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
DT
O
query
)
throws
Exception
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
...
@@ -408,7 +407,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -408,7 +407,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
OutputStream
out
=
new
FileOutputStream
(
path
);
OutputStream
out
=
new
FileOutputStream
(
path
);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
OrderCargoControlExcelVO
.
class
).
inMemory
(
true
).
build
();
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
OrderCargoControlExcelVO
.
class
).
inMemory
(
true
).
build
();
PageVO
page
=
new
PageVO
();
PageVO
page
=
new
PageVO
();
PageResult
<
OrderBackPageVO
>
pageResult
=
orderQueryService
.
adminCargoControlOrderPage
(
query
,
page
);
PageResult
<
OrderBackPageVO
>
pageResult
=
orderQueryService
.
adminCargoControl
My
OrderPage
(
query
,
page
);
long
total
=
pageResult
.
getTotal
();
long
total
=
pageResult
.
getTotal
();
int
pageNumber
=
(
int
)
Math
.
ceil
((
double
)
total
/
(
double
)
PAGE_SIZE
);
//分页条数看情况
int
pageNumber
=
(
int
)
Math
.
ceil
((
double
)
total
/
(
double
)
PAGE_SIZE
);
//分页条数看情况
// 去调用写入,根据数据库分页的总的页数来
// 去调用写入,根据数据库分页的总的页数来
...
@@ -419,7 +418,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -419,7 +418,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
page
.
setPage
(
i
);
page
.
setPage
(
i
);
page
.
setRows
(
PAGE_SIZE
);
page
.
setRows
(
PAGE_SIZE
);
page
.
setField
(
"o.order_id"
);
page
.
setField
(
"o.order_id"
);
PageResult
<
OrderBackPageVO
>
mpPage
=
orderQueryService
.
adminCargoControlOrderPage
(
query
,
page
);
PageResult
<
OrderBackPageVO
>
mpPage
=
orderQueryService
.
adminCargoControl
My
OrderPage
(
query
,
page
);
List
<
OrderCargoControlExcelVO
>
pageList
=
mpPage
.
getList
().
stream
().
map
(
backPageVO
->
{
List
<
OrderCargoControlExcelVO
>
pageList
=
mpPage
.
getList
().
stream
().
map
(
backPageVO
->
{
OrderCargoControlExcelVO
excelVO
=
new
OrderCargoControlExcelVO
();
OrderCargoControlExcelVO
excelVO
=
new
OrderCargoControlExcelVO
();
BeanUtils
.
copyProperties
(
backPageVO
,
excelVO
);
BeanUtils
.
copyProperties
(
backPageVO
,
excelVO
);
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
7f74b932
This diff is collapsed.
Click to expand it.
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