CusSelfInfoDao.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.boot.security.server.dao;
  2. import java.util.List;
  3. import java.util.Map;
  4. import org.apache.ibatis.annotations.Delete;
  5. import org.apache.ibatis.annotations.Insert;
  6. import org.apache.ibatis.annotations.Mapper;
  7. import org.apache.ibatis.annotations.Param;
  8. import org.apache.ibatis.annotations.Select;
  9. import com.boot.security.server.model.CusSelfInfo;
  10. @Mapper
  11. public interface CusSelfInfoDao {
  12. /* @Select("select * from cus_self_info t where t.id = #{id}") */
  13. CusSelfInfo getById(String id);
  14. @Delete("delete from cus_self_info where id = #{id}")
  15. int delete(String id);
  16. int update(CusSelfInfo cusSelfInfo);
  17. @Insert("insert into cus_self_info(id,openId,user_type,nick_name, head_img, user_name, sex, phone, birth_day, email, identity,wx_number, cd_type, cd_number, marital_status, political_appearance, education, graduate_school, schooling_time_start, schooling_time_end, service_length, registered_residence, desired_province, desired_city, self_evaluation, create_time, create_user, last_mod_time, last_mod_by, status,employTypes) values(#{id},#{openId},#{userType}, #{nickName}, #{headImg}, #{userName}, #{sex}, #{phone}, #{birthDay}, #{email}, #{identity}, #{wxNumber}, #{cdType}, #{cdNumber}, #{maritalStatus}, #{politicalAppearance}, #{education}, #{graduateSchool}, #{schoolingTimeStart},#{schoolingTimeEnd}, #{serviceLength}, #{registeredResidence}, #{desiredProvince}, #{desiredCity}, #{selfEvaluation}, #{createTime}, #{createUser}, #{lastModTime}, #{lastModBy}, #{status}, #{employTypes})")
  18. int save(CusSelfInfo cusSelfInfo);
  19. int count(@Param("params") Map<String, Object> params);
  20. List<CusSelfInfo> list(@Param("params") Map<String, Object> params, @Param("offset") Integer offset, @Param("limit") Integer limit);
  21. @Select("select * from cus_self_info t where t.openId = #{openid}")
  22. CusSelfInfo getByOpenId(String openid);
  23. int updateByOpenid(CusSelfInfo cusSelfInfo);
  24. int deleteByOpenid(String openid);
  25. }