0.00.0100005050NY50000YN1000100-2019/06/17 14:40:57.506-2019/06/17 14:40:57.506NMall_es219.128.77.96MSSQLNATIVENativeMall1433caixukunEncrypted 2be98afc86aa7f2e4a801a5508cc2fe83FORCE_IDENTIFIERS_TO_LOWERCASENFORCE_IDENTIFIERS_TO_UPPERCASENIS_CLUSTEREDNMSSQLUseIntegratedSecurityfalseMSSQL_DOUBLE_DECIMAL_SEPARATORNPORT_NUMBER1433PRESERVE_RESERVED_WORD_CASEYQUOTE_ALL_FIELDSNSUPPORTS_BOOLEAN_DATA_TYPEYSUPPORTS_TIMESTAMP_DATA_TYPEYUSE_POOLINGNPrescriptionRecord表输入Elasticsearch bulk insertYPrescriptionRecord表输入TableInputY1noneMall_esSELECT
pr.UserName AS Name
,pr.ID AS PrescriptionId
,op.Packing AS AtomUnit
,op.ProductCode AS ProductCode
,pr.IsDelete AS IsDelete
,op.Amount AS Amount
,pr.ID AS PrecProId
,op.Unit AS Unit
,p.Dosage AS Dossage
,p.PackingProduct AS ProductPacking
,pr.Contents AS Contents
,op.OrdersCode AS OrderCode
,op.ProductName AS ProductName
FROM dbo.PrescriptionRecord pr
LEFT JOIN OrderProducts op ON pr.OrdersCode = op.OrdersCode
LEFT JOIN dbo.Product p ON p.ProductCode = op.ProductCode
WHERE
DateDiff(dd,op.CreationDate,getdate())<=300NNN224192YElasticsearch bulk insertElasticSearchBulkY1noneprescriptionproduct_doc50000100SECONDSNPrescriptionIdYNY
192.168.50.32
9300cluster.namees384192YN