insert into mes_next_machine
record_id,rfid,next_machine_code,status,remark,attr1,attr2,attr3,attr4,create_by,create_time,update_by,update_time,factory_code,#{recordId},#{rfid},#{nextMachineCode},#{status},#{remark},#{attr1},#{attr2},#{attr3},#{attr4},#{createBy},#{createTime},#{updateBy},#{updateTime},#{factoryCode},
insert into pro_lg_used_log(
id,device_code,
used,used_unit,
createDate,lg_create_time,
factory_code,create_time
) values
(
#{item.id},#{item.deviceCode},
#{item.used},#{item.usedUnit},
#{item.createDate},#{item.lgCreateTime},
#{item.factoryCode},#{item.createTime}
)
delete from ${table} where #{ymdhms} > CONVERT(varchar(30),create_time, 120)
SELECT TOP 0 * INTO ${tableNew} FROM mes_material_transfer_result
delete from mes_material_transfer_result
where create_time >= #{startDate} and #{endDate}>create_time
delete from ${table}
where create_time >= #{startDate} and #{endDate}>create_time