<?xml version="1.0" encoding="UTF-8" ?>
<queryMap>
    <query id="CrmOutMoveStorageServer.Query" desc="移库出库信息查询">
        SELECT
        T.OUTSTOCK_SQE,
        T.OUTSTOCK_DOC,
        T.STORAGE_NO,
        T.STORAGE_NAME,
        T.STORAGE_ATTR,
        T.STORAGE_ATTR_NAME,
        T.STORAGE_TYPE_NO,
        T.STORAGE_TYPE_NAME,
        T.MAT_NO,
        T.MATERIAL_NO,
        T.MATERIAL_NAME,
        T.PRODUCCODE,
        T.PRODUCNAME,
        T.STD_CODE,
        T.STD_NAME,
        T.GRADECODE,
        T.GRADENAME,
        T.STEELCODE,
        T.STEELNAME,
        T.STD_STYLE,
        T.STD_STYLE_DESC,
        T.SPEC_CODE,
        T.SPEC_NAME,
        T.MODEL_CODE,
        T.MODEL_DESC,
        T.ACT_LEN,
        T.ACT_COUNT,
        T.ACT_WEIGHT,
        T.ACT_THEORY_WEIGHT,
        T.BELONG_CODE,
        T.BELONG_NAME,
        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.DELIVERY_NO,
        T.MEMO,
        T.TAR_STORAGE_NO,
        T.TAR_STORAGE_NAME,
        T.TAR_REC_FLAG,
        T.CREATE_NAME,
        TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
        T.LOAD_PLINE_CODE,
        T.LOAD_PLINE_NAME,
        T.BELONG_CODE_RESPONSE,
        T.BELONG_NAME_RESPONSE,
        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.VEHICLE_NO,
        T.ACT_DIMATER,
        T.ACT_HEIGHT
        FROM CRM_OUT_MOVE_STORAGE T
        WHERE
        1=1
    </query>
</queryMap>