|
|
|
@ -16,19 +16,17 @@
|
|
|
|
|
*/ |
|
|
|
|
package com.logpm.factorydata.zbom.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.logpm.factorydata.enums.NodeEnums; |
|
|
|
|
import com.logpm.factorydata.zbom.entity.ZbFactoryNodeOrderEntity; |
|
|
|
|
import com.logpm.factorydata.zbom.mapper.FactoryNodeOrderMapper; |
|
|
|
|
import com.logpm.factorydata.zbom.service.IFactoryNodeOrderService; |
|
|
|
|
import com.logpm.factorydata.zbom.vo.OrderPackageSignDTO; |
|
|
|
|
import com.logpm.factorydata.zbom.vo.NodeDataDTO; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 发货单号的节点操作数据 服务实现类 |
|
|
|
|
* |
|
|
|
@ -41,21 +39,13 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
public class FactoryNodeOrderServiceImpl extends BaseServiceImpl<FactoryNodeOrderMapper, ZbFactoryNodeOrderEntity> implements IFactoryNodeOrderService { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void updateNodeOrder(OrderPackageSignDTO nodeConfirmParam) { |
|
|
|
|
LambdaQueryWrapper<ZbFactoryNodeOrderEntity> wrapper = Wrappers.<ZbFactoryNodeOrderEntity>lambdaQuery() |
|
|
|
|
.eq(ZbFactoryNodeOrderEntity::getPlatformOrderCode, nodeConfirmParam.getPlatformOrderCode()) |
|
|
|
|
.eq(ZbFactoryNodeOrderEntity::getDepartCode, nodeConfirmParam.getDepartCode()); |
|
|
|
|
ZbFactoryNodeOrderEntity zbFactoryNodeOrderEntity = this.baseMapper.selectOne(wrapper); |
|
|
|
|
if (ObjectUtil.isEmpty(zbFactoryNodeOrderEntity)) { |
|
|
|
|
zbFactoryNodeOrderEntity = new ZbFactoryNodeOrderEntity(); |
|
|
|
|
zbFactoryNodeOrderEntity.setPlatformOrderCode(nodeConfirmParam.getPlatformOrderCode()); |
|
|
|
|
zbFactoryNodeOrderEntity.setDepartCode(nodeConfirmParam.getDepartCode()); |
|
|
|
|
} |
|
|
|
|
zbFactoryNodeOrderEntity.setPushNode(NodeEnums.CLERK_REVIEW.getCode().toString()); |
|
|
|
|
// String pushNode = zbFactoryNodeOrderEntity.getPushNode();
|
|
|
|
|
// String join = StrUtil.join(",", pushNode, NodeEnums.CLERK_REVIEW.getCode());
|
|
|
|
|
// zbFactoryNodeOrderEntity.setPushNode(join);
|
|
|
|
|
this.saveOrUpdate(zbFactoryNodeOrderEntity); |
|
|
|
|
public void updateNodeOrder(ZbFactoryNodeOrderEntity nodeConfirmParam) { |
|
|
|
|
this.saveOrUpdate(nodeConfirmParam); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<ZbFactoryNodeOrderEntity> findHistoryNodeOrder(List<NodeDataDTO> orders) { |
|
|
|
|
return baseMapper.findHistoryNodeOrder(orders); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|