package com.usoft.credit.dal.mapper;

import com.usoft.credit.dal.entity.PersonJson;
import com.usoft.credit.dal.entity.PersonJsonWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface PersonJsonMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PersonJsonWithBLOBs record);

    int insertSelective(PersonJsonWithBLOBs record);

    PersonJsonWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PersonJsonWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(PersonJsonWithBLOBs record);

    int updateByPrimaryKey(PersonJson record);

    PersonJsonWithBLOBs findByCreateTime(@Param("date") Date date,
                                         @Param("personname")String personname,
                                         @Param("documentno")String documentno);
}