tanyang 5 years ago
parent
commit
aa579f0d8b

+ 251 - 39
Member/MemberUI/src/pages/auth/mem_prescription.js

@@ -1,6 +1,6 @@
 import React from 'react';
 import { BirdGrid } from 'components/Grid';
-import { config,request} from 'utils';
+import { config,request,hashToArray} from 'utils';
 import { Layout,Form, Radio,Tabs,Table,Button, Modal,Input, Row,Col, Tag, Tooltip, Icon} from 'antd';  
 import Panel from 'components/Panel';
 //import reqwest from 'reqwest';
@@ -53,7 +53,7 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })(
         odersproduct:[],
         data: [],
         loading: false,
-        orderinfo:[], 
+        orderinfo:[]
       }
     }
       //第一次渲染后事件
@@ -241,6 +241,7 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })(
           //onokText="Create"
           onCancel={onCancel}
           onOk={onCreate}
+          width={800}
         >
           <Form layout="horizontal">
             <Form.Item label="购买人">
@@ -272,27 +273,76 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })(
 
 //Tag组件
 class EditableTagGroup extends React.Component {
-  state = {
-    tags: ['Unremovable', 'Tag 2', 'Tag 3'],
+  constructor(props) {
+  super(props)
+  let tags = this.props.tags;
+  this.state = {
+    tags: tags?tags:[],
     inputVisible: false,
     inputValue: '',
     visibleTag: false,
+    taslist:[],
+    phone:""
   };
+}
+
+ 
+
+// componentDidMount() {
+//   let self= this;
+//   let tags  = this.props.tags;
+//   self.setState({ 
+//     tags:tags
+//   });
+// }
 
+//props数据修改事件
+componentWillReceiveProps(nextProps){
+  let self= this;
+  let tags  = nextProps.tags;
+  self.setState({ 
+    tags:tags
+  });
+
+}
+
+  //添加标签——弹出框关闭点击事件 
+  handleCancelTag = () => {
+    this.setState({ visibleTag: false });
+  };
+  //添加标签——确定点击事件
+  handleCreateTag = () => {
+    const form = this.formRefTag.props.form;
+    form.validateFields((err, values) => {
+      if (err) {
+        return;
+      } 
+      console.log('Received values of form: ', values);
+      form.resetFields();
+      this.setState({ visibleTag: false });
+    });
+  };
+  //添加标签——
+  saveFormRefTag = formRefTag => {
+    this.formRefTag = formRefTag;
+  };
   showModalTag = () => {
     this.setState({ visibleTag: true });
   };
-
+  
+  //tags-删除事件
   handleClose = removedTag => {
     const tags = this.state.tags.filter(tag => tag !== removedTag);
     console.log(tags);
     this.setState({ tags });
   };
 
+  //显示tags
   showInput = () => {
     this.setState({ inputVisible: true }, () => this.input.focus());
   };
 
+  //tags
   handleInputChange = e => {
     this.setState({ inputValue: e.target.value });
   };
@@ -374,6 +424,12 @@ const TagCreateForm = Form.create({ name: 'form_in_modal' })(
           loading: false,
         }
       }
+
+//chechbox选中事件     
+// checkclick(datalist,checkkey){
+//   var aa=datalist;
+//   var bb=checkkey; 
+// };
     render() {
       const { visibleTag, onCancelTag, onCreateTag, form } = this.props;
       //const { getFieldDecorator } = form;
@@ -383,6 +439,21 @@ const TagCreateForm = Form.create({ name: 'form_in_modal' })(
           read: "/web/mem_tag/AllTagList"
         },
         checkable: true,
+        afterCheck:function checkclick(datalist,checkkey){
+          var aa=datalist;
+          var bb=checkkey;
+          var memberphone="13145738791";
+          var query={memberphone:memberphone,checkkey:checkkey};
+          request({
+            url: APIV3+"/web/mem_tag/EditMemberTag",
+            method: "post",
+            data:query,
+          }).then(function (result) {
+            if (result.success){        
+              console.log(result)
+            }                
+          });  
+        },
         primaryKey:"_id",
         columns: [
           { title: "标签ID", data: "_id", type: "text", editor: {}, isRequired: true },
@@ -392,10 +463,10 @@ const TagCreateForm = Form.create({ name: 'form_in_modal' })(
             title: "操作选项", type: "command", actions: []
           }
         ],
-        actions:[{ name: '保存', onClick: function () {
+      //   actions:[{ name: '保存', onClick: function () {
            
-        }
-      }]
+      //   }
+      // }]
       };
 
       return (
@@ -418,7 +489,7 @@ const TagCreateForm = Form.create({ name: 'form_in_modal' })(
   },
 );
 
-//用户个人管理组件
+//个人用户管理组件
 class BirdGridmem_prescriptionPage extends React.Component {
   constructor(props) {
     super(props)
@@ -428,20 +499,41 @@ class BirdGridmem_prescriptionPage extends React.Component {
       hidegrid2:true,//收货历史radio参数
       hidegrid3:true,//平台列表radio参数
       users:[], //健康档案实体
-      members:[],//实名信息实体
+      members:[],//基本信息实体
+      memberexts:[],//实名信息实体
       visible: false,
       visibleTag: false,
       orderinfo:[],
-      odersproduct:[]
+      odersproduct:[],
+      tags:[],
+      phone:"", 
+      tagpanes:[]
     }
   }
 
   //第一次渲染后事件
   componentDidMount() { 
     let self= this;
-
     //实名信息请求
-    var membersql={"query":"select * from mem_memberbase_p where MemUsualPhone = '13761709889'"};
+    var MemUsualPhone = "13761709889";
+    var membersql={query:MemUsualPhone};
+    request({
+      url: APIV3+"/web/mem_memberexts_temp/MemberextsByPhone",
+      method: "post",
+      data:membersql,
+    }).then(function (result) {
+      if (result.success){        
+        console.log(result)
+        self.setState({ 
+          memberexts:result.items
+        });
+      }                
+    }); 
+
+    //基本信息请求
+    var MemUsualPhone = "13761709889";
+    var membersql={query:MemUsualPhone};
+    //var membersql={"query":"select * from mem_memberbase_p where MemUsualPhone = '13761709889'"};
     request({
       url: APIV3+"/web/Mem_memberinformation/index",
       method: "post",
@@ -470,7 +562,48 @@ class BirdGridmem_prescriptionPage extends React.Component {
       }                
     });  
 
-
+     
+    //第一次加载用户标签请求
+    var memberphone="13145738791";
+    var membersql={query: memberphone};
+    request({
+      url: APIV3+"/web/mem_tag/TagByMemberPhone",
+      method: "post",
+      data:membersql,
+    }).then(function (result) {
+      if (result.success){        
+        console.log(result)
+        var ss=[];
+        var panelname=[];
+        var data = hashToArray(result.items);
+        data.map((item,i)=> {
+          let tagcouple = [];
+          if((i+1)%2 == 0){
+            var item11 = [];
+            var item22 = [];
+            var items = [];
+            data[i].map((item1,index1)=>{
+              items.push(item1.TagName)
+            })
+            item11.push(data[i][0].TagTypeName);
+            item11.push(items);
+            var items2 = [];
+            data[i-1].map((item1,index1)=>{
+              items2.push(item1.TagName)
+            })
+            item22.push(data[i-1][0].TagTypeName);
+            item22.push(items2);
+            tagcouple.push(item11);
+            tagcouple.push(item22);
+            ss.push(tagcouple);
+          }
+        })
+        
+        self.setState({ 
+          tags:ss
+        });
+      }                
+  }); 
   }
 
   //订单详情——弹出表单Modal
@@ -514,10 +647,12 @@ class BirdGridmem_prescriptionPage extends React.Component {
     //修改显示属性
     this.setState({ visible: true});
   }; 
+
   //订单详情——弹出框关闭点击事件
   handleCancel = () => {
     this.setState({ visible: false });
   };
+
   //订单详情——确定点击事件
   handleCreate = () => {
     const form = this.formRef.props.form;
@@ -530,20 +665,22 @@ class BirdGridmem_prescriptionPage extends React.Component {
       this.setState({ visible: false });
     });
   };
+
   //订单详情——
   saveFormRef = formRef => {
     this.formRef = formRef;
   };
 
-
   //添加标签——弹出表单Modal
   showModalTag = () => {
     this.setState({ visibleTag: true });
   };
+
   //添加标签——弹出框关闭点击事件
   handleCancelTag = () => {
     this.setState({ visibleTag: false });
   };
+
   //添加标签——确定点击事件
   handleCreateTag = () => {
     const form = this.formRefTag.props.form;
@@ -556,12 +693,13 @@ class BirdGridmem_prescriptionPage extends React.Component {
       this.setState({ visibleTag: false });
     });
   };
+
   //添加标签——
   saveFormRefTag = formRefTag => {
     this.formRefTag = formRefTag;
   };
 
-
+  
   //处方列表radio点击事件
   prescriptionohandleChange = function(e){
     let self=this;
@@ -623,12 +761,13 @@ class BirdGridmem_prescriptionPage extends React.Component {
   };
 
   render() {  
+
     //实名信息数据源
     let self = this;
-    var MemberNickName="";
+    var realname="";
     var OriginType="";
-    this.state.members.map((user,i)=>{
-      MemberNickName=user.MemberNickName
+    this.state.memberexts.map((user,i)=>{
+      realname=user.MemName
       OriginType=user.OriginType
     }) 
     //实名信息table表格
@@ -650,7 +789,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
       {
         key: '1',
         one: '姓名',
-        two: MemberNickName,
+        two: realname,
         three: '身份证号码',
         four: '无',
       },
@@ -677,8 +816,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
       }, 
     ];
 
-
-    //健康档案数据源
+    //实名档案数据源
     var MemberName="";
     var MemberAge="";
     this.state.users.forEach(x=>{
@@ -839,7 +977,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
 
     //好友列表
     let gridOptions5 = {
-      title: "商品列表",
+      title: "好友列表",
       url: {
         //read: "/web/Mem_PurchaseHistory/DrugsList"
         read: "/web/ES_MemFriends/MemberFriends"
@@ -848,9 +986,11 @@ class BirdGridmem_prescriptionPage extends React.Component {
       primaryKey:"id",
       columns: [
         { title: "id", data: "_id", type: "text", editor: {}, isRequired: true },
-        { title: "MemberId", data: "MemberId", type: "text", editor: {}, isRequired: true },
-        { title: "MemberFriendsPhone", data: "MemberFriendsPhone", type: "text", editor: {},  isRequired: true },
-        { title: "MemberPhone", data: "MemberPhone", type: "text", editor: {}, isRequired: true },
+        { title: "好友昵称", data: "MemberNickName", type: "text", editor: {}, isRequired: true },
+        { title: "好友姓名", data: "MemberNickName", type: "text", editor: {},  isRequired: true },
+        { title: "手机号", data: "_id", type: "text", editor: {}, isRequired: true },
+        { title: "关系", data: "_id", type: "text", editor: {}, isRequired: true },
+        { title: "来源", data: "_id", type: "text", editor: {}, isRequired: true },
         {
           title: "操作选项", type: "command", actions: []
         }
@@ -874,7 +1014,85 @@ class BirdGridmem_prescriptionPage extends React.Component {
         }
       ]
     };
-    //基本信息
+
+    //基本信息数据源
+    var MemberNickName="";
+    var OriginType="";
+    this.state.members.map((user,i)=>{
+      MemberNickName=user.MemberNickName
+      OriginType=user.OriginType
+    }) 
+    //基本信息table表格
+    const columns6 = [
+      {
+        dataIndex: 'one',
+      },
+      {
+        dataIndex: 'two',
+      },
+      {
+        dataIndex: 'three',
+      },
+      {
+        dataIndex: 'four',
+      },
+    ];
+    const data6 =[
+      {
+        key: '1',
+        one: '姓名',
+        two: MemberNickName,
+        three: '身份证号码',
+        four: '无',
+      },
+      {
+        key: '2',
+        one: '民族',
+        two: '无',
+        three: '性别',
+        four:'无',
+      },
+      {
+        key: '3',
+        one: '签发机关',
+        two: '无',
+        three: '出生日期',
+        four: '无',
+      },
+       {
+        key: '4',
+        one: '开始有效期',
+        two: '无',
+        three: '截止有效期',
+        four: '无',
+      }, 
+    ];
+
+    var list = (index) => {
+      var res = [];
+      //for(var index1 in self.state.tags[index]) {
+        res.push(<Row>
+          <Col span={12}>
+            <Panel title={self.state.tags[index][0][0]} > 
+              <EditableTagGroup 
+                  tags={self.state.tags[index][0][1]}
+              ></EditableTagGroup>
+            </Panel>
+          </Col>
+          <Col span={12}>
+            <Panel title={self.state.tags[index][1][0]} > 
+              <EditableTagGroup 
+                  tags={self.state.tags[index][1][1]}
+              ></EditableTagGroup>
+            </Panel>
+          </Col>
+          </Row>)
+      //}
+      return res
+    }
+    
+
+    //个人用户信息
     return ( 
       <Tabs defaultActiveKey="用户标签" style={{background:'#fff'}} >
         <TabPane tab="实名信息" key="实名信息">
@@ -928,17 +1146,11 @@ class BirdGridmem_prescriptionPage extends React.Component {
                 onCreateTag={this.handleCreateTag}
               />
             </div>
-              <Row gutter={16}> 
-                <Col span={12}>
-                  <Panel title="基础标签" > 
-                    <EditableTagGroup></EditableTagGroup>
-                  </Panel>
-                </Col>
-                <Col span={12}>
-                  <Panel title="工作标签" > 
-                  </Panel>
-                </Col>
-              </Row>
+            {
+              self.state.tags.map(function (col, index) { 
+                  return list(index)
+              })
+            }
         </TabPane>
         <TabPane tab="好友列表" key="好友列表">
           <BirdGrid gridOption={gridOptions5}/>
@@ -954,7 +1166,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
             </div>
         </TabPane>
         <TabPane tab="基本信息" key="基本信息">
-          <Table  columns={columns} dataSource={data} bordered  pagination={ false }/>
+          <Table  columns={columns6} dataSource={data6} bordered  pagination={ false }/>
         </TabPane>
           <CollectionCreateForm
             wrappedComponentRef={this.saveFormRef}

+ 242 - 121
Member/MemberWeb/Controllers/ES_MemFriendsController.cs

@@ -26,76 +26,76 @@ namespace SupplierWeb.Controllers
             return View();
         }
 
-        /// <summary>
-        /// 好友列表
-        /// </summary>
-        /// <param name="data"></param>
-        /// <param name="filters"></param>
-        /// <returns></returns>
-        [HttpPost]
-        [Route("index")]
-        public ActionResult index([FromBody]dynamic data, QueryFilter[] filters)
-        {
-            int start = 0;
-            string field = "";
-            string fieldvalue = "";
-            if (data != null)
-            {
-                if (data.pageIndex == 1)
-                {
-                    start = 0;
-                }
-                else
-                {
-                    start = ((data.pageIndex - 1) * data.pageSize) + 1;
-                }
-                if (data.filters.Count != 0)
-                {
-                    field = data.filters[0].field;
-                    fieldvalue = data.filters[0].value;
-                    data = new { query = "select * from mem_memberfriends where " + field + " like  '%" + fieldvalue + "%' limit " + data.pageSize };
-                }
-                else
-                {
-                    data = new { query = "select * from mem_memberfriends  limit " + data.pageSize };
-                }
-            }
-            //将参数转换成JSON数据
-            var json = JsonConvert.SerializeObject(data);
-            //通过传来的SQL语句,转换成DSL语句
-            string sql = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql/translate?format=json", "POST", json);
-            string from = "\"from\":" + start + ",";
-            sql = sql.Insert(1, from);
-            //通过转换的DSL语句,获取数据
-            var str = Util.ElasticCall("http://192.168.50.32:9200/mem_memberfriends/_search?format=json", "POST", sql);
-            //JSON转Root对象
-            Root stobj = FromJSON<Root>(str);
-            //将Root对象中的子对象取出来
-            List<_source> _source = new List<_source>();
-            _source = stobj.hits.hits.Select(x => x._source).ToList();
-            //List<Fields> Fields = new List<Fields>();
-            //Fields = stobj.hits.hits.Select(x => x.fields).ToList();
-            //给filed额外的属性赋值
-            stobj.hits.hits.ForEach(x =>
-            {
-                x._source._id = x._id;
-            });
-            //总数
-            long totalcount = 0;
-            data = new { query = "select count(1) from mem_memberfriends" };
-            var jsons = JsonConvert.SerializeObject(data);
-            string obj = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", jsons);
-            Num num = FromJSON<Num>(obj);
-            totalcount = num.rows[0][0];
-            var jsonData = JsonConvert.SerializeObject(_source);
-            return Json(
-                new
-                {
-                    items = JsonConvert.DeserializeObject(jsonData),
-                    totalCount = totalcount
-                });
+        ///// <summary>
+        ///// 好友列表
+        ///// </summary>
+        ///// <param name="data"></param>
+        ///// <param name="filters"></param>
+        ///// <returns></returns>
+        //[HttpPost]
+        //[Route("index")]
+        //public ActionResult index([FromBody]dynamic data, QueryFilter[] filters)
+        //{
+        //    int start = 0;
+        //    string field = "";
+        //    string fieldvalue = "";
+        //    if (data != null)
+        //    {
+        //        if (data.pageIndex == 1)
+        //        {
+        //            start = 0;
+        //        }
+        //        else
+        //        {
+        //            start = ((data.pageIndex - 1) * data.pageSize) + 1;
+        //        }
+        //        if (data.filters.Count != 0)
+        //        {
+        //            field = data.filters[0].field;
+        //            fieldvalue = data.filters[0].value;
+        //            data = new { query = "select * from mem_memberfriends where " + field + " like  '%" + fieldvalue + "%' limit " + data.pageSize };
+        //        }
+        //        else
+        //        {
+        //            data = new { query = "select * from mem_memberfriends  limit " + data.pageSize };
+        //        }
+        //    }
+        //    //将参数转换成JSON数据
+        //    var json = JsonConvert.SerializeObject(data);
+        //    //通过传来的SQL语句,转换成DSL语句
+        //    string sql = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql/translate?format=json", "POST", json);
+        //    string from = "\"from\":" + start + ",";
+        //    sql = sql.Insert(1, from);
+        //    //通过转换的DSL语句,获取数据
+        //    var str = Util.ElasticCall("http://192.168.50.32:9200/mem_memberfriends/_search?format=json", "POST", sql);
+        //    //JSON转Root对象
+        //    Root stobj = FromJSON<Root>(str);
+        //    //将Root对象中的子对象取出来
+        //    List<_source> _source = new List<_source>();
+        //    _source = stobj.hits.hits.Select(x => x._source).ToList();
+        //    //List<Fields> Fields = new List<Fields>();
+        //    //Fields = stobj.hits.hits.Select(x => x.fields).ToList();
+        //    //给filed额外的属性赋值
+        //    stobj.hits.hits.ForEach(x =>
+        //    {
+        //        x._source._id = x._id;
+        //    });
+        //    //总数
+        //    long totalcount = 0;
+        //    data = new { query = "select count(1) from mem_memberfriends" };
+        //    var jsons = JsonConvert.SerializeObject(data);
+        //    string obj = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", jsons);
+        //    Num num = FromJSON<Num>(obj);
+        //    totalcount = num.rows[0][0];
+        //    var jsonData = JsonConvert.SerializeObject(_source);
+        //    return Json(
+        //        new
+        //        {
+        //            items = JsonConvert.DeserializeObject(jsonData),
+        //            totalCount = totalcount
+        //        });
 
-        }
+        //}
 
         /// <summary>
         /// 会员好友列表
@@ -108,28 +108,15 @@ namespace SupplierWeb.Controllers
         public ActionResult MemberFriends([FromBody]dynamic data, QueryFilter[] filters)
         {
             int start = 0;
-            string field = "";
-            string fieldvalue = "";
+            string MemberPhone = "0470-8204649";
+            string FriendID = "";
             if (data != null)
             {
-                if (data.pageIndex == 1)
-                {
-                    start = 0;
-                }
-                else
-                {
-                    start = ((data.pageIndex - 1) * data.pageSize) + 1;
-                }
-                if (data.filters.Count != 0)
-                {
-                    field = data.filters[0].field;
-                    fieldvalue = data.filters[0].value;
-                    data = new { query = "select * from mem_memberfriends where  MemberPhone='0470-8204649' and " + field + " like  '%" + fieldvalue + "%' limit " + data.pageSize };
-                }
-                else
-                {
-                    data = new { query = "select * from mem_memberfriends where  MemberPhone='0470-8204649'  limit " + data.pageSize };
-                }
+                //data = new { query = "select * from mem_memberfriends where  MemberPhone='"+ MemberPhone + "' and " + field + " like  '%" + fieldvalue + "%' limit " + data.pageSize };
+
+                FriendID = GetPrescriptionOderscode(data, MemberPhone);
+                data = new { query = "select * from mem_memberbase_p where  MemUsualPhone='" + FriendID + "'  limit " + data.pageSize };
+               
             }
             //将参数转换成JSON数据
             var json = JsonConvert.SerializeObject(data);
@@ -138,27 +125,27 @@ namespace SupplierWeb.Controllers
             string from = "\"from\":" + start + ",";
             sql = sql.Insert(1, from);
             //通过转换的DSL语句,获取数据
-            var str = Util.ElasticCall("http://192.168.50.32:9200/mem_memberfriends/_search?format=json", "POST", sql);
+            var str = Util.ElasticCall("http://192.168.50.32:9200/mem_memberbase_p/_search?format=json", "POST", sql);
             //JSON转Root对象
             Root stobj = FromJSON<Root>(str);
             //将Root对象中的子对象取出来
             List<_source> _source = new List<_source>();
             _source = stobj.hits.hits.Select(x => x._source).ToList();
-            //List<Fields> Fields = new List<Fields>();
-            //Fields = stobj.hits.hits.Select(x => x.fields).ToList();
+            List<Fields> Fields = new List<Fields>();
+            Fields = stobj.hits.hits.Select(x => x.fields).ToList();
             //给filed额外的属性赋值
             stobj.hits.hits.ForEach(x =>
             {
-                x._source._id = x._id;
+                x.fields._id = x._id;
             });
             //总数
             long totalcount = 0;
-            data = new { query = "select count(1) from mem_memberfriends where  MemberPhone='0470-8204649'" };
+            data = new { query = "select count(1) from mem_memberbase_p where  MemUsualPhone='" + MemberPhone + "'" };
             var jsons = JsonConvert.SerializeObject(data);
             string obj = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", jsons);
             Num num = FromJSON<Num>(obj);
             totalcount = num.rows[0][0];
-            var jsonData = JsonConvert.SerializeObject(_source);
+            var jsonData = JsonConvert.SerializeObject(Fields);
             return Json(
                 new
                 {
@@ -167,6 +154,8 @@ namespace SupplierWeb.Controllers
                 });
 
         }
+
+
         /// <summary>
         /// JSON转对象
         /// </summary>
@@ -186,32 +175,35 @@ namespace SupplierWeb.Controllers
             }
         }
 
-
-
-        #region 实体类
-        public class ColumnsItem
+        /// <summary>
+        /// 根据电话号码,获取他所有的订单编号
+        /// </summary>
+        /// <param name="data"></param>
+        /// <returns></returns>
+        public string GetPrescriptionOderscode([FromBody]dynamic data, string MemberPhone)
         {
-            /// <summary>
-            /// 
-            /// </summary>
-            public string name { get; set; }
-            /// <summary>
-            /// 
-            /// </summary>
-            public string type { get; set; }
+            string code = "";
+            data = new { query = "select MemberFriendsPhone from mem_memberfriends where  MemberPhone='" + MemberPhone + "'" };
+            var ordersql = JsonConvert.SerializeObject(data);
+            string orderstr = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", ordersql);
+            FriendCode orderscode = FromJSON<FriendCode>(orderstr);
+            for (int i = orderscode.rows.Count - 1; i >= 0; i--)
+            {
+                //if (i > 0)
+                //{
+                    code +=   orderscode.rows[i][0] ;
+                //}
+                //else
+                //{
+                //    code += "'" + orderscode.rows[i][0] + "'";
+                //}
+            }
+            return code;
         }
 
-        public class Num
-        {
-            /// <summary>
-            /// 
-            /// </summary>
-            public List<ColumnsItem> columns { get; set; }
-            /// <summary>
-            /// 
-            /// </summary>
-            public List<List<int>> rows { get; set; }
-        }
+
+
+        #region
         public class _shards
         {
             /// <summary>
@@ -249,19 +241,92 @@ namespace SupplierWeb.Controllers
             /// <summary>
             /// 
             /// </summary>
+            public string MemDesc { get; set; }
+        }
+
+        public class Fields
+        {
             public string _id { get; set; }
             /// <summary>
             /// 
             /// </summary>
-            public string MemberId { get; set; }
+            public List<int> OriginType { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> RegisterYear { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemUsualProvinceCode { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemberNickName { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> HasOrder { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemEmail { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemUsualAddress { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemUsualPhone { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemberId { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> RegisterTime { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<int> MemberGender { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemberHeaPic { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<int> MemberKey { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> RegisterDay { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> OrdersCode { get; set; }
             /// <summary>
             /// 
             /// </summary>
-            public string MemberFriendsPhone { get; set; }
+            public List<string> MemUsualCityCode { get; set; }
             /// <summary>
             /// 
             /// </summary>
-            public string MemberPhone { get; set; }
+            public List<string> RegisterMonth { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemPhone1 { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemPhone2 { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> MemPhone3 { get; set; }
         }
 
         public class HitsItem
@@ -289,6 +354,10 @@ namespace SupplierWeb.Controllers
             /// <summary>
             /// 
             /// </summary>
+            public Fields fields { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
             public List<int> sort { get; set; }
         }
 
@@ -328,5 +397,57 @@ namespace SupplierWeb.Controllers
             public Hits hits { get; set; }
         }
         #endregion
+
+        #region Friend实体类
+        public class Friend
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public string name { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string type { get; set; }
+        }
+
+        public class FriendCode
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<Friend> columns { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<List<string>> rows { get; set; }
+        }
+        #endregion
+
+        #region
+        public class ColumnsItem
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public string name { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string type { get; set; }
+        }
+
+        public class Num
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<ColumnsItem> columns { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<List<int>> rows { get; set; }
+        }
+        #endregion
     }
 }

+ 3 - 4
Member/MemberWeb/Controllers/Mem_memberinformationController.cs

@@ -37,11 +37,11 @@ namespace SupplierWeb.Controllers
         public ActionResult index([FromBody]dynamic data, QueryFilter[] filters)
         {
             int start = 0;
-            string field = "";
-            string fieldvalue = "";
+            string MemberPhone = "";
             if (data != null)
             {
-                data = new { query = "select * from mem_memberbase_p where MemUsualPhone='13761709889'" };
+                MemberPhone = data.query;
+                data = new { query = "select * from mem_memberbase_p where MemUsualPhone="+ MemberPhone };
                
             }
             //将参数转换成JSON数据
@@ -135,7 +135,6 @@ namespace SupplierWeb.Controllers
                     success = true,
                     totalCount = totalCount
                 });
-
         }
 
 

+ 265 - 0
Member/MemberWeb/Controllers/mem_memberexts_tempController.cs

@@ -0,0 +1,265 @@
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Threading.Tasks;
+using CoreEntity.Entity;
+using JCSoft.WX.Framework.Api;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.Extensions.Caching.Memory;
+using Newtonsoft.Json;
+using PublicLibrary.Model;
+using SupplierWeb.Commonss;
+
+namespace SupplierWeb.Controllers
+{
+    [Route("web/mem_memberexts_temp")]
+    public class mem_memberexts_tempController : BaseController
+    {
+
+        public mem_memberexts_tempController(IMemoryCache cache, IApiClient client) : base(cache, client)
+        {
+
+        }
+        public IActionResult Index()
+        {
+            return View();
+        }
+
+        /// <summary>
+        /// 会员中心列表
+        /// </summary>
+        /// <param name="data"></param>
+        /// <param name="filters"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("MemberextsByPhone")]
+        public ActionResult MemberextsByPhone([FromBody]dynamic data, QueryFilter[] filters)
+        {
+            int start = 0;
+            string MemberPhone = "";
+            if (data != null)
+            {
+                MemberPhone = data.query;
+                data = new { query = "select * from mem_memberexts where MemberPhone=" + MemberPhone };
+
+            }
+            //将参数转换成JSON数据
+            var json = JsonConvert.SerializeObject(data);
+            //通过传来的SQL语句,转换成DSL语句
+            string sql = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql/translate?format=json", "POST", json);
+            string from = "\"from\":" + start + ",";
+            sql = sql.Insert(1, from);
+            //通过转换的DSL语句,获取数据
+            var str = Util.ElasticCall("http://192.168.50.32:9200/mem_memberexts/_search?format=json", "POST", sql);
+            //JSON转Root对象
+            Root stobj = FromJSON<Root>(str);
+            //将Root对象中的子对象取出来
+            List<_source> _source = new List<_source>();
+            _source = stobj.hits.hits.Select(x => x._source).ToList();
+            List<Fields> Fields = new List<Fields>();
+            Fields = stobj.hits.hits.Select(x => x.fields).ToList();
+            //给filed额外的属性赋值
+            stobj.hits.hits.ForEach(x =>
+            {
+                x._source._id = x._id;
+            });
+            //总数
+            //long totalcount = 0;
+            //data = new { query = "select count(1) from mem_memberbase_p" };
+            //var jsons = JsonConvert.SerializeObject(data);
+            //string obj = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", jsons);
+            //Num num = FromJSON<Num>(obj);
+            //totalcount = num.rows[0][0];
+            var jsonData = JsonConvert.SerializeObject(_source);
+            return Json(
+                new
+                {
+                    items = JsonConvert.DeserializeObject(jsonData),
+                    success = true
+                });
+
+        }
+
+
+        /// <summary>
+        /// JSON转对象
+        /// </summary>
+        /// <typeparam name="T"></typeparam>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        public static T FromJSON<T>(string input)
+        {
+            try
+            {
+                return JsonConvert.DeserializeObject<T>(input);
+            }
+            catch (Exception ex)
+            {
+                string a = ex.Message;
+                return default(T);
+            }
+        }
+
+
+
+
+        #region 列表实体类
+        public class _shards
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public int total { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public int successful { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public int skipped { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public int failed { get; set; }
+        }
+
+        public class Total
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public int value { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string relation { get; set; }
+        }
+
+        public class _source
+        {
+            public string _id { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string MemberId { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string Phone1 { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string Phone3 { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string Phone2 { get; set; }
+            /// <summary>
+            /// 上海金山区山阳镇海丰路506号
+            /// </summary>
+            public string DeliveryAddress { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string DeliveryZipCode { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string Gender { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string MemberPhone { get; set; }
+            /// <summary>
+            /// 肖峰
+            /// </summary>
+            public string MemName { get; set; }
+        }
+
+        public class Fields
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<string> Age { get; set; }
+        }
+
+        public class HitsItem
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public string _index { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string _type { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string _id { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string _score { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string _routing { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public _source _source { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public Fields fields { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<int> sort { get; set; }
+        }
+
+        public class Hits
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public Total total { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string max_score { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<HitsItem> hits { get; set; }
+        }
+
+        public class Root
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public int took { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string timed_out { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public _shards _shards { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public Hits hits { get; set; }
+        }
+        #endregion
+
+        #region 总数实体类
+        #endregion
+    }
+}

+ 1 - 1
Member/MemberWeb/Controllers/mem_prescriptionController.cs

@@ -39,6 +39,7 @@ namespace SupplierWeb.Controllers
         {
             string code = "";
             int start = 0;
+            string MemPhone = "15916884929";
             if (data != null)
             {
                 if (data.pageIndex == 1)
@@ -50,7 +51,6 @@ namespace SupplierWeb.Controllers
                     start = ((data.pageIndex - 1) * data.pageSize) + 1;
                 }
                 //根据会员电话号码,先找到他的所有订单
-                string MemPhone = "15916884929";
                 code = GetPrescriptionOderscode(data, MemPhone);
                 //找到属于处方的订单
                 data = new { query = "select * from mem_prescription where  OrdersCode in("+code+") "};

+ 192 - 6
Member/MemberWeb/Controllers/mem_tagController.cs

@@ -27,14 +27,14 @@ namespace SupplierWeb.Controllers
         }
 
         /// <summary>
-        /// 会员中心列表
+        /// AllTagList列表
         /// </summary>
         /// <param name="data"></param>
         /// <param name="filters"></param>
         /// <returns></returns>
         [HttpPost]
         [Route("AllTagList")]
-        public ActionResult TagList([FromBody]dynamic data, QueryFilter[] filters)
+        public ActionResult AllTagList([FromBody]dynamic data, QueryFilter[] filters)
         {
             int start = 0;
             if (data != null)
@@ -88,15 +88,175 @@ namespace SupplierWeb.Controllers
                 });
 
         }
-        
 
 
         /// <summary>
-        /// JSON转对象
+        /// 获取某个用户的tag
         /// </summary>
-        /// <typeparam name="T"></typeparam>
-        /// <param name="input"></param>
+        /// <param name="data"></param>
+        /// <param name="filters"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("TagByMemberPhone")]
+        public ActionResult TagByMemberPhone([FromBody]dynamic data, QueryFilter[] filters)
+        {
+           int start = 0;
+            string MemberPhone = "";
+            Dictionary<string, List<_source>> dic = new Dictionary<string, List<_source>>();
+            if (data != null)
+            {
+                MemberPhone = data.query;
+               
+            }
+            //获取该用户所有标签类别
+            dynamic querytype = new { query = "select TagTypeName from mem_membertag where MemberPhone='" + MemberPhone + "'  group by TagTypeName" };
+            string type = JsonConvert.SerializeObject(querytype);
+            string typelist = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", type);
+            Queryresults list = FromJSON<Queryresults>(typelist);
+            for (int i = 0; i < list.rows.Count; i++)
+            {
+                string typename = list.rows[i][0];
+                data = new { query = "select * from mem_membertag where MemberPhone='" + MemberPhone + "' and TagTypeName= '"+ typename + "'"  };
+                //将参数转换成JSON数据
+                var json = JsonConvert.SerializeObject(data);
+                //通过传来的SQL语句,转换成DSL语句
+                string sql = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql/translate?format=json", "POST", json);
+                string from = "\"from\":" + start + ",";
+                sql = sql.Insert(1, from);
+                //通过转换的DSL语句,获取数据
+                var str = Util.ElasticCall("http://192.168.50.32:9200/mem_membertag/_search?format=json", "POST", sql);
+                //JSON转Root对象
+                Root stobj = FromJSON<Root>(str);
+                //将Root对象中的子对象取出来
+                List<_source> _source = new List<_source>();
+                _source = stobj.hits.hits.Select(x => x._source).ToList();
+                //List<Fields> Fields = new List<Fields>();
+                //Fields = stobj.hits.hits.Select(x => x.fields).ToList();
+                //给_source额外的属性赋值
+                stobj.hits.hits.ForEach(x =>
+                {
+                    x._source._id = x.fields.TagId[0].ToString();
+                });
+                dic.Add(typename, _source);
+            }
+            
+            //总数
+            //long totalcount = 0;
+            //data = new { query = "select count(1) from mem_membertag where MemberPhone='" + MemberPhone + "' " };
+            //var jsons = JsonConvert.SerializeObject(data);
+            ////ES获取SQL执行结果
+            //string obj = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", jsons);
+            //Num num = FromJSON<Num>(obj);
+            //totalcount = num.rows[0][0];
+            var jsonData = JsonConvert.SerializeObject(dic);
+            return Json(
+                new
+                {
+                    items = JsonConvert.DeserializeObject(jsonData),
+                    success = true,
+                    //totalCount = totalcount
+                });
+
+        }
+
+        /// <summary>
+        /// 用户tag修改
+        /// </summary>
+        /// <param name="data"></param>
+        /// <param name="filters"></param>
         /// <returns></returns>
+        [HttpPost]
+        [Route("EditMemberTag")]
+        public ActionResult EditMemberTag([FromBody]dynamic data, QueryFilter[] filters)
+        {
+           string memberphone = "";
+           string checkkey ="";
+           bool success = false;
+           if (data != null)
+            {
+                memberphone = data.memberphone;
+                //checkkey = data.checkkey;
+                //拼接tagID
+                for (int i = data.checkkey.Count - 1; i >= 0; i--)
+                {
+                    if (i > 0)
+                    {
+                        checkkey += data.checkkey[i]+",";
+                    }
+                    else
+                    {
+                        checkkey += data.checkkey[i];
+                    }
+                }
+                //从mem_tag获取选中的tag信息
+                dynamic taglsit = new { query = "select TagId,TagName,TagTypeName from mem_tag where TagId in ("+ checkkey + ")" };
+                string tagjson = JsonConvert.SerializeObject(taglsit);
+                string obj = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", tagjson);
+                Queryresults queryresults= FromJSON<Queryresults>(obj);
+                //往会员—标签关联表mem_membertag插入数据
+                for (int i = 0; i < data.checkkey.Count; i++)
+                {
+                    string TagName = "";
+                    string TagTypeName = "";
+                    string TagId = "";
+                    for (int j = 0; j < queryresults.rows.Count; j++)
+                    {
+                        //如果选中的tagid=mem_tag表查询的tagid
+                        if (data.checkkey[i] == queryresults.rows[j][0])
+                        {
+                            TagId = queryresults.rows[j][0];
+                            TagName = queryresults.rows[j][1];
+                            TagTypeName = queryresults.rows[j][2];
+                        }
+                    }
+                    //准备需要添加的数据
+                    dynamic taginfo = new {
+                        MemberPhone= memberphone,
+	                    TagId= TagId,
+	                    TagName= TagName,
+	                    TagTypeName= TagTypeName
+                    };
+                    string json = JsonConvert.SerializeObject(taginfo);
+                    //tagid+memberphone作为mem_membertag主键
+                    string dockey = TagId + "_" + memberphone;
+
+                    //在mem_membertag查询当前tag+memberphone是否存在
+                    dynamic selecttag = new { query = "select * from mem_membertag where MemberPhone='"+ memberphone + "' and TagId="+ TagId };
+                    string selecjson = JsonConvert.SerializeObject(selecttag);
+                    string excitetag = Util.ElasticCall("http://192.168.50.32:9200/_xpack/sql?format=json", "POST", selecjson);
+                    Queryresults excite = FromJSON<Queryresults>(excitetag);
+                    //如果存在,先删除再添加
+                    if (excite.rows.Count!=0)
+                    {
+                       string deletesql = Util.ElasticCall("http://192.168.50.32:9200/mem_membertag/_doc/" + dockey, "DELETE", "");
+                       
+                    }
+                    string insertsql = Util.ElasticCall("http://192.168.50.32:9200/mem_membertag/_doc/" + dockey, "POST", json);
+                    if (insertsql != null)
+                    {
+                        success = true;
+                    }
+                    else
+                    {
+                        success = false;
+                    }
+
+                }
+                
+            }
+           return Json(
+                new
+                {
+                    success = success, 
+                });
+        }
+
+        /// <summary>
+            /// JSON转对象
+            /// </summary>
+            /// <typeparam name="T"></typeparam>
+            /// <param name="input"></param>
+            /// <returns></returns>
         public static T FromJSON<T>(string input)
         {
             try
@@ -277,5 +437,31 @@ namespace SupplierWeb.Controllers
         }
         #endregion
 
+        #region 查询实体类
+        public class entity
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public string name { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public string type { get; set; }
+        }
+
+        public class Queryresults 
+
+        {
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<entity> columns { get; set; }
+            /// <summary>
+            /// 
+            /// </summary>
+            public List<List<string>> rows { get; set; }
+        }
+        #endregion
     }
 }

+ 42 - 0
Member/MemberWeb/log-file.log

@@ -165,3 +165,45 @@
 2019-06-17 14:03:54,366 [13] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
 2019-06-17 14:03:58,169 [8] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
 2019-06-17 14:10:29,563 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-17 14:29:24,418 [13] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-17 14:55:24,542 [104] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-17 16:05:00,528 [54] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-17 18:08:24,253 [63] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-17 19:52:38,159 [17] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 13:53:39,030 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 13:56:22,053 [13] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 14:00:39,669 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 14:24:22,177 [58] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 14:31:13,806 [97] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 14:35:04,671 [117] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 14:35:27,575 [97] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 14:37:08,668 [117] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-18 18:20:22,791 [14] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 09:49:19,616 [16] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:00:10,441 [12] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:08:27,069 [13] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:12:59,863 [8] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:19:02,208 [12] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:22:41,070 [10] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:28:04,341 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:35:43,241 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:38:28,916 [10] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 14:47:01,103 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 15:07:43,494 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 15:10:52,527 [8] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 15:12:52,120 [13] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 15:55:50,543 [13] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 16:10:45,276 [49] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 16:27:37,295 [8] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 17:07:02,967 [10] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 17:09:21,214 [7] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 17:20:52,518 [9] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 17:22:39,975 [10] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 17:26:07,950 [14] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 17:36:44,566 [9] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 19:11:40,982 [8] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 20:30:45,406 [9] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 20:33:11,081 [8] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-19 22:17:22,707 [8] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-20 09:43:20,042 [9] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败
+2019-06-20 10:08:12,828 [82] ERROR SupplierWeb.Controllers.LoginController [(null)] - 获取微信token失败