PtlNewCarJudgeRulesService.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.ydtech.modules.protocol.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.ydtech.core.page.HttpResult;
  4. import com.ydtech.core.page.PageResult;
  5. import com.ydtech.modules.protocol.entity.po.PtlNewCarJudgeRules;
  6. import com.ydtech.modules.protocol.entity.vo.PtlNewCarJudgeRulesVo;
  7. import java.util.List;
  8. /**
  9. * @author CXP
  10. * @description 针对表【ptl_new_car_judge_rules(新车判断规则)】的数据库操作Service
  11. * @createDate 2023-08-11 15:50:20
  12. */
  13. public interface PtlNewCarJudgeRulesService extends IService<PtlNewCarJudgeRules> {
  14. /**
  15. * 添加新车判断规则
  16. *
  17. * @param newCarJudgeRulesVo 新车判断规则保存实体
  18. * @return HttpResult
  19. */
  20. HttpResult<Object> saveNewCarJudgeRules(PtlNewCarJudgeRulesVo newCarJudgeRulesVo);
  21. /**
  22. * 修改新车判断规则
  23. *
  24. * @param ruleId 规则id
  25. * @param newCarJudgeRulesVo 新车判断规则保存实体
  26. * @return HttpResult
  27. */
  28. HttpResult<Object> reviseNewCarJudgeRules(String ruleId, PtlNewCarJudgeRulesVo newCarJudgeRulesVo);
  29. /**
  30. * 通过规则id查询所有信息
  31. *
  32. * @param ruleId 规则id
  33. * @return PtlNonCarInsuranceProductQueryVo
  34. */
  35. HttpResult<PtlNewCarJudgeRulesVo> getByRuleId(String ruleId);
  36. /**
  37. * 删除新车判断规则
  38. *
  39. * @param ruleId 规则id
  40. * @return HttpResult
  41. */
  42. HttpResult<Object> deleteByRuleId(String ruleId);
  43. /**
  44. * 分页查询
  45. *
  46. * @param newCarJudgeRulesVo 新车判断规则查询实体
  47. * @return HttpResult<PageResult < PtlNewCarJudgeRules>>
  48. */
  49. HttpResult<PageResult<PtlNewCarJudgeRules>> pageNewCarJudgeRules(PtlNewCarJudgeRulesVo newCarJudgeRulesVo);
  50. /**
  51. * 通过保险公司编号查询新车判断规则
  52. *
  53. * @param companyId 保险公司编号
  54. * @return List<PtlNonCarInsuranceProduct>
  55. */
  56. HttpResult<List<PtlNewCarJudgeRules>> getByCompanyId(String companyId);
  57. }