<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="生产产线基础信息管理">
	<query id="fmisBasePline.Delete" desc="删除">
		<![CDATA[
			DELETE FROM FMIS_BASE_PLINE WHERE PLINE_CODE = ?
		]]>
	</query>
	<query id="fmisBasePline.Insert" desc="添加">
		<![CDATA[
		INSERT INTO FMIS_BASE_PLINE(
			PLINE_CODE,
			PLINE_NAME,
			DEPARTMENT_CODE,
			DEPARTMENT_DESC,
			PROCESS_CODE,
			PROCESS_DESC,
			PLINE_CODE_OLD,
			LENGTH_MIN,
			LENGTH_MAX,
			LENGTH_COLDBED,
			LENGTH_MAX_RING,
			LENGTH_MIN_RING,
			LENGTH_MIN_TUBE,
			LENGTH_MAX_TUBE,
			BURNOUT_RATE,
			GROUP_PLAN,
			GROUP_PAY,
			TOLERANCE_ZONE,
			DEPARTMENT_CODE_P,
			DEPARTMENT_DESC_P,
			SCHEDULE_CODE,
			SPLINE_DESC,
			IN_MATERIAL_LEN_MIN,
			IN_MATERIAL_LEN_MAX,
			SAM_FCODE,
			BATCH_INTERVAL,
			CHECK_NO_SHORT,
			FACTORY_CODE,
			CHECK_STATION,
			IN_REPOSITORY,
			OUT_REPOSITORY,
			VELOCITY_FLOW,
			SUPPLY_UNIT_CODE,
			SUPPLY_UNIT,
			ACCOUNTING_CENTER,
			CREATE_NAME,
			CREATE_TIME,
			UPDATE_NAME,
			UPDATE_TIME,
			DELETE_NAME,
			DELETE_TIME,
			VALIDFLAG,
			MEMO,
			SYNC_FLAG)
		SELECT PLINE_CODE,
			PLINE_NAME,
			DEPARTMENT_CODE,
			DEPARTMENT_DESC,
			PROCESS_CODE,
			PROCESS_DESC,
			PLINE_CODE_OLD,
			LENGTH_MIN,
			LENGTH_MAX,
			LENGTH_COLDBED,
			LENGTH_MAX_RING,
			LENGTH_MIN_RING,
			LENGTH_MIN_TUBE,
			LENGTH_MAX_TUBE,
			BURNOUT_RATE,
			GROUP_PLAN,
			GROUP_PAY,
			TOLERANCE_ZONE,
			DEPARTMENT_CODE_P,
			DEPARTMENT_DESC_P,
			SCHEDULE_CODE,
			SPLINE_DESC,
			IN_MATERIAL_LEN_MIN,
			IN_MATERIAL_LEN_MAX,
			SAM_FCODE,
			BATCH_INTERVAL,
			CHECK_NO_SHORT,
			FACTORY_CODE,
			CHECK_STATION,
			IN_REPOSITORY,
			OUT_REPOSITORY,
			VELOCITY_FLOW,
			SUPPLY_UNIT_CODE,
			SUPPLY_UNIT,
			ACCOUNTING_CENTER,
			CREATE_NAME,
			CREATE_TIME,
			UPDATE_NAME,
			UPDATE_TIME,
			DELETE_NAME,
			DELETE_TIME,
			VALIDFLAG,
			MEMO,
			'0'
		FROM COM_BASE_PLINE
		WHERE
		PLINE_CODE = ?
	]]>
	</query>
</queryMap>