and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
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
delete from we_com_staff_group_statistics_total
where id = #{id,jdbcType=BIGINT}
delete from we_com_staff_group_statistics_total
insert into we_com_staff_group_statistics_total (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)
values (#{id,jdbcType=BIGINT}, #{date,jdbcType=VARCHAR}, #{corpId,jdbcType=BIGINT},
#{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 into we_com_staff_group_statistics_total
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,
#{id,jdbcType=BIGINT},
#{date,jdbcType=VARCHAR},
#{corpId,jdbcType=BIGINT},
#{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},
update we_com_staff_group_statistics_total
id = #{record.id,jdbcType=BIGINT},
`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},
chat_has_msg = #{record.chatHasMsg,jdbcType=INTEGER},
new_member_cnt = #{record.newMemberCnt,jdbcType=INTEGER},
member_total = #{record.memberTotal,jdbcType=INTEGER},
member_has_msg = #{record.memberHasMsg,jdbcType=INTEGER},
msg_total = #{record.msgTotal,jdbcType=INTEGER},
migrate_trainee_chat_cnt = #{record.migrateTraineeChatCnt,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update we_com_staff_group_statistics_total
set id = #{record.id,jdbcType=BIGINT},
`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},
chat_has_msg = #{record.chatHasMsg,jdbcType=INTEGER},
new_member_cnt = #{record.newMemberCnt,jdbcType=INTEGER},
member_total = #{record.memberTotal,jdbcType=INTEGER},
member_has_msg = #{record.memberHasMsg,jdbcType=INTEGER},
msg_total = #{record.msgTotal,jdbcType=INTEGER},
migrate_trainee_chat_cnt = #{record.migrateTraineeChatCnt,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
update we_com_staff_group_statistics_total
`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},
chat_has_msg = #{chatHasMsg,jdbcType=INTEGER},
new_member_cnt = #{newMemberCnt,jdbcType=INTEGER},
member_total = #{memberTotal,jdbcType=INTEGER},
member_has_msg = #{memberHasMsg,jdbcType=INTEGER},
msg_total = #{msgTotal,jdbcType=INTEGER},
migrate_trainee_chat_cnt = #{migrateTraineeChatCnt,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=BIGINT}
update we_com_staff_group_statistics_total
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},
chat_has_msg = #{chatHasMsg,jdbcType=INTEGER},
new_member_cnt = #{newMemberCnt,jdbcType=INTEGER},
member_total = #{memberTotal,jdbcType=INTEGER},
member_has_msg = #{memberHasMsg,jdbcType=INTEGER},
msg_total = #{msgTotal,jdbcType=INTEGER},
migrate_trainee_chat_cnt = #{migrateTraineeChatCnt,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}