lisy
2023-07-14 7865a1010be2f95faab151d99ecdb095f44c2a08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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.dsh.account.mapper.TAppUserMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.dsh.account.entity.TAppUser">
        <id column="id" property="id" />
        <result column="code" property="code" />
        <result column="name" property="name" />
        <result column="phone" property="phone" />
        <result column="password" property="password" />
        <result column="birthday" property="birthday" />
        <result column="gender" property="gender" />
        <result column="height" property="height" />
        <result column="weight" property="weight" />
        <result column="bmi" property="bmi" />
        <result column="idCard" property="idCard" />
        <result column="openid" property="openid" />
        <result column="province" property="province" />
        <result column="provinceCode" property="provinceCode" />
        <result column="city" property="city" />
        <result column="cityCode" property="cityCode" />
        <result column="isVip" property="isVip" />
        <result column="vipEndTime" property="vipEndTime" />
        <result column="viplevelId" property="viplevelId" />
        <result column="referralUserId" property="referralUserId" />
        <result column="salesmanUserId" property="salesmanUserId" />
        <result column="state" property="state" />
        <result column="integral" property="integral" />
        <result column="playPaiCoins" property="playPaiCoins" />
        <result column="headImg" property="headImg" />
    </resultMap>
 
 
 
    <update id="membershipEnd">
        update t_app_user set isVip = 0 where isVip = 1 and now() >= vipEndTime
    </update>
</mapper>