...
|
...
|
@@ -23,11 +23,12 @@ |
|
|
<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
|
|
<result column="remarks" property="remarks" jdbcType="VARCHAR" />
|
|
|
<result column="del_flag" property="delFlag" jdbcType="CHAR" />
|
|
|
<result column="online" property="online" jdbcType="BOOLEAN" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, company_id, office_id, login_name, password, no, name, email, phone, mobile,
|
|
|
user_type, photo, login_ip, login_date, login_flag, create_by, create_date, update_by,
|
|
|
update_date, remarks, del_flag
|
|
|
update_date, remarks, del_flag, online
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
...
|
...
|
@@ -54,6 +55,14 @@ |
|
|
from sys_user
|
|
|
where login_name = #{login_name,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectOnlineUser" resultMap="BaseResultMap" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from sys_user
|
|
|
where online > 0;
|
|
|
</select>
|
|
|
|
|
|
<update id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
update sys_user
|
|
|
set
|
...
|
...
|
@@ -274,6 +283,9 @@ |
|
|
<if test="delFlag != null" >
|
|
|
del_flag = #{delFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
|
<if test="online != null" >
|
|
|
online = #{online,jdbcType=BOOLEAN},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
...
|
...
|
@@ -298,7 +310,8 @@ |
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
|
update_date = #{updateDate,jdbcType=TIMESTAMP},
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
del_flag = #{delFlag,jdbcType=CHAR}
|
|
|
del_flag = #{delFlag,jdbcType=CHAR},
|
|
|
online = #{online,jdbcType=BOOLEAN}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
...
|
...
|
|