ContractMapper.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.common.model.Contract;
  5. import com.goafanti.contract.bo.ContractSerialNumber;
  6. import com.goafanti.common.model.ContractExample;
  7. import com.goafanti.common.model.ContractTask;
  8. public interface ContractMapper {
  9. /**
  10. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  11. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  12. */
  13. long countByExample(ContractExample example);
  14. /**
  15. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  16. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  17. */
  18. int deleteByExample(ContractExample example);
  19. /**
  20. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  21. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  22. */
  23. int deleteByPrimaryKey(String id);
  24. /**
  25. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  26. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  27. */
  28. int insert(Contract record);
  29. /**
  30. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  31. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  32. */
  33. int insertSelective(Contract record);
  34. /**
  35. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  36. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  37. */
  38. List<Contract> selectByExample(ContractExample example);
  39. /**
  40. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  41. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  42. */
  43. Contract selectByPrimaryKey(String id);
  44. /**
  45. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  46. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  47. */
  48. int updateByExampleSelective(@Param("record") Contract record, @Param("example") ContractExample example);
  49. /**
  50. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  51. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  52. */
  53. int updateByExample(@Param("record") Contract record, @Param("example") ContractExample example);
  54. /**
  55. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  56. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  57. */
  58. int updateByPrimaryKeySelective(Contract record);
  59. /**
  60. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  61. * @mbg.generated Fri Mar 02 14:48:59 CST 2018
  62. */
  63. int updateByPrimaryKey(Contract record);
  64. List<ContractSerialNumber> selectContractSerialNumber(String principal);
  65. int batchDeleteByPrimaryKey(List<String> id);
  66. Contract findByUidAndYear(@Param("uid") String uid, @Param("year")Integer year);
  67. Contract findLatelyRecordByUid(String uid);
  68. com.goafanti.contract.bo.ContractDetail selectContractDetail(String id);
  69. /**
  70. * 批量插入和同明细
  71. * @param contractDetailList
  72. */
  73. void batchInsert(@Param("list")List<ContractTask> list);
  74. /**
  75. * 删除项目任务
  76. * @param taskId
  77. * @return
  78. */
  79. int deleteProjectTask(String taskId);
  80. }