ContractMapper.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. import com.goafanti.common.model.TmpTable;
  9. public interface ContractMapper {
  10. /**
  11. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  12. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  13. */
  14. long countByExample(ContractExample example);
  15. /**
  16. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  17. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  18. */
  19. int deleteByExample(ContractExample example);
  20. /**
  21. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  22. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  23. */
  24. int deleteByPrimaryKey(String id);
  25. /**
  26. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  27. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  28. */
  29. int insert(Contract record);
  30. /**
  31. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  32. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  33. */
  34. int insertSelective(Contract record);
  35. /**
  36. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  37. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  38. */
  39. List<Contract> selectByExample(ContractExample example);
  40. /**
  41. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  42. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  43. */
  44. Contract selectByPrimaryKey(String id);
  45. /**
  46. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  47. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  48. */
  49. int updateByExampleSelective(@Param("record") Contract record, @Param("example") ContractExample example);
  50. /**
  51. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  52. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  53. */
  54. int updateByExample(@Param("record") Contract record, @Param("example") ContractExample example);
  55. /**
  56. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  57. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  58. */
  59. int updateByPrimaryKeySelective(Contract record);
  60. /**
  61. * This method was generated by MyBatis Generator. This method corresponds to the database table contract
  62. * @mbg.generated Wed Apr 11 14:31:13 CST 2018
  63. */
  64. int updateByPrimaryKey(Contract record);
  65. List<ContractSerialNumber> selectContractSerialNumber(String principal);
  66. int batchDeleteByPrimaryKey(List<String> id);
  67. Contract findByUidAndYear(@Param("uid") String uid, @Param("year")Integer year);
  68. Contract findLatelyRecordByUid(String uid);
  69. com.goafanti.contract.bo.ContractDetail selectContractDetail(String id);
  70. /**
  71. * 批量插入和同明细
  72. * @param contractDetailList
  73. */
  74. void batchInsert(@Param("list")List<ContractTask> list);
  75. /**
  76. * 删除项目任务
  77. * @param taskId
  78. * @return
  79. */
  80. int deleteProjectTask(String taskId);
  81. /**
  82. * 修复派单数据
  83. * @param orderNo
  84. * @param taskDistribution
  85. * @return
  86. */
  87. int updateRepairData(@Param("contractId")String contractId,@Param("taskDistribution") int taskDistribution);
  88. int selectTaskAllCount(@Param("contractId")String contractId);
  89. int selectTaskDisCount(@Param("contractId")String contractId);
  90. }