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
ab63f074
Commit
ab63f074
authored
Jun 13, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
620c3229
cbcb12d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
19 deletions
+39
-19
OrderTimeMapper.java
...dao/module/order/dal/mysql/orderTime/OrderTimeMapper.java
+8
-1
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+10
-12
OrderTimeMapper.xml
...-core/src/main/resources/mapper/order/OrderTimeMapper.xml
+11
-6
BankReceiptDetailsImpl.java
...le/wealth/service/receiptItem/BankReceiptDetailsImpl.java
+10
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/mysql/orderTime/OrderTimeMapper.java
View file @
ab63f074
...
@@ -54,9 +54,16 @@ public interface OrderTimeMapper extends AbstractMapper<OrderTimeDO> {
...
@@ -54,9 +54,16 @@ public interface OrderTimeMapper extends AbstractMapper<OrderTimeDO> {
* 根据自编号获取指定类型最新的一条数据
* 根据自编号获取指定类型最新的一条数据
*
*
* @param containerNumber 自编号
* @param containerNumber 自编号
* @param status 值
* @param status
值
* @return
* @return
*/
*/
List
<
OrderTimeDO
>
newOrderTimeByContainerNumberAndStatus
(
@Param
(
"containerNumber"
)
String
containerNumber
,
@Param
(
"status"
)
Integer
status
);
List
<
OrderTimeDO
>
newOrderTimeByContainerNumberAndStatus
(
@Param
(
"containerNumber"
)
String
containerNumber
,
@Param
(
"status"
)
Integer
status
);
List
<
OrderTimeDO
>
newOrderTimeByOrderIdAndStatus
(
@Param
(
"orderId"
)
Long
orderId
,
@Param
(
"status"
)
Integer
status
);
List
<
OrderTimeDO
>
newOrderTimeByOrderIdAndStatus
(
@Param
(
"orderId"
)
Long
orderId
,
@Param
(
"status"
)
Integer
status
);
//lanbm 2024-06-13 添加根据订单ID获取柜号
long
getShipment_id
(
long
orderId
);
//lanbm 2024-06-13 添加根据柜号获取卸柜时间
Date
getUlboxtime
(
long
shipmentId
);
}
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
ab63f074
...
@@ -726,22 +726,20 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -726,22 +726,20 @@ public class OrderQueryServiceImpl implements OrderQueryService {
lanbm 2024-06-11 添加的函数
lanbm 2024-06-11 添加的函数
*/
*/
private
void
getDaoCanTiam
(
List
<
OrderTimeDO
>
orderTimeList
)
{
private
void
getDaoCanTiam
(
List
<
OrderTimeDO
>
orderTimeList
)
{
/*
if
(
CollectionUtil
.
isEmpty
(
orderTimeList
))
{
List<OrderTimeDO> list = orderTimeList.stream().
filter(i -> i.getTitleZh() == "到仓").collect(Collectors.toList());
if (CollectionUtil.isEmpty(list)) {
return
;
return
;
}*/
}
for
(
OrderTimeDO
i:
orderTimeList
)
{
if
(
i
.
getTitleZh
()!=
null
&&
i
.
getTitleZh
()==
"到仓"
)
{
//i.getBusinessTime();
long
l
=
i
.
getOrderId
();
for
(
OrderTimeDO
i
:
orderTimeList
)
{
if
(
i
.
getTitleZh
()
!=
null
&&
i
.
getTitleZh
().
equals
(
"到仓"
))
{
//i.getBusinessTime();
long
l
=
i
.
getOrderId
();
long
shpId
=
orderTimeMapper
.
getShipment_id
(
l
);
Date
d
=
orderTimeMapper
.
getUlboxtime
(
shpId
);
if
(
d
!=
null
)
i
.
setBusinessTime
(
d
);
}
}
}
}
}
}
@NotNull
@NotNull
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderTimeMapper.xml
View file @
ab63f074
<?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.order.dal.mysql.orderTime.OrderTimeMapper"
>
<mapper
namespace=
"cn.iocoder.yudao.module.order.dal.mysql.orderTime.OrderTimeMapper"
>
<!--
<!--根据订单获取柜号 lanbm 2024-06-13 add-->
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
<select
id=
"getShipment_id"
resultType=
"java.lang.Long"
>
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
SELECT DISTINCT shipment_id from ecw_box_load_info
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
where order_id=#{orderId}
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
</select>
-->
<!--根据柜号获取卸柜时间 lanbm 2024-06-13 add-->
<select
id=
"getUlboxtime"
resultType=
"java.util.Date"
>
select ul_box_time from ecw_box_cabinet_unload
where shipment_id=#{shipmentId}
</select>
<select
id=
"newOrderTimeByContainerNumberAndStatus"
resultType=
"cn.iocoder.yudao.module.order.dal.dataobject.orderTime.OrderTimeDO"
>
<select
id=
"newOrderTimeByContainerNumberAndStatus"
resultType=
"cn.iocoder.yudao.module.order.dal.dataobject.orderTime.OrderTimeDO"
>
SELECT
SELECT
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receiptItem/BankReceiptDetailsImpl.java
View file @
ab63f074
...
@@ -63,6 +63,16 @@ public class BankReceiptDetailsImpl implements BankReceiptDetailsService {
...
@@ -63,6 +63,16 @@ public class BankReceiptDetailsImpl implements BankReceiptDetailsService {
r
.
setCreator
(
userMap
.
get
(
l
));
r
.
setCreator
(
userMap
.
get
(
l
));
}
}
r
.
setAttrList
(
getFileList
(
r
.
getAttr
()));
r
.
setAttrList
(
getFileList
(
r
.
getAttr
()));
if
(
r
.
getCreateBpm
()==
null
||
r
.
getCreator
().
length
()==
0
)
{
r
.
setCreateBpm
(
""
);
}
else
{
Long
l2
=
Long
.
parseLong
(
r
.
getCreateBpm
());
r
.
setCreateBpm
(
userMap
.
get
(
l2
));
}
}
}
return
new
PageResult
<>(
list
,
total
,
mpPage
.
getSize
(),
return
new
PageResult
<>(
list
,
total
,
mpPage
.
getSize
(),
req
.
getPageNo
(),
(
total
+
mpPage
.
getSize
()
-
1
)
/
mpPage
.
getSize
());
req
.
getPageNo
(),
(
total
+
mpPage
.
getSize
()
-
1
)
/
mpPage
.
getSize
());
...
...
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