select thisTab.id, thisTab.consignor_code, thisTab.consignor_name, thisTab.customer_id, thisTab.customer_sys_code, thisTab.customer_name, thisTab.consignor_type, thisTab.contact_name, thisTab.contact_phone, thisTab.contact_email, thisTab.country_id, thisTab.province_id, thisTab.city_id, thisTab.district_id, thisTab.street_id, thisTab.address_detail, thisTab.dispatch_transport_area, thisTab.map_location, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark from tms_consignor AS thisTab
select count(0) from tms_consignor as thisTab
and thisTab.consignor_code = #{consignorCode}
and thisTab.consignor_name like concat('%', #{consignorName}, '%')
and thisTab.customer_id = #{customerId}
and thisTab.customer_sys_code = #{customerSysCode}
and thisTab.customer_name like concat('%', #{customerName}, '%')
and thisTab.consignor_type = #{consignorType}
and thisTab.contact_name like concat('%', #{contactName}, '%')
and thisTab.dispatch_transport_area = #{dispatchTransportArea}
and thisTab.status = #{status}
and thisTab.update_by = #{updateBy}
and thisTab.update_time = #{updateTime}
insert into tms_consignor
consignor_code,
consignor_name,
customer_id,
customer_sys_code,
customer_name,
consignor_type,
contact_name,
contact_phone,
contact_email,
country_id,
province_id,
city_id,
district_id,
street_id,
address_detail,
dispatch_transport_area,
map_location,
status,
create_by,
create_time,
update_by,
update_time,
remark,
#{consignorCode},
#{consignorName},
#{customerId},
#{customerSysCode},
#{customerName},
#{consignorType},
#{contactName},
#{contactPhone},
#{contactEmail},
#{countryId},
#{provinceId},
#{cityId},
#{districtId},
#{streetId},
#{addressDetail},
#{dispatchTransportArea},
#{mapLocation},
#{status},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
insert into tms_consignor
id,consignor_code,consignor_name,customer_id,customer_sys_code,customer_name,consignor_type,contact_name,contact_phone,contact_email,country_id,province_id,city_id,district_id,street_id,address_detail,dispatch_transport_area,map_location,status,create_by,create_time,update_by,update_time,remark,
#{item.id},#{item.consignorCode},#{item.consignorName},#{item.customerId},#{item.customerSysCode},#{item.customerName},#{item.consignorType},#{item.contactName},#{item.contactPhone},#{item.contactEmail},#{item.countryId},#{item.provinceId},#{item.cityId},#{item.districtId},#{item.streetId},#{item.addressDetail},#{item.dispatchTransportArea},#{item.mapLocation},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark},
update tms_consignor
consignor_code = #{consignorCode},
consignor_name = #{consignorName},
customer_id = #{customerId},
customer_sys_code = #{customerSysCode},
customer_name = #{customerName},
consignor_type = #{consignorType},
contact_name = #{contactName},
contact_phone = #{contactPhone},
contact_email = #{contactEmail},
country_id = #{countryId},
province_id = #{provinceId},
city_id = #{cityId},
district_id = #{districtId},
street_id = #{streetId},
address_detail = #{addressDetail},
dispatch_transport_area = #{dispatchTransportArea},
map_location = #{mapLocation},
status = #{status},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
update tms_consignor
consignor_code = #{item.consignorCode},
consignor_name = #{item.consignorName},
customer_id = #{item.customerId},
customer_sys_code = #{item.customerSysCode},
customer_name = #{item.customerName},
consignor_type = #{item.consignorType},
contact_name = #{item.contactName},
contact_phone = #{item.contactPhone},
contact_email = #{item.contactEmail},
country_id = #{item.countryId},
province_id = #{item.provinceId},
city_id = #{item.cityId},
district_id = #{item.districtId},
street_id = #{item.streetId},
address_detail = #{item.addressDetail},
dispatch_transport_area = #{item.dispatchTransportArea},
map_location = #{item.mapLocation},
status = #{item.status},
create_by = #{item.createBy},
create_time = #{item.createTime},
update_by = #{item.updateBy},
update_time = #{item.updateTime},
remark = #{item.remark},
where id = #{item.id}
delete from tms_consignor where id = #{id}
delete from tms_consignor where id in
#{id}