package com.chinaweal.aiccs.aiccs.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.chinaweal.aiccs.aiccs.business.entity.TSHwfProcessNode;
import com.chinaweal.aiccs.aiccs.business.mapper.TSHwfProcessNodeMapper;
import com.chinaweal.aiccs.aiccs.business.service.TSHwfProcessNodeService;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 流程实例节点 服务实现类
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-29
 */
@Service
public class TSHwfProcessNodeServiceImpl extends BaseServiceImpl<TSHwfProcessNodeMapper, TSHwfProcessNode> implements TSHwfProcessNodeService {

    @Override
    public List<TSHwfProcessNode> findHwfProcessNodeByProcessid(String processId) {
        return list(new LambdaQueryWrapper<TSHwfProcessNode>().eq(TSHwfProcessNode::getProcessid, processId).orderByAsc(TSHwfProcessNode::getLauptime));
    }
}
