UPDATE wh_inventory_txn
SET remark = CONCAT('期初入库', SUBSTRING(remark, CHAR_LENGTH('OPENING') + 1))
WHERE remark = 'OPENING' OR remark LIKE 'OPENING；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('客料入库', SUBSTRING(remark, CHAR_LENGTH('CUSTOMER_SUPPLIED') + 1))
WHERE remark = 'CUSTOMER_SUPPLIED' OR remark LIKE 'CUSTOMER_SUPPLIED；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('生产余料入库', SUBSTRING(remark, CHAR_LENGTH('PRODUCTION_SURPLUS') + 1))
WHERE remark = 'PRODUCTION_SURPLUS' OR remark LIKE 'PRODUCTION_SURPLUS；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('委外余料入库', SUBSTRING(remark, CHAR_LENGTH('OUTSOURCING_SURPLUS') + 1))
WHERE remark = 'OUTSOURCING_SURPLUS' OR remark LIKE 'OUTSOURCING_SURPLUS；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('生产废料入库', SUBSTRING(remark, CHAR_LENGTH('PRODUCTION_SCRAP_IN') + 1))
WHERE remark = 'PRODUCTION_SCRAP_IN' OR remark LIKE 'PRODUCTION_SCRAP_IN；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('委外废料入库', SUBSTRING(remark, CHAR_LENGTH('OUTSOURCING_SCRAP_IN') + 1))
WHERE remark = 'OUTSOURCING_SCRAP_IN' OR remark LIKE 'OUTSOURCING_SCRAP_IN；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('产中入库', SUBSTRING(remark, CHAR_LENGTH('WIP_IN') + 1))
WHERE remark = 'WIP_IN' OR remark LIKE 'WIP_IN；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('委外入库', SUBSTRING(remark, CHAR_LENGTH('OUTSOURCING_IN') + 1))
WHERE remark = 'OUTSOURCING_IN' OR remark LIKE 'OUTSOURCING_IN；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('生产入库', SUBSTRING(remark, CHAR_LENGTH('PRODUCTION_FINISHED') + 1))
WHERE remark = 'PRODUCTION_FINISHED' OR remark LIKE 'PRODUCTION_FINISHED；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('生产出库', SUBSTRING(remark, CHAR_LENGTH('PRODUCTION_OUT') + 1))
WHERE remark = 'PRODUCTION_OUT' OR remark LIKE 'PRODUCTION_OUT；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('委外出库', SUBSTRING(remark, CHAR_LENGTH('OUTSOURCING_OUT') + 1))
WHERE remark = 'OUTSOURCING_OUT' OR remark LIKE 'OUTSOURCING_OUT；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('报废出库', SUBSTRING(remark, CHAR_LENGTH('SCRAP_OUT') + 1))
WHERE remark = 'SCRAP_OUT' OR remark LIKE 'SCRAP_OUT；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('售卖出库', SUBSTRING(remark, CHAR_LENGTH('SCRAP_SALE_OUT') + 1))
WHERE remark = 'SCRAP_SALE_OUT' OR remark LIKE 'SCRAP_SALE_OUT；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('产中出库', SUBSTRING(remark, CHAR_LENGTH('WIP_OUT') + 1))
WHERE remark = 'WIP_OUT' OR remark LIKE 'WIP_OUT；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('销售出库', SUBSTRING(remark, CHAR_LENGTH('SALES_OUT') + 1))
WHERE remark = 'SALES_OUT' OR remark LIKE 'SALES_OUT；%';

UPDATE wh_inventory_txn
SET remark = CONCAT('退货出库', SUBSTRING(remark, CHAR_LENGTH('PURCHASE_RETURN_OUT') + 1))
WHERE remark = 'PURCHASE_RETURN_OUT' OR remark LIKE 'PURCHASE_RETURN_OUT；%';

