<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
	<query id="CrmBaseMaterial.Query" desc="crm物料信息查询">
		<![CDATA[
			SELECT
			   T.MATERIAL_NO,
			   T.MATERIAL_DESC,
			   T.PRODUCCODE,
			   T.PRODUCNAME,
			   T.PRODUC_JX,
			   T.PRODUC_ENG,
			   T.STD_STYLE,
			   T.STD_STYLE_DESC,
			   T.STEELCODE,
			   T.STEELNAME,
			   T.GRADECODE,
			   T.GRADENAME,
			   T.DIMATER,
			   T.HEIGHT,
			   T.SPEC_CODE,
			   T.SPEC_NAME,
			   T.MODEL_CODE,
			   T.MODEL_DESC,
			   T.OUTSRC_ALLOW,
			   T.FIRST_PRDC,
			   T.CREATE_NAME,
			   TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
			   T.UPDATE_NAME,
			   TO_CHAR(T.UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME,
			   T.DELETE_NAME,
			   TO_CHAR(T.DELETE_TIME, 'YYYY-MM-DD HH24:MI:SS') DELETE_TIME,
			   T.AUTO_CRAFT,
			   T.MATERIAL_TYPE_MAX,
			   T.MATERIAL_TYPE_MID,
			   T.MATERIAL_TYPE_MIN,
			   T.PROPERTY_TYPE_1,
			   T.PROPERTY_TYPE_2,
			   T.TP_SERIES,
			   T.SPECIAL_MODEL,
			   T.UPMARKET_PRODUCT,
			   T.HIGH_ADDITIONAL_PRODUCT,
			   T.MATERIAL_TYPE_MAX_DESC,
			   T.MATERIAL_TYPE_MID_DESC,
			   T.MATERIAL_TYPE_MIN_DESC,
			   T.PROPERTY_TYPE_1_DESC,
			   T.PROPERTY_TYPE_2_DESC,
			   T.TOTAL_COST,
			   DECODE(T.IS_FLAG, '0', '未同步', '1', '已同步') IS_FLAG,
			DECODE(T.DATA_STATUS, '0', '新增', '1', '修改', '2','删除') DATA_STATUS,
			   TO_CHAR(T.SYNCHRO_TIME, 'YYYY-MM-DD HH24:MI:SS') SYNCHRO_TIME,
			   T.ID,
			   TO_CHAR(T.DATA_TIME, 'YYYY-MM-DD HH24:MI:SS') DATA_TIME
		 FROM CRM_BASE_MATERIAL T
		 WHERE
			1 =1
		]]>
	</query>

</queryMap>