package com.goafanti.common.dao; import java.util.List; import org.apache.ibatis.annotations.Param; import com.goafanti.common.model.Contract; import com.goafanti.contract.bo.ContractSerialNumber; import com.goafanti.common.model.ContractExample; import com.goafanti.common.model.ContractTask; import com.goafanti.common.model.TmpTable; public interface ContractMapper { /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ long countByExample(ContractExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int deleteByExample(ContractExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int deleteByPrimaryKey(String id); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int insert(Contract record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int insertSelective(Contract record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ List selectByExample(ContractExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ Contract selectByPrimaryKey(String id); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int updateByExampleSelective(@Param("record") Contract record, @Param("example") ContractExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int updateByExample(@Param("record") Contract record, @Param("example") ContractExample example); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int updateByPrimaryKeySelective(Contract record); /** * This method was generated by MyBatis Generator. This method corresponds to the database table contract * @mbg.generated Wed Apr 11 14:31:13 CST 2018 */ int updateByPrimaryKey(Contract record); List selectContractSerialNumber(String principal); int batchDeleteByPrimaryKey(List id); Contract findByUidAndYear(@Param("uid") String uid, @Param("year")Integer year); Contract findLatelyRecordByUid(String uid); com.goafanti.contract.bo.ContractDetail selectContractDetail(String id); /** * 批量插入和同明细 * @param contractDetailList */ void batchInsert(@Param("list")List list); /** * 删除项目任务 * @param taskId * @return */ int deleteProjectTask(String taskId); /** * 修复派单数据 * @param orderNo * @param taskDistribution * @return */ int updateRepairData(@Param("contractId")String contractId,@Param("taskDistribution") int taskDistribution); int selectTaskAllCount(@Param("contractId")String contractId); int selectTaskDisCount(@Param("contractId")String contractId); }