| | |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from lt_user where id = #{id, jdbcType=BIGINT} |
| | | from mm_user where id = #{id, jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | <select id="selectByPrimaryKeyForUpdate" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from lt_user where id = #{id,jdbcType=BIGINT} for update |
| | | from mm_user where id = #{id,jdbcType=BIGINT} for update |
| | | </select> |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | delete from |
| | | lt_user where id = #{id,jdbcType=BIGINT} |
| | | mm_user where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" |
| | | parameterType="com.ks.app.entity.user.UserInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into |
| | | lt_user |
| | | mm_user |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | system, |
| | | nick_name, |
| | |
| | | <insert id="insertSelective" |
| | | parameterType="com.ks.app.entity.user.UserInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into lt_user |
| | | insert into mm_user |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="system != null">system,</if> |
| | |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.ks.app.entity.user.UserInfo"> |
| | | update lt_user |
| | | update mm_user |
| | | <set> |
| | | <if test="id != null">id = #{id,jdbcType=BIGINT},</if> |
| | | <if test="system != null">system = #{system,jdbcType=VARCHAR},</if> |
| | |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.ks.app.entity.user.UserInfo"> |
| | | update lt_user |
| | | update mm_user |
| | | <set> |
| | | <if test="system != null">system = #{system,jdbcType=VARCHAR},</if> |
| | | <if test="nickName != null">nick_name = #{nickName,jdbcType=VARCHAR},</if> |
| | |
| | | </update> |
| | | |
| | | <sql id="listWhere"> |
| | | |
| | | <if test="query.system!=null"> |
| | | and system = #{query.system} |
| | | </if> |
| | |
| | | <if test="query.email!=null"> |
| | | and email = #{query.email} |
| | | </if> |
| | | |
| | | <if test="query.maxCreateTime!=null"> |
| | | and create_time <![CDATA[<]]> #{query.maxCreateTime} |
| | | </if> |
| | |
| | | </if> |
| | | |
| | | <if test="query.status!=null"> |
| | | and status >= #{query.status} |
| | | and status = #{query.status} |
| | | </if> |
| | | </sql> |
| | | |
| | | <select id="list" |
| | | resultMap="BaseResultMap"> |
| | | SELECT * FROM lt_user |
| | | SELECT * FROM mm_user |
| | | <where> |
| | | <include refid="listWhere"> |
| | | </include> |
| | |
| | | |
| | | <select id="listByUids" |
| | | resultMap="BaseResultMap"> |
| | | SELECT * FROM lt_user |
| | | SELECT * FROM mm_user |
| | | <foreach collection="uidList" open=" where " separator=" or " item="uid"> |
| | | id= #{uid} |
| | | </foreach> |
| | |
| | | |
| | | <select id="count" |
| | | resultType="java.lang.Long"> |
| | | SELECT count(*) FROM lt_user |
| | | SELECT count(*) FROM mm_user |
| | | <where> |
| | | <include refid="listWhere"> |
| | | </include> |
| | |
| | | <select id="statisticByCreateTime" |
| | | resultMap="com.ks.app.mapper.basemapper.Statistic_Number_BaseResultMap"> |
| | | |
| | | SELECT DATE_FORMAT(l.`create_time`,'${timeQuery.timeFormat}') AS time,COUNT(*) AS number FROM lt_user l WHERE |
| | | SELECT DATE_FORMAT(l.`create_time`,'${timeQuery.timeFormat}') AS time,COUNT(*) AS number FROM mm_user l WHERE |
| | | l.`create_time`>#{timeQuery.startTime} AND #{timeQuery.endTime}>l.`create_time` |
| | | <if test="system!=null"> |
| | | and system=#{system} |