1234567891011121314151617181920212223242526272829303132333435363738 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.tzld.piaoquan.api.dao.mapper.contentplatform.ext.ContentPlatformGzhAccountMapperExt">
- <select id="getGhIdExists"
- resultType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformAccount">
- select *
- from content_platform_gzh_account
- where gh_id = #{ghId}
- <if test="id!= null">
- and create_account_id != #{id}
- </if>
- limit 1
- </select>
- <select id="getCooperateAccountCount" resultType="java.lang.Integer">
- select count(1)
- from content_platform_gzh_account
- where create_account_id = #{createAccountId}
- </select>
- <select id="getCooperateAccountList"
- resultType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformGzhAccount">
- select *
- from content_platform_gzh_account
- where create_account_id = #{createAccountId}
- order by create_timestamp desc
- limit #{offset}, #{pageSize}
- </select>
- <select id="getGzhAccountList" resultType="com.tzld.piaoquan.api.model.vo.contentplatform.GzhAccountItem">
- select id, name
- from content_platform_gzh_account
- where create_account_id = #{createAccountId}
- order by create_timestamp desc
- </select>
- </mapper>
|