Commit ac35445a authored by Administrator's avatar Administrator

Merge branch 'release' into 'jd_dev'

Release代码合并到jd分支20241224

See merge request !54
parents 472125ca 437b6337
...@@ -25,6 +25,7 @@ import javax.annotation.Resource; ...@@ -25,6 +25,7 @@ import javax.annotation.Resource;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.Comparator; import java.util.Comparator;
import java.util.List; 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.pojo.CommonResult.success; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
...@@ -148,7 +149,7 @@ public class BpmTaskController { ...@@ -148,7 +149,7 @@ public class BpmTaskController {
taskExtMapper.selectListByProcessInstanceId(reqVO.getId()); taskExtMapper.selectListByProcessInstanceId(reqVO.getId());
if (taskList1 == null || taskList1.size() == 0) continue; if (taskList1 == null || taskList1.size() == 0) continue;
List<BpmTaskExtDO> taskList = taskList1.stream().filter(t -> t.getAssigneeUserId() == l.getId()). List<BpmTaskExtDO> taskList = taskList1.stream().filter(t -> Objects.equals(t.getAssigneeUserId(),l.getId())).
sorted(Comparator.comparingLong(BpmTaskExtDO::getId).reversed()). sorted(Comparator.comparingLong(BpmTaskExtDO::getId).reversed()).
collect(Collectors.toList()); collect(Collectors.toList());
if (taskList == null) continue; if (taskList == null) continue;
......
...@@ -586,7 +586,7 @@ public class OrderDO extends BaseDO { ...@@ -586,7 +586,7 @@ public class OrderDO extends BaseDO {
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty(value = "收货人信息") @ApiModelProperty(value = "收货人信息")
@NotNull(message = "收货人信息不能为空") // @NotNull(message = "收货人信息不能为空")
private OrderConsigneeDO orderConsigneeDO; private OrderConsigneeDO orderConsigneeDO;
@TableField(exist = false) @TableField(exist = false)
......
...@@ -517,7 +517,9 @@ public class MergeServiceImpl extends AbstractService<MergeMapper, MergeDO> impl ...@@ -517,7 +517,9 @@ public class MergeServiceImpl extends AbstractService<MergeMapper, MergeDO> impl
orderDO.setOrderNo(newOrderNo); orderDO.setOrderNo(newOrderNo);
//将几个id设置成空 生成新的收货 发货人和始发 目的信息 //将几个id设置成空 生成新的收货 发货人和始发 目的信息
orderDO.getOrderDepartureDO().setId(null); orderDO.getOrderDepartureDO().setId(null);
if (Objects.nonNull(orderDO.getOrderConsigneeDO())) {
orderDO.getOrderConsigneeDO().setId(null); orderDO.getOrderConsigneeDO().setId(null);
}
orderDO.getOrderConsignorDO().setId(null); orderDO.getOrderConsignorDO().setId(null);
orderDO.getOrderObjectiveDO().setId(null); orderDO.getOrderObjectiveDO().setId(null);
orderDO.setGuanLianOrderStatus(null); orderDO.setGuanLianOrderStatus(null);
......
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