Bladeren bron

Signed-off-by: Lgx <361400959>

Lgx 4 jaren geleden
bovenliggende
commit
dd0d45f54a

+ 52 - 0
UI/src/pages/externalWechat/externalUserList.js

@@ -0,0 +1,52 @@
+import React from 'react';
+import { BirdGrid } from 'components/Grid';
+import { routerRedux } from 'dva/router'
+import { config,request,util } from 'utils'
+import { connect } from 'dva';
+const { APIV4,APIV5 } = config
+class tag_setting extends React.Component {
+  constructor(props) {
+    super(props)
+    console.log(props)
+
+    this.state = {
+      formConfirmLoading:false,
+      formVisiable:false,
+      getdDisdatas:[]
+    }
+  }
+
+  onClose(){
+
+  }
+  //获取规则数据
+  componentDidMount(){ 
+    let self=this;
+ }
+  render() {
+    let self = this;
+
+    
+    let gridOption = {
+      title: "订单列表",
+      url: {
+        read:APIV5+"/api/excel/getExternalUserList"
+      },
+      columns: [
+        { title: "ID", data: "id", type: "text", editor: {},query:true },
+        { title: "姓名(昵称)", data: "name", type: "text",editor: {}, query: true},
+        { title: "性别", data: "gender", type: "text", editor: {},query:true },
+        { title: "年龄", data: "user_age",  type: "text", editor: {},query:true },
+        { title: "手机", data: "remark_mobiles", type: "text",  editor: {},query:true},
+        { title: "添加时间", data: "createtime", type: "text", editor: {},query:true},
+        { title: "到达", data: "termain_type", type: "text",  editor: {},query:true},
+        { title: "企业好友", data: "company_name", type: "text",  editor: {},query:true},
+        { title: "状态", data: "is_delete", type: "text",  editor: {},query:true}
+      ]
+    };
+    return <div>
+                <BirdGrid gridOption={gridOption} ref="grid"></BirdGrid>
+           </div>
+  }
+}
+export default connect( ( { bindActionCreators } ) => ( { bindActionCreators } ) )( tag_setting );

+ 2 - 2
src/main/java/com/github/binarywang/demo/wx/cp/dao/foo/UserMapper.java

@@ -1,10 +1,10 @@
 package com.github.binarywang.demo.wx.cp.dao.foo;
 
 import com.baomidou.mybatisplus.mapper.BaseMapper;
-import com.github.binarywang.demo.wx.cp.model.User;
+import com.github.binarywang.demo.wx.cp.model.Account;
 import org.apache.ibatis.annotations.Mapper;
 
 @Mapper
-public interface UserMapper extends BaseMapper<User> {
+public interface UserMapper extends BaseMapper<Account> {
 
 }

+ 1 - 1
src/main/resources/mapper/UserMapper.xml

@@ -3,7 +3,7 @@
 <mapper namespace="com.github.binarywang.demo.wx.cp.dao.foo.UserMapper">
 
 	<!-- 通用查询映射结果 -->
-	<resultMap id="baseResultMap" type="com.github.binarywang.demo.wx.cp.model.User">
+	<resultMap id="baseResultMap" type="com.github.binarywang.demo.wx.cp.model.Account">
 		<id column="id" property="id" />
 		<result column="username" property="username" />
 		<result column="password" property="password" />