select id, serial_no, in_no, order_sn, bill_code, customer_code, customer_name, entry_date, confirm_status, confirm_date, used_status, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_warehouse_in
insert into emis_warehouse_in
id,
serial_no,
in_no,
order_sn,
bill_code,
customer_code,
customer_name,
entry_date,
confirm_status,
confirm_date,
used_status,
status,
remark,
tenant_id,
del_flag,
create_by,
create_time,
update_by,
update_time,
create_site,
update_site,
#{id},
#{serialNo},
#{inNo},
#{orderSn},
#{billCode},
#{customerCode},
#{customerName},
#{entryDate},
#{confirmStatus},
#{confirmDate},
#{usedStatus},
#{status},
#{remark},
#{tenantId},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{createSite},
#{updateSite},
update emis_warehouse_in
serial_no = #{serialNo},
in_no = #{inNo},
order_sn = #{orderSn},
bill_code = #{billCode},
customer_code = #{customerCode},
customer_name = #{customerName},
entry_date = #{entryDate},
confirm_status = #{confirmStatus},
confirm_date = #{confirmDate},
used_status = #{usedStatus},
status = #{status},
remark = #{remark},
tenant_id = #{tenantId},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
create_site = #{createSite},
update_site = #{updateSite},
where id = #{id}
update emis_warehouse_in
bill_code = #{billCode},
used_status ='1',
update_by = #{updateBy},
update_time = #{updateTime},
update_site = #{updateSite},
where in_no = #{inNo}
update emis_warehouse_in
bill_code =null,
used_status ='0',
update_by = #{updateBy},
update_time = #{updateTime},
update_site = #{updateSite},
where in_no = #{inNo}
update emis_warehouse_in set used_status='1'
where bill_code = #{billCode} and in_no = #{inNo}
delete from emis_warehouse_in where id = #{id}
delete from emis_warehouse_in where id in
#{id}