喻健
2018-11-22 2bdc59bc1c92463eca060604a7d93a3d10eff96c
队员邀请成功时间、更新时间
1个文件已修改
9 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/mapping/ThreeSaleMapper.xml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/ThreeSaleMapper.xml
@@ -129,9 +129,10 @@
    <update id="effectThreeSale" parameterType="java.lang.Long">
        update
        yeshi_ec_threeSale t
        set t.state=1 where t.state=0 and t.worker_id=#{0}  AND (t.expire = 0  OR  t.expire IS NULL)
        update     yeshi_ec_threeSale t set t.state=1,
        t.succeedTime = <![CDATA[UNIX_TIMESTAMP(CURRENT_TIMESTAMP()) * 1000]]>,
        t.updateTime = <![CDATA[UNIX_TIMESTAMP(CURRENT_TIMESTAMP()) * 1000]]>
        where t.state=0 and t.worker_id=#{0}  AND (t.expire = 0  OR  t.expire IS NULL)
    </update>
        <!-- 查询一度队员集合 -->
@@ -197,7 +198,7 @@
    <update id="updateExpire" parameterType="java.lang.Long">
        update
        yeshi_ec_threeSale t
        set t.expire = 1
        set t.expire = 1, t.updateTime = <![CDATA[UNIX_TIMESTAMP(CURRENT_TIMESTAMP()) * 1000]]>
        where  t.`id` IN <foreach item="item" collection="list" open="(" separator=","
            close=")">#{item}</foreach>
    </update>