HsFlowCcServiceImpl.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.willalp.flow.service.impl;
  2. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  3. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4. import com.willalp.common.utils.StringUtils;
  5. import com.willalp.flow.domain.HsFlowCc;
  6. import com.willalp.flow.mapper.HsFlowCcMapper;
  7. import com.willalp.flow.service.IHsFlowCcService;
  8. import org.springframework.stereotype.Service;
  9. import javax.annotation.Resource;
  10. import java.util.ArrayList;
  11. import java.util.List;
  12. /**
  13. * 流程单抄送记录Service业务层处理
  14. *
  15. * @author willalp
  16. * @date 2023-02-14
  17. */
  18. @Service
  19. public class HsFlowCcServiceImpl extends ServiceImpl<HsFlowCcMapper, HsFlowCc> implements IHsFlowCcService
  20. {
  21. @Resource
  22. private HsFlowCcMapper hsFlowCcMapper;
  23. /**
  24. * 查询流程单抄送记录列表
  25. *
  26. * @param hsFlowCc 流程单抄送记录
  27. * @return 流程单抄送记录
  28. */
  29. @Override
  30. public List<HsFlowCc> selectHsFlowCcList(HsFlowCc hsFlowCc)
  31. {
  32. return hsFlowCcMapper.selectHsFlowCcList(hsFlowCc);
  33. }
  34. @Override
  35. public List<HsFlowCc> selectHsFlowCcListByUserId(String userId) {
  36. if (StringUtils.isBlank(userId)) {
  37. return new ArrayList<>();
  38. }
  39. return getBaseMapper().selectList(new QueryWrapper<HsFlowCc>().last("where locate('" + userId + "',users) order by update_time desc"));
  40. }
  41. }