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
8835dae9
Commit
8835dae9
authored
Aug 31, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对订单相关查询参数进行全面重构
parent
1ccbae41
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
64 additions
and
1215 deletions
+64
-1215
OrderMapper.java
...coder/yudao/module/order/dal/mysql/order/OrderMapper.java
+13
-14
OrderQueryDTO.java
...java/cn/iocoder/yudao/module/order/dto/OrderQueryDTO.java
+0
-796
AdvanceOrderExcelExportListener.java
...rder/listener/export/AdvanceOrderExcelExportListener.java
+1
-2
ContainerNumberOrderExcelExportListener.java
...tener/export/ContainerNumberOrderExcelExportListener.java
+0
-1
CustomsOrderExcelExportListener.java
...rder/listener/export/CustomsOrderExcelExportListener.java
+1
-2
ExceptionOrderStatisticsExcelExportListener.java
...r/export/ExceptionOrderStatisticsExcelExportListener.java
+1
-2
HeavyOrderExcelExportListener.java
.../order/listener/export/HeavyOrderExcelExportListener.java
+1
-2
OrderCargoControlExcelExportListener.java
...listener/export/OrderCargoControlExcelExportListener.java
+1
-2
OrderExcelExportListener.java
...odule/order/listener/export/OrderExcelExportListener.java
+1
-2
ReturnOrderExcelExportListener.java
...order/listener/export/ReturnOrderExcelExportListener.java
+1
-3
SaleRepayOrderExcelExportListener.java
...er/listener/export/SaleRepayOrderExcelExportListener.java
+1
-2
ShippingOrderExcelExportListener.java
...der/listener/export/ShippingOrderExcelExportListener.java
+1
-2
OrderQueryService.java
...r/yudao/module/order/service/order/OrderQueryService.java
+10
-10
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+10
-176
OrderCargoControlService.java
...r/service/orderCargoControl/OrderCargoControlService.java
+1
-4
OrderCargoControlServiceImpl.java
...rvice/orderCargoControl/OrderCargoControlServiceImpl.java
+1
-2
OrderQueryVO.java
.../cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
+0
-2
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+1
-1
OrderExportController.java
...e/order/controller/admin/order/OrderExportController.java
+19
-190
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 @
8835dae9
...
...
@@ -8,7 +8,6 @@ import cn.iocoder.yudao.module.order.dal.dataobject.order.OrderDO;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderItem.OrderItemDO
;
import
cn.iocoder.yudao.module.order.dto.OrderExportBackDTO
;
import
cn.iocoder.yudao.module.order.dto.OrderBackInfoDto
;
import
cn.iocoder.yudao.module.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.dto.SearchBackDto
;
import
cn.iocoder.yudao.module.order.vo.order.*
;
import
cn.iocoder.yudao.module.order.vo.orderException.OrderExceptionStatisticsExcelVo
;
...
...
@@ -662,11 +661,11 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderExcelVO
>
exportMyOrderExcelList
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderExcelVO
>
exportMyOrderExcelList
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQuery
V
O
query
);
long
exportOrderExcelCount
(
@Param
(
"query"
)
OrderQueryVO
query
);
long
exportMyOrderExcelCount
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
long
exportMyOrderExcelCount
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
@ResultType
(
OrderBackPageVO
.
class
)
@Select
({
...
...
@@ -1091,11 +1090,11 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
List
<
OrderBackPageVO
>
deptOrderList
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQueryVO
query
);
List
<
OrderBackPageVO
>
deptOrderList1
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderBackPageVO
>
deptOrderList1
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQuery
V
O
query
);
long
deptOrderCount
(
@Param
(
"query"
)
OrderQueryVO
query
);
long
deptOrderCount1
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
long
deptOrderCount1
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
@ResultType
(
OrderBackPageVO
.
class
)
@Select
({
...
...
@@ -1922,11 +1921,11 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
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"
)
OrderQuery
DT
O
query
);
List
<
OrderBackPageVO
>
adminCargoControlMyOrderList
(
@Param
(
"start"
)
int
start
,
@Param
(
"size"
)
int
size
,
@Param
(
"query"
)
OrderQuery
V
O
query
);
long
adminCargoControlOrderCount
(
@Param
(
"query"
)
OrderQueryVO
query
);
long
adminCargoControlMyOrderCount
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
long
adminCargoControlMyOrderCount
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
@ResultType
(
OrderBackPageVO
.
class
)
@Select
({
"<script>"
,
...
...
@@ -3842,7 +3841,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
/**
* 重货统计
...
...
@@ -3850,7 +3849,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
/**
* 退仓统计
...
...
@@ -3858,7 +3857,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
/**
* 售后赔付
...
...
@@ -3866,7 +3865,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
/**
* 报关数据
...
...
@@ -3874,7 +3873,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
/**
* 出货量
...
...
@@ -3882,7 +3881,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
/**
* 预付运费
...
...
@@ -3890,7 +3889,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
* @param query
* @return
*/
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
@ResultType
(
OrderDO
.
class
)
@Select
({
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dto/OrderQueryDTO.java
deleted
100644 → 0
View file @
1ccbae41
This diff is collapsed.
Click to expand it.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/AdvanceOrderExcelExportListener.java
View file @
8835dae9
...
...
@@ -6,7 +6,6 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
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.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderShipDataExcelVo
;
...
...
@@ -52,7 +51,7 @@ public class AdvanceOrderExcelExportListener {
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
List
<
OrderShipFeeExcelVo
>
list
=
orderQueryService
.
getShipFeeExcelList
(
query
);
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 @
8835dae9
...
...
@@ -10,7 +10,6 @@ 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.service.file.FileService
;
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.vo.order.OrderBackPageVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/CustomsOrderExcelExportListener.java
View file @
8835dae9
...
...
@@ -6,7 +6,6 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
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.vo.order.OrderCustomsDatasExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
...
@@ -51,7 +50,7 @@ public class CustomsOrderExcelExportListener {
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
List
<
OrderCustomsDatasExcelVo
>
list
=
orderQueryService
.
getCustomsDatasExcelList
(
query
);
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 @
8835dae9
...
...
@@ -5,7 +5,6 @@ import cn.iocoder.yudao.framework.apollo.core.event.export.ExceptionOrderStatist
import
cn.iocoder.yudao.framework.excel.util.ExcelUtils
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
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.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.orderException.OrderExceptionStatisticsExcelVo
;
...
...
@@ -51,7 +50,7 @@ public class ExceptionOrderStatisticsExcelExportListener {
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
List
<
OrderExceptionStatisticsExcelVo
>
list
=
orderQueryService
.
getOrderExceptionStatisticsExcel
(
query
);
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 @
8835dae9
...
...
@@ -6,7 +6,6 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
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.vo.order.OrderHeavyExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
...
@@ -51,7 +50,7 @@ public class HeavyOrderExcelExportListener {
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
List
<
OrderHeavyExcelVo
>
list
=
orderQueryService
.
getHeavyOrderExcelList
(
query
);
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 @
8835dae9
...
...
@@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.order.listener.export;
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.order.dto.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.service.orderCargoControl.OrderCargoControlService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
com.alibaba.fastjson.JSONObject
;
...
...
@@ -33,7 +32,7 @@ public class OrderCargoControlExcelExportListener {
public
void
orderCargoControlExcelExportEvent
(
OrderCargoControlExcelExportEvent
event
)
{
if
(
StringUtils
.
isNotBlank
(
event
.
getRequestParams
())){
try
{
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
FileDO
fileDO
=
orderCargoControlService
.
makeCargoControlOrderExcelFile
(
event
.
getUserId
(),
event
.
getUserType
(),
query
);
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 @
8835dae9
...
...
@@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.order.listener.export;
import
cn.iocoder.yudao.framework.apollo.core.event.export.OrderExcelExportEvent
;
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.order.OrderQueryService
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
import
com.alibaba.fastjson.JSONObject
;
...
...
@@ -59,7 +58,7 @@ public class OrderExcelExportListener {
public
void
MyOrderExcelExportEvent
(
OrderExcelExportEvent
event
)
throws
IOException
{
if
(
StringUtils
.
isNotBlank
(
event
.
getRequestParams
())){
try
{
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
FileDO
fileDO
=
orderQueryService
.
makeMyOrderExcelFile
(
event
.
getUserId
(),
event
.
getUserType
(),
query
);
event
.
setPath
(
fileDO
.
getPath
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/export/ReturnOrderExcelExportListener.java
View file @
8835dae9
...
...
@@ -3,10 +3,8 @@ package cn.iocoder.yudao.module.order.listener.export;
import
cn.hutool.core.util.StrUtil
;
import
cn.iocoder.yudao.framework.apollo.core.event.export.ReturnOrderExcelExportEvent
;
import
cn.iocoder.yudao.framework.excel.util.ExcelUtils
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
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.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderReturnOrderExcelVo
;
...
...
@@ -51,7 +49,7 @@ public class ReturnOrderExcelExportListener {
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
List
<
OrderReturnOrderExcelVo
>
list
=
orderQueryService
.
getReturnOrderExcelList
(
query
);
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 @
8835dae9
...
...
@@ -6,7 +6,6 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
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.vo.order.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderSaleRepayExcelVo
;
...
...
@@ -51,7 +50,7 @@ public class SaleRepayOrderExcelExportListener {
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
List
<
OrderSaleRepayExcelVo
>
list
=
orderQueryService
.
getSaleRepayExcelList
(
query
);
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 @
8835dae9
...
...
@@ -6,7 +6,6 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO
;
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.vo.order.OrderCustomsDatasExcelVo
;
import
cn.iocoder.yudao.module.order.vo.order.OrderQueryVO
;
...
...
@@ -52,7 +51,7 @@ public class ShippingOrderExcelExportListener {
try
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
OrderQuery
DTO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryDT
O
.
class
);
OrderQuery
VO
query
=
JSONObject
.
parseObject
(
event
.
getRequestParams
(),
OrderQueryV
O
.
class
);
query
.
setLang
(
event
.
getLang
());
List
<
OrderShipDataExcelVo
>
list
=
orderQueryService
.
getShipDatasExcelList
(
query
);
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 @
8835dae9
...
...
@@ -161,7 +161,7 @@ public interface OrderQueryService {
PageResult
<
OrderBackPageVO
>
deptOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
deptOrderPage1
(
OrderQuery
DT
O
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
deptOrderPage1
(
OrderQuery
V
O
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
myIssuedOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
...
...
@@ -186,7 +186,7 @@ public interface OrderQueryService {
PageResult
<
OrderBackPageVO
>
adminCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
adminCargoControlMyOrderPage
(
OrderQuery
DT
O
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
adminCargoControlMyOrderPage
(
OrderQuery
V
O
query
,
PageVO
page
);
PageResult
<
OrderBackPageVO
>
appCargoControlOrderPage
(
OrderQueryVO
query
,
PageVO
page
);
...
...
@@ -320,21 +320,21 @@ public interface OrderQueryService {
FileDO
makeOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQueryVO
query
)
throws
Exception
;
FileDO
makeMyOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
DT
O
query
)
throws
Exception
;
FileDO
makeMyOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
V
O
query
)
throws
Exception
;
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsExcel
(
OrderQuery
DT
O
query
);
List
<
OrderExceptionStatisticsExcelVo
>
getOrderExceptionStatisticsExcel
(
OrderQuery
V
O
query
);
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderHeavyExcelVo
>
getHeavyOrderExcelList
(
OrderQuery
V
O
query
);
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderReturnOrderExcelVo
>
getReturnOrderExcelList
(
OrderQuery
V
O
query
);
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderSaleRepayExcelVo
>
getSaleRepayExcelList
(
OrderQuery
V
O
query
);
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderCustomsDatasExcelVo
>
getCustomsDatasExcelList
(
OrderQuery
V
O
query
);
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderShipDataExcelVo
>
getShipDatasExcelList
(
OrderQuery
V
O
query
);
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
OrderQuery
DT
O
query
);
List
<
OrderShipFeeExcelVo
>
getShipFeeExcelList
(
OrderQuery
V
O
query
);
/**
* 查询订单的身份信息
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
8835dae9
This diff is collapsed.
Click to expand it.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlService.java
View file @
8835dae9
...
...
@@ -7,17 +7,14 @@ 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.order.dal.dataobject.orderCargoControl.OrderCargoControlDO
;
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.OrderQueryVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderSendSmsReqVO
;
import
cn.iocoder.yudao.module.order.vo.orderCargoControl.*
;
import
cn.iocoder.yudao.module.order.vo.orderCargoControlPick.OrderCargoControlPickApplyVO
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.Valid
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.util.Collection
;
import
java.util.List
;
...
...
@@ -123,7 +120,7 @@ public interface OrderCargoControlService extends IService<OrderCargoControlDO>
// FileDO makeCargoControlOrderExcelFile(Long userId, Integer userType, OrderQueryVO query) throws Exception;
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
DT
O
query
)
throws
Exception
;
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
V
O
query
)
throws
Exception
;
/**
* 判断是否控货人是否设置了控货密码
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlServiceImpl.java
View file @
8835dae9
...
...
@@ -30,7 +30,6 @@ import cn.iocoder.yudao.module.order.dal.dataobject.orderConsignor.OrderConsigno
import
cn.iocoder.yudao.module.order.dal.mysql.approval.OrderApprovalMapper
;
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.OrderQueryDTO
;
import
cn.iocoder.yudao.module.order.enums.OrderApprovalTypeResultEnum
;
import
cn.iocoder.yudao.module.order.enums.OrderStatusEnum
;
import
cn.iocoder.yudao.module.order.service.order.OrderBusinessService
;
...
...
@@ -407,7 +406,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
}
@Override
public
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
DT
O
query
)
throws
Exception
{
public
FileDO
makeCargoControlOrderExcelFile
(
Long
userId
,
Integer
userType
,
OrderQuery
V
O
query
)
throws
Exception
{
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
DATA_FORMAT
);
String
nowTime
=
formatter
.
format
(
LocalDateTime
.
now
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
View file @
8835dae9
...
...
@@ -590,8 +590,6 @@ public class OrderQueryVO {
@ApiModelProperty
(
value
=
"内部转换状态字段"
)
private
List
<
Integer
>
asStatusList
;
@ApiModelProperty
(
value
=
"是否预警控货订单: 1 是"
)
private
Integer
warningOrder
;
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
8835dae9
...
...
@@ -1214,7 +1214,7 @@
limit #{start}, #{size}
</select>
<select
id=
"myOrderPageList"
resultType=
"cn.iocoder.yudao.module.order.vo.order.OrderBackPageVO"
parameterType=
"cn.iocoder.yudao.module.order.
dto.OrderQueryDT
O"
>
<select
id=
"myOrderPageList"
resultType=
"cn.iocoder.yudao.module.order.vo.order.OrderBackPageVO"
parameterType=
"cn.iocoder.yudao.module.order.
vo.OrderQueryV
O"
>
select o.order_id,
o.package_type as advance_type,
o.package_remarks,
...
...
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/order/OrderExportController.java
View file @
8835dae9
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