<?xml version="1.0" encoding="UTF-8" ?>
<queryMap>
    <query id="CrmMatZcTrackServer.Query" desc="crm脱单利库信息查询">
        SELECT
        T.RESUME_SEQ,
        T.EVENT_ID,
        T.EVENT_DESC,
        T.MAT_NO,
        T.JUDGE_STOVE_NO,
        T.BATCH_NO,
        T.BATCH_GROUD_NO,
        T.ORD_PK,
        T.ORD_LN_PK,
        T.ORD_LN_DLY_PK,
        T.ORDER_NO,
        T.ORDER_SEQ,
        T.ORDER_SEQ_NO,
        T.OLD_ORD_PK,
        T.OLD_ORD_LN_PK,
        T.OLD_ORD_LN_DLY_PK,
        T.OLD_ORDER_NO,
        T.OLD_ORDER_SEQ,
        T.OLD_ORDER_SEQ_NO,
        T.BELONG_CODE,
        T.BELONG_NAME,
        T.MEMO,
        T.CREATE_NAME,
        TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
        DECODE(T.DATA_STATUS, '0', '新增', '1', '修改', '2','删除') DATA_STATUS,
        DECODE(T.IS_FLAG, '0', '未同步', '1', '已同步', '2', 'crm数据问题', '3', '产销数据问题', '4', '数据过滤') IS_FLAG,
        TO_CHAR(T.SYNCHRO_TIME, 'YYYY-MM-DD HH24:MI:SS') SYNCHRO_TIME,
        T.ID,
        T.CREATE_TIMESTAMP,
        T.ACT_COUNT,
        T.ACT_WEIGHT,
        T.ACT_LEN,
        T.STORAGE_NAME,
        T.SUPPLY_UNIT_CODE,
        T.SUPPLY_UNIT
        FROM CRM_MAT_ZC_TRACK T
        WHERE
        1=1
    </query>
</queryMap>