select stock_out_code, doc_date, create_date, doc_id, business_type, repository_id, repository_name, project_classification, project_id, project_name, department_id, department_name, receiver, single, reviewer, review_date, modifier, material_class_id, material_class_name, material_name, material_specification, material_unit, count, batch_id, production_date, shelf_life, shelf_life_unit, expiration_date, agent from wz_stock_out
insert into wz_stock_out
doc_date,
create_date,
doc_id,
business_type,
repository_id,
repository_name,
project_classification,
project_id,
project_name,
department_id,
department_name,
receiver,
single,
reviewer,
review_date,
modifier,
material_class_id,
material_class_name,
material_name,
material_specification,
material_unit,
count,
batch_id,
production_date,
shelf_life,
shelf_life_unit,
expiration_date,
agent,
#{docDate},
#{createDate},
#{docId},
#{businessType},
#{repositoryId},
#{repositoryName},
#{projectClassification},
#{projectId},
#{projectName},
#{departmentId},
#{departmentName},
#{receiver},
#{single},
#{reviewer},
#{reviewDate},
#{modifier},
#{materialClassId},
#{materialClassName},
#{materialName},
#{materialSpecification},
#{materialUnit},
#{count},
#{batchId},
#{productionDate},
#{shelfLife},
#{shelfLifeUnit},
#{expirationDate},
#{agent},
update wz_stock_out
doc_date = #{docDate},
create_date = #{createDate},
doc_id = #{docId},
business_type = #{businessType},
repository_id = #{repositoryId},
repository_name = #{repositoryName},
project_classification = #{projectClassification},
project_id = #{projectId},
project_name = #{projectName},
department_id = #{departmentId},
department_name = #{departmentName},
receiver = #{receiver},
single = #{single},
reviewer = #{reviewer},
review_date = #{reviewDate},
modifier = #{modifier},
material_class_id = #{materialClassId},
material_class_name = #{materialClassName},
material_name = #{materialName},
material_specification = #{materialSpecification},
material_unit = #{materialUnit},
count = #{count},
batch_id = #{batchId},
production_date = #{productionDate},
shelf_life = #{shelfLife},
shelf_life_unit = #{shelfLifeUnit},
expiration_date = #{expirationDate},
agent = #{agent},
where stock_out_code = #{stockOutCode}
delete from wz_stock_out where stock_out_code = #{stockOutCode}
delete from wz_stock_out where stock_out_code in
#{stockOutCode}