Commit ab63f074 authored by lanbaoming's avatar lanbaoming

Merge branch 'dev'

parents 620c3229 cbcb12d4
...@@ -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);
} }
...@@ -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
......
<?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
......
...@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment