0.00.0100005050NY50000YN1000100-2019/06/17 14:02:09.786-2019/06/17 14:02:09.786NVisits219.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_POOLINGNmemberallergy表输入Elasticsearch bulk insertYmemberallergy表输入TableInputY1noneVisits
SELECT
pr.UserName AS MemberName
, pr.OrdersCode
, pr.HisDrugAllergy AS MemberAllergy
, o.BuyUserId AS MemberId
, o.OrderTime AS MemberAllergyStart
, Mall.dbo.DesDecryptFixKey('123456','123456e10adc3949ba59abbe56e057f20f883e',o.AConsigneePhone1) AS MemberPhone1
, Mall.dbo.DesDecryptFixKey('123456','123456e10adc3949ba59abbe56e057f20f883e',o.AConsigneePhone2) AS MemberPhone2
, Mall.dbo.DesDecryptFixKey('123456','123456e10adc3949ba59abbe56e057f20f883e',o.AConsigneePhone3) AS MemberPhone3
FROM PrescriptionRecord as pr left join Orders as o on pr.OrdersCode = o.OrdersCode
WHERE
DateDiff(dd,o.OrderTime,getdate())<=300NNN224160YElasticsearch bulk insertElasticSearchBulkY1nonememberallergy_doc50000100SECONDSNMemberIdYNY
192.168.50.32
9300cluster.namees400208YN