|
@@ -6,6 +6,7 @@
|
|
|
<result column="date" jdbcType="VARCHAR" property="date" />
|
|
|
<result column="corp_id" jdbcType="BIGINT" property="corpId" />
|
|
|
<result column="staff_id" jdbcType="BIGINT" property="staffId" />
|
|
|
+ <result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
<result column="stat_time" jdbcType="BIGINT" property="statTime" />
|
|
|
<result column="new_chat_cnt" jdbcType="INTEGER" property="newChatCnt" />
|
|
|
<result column="chat_total" jdbcType="INTEGER" property="chatTotal" />
|
|
@@ -77,7 +78,7 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, `date`, corp_id, staff_id, stat_time, new_chat_cnt, chat_total, chat_has_msg,
|
|
|
+ id, `date`, corp_id, staff_id, user_id, stat_time, new_chat_cnt, chat_total, chat_has_msg,
|
|
|
new_member_cnt, member_total, member_has_msg, msg_total, migrate_trainee_chat_cnt,
|
|
|
create_time, update_time
|
|
|
</sql>
|
|
@@ -116,17 +117,17 @@
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.growth.common.model.po.StaffGroupStatisticsTotal">
|
|
|
insert into we_com_staff_group_statistics_total (id, `date`, corp_id,
|
|
|
- staff_id, stat_time, new_chat_cnt,
|
|
|
- chat_total, chat_has_msg, new_member_cnt,
|
|
|
- member_total, member_has_msg, msg_total,
|
|
|
- migrate_trainee_chat_cnt, create_time, update_time
|
|
|
- )
|
|
|
+ staff_id, user_id, stat_time,
|
|
|
+ new_chat_cnt, chat_total, chat_has_msg,
|
|
|
+ new_member_cnt, member_total, member_has_msg,
|
|
|
+ msg_total, migrate_trainee_chat_cnt, create_time,
|
|
|
+ update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{date,jdbcType=VARCHAR}, #{corpId,jdbcType=BIGINT},
|
|
|
- #{staffId,jdbcType=BIGINT}, #{statTime,jdbcType=BIGINT}, #{newChatCnt,jdbcType=INTEGER},
|
|
|
- #{chatTotal,jdbcType=INTEGER}, #{chatHasMsg,jdbcType=INTEGER}, #{newMemberCnt,jdbcType=INTEGER},
|
|
|
- #{memberTotal,jdbcType=INTEGER}, #{memberHasMsg,jdbcType=INTEGER}, #{msgTotal,jdbcType=INTEGER},
|
|
|
- #{migrateTraineeChatCnt,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ #{staffId,jdbcType=BIGINT}, #{userId,jdbcType=VARCHAR}, #{statTime,jdbcType=BIGINT},
|
|
|
+ #{newChatCnt,jdbcType=INTEGER}, #{chatTotal,jdbcType=INTEGER}, #{chatHasMsg,jdbcType=INTEGER},
|
|
|
+ #{newMemberCnt,jdbcType=INTEGER}, #{memberTotal,jdbcType=INTEGER}, #{memberHasMsg,jdbcType=INTEGER},
|
|
|
+ #{msgTotal,jdbcType=INTEGER}, #{migrateTraineeChatCnt,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.growth.common.model.po.StaffGroupStatisticsTotal">
|
|
|
insert into we_com_staff_group_statistics_total
|
|
@@ -143,6 +144,9 @@
|
|
|
<if test="staffId != null">
|
|
|
staff_id,
|
|
|
</if>
|
|
|
+ <if test="userId != null">
|
|
|
+ user_id,
|
|
|
+ </if>
|
|
|
<if test="statTime != null">
|
|
|
stat_time,
|
|
|
</if>
|
|
@@ -190,6 +194,9 @@
|
|
|
<if test="staffId != null">
|
|
|
#{staffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="userId != null">
|
|
|
+ #{userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="statTime != null">
|
|
|
#{statTime,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -246,6 +253,9 @@
|
|
|
<if test="record.staffId != null">
|
|
|
staff_id = #{record.staffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.userId != null">
|
|
|
+ user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.statTime != null">
|
|
|
stat_time = #{record.statTime,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -290,6 +300,7 @@
|
|
|
`date` = #{record.date,jdbcType=VARCHAR},
|
|
|
corp_id = #{record.corpId,jdbcType=BIGINT},
|
|
|
staff_id = #{record.staffId,jdbcType=BIGINT},
|
|
|
+ user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
stat_time = #{record.statTime,jdbcType=BIGINT},
|
|
|
new_chat_cnt = #{record.newChatCnt,jdbcType=INTEGER},
|
|
|
chat_total = #{record.chatTotal,jdbcType=INTEGER},
|
|
@@ -317,6 +328,9 @@
|
|
|
<if test="staffId != null">
|
|
|
staff_id = #{staffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="userId != null">
|
|
|
+ user_id = #{userId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="statTime != null">
|
|
|
stat_time = #{statTime,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -358,6 +372,7 @@
|
|
|
set `date` = #{date,jdbcType=VARCHAR},
|
|
|
corp_id = #{corpId,jdbcType=BIGINT},
|
|
|
staff_id = #{staffId,jdbcType=BIGINT},
|
|
|
+ user_id = #{userId,jdbcType=VARCHAR},
|
|
|
stat_time = #{statTime,jdbcType=BIGINT},
|
|
|
new_chat_cnt = #{newChatCnt,jdbcType=INTEGER},
|
|
|
chat_total = #{chatTotal,jdbcType=INTEGER},
|