TFFlowLogMapper.java 945 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.qmth.sop.business.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.qmth.sop.business.bean.result.TFFlowLogResult;
  4. import com.qmth.sop.business.entity.TFFlowLog;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * <p>
  9. * 流程流水表 Mapper 接口
  10. * </p>
  11. *
  12. * @author wangliang
  13. * @since 2023-07-17
  14. */
  15. public interface TFFlowLogMapper extends BaseMapper<TFFlowLog> {
  16. /**
  17. * 根据实体id查询
  18. *
  19. * @param objectId
  20. * @return
  21. */
  22. List<TFFlowLogResult> findByObjectId(@Param("objectId") Long objectId);
  23. /**
  24. * 查询最后一条日志审批记录
  25. *
  26. * @param flowId
  27. * @return
  28. */
  29. TFFlowLog findByLastFlowLog(@Param("flowId") Long flowId);
  30. /**
  31. * 查询最后一条日志审批记录
  32. *
  33. * @param flowId
  34. * @return
  35. */
  36. String findByLastFlowLogApproveUser(@Param("flowId") Long flowId);
  37. }