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
792c22e8
Commit
792c22e8
authored
May 22, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-22提交
parent
16545a54
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
264 additions
and
152 deletions
+264
-152
BpmTaskController.java
...o/module/bpm/controller/admin/task/BpmTaskController.java
+35
-11
BpmTaskServiceImpl.java
...der/yudao/module/bpm/service/task/BpmTaskServiceImpl.java
+5
-2
CalculateOrderYeJiTypeListener.java
...ule/delivery/listener/CalculateOrderYeJiTypeListener.java
+0
-1
SalesReportMapper.xml
...very-rest/src/main/resources/mapper/SalesReportMapper.xml
+136
-98
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+6
-10
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+14
-6
BoxPreloadGoodsController.java
.../shipment/controller/admin/BoxPreloadGoodsController.java
+1
-0
DownloadLogServiceImpl.java
...le/system/service/downloadLog/DownloadLogServiceImpl.java
+3
-0
PayableServiceImpl.java
...dao/module/wealth/service/payable/PayableServiceImpl.java
+52
-12
PayableQueryVO.java
...ocoder/yudao/module/wealth/vo/payable/PayableQueryVO.java
+8
-2
PayableMapper.xml
...-rest/src/main/resources/mapper/payable/PayableMapper.xml
+4
-10
No files found.
yudao-module-bpm/yudao-module-bpm-impl-flowable/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/BpmTaskController.java
View file @
792c22e8
...
@@ -9,6 +9,8 @@ import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
...
@@ -9,6 +9,8 @@ import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
import
cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.copy.ProcessCopyPageReqVO
;
import
cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.copy.ProcessCopyPageReqVO
;
import
cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.copy.ProcessCopyRespVO
;
import
cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.copy.ProcessCopyRespVO
;
import
cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task.*
;
import
cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task.*
;
import
cn.iocoder.yudao.module.bpm.dal.dataobject.task.BpmTaskExtDO
;
import
cn.iocoder.yudao.module.bpm.dal.mysql.task.BpmTaskExtMapper
;
import
cn.iocoder.yudao.module.bpm.service.task.BpmProcessInstanceService
;
import
cn.iocoder.yudao.module.bpm.service.task.BpmProcessInstanceService
;
import
cn.iocoder.yudao.module.bpm.service.task.BpmTaskService
;
import
cn.iocoder.yudao.module.bpm.service.task.BpmTaskService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -21,7 +23,9 @@ import org.springframework.web.bind.annotation.*;
...
@@ -21,7 +23,9 @@ import org.springframework.web.bind.annotation.*;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
pojo
.
CommonResult
.
success
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
pojo
.
CommonResult
.
success
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
web
.
core
.
util
.
WebFrameworkUtils
.
getLoginUserId
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
web
.
core
.
util
.
WebFrameworkUtils
.
getLoginUserId
;
...
@@ -42,6 +46,9 @@ public class BpmTaskController {
...
@@ -42,6 +46,9 @@ public class BpmTaskController {
@Resource
@Resource
private
BpmProcessInstanceService
processInstanceService
;
private
BpmProcessInstanceService
processInstanceService
;
@Resource
private
BpmTaskExtMapper
taskExtMapper
;
@GetMapping
(
"todo-page"
)
@GetMapping
(
"todo-page"
)
@ApiOperation
(
"获取 Todo 待办任务分页"
)
@ApiOperation
(
"获取 Todo 待办任务分页"
)
@PreAuthorize
(
"@ss.hasPermission('bpm:task:query')"
)
@PreAuthorize
(
"@ss.hasPermission('bpm:task:query')"
)
...
@@ -100,12 +107,22 @@ public class BpmTaskController {
...
@@ -100,12 +107,22 @@ public class BpmTaskController {
//先校验流程是否同一类,然后批量审批
//先校验流程是否同一类,然后批量审批
//String jsonStr = JsonUtils.toJsonString(BpmList);
//String jsonStr = JsonUtils.toJsonString(BpmList);
//JsonUtils.SaveLog("参数为:"+jsonStr);
//JsonUtils.SaveLog("参数为:"+jsonStr);
long
id
=
getLoginUserId
();
long
id
=
getLoginUserId
();
for
(
BpmTaskApproveReqVO
ReqVO
:
BpmList
)
{
for
(
BpmTaskApproveReqVO
ReqVO
:
BpmList
)
{
List
<
BpmTaskRespVO
>
taskList
=
//查询当前用户的待办任务
taskService
.
getTaskListByProcessInstanceId
(
ReqVO
.
getId
());
List
<
BpmTaskExtDO
>
taskList1
=
if
(
taskList
.
size
()>
0
)
{
taskExtMapper
.
selectListByProcessInstanceId
(
ReqVO
.
getId
());
String
sid
=
taskList
.
get
(
0
).
getId
();
if
(
taskList1
==
null
||
taskList1
.
size
()
==
0
)
continue
;
List
<
BpmTaskExtDO
>
taskList
=
taskList1
.
stream
().
filter
(
t
->
t
.
getAssigneeUserId
()
==
id
).
sorted
(
Comparator
.
comparingLong
(
BpmTaskExtDO:
:
getId
).
reversed
()).
collect
(
Collectors
.
toList
());
if
(
taskList
==
null
)
continue
;
if
(
taskList
.
size
()
>
0
)
{
String
sid
=
taskList
.
get
(
0
).
getTaskId
();
ReqVO
.
setId
(
sid
);
ReqVO
.
setId
(
sid
);
//String jsonStr = JsonUtils.toJsonString(ReqVO);
//String jsonStr = JsonUtils.toJsonString(ReqVO);
//JsonUtils.SaveLog("参数为:"+jsonStr);
//JsonUtils.SaveLog("参数为:"+jsonStr);
...
@@ -124,13 +141,20 @@ public class BpmTaskController {
...
@@ -124,13 +141,20 @@ public class BpmTaskController {
@PreAuthorize
(
"@ss.hasPermission('bpm:task:update')"
)
@PreAuthorize
(
"@ss.hasPermission('bpm:task:update')"
)
public
CommonResult
<
Boolean
>
rejectTask2
(
@Valid
@RequestBody
List
<
BpmTaskRejectReqVO
>
BpmList
)
{
public
CommonResult
<
Boolean
>
rejectTask2
(
@Valid
@RequestBody
List
<
BpmTaskRejectReqVO
>
BpmList
)
{
//先校验流程是否同一类,然后批量审批
//先校验流程是否同一类,然后批量审批
LoginUser
l
=
SecurityFrameworkUtils
.
getLoginUser
();
LoginUser
l
=
SecurityFrameworkUtils
.
getLoginUser
();
for
(
BpmTaskRejectReqVO
reqVO
:
BpmList
for
(
BpmTaskRejectReqVO
reqVO
:
BpmList
)
{
)
{
List
<
BpmTaskRespVO
>
taskList
=
List
<
BpmTaskExtDO
>
taskList1
=
taskService
.
getTaskListByProcessInstanceId
(
reqVO
.
getId
());
taskExtMapper
.
selectListByProcessInstanceId
(
reqVO
.
getId
());
if
(
taskList
.
size
()>
0
)
{
if
(
taskList1
==
null
||
taskList1
.
size
()
==
0
)
continue
;
String
sid
=
taskList
.
get
(
0
).
getId
();
List
<
BpmTaskExtDO
>
taskList
=
taskList1
.
stream
().
filter
(
t
->
t
.
getAssigneeUserId
()
==
l
.
getId
()).
sorted
(
Comparator
.
comparingLong
(
BpmTaskExtDO:
:
getId
).
reversed
()).
collect
(
Collectors
.
toList
());
if
(
taskList
==
null
)
continue
;
if
(
taskList
.
size
()
>
0
)
{
String
sid
=
taskList
.
get
(
0
).
getTaskId
();
reqVO
.
setId
(
sid
);
reqVO
.
setId
(
sid
);
taskService
.
rejectTask
(
l
,
reqVO
);
taskService
.
rejectTask
(
l
,
reqVO
);
}
}
...
@@ -144,7 +168,7 @@ public class BpmTaskController {
...
@@ -144,7 +168,7 @@ public class BpmTaskController {
@Idempotent
(
timeout
=
5
)
@Idempotent
(
timeout
=
5
)
@PreAuthorize
(
"@ss.hasPermission('bpm:task:update')"
)
@PreAuthorize
(
"@ss.hasPermission('bpm:task:update')"
)
public
CommonResult
<
Boolean
>
rejectTask
(
@Valid
@RequestBody
public
CommonResult
<
Boolean
>
rejectTask
(
@Valid
@RequestBody
BpmTaskRejectReqVO
reqVO
)
{
BpmTaskRejectReqVO
reqVO
)
{
taskService
.
rejectTask
(
SecurityFrameworkUtils
.
getLoginUser
(),
reqVO
);
taskService
.
rejectTask
(
SecurityFrameworkUtils
.
getLoginUser
(),
reqVO
);
return
success
(
true
);
return
success
(
true
);
}
}
...
...
yudao-module-bpm/yudao-module-bpm-impl-flowable/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskServiceImpl.java
View file @
792c22e8
...
@@ -222,7 +222,8 @@ public class BpmTaskServiceImpl implements BpmTaskService {
...
@@ -222,7 +222,8 @@ public class BpmTaskServiceImpl implements BpmTaskService {
@Override
@Override
public
List
<
BpmTaskRespVO
>
getTaskListByProcessInstanceId
(
String
processInstanceId
)
{
public
List
<
BpmTaskRespVO
>
getTaskListByProcessInstanceId
(
String
processInstanceId
)
{
// 获得任务列表
// 获得任务列表
List
<
HistoricTaskInstance
>
tasks
=
historyService
.
createHistoricTaskInstanceQuery
()
List
<
HistoricTaskInstance
>
tasks
=
historyService
.
createHistoricTaskInstanceQuery
()
.
processInstanceId
(
processInstanceId
)
.
processInstanceId
(
processInstanceId
)
.
orderByHistoricTaskInstanceStartTime
().
desc
()
// 创建时间倒序
.
orderByHistoricTaskInstanceStartTime
().
desc
()
// 创建时间倒序
.
list
();
.
list
();
...
@@ -231,7 +232,9 @@ public class BpmTaskServiceImpl implements BpmTaskService {
...
@@ -231,7 +232,9 @@ public class BpmTaskServiceImpl implements BpmTaskService {
}
}
// 获得 TaskExtDO Map
// 获得 TaskExtDO Map
List
<
BpmTaskExtDO
>
bpmTaskExtDOs
=
taskExtMapper
.
selectListByTaskIds
(
convertSet
(
tasks
,
HistoricTaskInstance:
:
getId
));
List
<
BpmTaskExtDO
>
bpmTaskExtDOs
=
taskExtMapper
.
selectListByTaskIds
(
convertSet
(
tasks
,
HistoricTaskInstance:
:
getId
));
Map
<
String
,
BpmTaskExtDO
>
bpmTaskExtDOMap
=
convertMap
(
bpmTaskExtDOs
,
BpmTaskExtDO:
:
getTaskId
);
Map
<
String
,
BpmTaskExtDO
>
bpmTaskExtDOMap
=
convertMap
(
bpmTaskExtDOs
,
BpmTaskExtDO:
:
getTaskId
);
// 获得 ProcessInstance Map
// 获得 ProcessInstance Map
...
...
yudao-module-delivery/yudao-module-delivery-rest/src/main/java/cn/iocoder/yudao/module/delivery/listener/CalculateOrderYeJiTypeListener.java
View file @
792c22e8
...
@@ -74,6 +74,5 @@ public class CalculateOrderYeJiTypeListener {
...
@@ -74,6 +74,5 @@ public class CalculateOrderYeJiTypeListener {
m
.
setCreatedate
(
new
Date
());
m
.
setCreatedate
(
new
Date
());
zTestService
.
save
(
m
);
zTestService
.
save
(
m
);
}
}
}
}
yudao-module-delivery/yudao-module-delivery-rest/src/main/resources/mapper/SalesReportMapper.xml
View file @
792c22e8
This diff is collapsed.
Click to expand it.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
792c22e8
...
@@ -5,8 +5,8 @@ import cn.hutool.core.date.DateUtil;
...
@@ -5,8 +5,8 @@ import cn.hutool.core.date.DateUtil;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.iocoder.yudao.framework.apollo.core.dto.OrderDto
;
import
cn.iocoder.yudao.framework.apollo.core.dto.OrderDto
;
import
cn.iocoder.yudao.framework.apollo.core.event.*
;
import
cn.iocoder.yudao.framework.apollo.core.event.*
;
//
import cn.iocoder.yudao.framework.apollo.core.event.Order.CalculateOrderVValueEvent;
import
cn.iocoder.yudao.framework.apollo.core.event.Order.CalculateOrderVValueEvent
;
//
import cn.iocoder.yudao.framework.apollo.core.event.Order.CalculateOrderYeJiTypeEvent;
import
cn.iocoder.yudao.framework.apollo.core.event.Order.CalculateOrderYeJiTypeEvent
;
import
cn.iocoder.yudao.framework.common.enums.UserTypeEnum
;
import
cn.iocoder.yudao.framework.common.enums.UserTypeEnum
;
import
cn.iocoder.yudao.framework.common.util.bigDecimal.BigDecimalUtils
;
import
cn.iocoder.yudao.framework.common.util.bigDecimal.BigDecimalUtils
;
import
cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO
;
import
cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO
;
...
@@ -420,11 +420,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -420,11 +420,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderBusinessService
.
addOrderOperateLog
(
order
.
getOrderId
(),
"新建订单"
,
null
);
orderBusinessService
.
addOrderOperateLog
(
order
.
getOrderId
(),
"新建订单"
,
null
);
//lanbm 2024-04-13 修改,在创建完订单号,计算订单业绩类型
//lanbm 2024-04-13 修改,在创建完订单号,计算订单业绩类型
/*
CalculateOrderYeJiTypeEvent
even
=
new
CalculateOrderYeJiTypeEvent
();
CalculateOrderYeJiTypeEvent
even
=
new
CalculateOrderYeJiTypeEvent
();
even
.
setOrderId
(
order
.
getOrderId
());
even
.
setOrderId
(
order
.
getOrderId
());
applicationContext
.
publishEvent
(
even
);
applicationContext
.
publishEvent
(
even
);
*/
// 返回
// 返回
return
order
;
return
order
;
}
}
...
@@ -1571,19 +1569,16 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -1571,19 +1569,16 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
"编辑订单"
,
null
);
"编辑订单"
,
null
);
//lanbm 2024-04-13 修改,在创建完订单号,计算订单业绩类型
//lanbm 2024-04-13 修改,在创建完订单号,计算订单业绩类型
/*
Long orderId = updateReqVO.getOrderId();
Long
orderId
=
updateReqVO
.
getOrderId
();
CalculateOrderYeJiTypeEvent
even
=
new
CalculateOrderYeJiTypeEvent
();
CalculateOrderYeJiTypeEvent
even
=
new
CalculateOrderYeJiTypeEvent
();
even
.
setOrderId
(
orderId
);
even
.
setOrderId
(
orderId
);
applicationContext
.
publishEvent
(
even
);
applicationContext
.
publishEvent
(
even
);
*/
//end lanbm 2024-04-13 修改,在创建完订单号,计算订单业绩类型
//end lanbm 2024-04-13 修改,在创建完订单号,计算订单业绩类型
//入仓完成,计算V值 lanbm 2024-05-13 add
//入仓完成,计算V值 lanbm 2024-05-13 add
/*
CalculateOrderVValueEvent
event
=
new
CalculateOrderVValueEvent
();
CalculateOrderVValueEvent
event
=
new
CalculateOrderVValueEvent
();
event
.
setOrderId
(
updateObj
.
getOrderId
());
event
.
setOrderId
(
updateObj
.
getOrderId
());
applicationContext.publishEvent(event);
*/
applicationContext
.
publishEvent
(
event
);
//end 入仓完成,计算V值 lanbm 2024-05-13 add
//end 入仓完成,计算V值 lanbm 2024-05-13 add
}
}
...
@@ -3261,7 +3256,8 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -3261,7 +3256,8 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
receivableService
.
verificationReceivableIsWriteOff
(
orderDO
.
getOrderId
(),
null
);
receivableService
.
verificationReceivableIsWriteOff
(
orderDO
.
getOrderId
(),
null
);
List
<
OrderItemDO
>
orderItemDOList
=
orderItemMapper
.
selectList
(
new
LambdaQueryWrapper
<
OrderItemDO
>().
eq
(
OrderItemDO:
:
getOrderId
,
orderDO
.
getOrderId
()));
List
<
OrderItemDO
>
orderItemDOList
=
orderItemMapper
.
selectList
(
new
LambdaQueryWrapper
<
OrderItemDO
>().
eq
(
OrderItemDO:
:
getOrderId
,
orderDO
.
getOrderId
()));
List
<
OrderItemInWarehouseVO
>
orderItemInWarehouseVOList
=
orderWarehouseInVO
.
getOrderItemInWarehouseVOList
();
List
<
OrderItemInWarehouseVO
>
orderItemInWarehouseVOList
=
orderWarehouseInVO
.
getOrderItemInWarehouseVOList
();
if
(
CollectionUtil
.
isNotEmpty
(
orderItemInWarehouseVOList
)
&&
CollectionUtil
.
isNotEmpty
(
orderItemDOList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
orderItemInWarehouseVOList
)
&&
CollectionUtil
.
isNotEmpty
(
orderItemDOList
))
{
orderItemInWarehouseVOList
.
forEach
(
vo
->
{
orderItemInWarehouseVOList
.
forEach
(
vo
->
{
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
792c22e8
...
@@ -303,12 +303,14 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
...
@@ -303,12 +303,14 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
createOrderWarehouseIn
(
@Valid
OrderWarehouseInCreateReqVO
createReqVO
)
{
public
boolean
createOrderWarehouseIn
(
@Valid
OrderWarehouseInCreateReqVO
createReqVO
)
{
Long
orderId
=
createReqVO
.
getOrderId
();
Long
orderId
=
createReqVO
.
getOrderId
();
Long
brand
=
createReqVO
.
getBrand
();
Long
brand
=
createReqVO
.
getBrand
();
Long
orderItemId
=
createReqVO
.
getOrderItemId
();
Long
orderItemId
=
createReqVO
.
getOrderItemId
();
List
<
OrderWarehouseInItemDto
>
orderWarehouseInItemDoList
=
createReqVO
.
getOrderWarehouseInItemDoList
();
List
<
OrderWarehouseInItemDto
>
orderWarehouseInItemDoList
=
createReqVO
.
getOrderWarehouseInItemDoList
();
// 非下单货物,请求中包含
// 非下单货物,请求中包含
String
prodTitleZh
=
createReqVO
.
getProdTitleZh
();
String
prodTitleZh
=
createReqVO
.
getProdTitleZh
();
...
@@ -355,7 +357,8 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
...
@@ -355,7 +357,8 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
}
}
// 若已经存在入仓纪录,则就是追加。
// 若已经存在入仓纪录,则就是追加。
List
<
OrderWarehouseInDO
>
orderWarehouseInDOS
=
orderWarehouseInMapper
.
selectList
(
new
LambdaQueryWrapperX
<
OrderWarehouseInDO
>()
List
<
OrderWarehouseInDO
>
orderWarehouseInDOS
=
orderWarehouseInMapper
.
selectList
(
new
LambdaQueryWrapperX
<
OrderWarehouseInDO
>()
.
eq
(
OrderWarehouseInDO:
:
getOrderId
,
orderId
).
eq
(
OrderWarehouseInDO:
:
getOrderItemId
,
orderItemId
));
.
eq
(
OrderWarehouseInDO:
:
getOrderId
,
orderId
).
eq
(
OrderWarehouseInDO:
:
getOrderItemId
,
orderItemId
));
boolean
isAppend
=
CollectionUtil
.
isNotEmpty
(
orderWarehouseInDOS
);
boolean
isAppend
=
CollectionUtil
.
isNotEmpty
(
orderWarehouseInDOS
);
...
@@ -452,8 +455,13 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
...
@@ -452,8 +455,13 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
* @param isUpdateWarehouseProdAttrIds
* @param isUpdateWarehouseProdAttrIds
* @return 返回订单项id
* @return 返回订单项id
*/
*/
private
Long
doSaveOrUpdateOrderWarehouseInDo
(
OrderWarehouseInCreateReqVO
createReqVO
,
Long
orderId
,
Long
orderItemId
,
OrderDO
orderDO
,
private
Long
doSaveOrUpdateOrderWarehouseInDo
(
List
<
String
>
pictureUrls
,
boolean
isDeleteNotInWarehouseIn
,
boolean
isUpdateWarehouseProdAttrIds
)
{
OrderWarehouseInCreateReqVO
createReqVO
,
Long
orderId
,
Long
orderItemId
,
OrderDO
orderDO
,
List
<
String
>
pictureUrls
,
boolean
isDeleteNotInWarehouseIn
,
boolean
isUpdateWarehouseProdAttrIds
)
{
//lanbm 2024-05-21 添加注释
boolean
isAddNewOrderItem
=
createReqVO
.
getType
()
!=
0
;
boolean
isAddNewOrderItem
=
createReqVO
.
getType
()
!=
0
;
OrderItemDO
orderItemDO
;
OrderItemDO
orderItemDO
;
...
@@ -2656,7 +2664,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
...
@@ -2656,7 +2664,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
updateReqVO.getPictureUrls(),
updateReqVO.getPictureUrls(),
false,
false,
true);*/
true);*/
//对明细做修改
this
.
doSaveOrUpdateOrderWarehouseInDo
(
orderWarehouseInCreateReqVO
,
this
.
doSaveOrUpdateOrderWarehouseInDo
(
orderWarehouseInCreateReqVO
,
orderId
,
orderItemId
,
orderDO
,
orderId
,
orderItemId
,
orderDO
,
updateReqVO
.
getPictureUrls
(),
updateReqVO
.
getPictureUrls
(),
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxPreloadGoodsController.java
View file @
792c22e8
...
@@ -293,6 +293,7 @@ public class BoxPreloadGoodsController {
...
@@ -293,6 +293,7 @@ public class BoxPreloadGoodsController {
@ApiOperation
(
"下载预装单"
)
@ApiOperation
(
"下载预装单"
)
@ApiImplicitParam
(
name
=
"shipmentId"
,
value
=
"出货单ID"
,
required
=
true
,
example
=
"20"
,
dataTypeClass
=
Long
.
class
)
@ApiImplicitParam
(
name
=
"shipmentId"
,
value
=
"出货单ID"
,
required
=
true
,
example
=
"20"
,
dataTypeClass
=
Long
.
class
)
public
CommonResult
<
String
>
downloadPreloadGoodsList
(
@RequestParam
(
"shipmentId"
)
Long
shipmentId
,
HttpServletResponse
response
)
throws
Exception
{
public
CommonResult
<
String
>
downloadPreloadGoodsList
(
@RequestParam
(
"shipmentId"
)
Long
shipmentId
,
HttpServletResponse
response
)
throws
Exception
{
//预装单 lanbm 2024-05-22 处理问题
BoxDO
box
=
boxService
.
getBox
(
shipmentId
);
BoxDO
box
=
boxService
.
getBox
(
shipmentId
);
FileMakeReqDTO
reqDTO
=
new
FileMakeReqDTO
();
FileMakeReqDTO
reqDTO
=
new
FileMakeReqDTO
();
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/downloadLog/DownloadLogServiceImpl.java
View file @
792c22e8
...
@@ -273,6 +273,7 @@ public class DownloadLogServiceImpl extends AbstractService<DownloadLogMapper, D
...
@@ -273,6 +273,7 @@ public class DownloadLogServiceImpl extends AbstractService<DownloadLogMapper, D
break
;
break
;
// ......不同类型的文件制作
// ......不同类型的文件制作
case
SHIPMENT_PRELOAD_EXCEL_EXPORT:
case
SHIPMENT_PRELOAD_EXCEL_EXPORT:
//预装单导出 lanbm 2024-05-22 添加注释
shipmentPreloadExcelExportPushEvent
(
downloadLog
);
shipmentPreloadExcelExportPushEvent
(
downloadLog
);
break
;
break
;
//异常订单导出
//异常订单导出
...
@@ -339,9 +340,11 @@ public class DownloadLogServiceImpl extends AbstractService<DownloadLogMapper, D
...
@@ -339,9 +340,11 @@ public class DownloadLogServiceImpl extends AbstractService<DownloadLogMapper, D
shipmentSummeryExcelExportPushEvent
(
downloadLog
);
shipmentSummeryExcelExportPushEvent
(
downloadLog
);
break
;
break
;
case
SHIPMENT_SEA_PRELOAD_EXCEL_EXPORT:
case
SHIPMENT_SEA_PRELOAD_EXCEL_EXPORT:
//海运预装单导出,lanbm 2024-05-22 添加注释
shipmentSeaPreloadExcelExportPushEvent
(
downloadLog
);
shipmentSeaPreloadExcelExportPushEvent
(
downloadLog
);
break
;
break
;
case
SHIPMENT_AIR_LOAD_EXCEL_EXPORT:
case
SHIPMENT_AIR_LOAD_EXCEL_EXPORT:
//空运预装单 lanbm 2024-05-22 添加注释
shipmentAirLoadExcelExportPushEvent
(
downloadLog
);
shipmentAirLoadExcelExportPushEvent
(
downloadLog
);
break
;
break
;
case
ACHIEVEMENT_DETAIL_EXCEL_EXPORT:
case
ACHIEVEMENT_DETAIL_EXCEL_EXPORT:
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/payable/PayableServiceImpl.java
View file @
792c22e8
...
@@ -100,7 +100,9 @@ public class PayableServiceImpl extends AbstractService<PayableMapper, PayableDO
...
@@ -100,7 +100,9 @@ public class PayableServiceImpl extends AbstractService<PayableMapper, PayableDO
}
}
@Override
@Override
public
PageResult
<
PayableOrderBackVo
>
getPayablePage
(
PayableQueryVO
query
,
PageVO
page
)
{
public
PageResult
<
PayableOrderBackVo
>
getPayablePage
(
PayableQueryVO
query
,
PageVO
page
)
{
List
<
AdminUserDO
>
ListUser
=
adminUserService
.
getUsersList
();
List
<
AdminUserDO
>
ListUser
=
adminUserService
.
getUsersList
();
Map
<
Long
,
String
>
userMap
=
Map
<
Long
,
String
>
userMap
=
ListUser
.
stream
().
collect
(
ListUser
.
stream
().
collect
(
...
@@ -118,6 +120,48 @@ public class PayableServiceImpl extends AbstractService<PayableMapper, PayableDO
...
@@ -118,6 +120,48 @@ public class PayableServiceImpl extends AbstractService<PayableMapper, PayableDO
queryWrapper
.
eq
(
StringUtils
.
isNotBlank
(
query
.
getTransportId
()),
"a.transport_id"
,
query
.
getTransportId
());
queryWrapper
.
eq
(
StringUtils
.
isNotBlank
(
query
.
getTransportId
()),
"a.transport_id"
,
query
.
getTransportId
());
queryWrapper
.
eq
(
StringUtils
.
isNotBlank
(
query
.
getDepartureId
()),
"a.start_warehouse_id"
,
query
.
getDepartureId
());
queryWrapper
.
eq
(
StringUtils
.
isNotBlank
(
query
.
getDepartureId
()),
"a.start_warehouse_id"
,
query
.
getDepartureId
());
queryWrapper
.
eq
(
StringUtils
.
isNotBlank
(
query
.
getObjectiveId
()),
"a.dest_warehouse_id"
,
query
.
getObjectiveId
());
queryWrapper
.
eq
(
StringUtils
.
isNotBlank
(
query
.
getObjectiveId
()),
"a.dest_warehouse_id"
,
query
.
getObjectiveId
());
//lanbm 2024-05-22 添加的查询条件
if
(
query
.
getBeginCreateTime
()
!=
null
&&
query
.
getEndCreateTime
()
!=
null
)
{
if
(
query
.
getDateType
()
==
1
)
{
//预装时间,
queryWrapper
.
between
(
"b.yz_date"
,
query
.
getBeginCreateTime
(),
query
.
getEndCreateTime
());
}
else
if
(
query
.
getDateType
()
==
2
)
{
//装柜时间,
queryWrapper
.
between
(
"b.zg_date"
,
query
.
getBeginCreateTime
(),
query
.
getEndCreateTime
());
}
else
if
(
query
.
getDateType
()
==
3
)
{
//起运时间
queryWrapper
.
between
(
"b.qy_date"
,
query
.
getBeginCreateTime
(),
query
.
getEndCreateTime
());
}
else
if
(
query
.
getDateType
()
==
4
)
{
//到港时间
queryWrapper
.
between
(
"b.dg_date"
,
query
.
getBeginCreateTime
(),
query
.
getEndCreateTime
());
}
else
if
(
query
.
getDateType
()
==
5
)
{
//清关时间
queryWrapper
.
between
(
"b.qg_date"
,
query
.
getBeginCreateTime
(),
query
.
getEndCreateTime
());
}
else
if
(
query
.
getDateType
()
==
6
)
{
//卸柜时间
queryWrapper
.
between
(
"b.th_date"
,
query
.
getBeginCreateTime
(),
query
.
getEndCreateTime
());
}
else
if
(
query
.
getDateType
()
==
7
)
{
//费用产生时间
queryWrapper
.
between
(
"a.freecsdate"
,
query
.
getBeginCreateTime
(),
query
.
getEndCreateTime
());
}
}
//queryWrapper.between()
payableMapper
.
selectListPage
(
mpPage
,
queryWrapper
);
payableMapper
.
selectListPage
(
mpPage
,
queryWrapper
);
//lanbm 2024-05-17 add
//lanbm 2024-05-17 add
...
@@ -129,22 +173,18 @@ public class PayableServiceImpl extends AbstractService<PayableMapper, PayableDO
...
@@ -129,22 +173,18 @@ public class PayableServiceImpl extends AbstractService<PayableMapper, PayableDO
v
.
setTransportTypeName
(
"专线空运"
);
v
.
setTransportTypeName
(
"专线空运"
);
}
}
String
sCreator
=
""
;
String
sCreator
=
""
;
if
(
v
.
getCreator
()==
null
)
{
if
(
v
.
getCreator
()
==
null
)
{
v
.
setCreator
(
""
);
v
.
setCreator
(
""
);
}
}
else
{
else
long
l
=
Long
.
parseLong
(
v
.
getCreator
());
{
long
l
=
Long
.
parseLong
(
v
.
getCreator
());
v
.
setCreator
(
userMap
.
get
(
l
));
v
.
setCreator
(
userMap
.
get
(
l
));
}
}
if
(
v
.
getUpdater
()==
null
)
{
if
(
v
.
getUpdater
()
==
null
)
{
v
.
setUpdater
(
""
);
v
.
setUpdater
(
""
);
}
}
else
{
else
long
l
=
Long
.
parseLong
(
v
.
getUpdater
());
{
long
l
=
Long
.
parseLong
(
v
.
getUpdater
());
v
.
setUpdater
(
userMap
.
get
(
l
));
v
.
setUpdater
(
userMap
.
get
(
l
));
}
}
}
}
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/payable/PayableQueryVO.java
View file @
792c22e8
...
@@ -8,6 +8,7 @@ import org.springframework.format.annotation.DateTimeFormat;
...
@@ -8,6 +8,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import
java.util.Date
;
import
java.util.Date
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
;
@Data
@Data
...
@@ -76,11 +77,11 @@ public class PayableQueryVO {
...
@@ -76,11 +77,11 @@ public class PayableQueryVO {
@ApiModelProperty
(
value
=
"发票号"
)
@ApiModelProperty
(
value
=
"发票号"
)
private
String
invoiceNumber
;
private
String
invoiceNumber
;
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
_HOUR_MINUTE_SECOND
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
@ApiModelProperty
(
value
=
"开始创建时间"
)
@ApiModelProperty
(
value
=
"开始创建时间"
)
private
Date
beginCreateTime
;
private
Date
beginCreateTime
;
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
_HOUR_MINUTE_SECOND
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY
)
@ApiModelProperty
(
value
=
"结束创建时间"
)
@ApiModelProperty
(
value
=
"结束创建时间"
)
private
Date
endCreateTime
;
private
Date
endCreateTime
;
...
@@ -100,4 +101,9 @@ public class PayableQueryVO {
...
@@ -100,4 +101,9 @@ public class PayableQueryVO {
@ApiModelProperty
(
value
=
"客户名称"
)
@ApiModelProperty
(
value
=
"客户名称"
)
private
String
customerName
;
private
String
customerName
;
/*
时间节点查询类型
*/
private
int
dateType
;
}
}
yudao-module-wealth/yudao-module-wealth-rest/src/main/resources/mapper/payable/PayableMapper.xml
View file @
792c22e8
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.iocoder.yudao.module.wealth.dal.mysql.payable.PayableMapper"
>
<mapper
namespace=
"cn.iocoder.yudao.module.wealth.dal.mysql.payable.PayableMapper"
>
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select
id=
"selectListPage"
resultType=
"cn.iocoder.yudao.module.wealth.vo.payable.PayableOrderBackVo"
>
<select
id=
"selectListPage"
resultType=
"cn.iocoder.yudao.module.wealth.vo.payable.PayableOrderBackVo"
>
select a.*,b.shipment_status_air as shipmentStatusAir,
select a.*,
b.shipment_status as shipmentStatus
b.shipment_status_air as shipmentStatusAir,
b.shipment_status as shipmentStatus
from ecw_payable a
from ecw_payable a
left join ecw_box b on a.payable_no =b.self_no and b.deleted=
0
left join ecw_box b on a.payable_no = b.self_no and b.deleted =
0
${ew.customSqlSegment}
${ew.customSqlSegment}
</select>
</select>
</mapper>
</mapper>
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