UPDATE wh_stock_lot
SET remark = CONCAT('期初入库', SUBSTRING(remark, CHAR_LENGTH('OPENING') + 1))
WHERE remark = 'OPENING' OR remark LIKE 'OPENING；%';

UPDATE wh_stock_lot
SET remark = CONCAT('客料入库', SUBSTRING(remark, CHAR_LENGTH('CUSTOMER_SUPPLIED') + 1))
WHERE remark = 'CUSTOMER_SUPPLIED' OR remark LIKE 'CUSTOMER_SUPPLIED；%';

UPDATE wh_stock_lot
SET remark = CONCAT('生产余料入库', SUBSTRING(remark, CHAR_LENGTH('PRODUCTION_SURPLUS') + 1))
WHERE remark = 'PRODUCTION_SURPLUS' OR remark LIKE 'PRODUCTION_SURPLUS；%';

UPDATE wh_stock_lot
SET remark = CONCAT('委外余料入库', SUBSTRING(remark, CHAR_LENGTH('OUTSOURCING_SURPLUS') + 1))
WHERE remark = 'OUTSOURCING_SURPLUS' OR remark LIKE 'OUTSOURCING_SURPLUS；%';

UPDATE wh_stock_lot
SET remark = CONCAT('生产废料入库', SUBSTRING(remark, CHAR_LENGTH('PRODUCTION_SCRAP_IN') + 1))
WHERE remark = 'PRODUCTION_SCRAP_IN' OR remark LIKE 'PRODUCTION_SCRAP_IN；%';

UPDATE wh_stock_lot
SET remark = CONCAT('委外废料入库', SUBSTRING(remark, CHAR_LENGTH('OUTSOURCING_SCRAP_IN') + 1))
WHERE remark = 'OUTSOURCING_SCRAP_IN' OR remark LIKE 'OUTSOURCING_SCRAP_IN；%';

UPDATE wh_stock_lot
SET source_material_summary = CONCAT('期初入库', SUBSTRING(source_material_summary, CHAR_LENGTH('OPENING') + 1))
WHERE source_material_summary = 'OPENING' OR source_material_summary LIKE 'OPENING；%';

UPDATE wh_stock_lot
SET source_material_summary = CONCAT('客料入库', SUBSTRING(source_material_summary, CHAR_LENGTH('CUSTOMER_SUPPLIED') + 1))
WHERE source_material_summary = 'CUSTOMER_SUPPLIED' OR source_material_summary LIKE 'CUSTOMER_SUPPLIED；%';

UPDATE wh_stock_lot
SET source_material_summary = CONCAT('生产余料入库', SUBSTRING(source_material_summary, CHAR_LENGTH('PRODUCTION_SURPLUS') + 1))
WHERE source_material_summary = 'PRODUCTION_SURPLUS' OR source_material_summary LIKE 'PRODUCTION_SURPLUS；%';

UPDATE wh_stock_lot
SET source_material_summary = CONCAT('委外余料入库', SUBSTRING(source_material_summary, CHAR_LENGTH('OUTSOURCING_SURPLUS') + 1))
WHERE source_material_summary = 'OUTSOURCING_SURPLUS' OR source_material_summary LIKE 'OUTSOURCING_SURPLUS；%';

UPDATE wh_stock_lot
SET source_material_summary = CONCAT('生产废料入库', SUBSTRING(source_material_summary, CHAR_LENGTH('PRODUCTION_SCRAP_IN') + 1))
WHERE source_material_summary = 'PRODUCTION_SCRAP_IN' OR source_material_summary LIKE 'PRODUCTION_SCRAP_IN；%';

UPDATE wh_stock_lot
SET source_material_summary = CONCAT('委外废料入库', SUBSTRING(source_material_summary, CHAR_LENGTH('OUTSOURCING_SCRAP_IN') + 1))
WHERE source_material_summary = 'OUTSOURCING_SCRAP_IN' OR source_material_summary LIKE 'OUTSOURCING_SCRAP_IN；%';
