CusAuditInfoDao.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.CusAuditInfo;
  10. @Mapper
  11. public interface CusAuditInfoDao {
  12. @Select("select * from cus_audit_info t where t.id = #{id}")
  13. CusAuditInfo getById(String id);
  14. @Delete("delete from cus_audit_info where id = #{id}")
  15. int delete(Long id);
  16. int update(CusAuditInfo cusAuditInfo);
  17. @Insert("insert into cus_audit_info(id,user_name, cus_self_id, openid, certified_img, audit_status, create_time, create_user, last_mod_time, last_mod_by) values(#{id},#{userName}, #{cusSelfId}, #{openid}, #{certifiedImg}, #{auditStatus}, #{createTime}, #{createUser}, #{lastModTime}, #{lastModBy})")
  18. int save(CusAuditInfo cusAuditInfo);
  19. int count(@Param("params") Map<String, Object> params);
  20. List<CusAuditInfo> list(@Param("params") Map<String, Object> params, @Param("offset") Integer offset, @Param("limit") Integer limit);
  21. // 大V审核
  22. int auditCheck(String id, String status);
  23. @Select("select * from cus_audit_info t where t.openid = #{openid}")
  24. CusAuditInfo getByOpenId(String openid);
  25. @Select("select * from cus_audit_info t where t.openid = #{openid} and t.audit_status=#{auStatus}")
  26. CusAuditInfo getByOpenIdAndStatus(String openid, String auStatus);
  27. }