PatentMapper.java 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package cn.cslg.pas.mapper;
  2. import cn.cslg.pas.common.model.QueryPatentVO;
  3. import cn.cslg.pas.common.model.dto.PatentQueryFieldSourceDTO;
  4. import cn.cslg.pas.common.model.vo.PatentQueryFieldSourceVO;
  5. import cn.cslg.pas.common.model.vo.PatentVO;
  6. import cn.cslg.pas.domain.Patent;
  7. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  8. import com.baomidou.mybatisplus.core.metadata.IPage;
  9. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  10. import org.apache.ibatis.annotations.MapKey;
  11. import org.apache.ibatis.annotations.Param;
  12. import org.apache.ibatis.annotations.Select;
  13. import java.util.List;
  14. import java.util.Map;
  15. /**
  16. * <p>
  17. * 专利信息表 Mapper 接口
  18. * </p>
  19. *
  20. * @author 王岩
  21. * @since 2021-12-26
  22. */
  23. public interface PatentMapper extends BaseMapper<Patent> {
  24. Integer getDateTime(String ids, String column, String type);
  25. Integer getDateTime2(String ids, Integer field, String type);
  26. List<Integer> getCustomFieldCount(@Param("ids") List<Integer> ids, @Param("field") Integer field, @Param("mino") String mino, @Param("maxo") String maxo, @Param("minv") Integer minv, @Param("maxv") Integer maxv);
  27. List<Integer> getCustomFieldTime(@Param("ids") List<Integer> ids, @Param("field") Integer field, @Param("startDate") Long startDate, @Param("endDate") Long endDate);
  28. @MapKey("id")
  29. Map<String, Object> getPatentListByIdAndColumn(Integer id, String column);
  30. IPage<Patent> getPageList(Page<Patent> page, @Param("params") PatentVO params);
  31. IPage<Patent> getPageListForRMS2(Page<Patent> page, @Param("params") QueryPatentVO params);
  32. List<String> getListForRMS( @Param("params")QueryPatentVO params);
  33. List<Patent> getPageList(@Param("params") PatentVO params);
  34. IPage<PatentQueryFieldSourceDTO> getPatentQuerySourcePageList(Page<Patent> page, @Param("params") PatentQueryFieldSourceVO params, @Param("ids") List<Integer> patentIds);
  35. List<PatentQueryFieldSourceDTO> getPatentQuerySourcePageList(@Param("params") PatentQueryFieldSourceVO params, @Param("ids") List<Integer> patentIds);
  36. @Select(" SELECT count(status) as count, status as label" +
  37. " FROM os_patent_affair A\n" +
  38. " where A.pid IN (SELECT op.id\n" +
  39. " FROM os_patent op\n" +
  40. " LEFT JOIN os_thematic_pid c on c.pid = op.id\n" +
  41. " where c.zid = #{projectId})\n" +
  42. " group by status ")
  43. List<PatentQueryFieldSourceDTO> getCountStatus(@Param("projectId") Integer projectId);
  44. List<Patent> getPatent(@Param("patentNo")List<String> patentNo,@Param("n")int n,@Param("p")int p);
  45. int getPatentNumber(@Param("patentNo")List<String> patentNo);
  46. List<String> getConPantentNos(@Param("params") QueryPatentVO params);
  47. List<Patent> getConPantents(@Param("params") QueryPatentVO params);
  48. Integer getConPantentsCount(@Param("params") QueryPatentVO params);
  49. }