admin
2021-01-15 5405154d6979f1b50ce2d881bb164b1acca80b6d
service-lucky/src/main/resources/mapper/LuckySponsorsMapper.xml
@@ -28,6 +28,14 @@
    </select>
    <select id="selectByPrimaryKeyForUpdate" parameterType="java.lang.Long" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from lucky_sponsors
        where id = #{id,jdbcType=BIGINT} for update
    </select>
    <!-- 非模板 -->
    <sql id="listWhere">
        <if test="query.state!=null">
@@ -68,7 +76,7 @@
    <select id="count" resultType="java.lang.Long">
        select
       count(*)
        count(*)
        from lucky_sponsors
        where 1=1
        <include refid="listWhere"></include>