select id, order_number, name, inventory_department, inventory_by, inventory_date, inventory_location, inventory_status, inventory_result, record_status, remark, created_time, updated_time from tb_asset_inventory select a.id, a.order_number orderNumber, a.name, a.inventory_department inventoryDepartment, b.dept_name inventoryDepartmentName, a.inventory_by inventoryBy, a.inventory_date inventoryDate, a.inventory_location inventoryLocation, a.inventory_status inventoryStatus, a.inventory_result inventoryResult, a.record_status recordStatus, a.remark, a.created_time createdTime, a.updated_time updatedTime from tb_asset_inventory a LEFT JOIN sys_dept b ON b.dept_id = a.inventory_department insert into tb_asset_inventory order_number, name, inventory_department, inventory_by, inventory_date, inventory_location, inventory_status, inventory_result, record_status, remark, created_time, updated_time, #{orderNumber}, #{name}, #{inventoryDepartment}, #{inventoryBy}, #{inventoryDate}, #{inventoryLocation}, #{inventoryStatus}, #{inventoryResult}, #{recordStatus}, #{remark}, #{createdTime}, #{updatedTime}, update tb_asset_inventory order_number = #{orderNumber}, name = #{name}, inventory_department = #{inventoryDepartment}, inventory_by = #{inventoryBy}, inventory_date = #{inventoryDate}, inventory_location = #{inventoryLocation}, inventory_status = #{inventoryStatus}, inventory_result = #{inventoryResult}, record_status = #{recordStatus}, remark = #{remark}, created_time = #{createdTime}, updated_time = #{updatedTime}, where id = #{id} delete from tb_asset_inventory where id = #{id} delete from tb_asset_inventory where id in #{id}