AmsContractBreachMapper.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.steerinfo.dil.mapper;
  2. import com.steerinfo.dil.model.AmsContractBreach;
  3. import com.steerinfo.dil.model.AmsContractTransportPrice;
  4. import com.steerinfo.framework.mapper.IBaseMapper;
  5. import java.math.*;
  6. import java.util.List;
  7. import java.util.Map;
  8. import org.apache.ibatis.annotations.Mapper;
  9. import org.apache.ibatis.annotations.Select;
  10. @Mapper
  11. public interface AmsContractBreachMapper extends IBaseMapper<AmsContractBreach, BigDecimal> {
  12. /**
  13. * 得到最大id
  14. * @return
  15. */
  16. BigDecimal selectMaxId();
  17. /**
  18. * 展示所有违约规则信息
  19. * @param mapValue
  20. * @return
  21. */
  22. List<Map<String,Object>> getBreachList(Map<String,Object> mapValue);
  23. /**
  24. * 得到修改渲染
  25. * @param breachId
  26. * @return
  27. */
  28. List<Map<String,Object>> selectBreachToUpdate(BigDecimal breachId);
  29. /**
  30. * 新增
  31. * @param amsContractBreach
  32. * @return
  33. */
  34. int insert(AmsContractBreach amsContractBreach);
  35. /**
  36. * 修改
  37. * @param amsContractBreach
  38. * @return
  39. */
  40. int updateByPrimaryKeySelective(AmsContractBreach amsContractBreach);
  41. @Select("select seq_AMS_BREACH.nextval from dual")
  42. BigDecimal selectBreachId();
  43. }