select thisTab.id, thisTab.customer_full_name, thisTab.customer_short_name, thisTab.customer_type, thisTab.contact_person, thisTab.address, thisTab.contact_phone, thisTab.customer_code, thisTab.status, thisTab.remark, thisTab.create_by, thisTab.update_by, thisTab.create_time, thisTab.update_time, thisTab.deleted from customer_management AS thisTab
select count(0) from customer_management as thisTab
and thisTab.customer_full_name like concat('%', #{customerFullName}, '%')
and thisTab.customer_short_name like concat('%', #{customerShortName}, '%')
and thisTab.customer_type = #{customerType}
and thisTab.contact_person = #{contactPerson}
and thisTab.address = #{address}
and thisTab.contact_phone = #{contactPhone}
and thisTab.customer_code = #{customerCode}
and thisTab.status = #{status}
and thisTab.deleted = #{deleted}
insert into customer_management
customer_full_name,
customer_short_name,
customer_type,
contact_person,
address,
contact_phone,
customer_code,
status,
remark,
create_by,
update_by,
create_time,
update_time,
deleted,
#{customerFullName},
#{customerShortName},
#{customerType},
#{contactPerson},
#{address},
#{contactPhone},
#{customerCode},
#{status},
#{remark},
#{createBy},
#{updateBy},
#{createTime},
#{updateTime},
#{deleted},
insert into customer_management
id,customer_full_name,customer_short_name,customer_type,contact_person,address,contact_phone,customer_code,status,remark,create_by,update_by,create_time,update_time,deleted,
#{item.id},#{item.customerFullName},#{item.customerShortName},#{item.customerType},#{item.contactPerson},#{item.address},#{item.contactPhone},#{item.customerCode},#{item.status},#{item.remark},#{item.createBy},#{item.updateBy},#{item.createTime},#{item.updateTime},#{item.deleted},
update customer_management
customer_full_name = #{customerFullName},
customer_short_name = #{customerShortName},
customer_type = #{customerType},
contact_person = #{contactPerson},
address = #{address},
contact_phone = #{contactPhone},
customer_code = #{customerCode},
status = #{status},
remark = #{remark},
create_by = #{createBy},
update_by = #{updateBy},
create_time = #{createTime},
update_time = #{updateTime},
deleted = #{deleted},
where id = #{id}
update customer_management
customer_full_name = #{item.customerFullName},
customer_short_name = #{item.customerShortName},
customer_type = #{item.customerType},
contact_person = #{item.contactPerson},
address = #{item.address},
contact_phone = #{item.contactPhone},
customer_code = #{item.customerCode},
status = #{item.status},
remark = #{item.remark},
create_by = #{item.createBy},
update_by = #{item.updateBy},
create_time = #{item.createTime},
update_time = #{item.updateTime},
deleted = #{item.deleted},
where id = #{item.id}
delete from customer_management where id = #{id}
delete from customer_management where id in
#{id}