WechatUserInfoMapper.xml
2.9 KB
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
40
41
42
43
44
45
<?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="cn.com.glsx.dj.wechat.mapper.WechatUserInfoMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.wechat.model.WechatUserInfo">
<id column="ID" jdbcType="INTEGER" property="id" />
<result column="ACCOUNT_ID" jdbcType="INTEGER" property="accountId" />
<result column="USER_TYPE" jdbcType="CHAR" property="userType" />
<result column="NICK_NAME" jdbcType="VARCHAR" property="nickName" />
<result column="PHONE" jdbcType="VARCHAR" property="phone" />
<result column="SEX" jdbcType="INTEGER" property="sex" />
<result column="LOGO" jdbcType="VARCHAR" property="logo" />
<result column="PROVINCE" jdbcType="VARCHAR" property="province" />
<result column="CITY" jdbcType="VARCHAR" property="city" />
<result column="ADDRESS" jdbcType="VARCHAR" property="address" />
<result column="CONCERN_TIME" jdbcType="VARCHAR" property="concernTime" />
<result column="SCENE_ID" jdbcType="VARCHAR" property="sceneId" />
<result column="LAST_LOGIN_TIME" jdbcType="TIMESTAMP" property="lastLoginTime" />
<result column="LATITUDE" jdbcType="VARCHAR" property="latitude" />
<result column="LONGITUDE" jdbcType="VARCHAR" property="longitude" />
<result column="PRECISIONS" jdbcType="VARCHAR" property="precisions" />
<result column="OPEN_ID" jdbcType="VARCHAR" property="openId" />
<result column="UNION_ID" jdbcType="VARCHAR" property="unionId" />
<result column="APP_ID" jdbcType="VARCHAR" property="appId" />
<result column="WX_ID" jdbcType="VARCHAR" property="wxId" />
<result column="APP_TYPE" jdbcType="VARCHAR" property="appType" />
<result column="IS_CONCERN" jdbcType="CHAR" property="isConcern" />
<result column="IS_LOGIN" jdbcType="CHAR" property="isLogin" />
<result column="UUID" property="uuid"/>
<result column="CREATED_BY" jdbcType="VARCHAR" property="createdBy" />
<result column="CREATED_DATE" jdbcType="TIMESTAMP" property="createdDate" />
<result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" />
<result column="UPDATED_DATE" jdbcType="TIMESTAMP" property="updatedDate" />
<result column="DELETED_FLAG" jdbcType="CHAR" property="deletedFlag" />
</resultMap>
<sql id="Base_Column_List">
ID, ACCOUNT_ID, USER_TYPE, NICK_NAME, PHONE, SEX, LOGO, PROVINCE, CITY, ADDRESS, CONCERN_TIME,
SCENE_ID, LAST_LOGIN_TIME, LATITUDE, LONGITUDE, PRECISIONS, OPEN_ID, UNION_ID, APP_ID,
WX_ID, APP_TYPE, IS_CONCERN, IS_LOGIN,UUID, CREATED_BY, CREATED_DATE, UPDATED_BY, UPDATED_DATE,
DELETED_FLAG
</sql>
<update id="logoutByAccountIdAndAppid" parameterType="cn.com.glsx.dj.wechat.model.WechatUserInfo">
update dj_wechat_user_info set IS_LOGIN='N',UPDATED_DATE=now() where ACCOUNT_ID=#{accountId} and APP_ID=#{appId} and DELETED_FLAG='N'
</update>
</mapper>