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, cp_id, cp_name, agent_id, depart_id, depart_tag_id, agent_msg_type, msg_pic_url,
msg_details_url, org_id, data_state, create_empid, create_date, modfiy_empid, modfiy_date
delete from td_wxcp_msg_send_config
where id = #{id,jdbcType=BIGINT}
delete from td_wxcp_msg_send_config
SELECT LAST_INSERT_ID()
insert into td_wxcp_msg_send_config (cp_id, cp_name, agent_id,
depart_id, depart_tag_id, agent_msg_type,
msg_pic_url, msg_details_url, org_id,
data_state, create_empid, create_date,
modfiy_empid, modfiy_date)
values (#{cpId,jdbcType=VARCHAR}, #{cpName,jdbcType=VARCHAR}, #{agentId,jdbcType=VARCHAR},
#{departId,jdbcType=VARCHAR}, #{departTagId,jdbcType=VARCHAR}, #{agentMsgType,jdbcType=VARCHAR},
#{msgPicUrl,jdbcType=VARCHAR}, #{msgDetailsUrl,jdbcType=VARCHAR}, #{orgId,jdbcType=BIGINT},
#{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},
#{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP})
SELECT LAST_INSERT_ID()
insert into td_wxcp_msg_send_config
cp_id,
cp_name,
agent_id,
depart_id,
depart_tag_id,
agent_msg_type,
msg_pic_url,
msg_details_url,
org_id,
data_state,
create_empid,
create_date,
modfiy_empid,
modfiy_date,
#{cpId,jdbcType=VARCHAR},
#{cpName,jdbcType=VARCHAR},
#{agentId,jdbcType=VARCHAR},
#{departId,jdbcType=VARCHAR},
#{departTagId,jdbcType=VARCHAR},
#{agentMsgType,jdbcType=VARCHAR},
#{msgPicUrl,jdbcType=VARCHAR},
#{msgDetailsUrl,jdbcType=VARCHAR},
#{orgId,jdbcType=BIGINT},
#{dataState,jdbcType=INTEGER},
#{createEmpid,jdbcType=VARCHAR},
#{createDate,jdbcType=TIMESTAMP},
#{modfiyEmpid,jdbcType=VARCHAR},
#{modfiyDate,jdbcType=TIMESTAMP},
update td_wxcp_msg_send_config
id = #{record.id,jdbcType=BIGINT},
cp_id = #{record.cpId,jdbcType=VARCHAR},
cp_name = #{record.cpName,jdbcType=VARCHAR},
agent_id = #{record.agentId,jdbcType=VARCHAR},
depart_id = #{record.departId,jdbcType=VARCHAR},
depart_tag_id = #{record.departTagId,jdbcType=VARCHAR},
agent_msg_type = #{record.agentMsgType,jdbcType=VARCHAR},
msg_pic_url = #{record.msgPicUrl,jdbcType=VARCHAR},
msg_details_url = #{record.msgDetailsUrl,jdbcType=VARCHAR},
org_id = #{record.orgId,jdbcType=BIGINT},
data_state = #{record.dataState,jdbcType=INTEGER},
create_empid = #{record.createEmpid,jdbcType=VARCHAR},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
modfiy_empid = #{record.modfiyEmpid,jdbcType=VARCHAR},
modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP},
update td_wxcp_msg_send_config
set id = #{record.id,jdbcType=BIGINT},
cp_id = #{record.cpId,jdbcType=VARCHAR},
cp_name = #{record.cpName,jdbcType=VARCHAR},
agent_id = #{record.agentId,jdbcType=VARCHAR},
depart_id = #{record.departId,jdbcType=VARCHAR},
depart_tag_id = #{record.departTagId,jdbcType=VARCHAR},
agent_msg_type = #{record.agentMsgType,jdbcType=VARCHAR},
msg_pic_url = #{record.msgPicUrl,jdbcType=VARCHAR},
msg_details_url = #{record.msgDetailsUrl,jdbcType=VARCHAR},
org_id = #{record.orgId,jdbcType=BIGINT},
data_state = #{record.dataState,jdbcType=INTEGER},
create_empid = #{record.createEmpid,jdbcType=VARCHAR},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
modfiy_empid = #{record.modfiyEmpid,jdbcType=VARCHAR},
modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP}
update td_wxcp_msg_send_config
cp_id = #{cpId,jdbcType=VARCHAR},
cp_name = #{cpName,jdbcType=VARCHAR},
agent_id = #{agentId,jdbcType=VARCHAR},
depart_id = #{departId,jdbcType=VARCHAR},
depart_tag_id = #{departTagId,jdbcType=VARCHAR},
agent_msg_type = #{agentMsgType,jdbcType=VARCHAR},
msg_pic_url = #{msgPicUrl,jdbcType=VARCHAR},
msg_details_url = #{msgDetailsUrl,jdbcType=VARCHAR},
org_id = #{orgId,jdbcType=BIGINT},
data_state = #{dataState,jdbcType=INTEGER},
create_empid = #{createEmpid,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=BIGINT}
update td_wxcp_msg_send_config
set cp_id = #{cpId,jdbcType=VARCHAR},
cp_name = #{cpName,jdbcType=VARCHAR},
agent_id = #{agentId,jdbcType=VARCHAR},
depart_id = #{departId,jdbcType=VARCHAR},
depart_tag_id = #{departTagId,jdbcType=VARCHAR},
agent_msg_type = #{agentMsgType,jdbcType=VARCHAR},
msg_pic_url = #{msgPicUrl,jdbcType=VARCHAR},
msg_details_url = #{msgDetailsUrl,jdbcType=VARCHAR},
org_id = #{orgId,jdbcType=BIGINT},
data_state = #{dataState,jdbcType=INTEGER},
create_empid = #{createEmpid,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}