diff --git a/dsUtils/pom.xml b/dsUtils/pom.xml
index acc65d25..0998e5ff 100644
--- a/dsUtils/pom.xml
+++ b/dsUtils/pom.xml
@@ -62,6 +62,13 @@
hutool-all
${hutool.version}
+
+
+ org.projectlombok
+ lombok
+ 1.18.34
+ provided
+
diff --git a/dsUtils/src/main/java/com/dsideal/GenerateCode/AutoCreatedEntityName.java b/dsUtils/src/main/java/com/dsideal/GenerateCode/AutoCreatedEntityName.java
deleted file mode 100644
index 3f2d68be..00000000
--- a/dsUtils/src/main/java/com/dsideal/GenerateCode/AutoCreatedEntityName.java
+++ /dev/null
@@ -1,132 +0,0 @@
-package com.dsideal.GenerateCode;
-
-import java.io.FileWriter;
-import java.io.IOException;
-import java.sql.Connection;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import com.jfinal.core.JFinal;
-import com.jfinal.plugin.activerecord.DbKit;
-
-public class AutoCreatedEntityName {
-
- /***
- * 生成表实体
- */
- @SuppressWarnings("rawtypes")
- private String getEntity(String tableName, Map property,String packagename) {
- String ln = "\r\n";
- StringBuffer sb = new StringBuffer();
- sb.append(ln+"\t/***\t\r\n\t*表名:"+tableName+"\t\r\n\t*/");
- sb.append(ln + "\tpublic static final class " + FileNameManager.CamelCase(tableName.split("_")) + "{" + ln);
- sb.append("\t\tpublic static final String " + "tableName" + "=\"" + tableName+ "\";" + ln);
- Iterator i=property.entrySet().iterator();
- while(i.hasNext()){
- Map.Entry e=(Map.Entry)i.next();
- sb.append("\t\tpublic static final String "
- + FileNameManager.CamelCase(e.getKey().toString().split("_")) + "=\"" + e.getKey().toString()
- + "\";" + ln);
- }
- sb.append("\t\tpublic static final String[] all={");
-
- Iterator is=property.entrySet().iterator();
- while(is.hasNext()){
- Map.Entry e=(Map.Entry)is.next();
- sb.append("\r\n\t\t\t");
- sb.append(FileNameManager.CamelCase(e.getKey().toString().split("_")));
- sb.append(",");
- }
- sb.deleteCharAt(sb.length()-1);;
- sb.append("\r\n\t\t};\r\n");
- sb.append("\t\tpublic static final Integer size=" + property.size() + ";"
- + ln);
- sb.append("\t}" + ln);
- try {
- new AutoCreatedModelFile(FileNameManager.CamelCase(tableName.split("_")),property,packagename);
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return sb.toString();
- }
-
- @SuppressWarnings({ "rawtypes", "unchecked" })
- private String CreatedRFile(Map> map,String packagename)
- {
-
- String ln = "\r\n";
- StringBuffer sb = new StringBuffer();
- sb.append(ln +"package "+packagename+";"+ln+
- "/***"+ln+
- " * 表文件结构。"+ln+
- " * 对应表文件名。"+ln+
- " * 在Model中不需要记住对应的表名。"+ln+
- " * 只用此文件中对应的名称。"+ln+
- " * 同时避免了字段名修改,删除后程序结构破坏。"+ln+
- " * @author 石啸天"+ln+
- " *"+ln+
- " */"+ln+
- "public final class R {"+ln
- );
-
- Iterator i=map.entrySet().iterator();
- while(i.hasNext()){//只遍历一次,速度快
- Map.Entry e=(Map.Entry)i.next();
- sb.append(getEntity(e.getKey().toString(),(Map)e.getValue(),packagename));
- }
- sb.append(ln + "}");
- return sb.toString();
- }
- /***
- * 读取数组中全部的数据表生成对应R文件
- * @param tableName 表名数组
- */
- public void created(String[] tableName,String packagename) {
- DataBeasTypeToJavaType dtj = new DataBeasTypeToJavaType();
- so.p("开始生成实体R文件");
- Connection conn = null;
- PreparedStatement colunmsPs = null;
- Map> all = new HashMap>();
- try {
- conn = DbKit.getConfig().getConnection();
- for (int i = 0; i < tableName.length; i++) {
- colunmsPs = conn.prepareStatement("desc " + tableName[i]);
- //字段列表
- Map colunms = new HashMap();
- ResultSet columnsRs = colunmsPs.executeQuery();
- // 获取对应表中的字段
- while (columnsRs.next()) {
-// colunms.add(columnsRs.getString(1));
-// so.p("字段 "+columnsRs.getString(1)+" "+columnsRs.getString(2).split(")")[0]);
- colunms.put(columnsRs.getString(1), dtj.get(columnsRs.getString(2).split("\\(")[0]));
- }
- so.p("表为 " + FileNameManager.CamelCase(tableName[i].split("_")));
- all.put(tableName[i], colunms);
- colunmsPs.close();
- }
- conn.close();
- so.p(packagename);
- String[] pn = packagename.split("\\.");
- StringBuffer file = new StringBuffer();
- String dir = "D:\\dsWork\\dsProject\\dsUtils\\src\\main\\java";
- file.append(dir);
- for (String p : pn) {
- file.append("\\");
- file.append(p);
- }
- so.p(file.toString());
- FileWriter fileWriter = new FileWriter(file + "/" + "R.java");
- fileWriter.write(CreatedRFile(all, packagename));
- fileWriter.flush();
- fileWriter.close();
- so.p("生成完成");
-// return getEntity(tableName, property);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-}
\ No newline at end of file
diff --git a/dsUtils/src/main/java/com/dsideal/GenerateCode/AutoCreatedModelFile.java b/dsUtils/src/main/java/com/dsideal/GenerateCode/AutoCreatedModelFile.java
deleted file mode 100644
index 8e0ad806..00000000
--- a/dsUtils/src/main/java/com/dsideal/GenerateCode/AutoCreatedModelFile.java
+++ /dev/null
@@ -1,308 +0,0 @@
-package com.dsideal.GenerateCode;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.Iterator;
-import java.util.Map;
-
-import com.jfinal.core.JFinal;
-
-/***
- * 自动生成带setter与getter方法的Model
- * @author 石啸天
- *
- */
-public class AutoCreatedModelFile {
-
- public AutoCreatedModelFile(String tableName, Map property, String packageName) throws IOException {
- //-----------------------拼装文件夹名
- String[] pn = packageName.split("\\.");
- StringBuffer file = new StringBuffer();
- String dir = "D:\\dsWork\\dsProject\\dsUtils\\src\\main\\java";
- file.append(dir);
- for (String p : pn) {
- file.append("/");
- file.append(p);
- }
- so.p(file.toString());
- //-------------------------------------
- //---------------------创建文件
- String f = createdFile(file.toString() + "/" + tableName + "/", FileNameManager.upFirstName(tableName) + ".java");
-
- FileWriter fileWriter = new FileWriter(f);
- fileWriter.write(getText(tableName, property, packageName));
- fileWriter.flush();
- fileWriter.close();
- }
-
- /***
- * 创建文本内容
- * @param tableName
- * @param property
- * @return
- */
- private String getText(String tableName, Map property, String packageName) {
- String classname = FileNameManager.upFirstName(tableName);
-
- //参数对组
- String para = entrypara(property);
- String ln = "\r\n";
- String tab = "\t\t";
- StringBuffer sb = new StringBuffer();
- sb.append(ln + "package " + packageName + "." + tableName + ";" + ln +
- "import com.jfinal.plugin.activerecord.Model;" + ln +
- "import com.jfinal.plugin.activerecord.TableMapping;" + ln +
- "import com.jfinal.plugin.activerecord.Db;" + ln +
- "import java.util.HashMap;" + ln +
- "import java.util.List;" + ln +
- "import java.util.Map;" + ln +
- inputPackage(property) +
- "/***" + ln +
- " * 自动生成的Model" + ln +
- " * @author 石啸天" + ln +
- " *" + ln +
- " */" + ln +
- "@SuppressWarnings(\"serial\")" + ln +
- "public class " + classname + " extends Model<" + classname + ">{" + ln
- );
- //空构造与有参构造
- sb.append(classTextStringLine(new String[]{
- "//--------------setter和getter---------------",
- entryBean(classname, property),
- "//-------------------------------------------",
- "/***",
- "*数据库操作实体",
- "*/",
- "public static final " + classname + " dao=new " + classname + "();",
- "/**",
- "* 表名",
- "*/",
- "public static final String tableName=\"" + tableName + "\";",
- "/**",
- "* 表主键",
- "*/",
- "public static final String primaryKey=TableMapping.me().getTable(dao.getClass()).getPrimaryKey();",
- "/***",
- "* 空构造",
- "*/",
- "public " + classname + "(){}",
- "/***",
- "* 有参构造",
- "*/",
- "public " + classname + "(",
- para,
- "){",
- "setData(" + ln + tab + entryparas(property) + ln + tab + ");",
- "}",
- "/***",
- "*数据批量设置",
- "*/",
- "public " + classname + " setData(" + ln +
- "\t\t" + para +
- "){",
- setString(property),
- "return this;",
- "}",
- "/***",
- "* 按ID逆序查询全部数据",
- "* 出现SQL注入漏洞",
- "* @param pageNumber 页码",
- "* @param pageSize 每页记录数",
- "* @return",
- "* @throws Exception ",
- "*/",
- "public Map paginate(int pageNumber, int pageSize,String para,Object value) throws Exception {",
- classTextStringLine(new String[]{
- tab + "Object[] o=new Object[]{};",
- tab + "StringBuffer sb=new StringBuffer();",
- tab + "sb.append(\"from \"+tableName);",
- tab + "if(value!=null&&value!=null&&value!=\"\")",
- tab + "{",
- tab + tab + "o= new Object[]{value};",
- tab + tab + "sb.append(\" where \"+para+\"=?\");",
- tab + "}",
- tab + "sb.append(\" order by \"+primaryKey+\" DESC\");",
- //----------------------",
- //数据封装",
- tab + "Long num=Db.queryLong(\"select count(1) \"+sb.toString(),o);",
- tab + "List> data = paginate(pageNumber, pageSize, \"select *\", sb.toString(),o).getList();",
- tab + "Map m=new HashMap();",
- tab + tab + "m.put(\"data\", data);",
- tab + tab + "m.put(\"num\", num);",
- tab + "return m;",
- "}"
- })
-
- }));
- sb.append(ln + "}");
- return sb.toString();
- }
-
- /***
- * 创建文件
- * @param path
- * @param filename
- * @return
- * @throws IOException
- */
- private String createdFile(String path, String filename) throws IOException {
- //判断文件夹是否存在
- File dir = new File(path);
- if (!dir.exists()) dir.mkdirs();
- so.p(dir.getPath());
- //判断文件是否存在
- File f = new File(dir.getPath() + "/" + filename);
- if (!f.exists()) {
- f.createNewFile();
- } else {
- f.delete();
- f.createNewFile();
- }
-
- return f.getPath();
- }
-
- /***
- * 文本格式化
- * @param s
- * @return
- */
- private String classTextStringLine(String[] s) {
- StringBuffer sb = new StringBuffer();
- for (String k : s) {
- sb.append("\t\t" + k + "\r\n");
- }
- return sb.toString();
- }
-
- /***
- * 构建类似Bean
- * @param classname
- * @param property
- * @return
- */
- @SuppressWarnings("rawtypes")
- private String entryBean(String classname, Map property) {
- StringBuffer sb = new StringBuffer();
- sb.append("\r\n");
- /*//构建引用
- Iterator i=property.entrySet().iterator();
- while(i.hasNext()){//只遍历一次,速度快
- Map.Entry e=(Map.Entry)i.next();
- sb.append("\t\tpublic "+e.getValue().toString()+" "
- + com.dsideal.GenerateCode.FileNameManager.CamelCase(e.getKey().toString().split("_"))+";" + "\r\n");
- }*/
- //构建setter和getter
- Iterator k = property.entrySet().iterator();
- while (k.hasNext()) {//只遍历一次,速度快
- Map.Entry e = (Map.Entry) k.next();
- String propetyname = FileNameManager.CamelCase(e.getKey().toString().split("_"));
- //setter
- sb.append("\t\tpublic " + classname + " set"
- + FileNameManager.upFirstNameNoLowerCase(propetyname)
- + "(" + e.getValue() + " " + propetyname + "){" + "\r\n" +
- classTextStringLine(
- new String[]{
-// tab"\t\t" +"this." +propetyname+"="+propetyname+ ";",
- "\t\t" + "set(\"" + e.getKey() + "\"," + propetyname + ");",
- "\t\t" + "return this;",
- "\t\t" + "}"
- }
- )
- + "\r\n");
- sb.append("\t\tpublic " + e.getValue() + " get"
- + FileNameManager.upFirstNameNoLowerCase(propetyname)
- + "(){" + "\r\n" +
- classTextStringLine(
- new String[]{
- "\t\t" + "return get(\"" + e.getKey() + "\");",
- "\t\t" + "}"
- }
- )
- + "\r\n");
- }
- return sb.toString();
- }
-
- /***
- * 构建传参的字符串
- * @param property
- * @return
- */
- @SuppressWarnings("rawtypes")
- private String entrypara(Map property) {
- StringBuffer sb = new StringBuffer();
- //构建引用
- sb.append("\r\n");
- Iterator i = property.entrySet().iterator();
- while (i.hasNext()) {//只遍历一次,速度快
- Map.Entry e = (Map.Entry) i.next();
- String propetyname = FileNameManager.CamelCase(e.getKey().toString().split("_"));
- sb.append("\t\t\t\t" + e.getValue().toString() + " "
- + propetyname + "," + "\r\n");
- }
- return sb.substring(4, sb.lastIndexOf(","));
- }
-
- @SuppressWarnings("rawtypes")
- private String entryparas(Map property) {
- StringBuffer sb = new StringBuffer();
- //构建引用
- sb.append("\r\n");
- Iterator i = property.entrySet().iterator();
- while (i.hasNext()) {//只遍历一次,速度快
- Map.Entry e = (Map.Entry) i.next();
- String propetyname = FileNameManager.CamelCase(e.getKey().toString().split("_"));
- sb.append("\t\t\t\t" + propetyname + "," + "\r\n");
- }
- return sb.substring(4, sb.lastIndexOf(","));
- }
-
- /***
- * 批量set
- * @param property
- * @return
- */
- @SuppressWarnings("rawtypes")
- private String setString(Map property) {
- StringBuffer sb = new StringBuffer();
- //构建引用
- sb.append("\r\n");
- Iterator i = property.entrySet().iterator();
- while (i.hasNext()) {//只遍历一次,速度快
- Map.Entry e = (Map.Entry) i.next();
- String propetyname = FileNameManager.CamelCase(e.getKey().toString().split("_"));
- sb.append("\t\t\t\tset(\"" + e.getKey().toString() + "\"," + propetyname + ");\r\n");
- }
- return sb.substring(4, sb.length() - 2);
- }
-
- @SuppressWarnings("rawtypes")
- private String inputPackage(Map property) {
- StringBuffer sb = new StringBuffer();
- //构建引用
- sb.append("\r\n");
- Iterator i = property.entrySet().iterator();
- while (i.hasNext()) {//只遍历一次,速度快
- Map.Entry e = (Map.Entry) i.next();
- String type = e.getValue().toString();
- String packages = null;
- if (type.equals("BigInteger")) {
- packages = "import java.math.BigIntege;\r\nr";
- } else if (type.equals("BigDecimal")) {
- packages = "import java.math.BigDecimal;\r\n";
- } else if (type.equals("Date")) {
- packages = "import java.util.Date;\r\n";
- } else if (type.equals("Timestamp")) {
- packages = "import java.sql.Timestamp;\r\n";
- } else if (type.equals("Time")) {
- packages = "import java.sql.Time;\r\n";
- } else {
- packages = "";
- }
- sb.append(packages);
- }
- return sb.toString();
- }
-}
\ No newline at end of file
diff --git a/dsUtils/src/main/java/com/dsideal/GenerateCode/DataBeasTypeToJavaType.java b/dsUtils/src/main/java/com/dsideal/GenerateCode/DataBeasTypeToJavaType.java
deleted file mode 100644
index 8da1ec66..00000000
--- a/dsUtils/src/main/java/com/dsideal/GenerateCode/DataBeasTypeToJavaType.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.dsideal.GenerateCode;
-
-public class DataBeasTypeToJavaType {
-
- public String get(String type) {
- if (type.equals("char")) {
- return "String";
- } else if (type.equals("varchar")) {
- return "String";
- } else if (type.equals("blob")) {
- return "Byte[]";
- } else if (type.equals("text")) {
- return "String";
- } else if (type.equals("int")) {
- return "Integer";
- } else if (type.equals("tinyint")) {
- return "Integer";
- } else if (type.equals("smallint")) {
- return "Integer";
- } else if (type.equals("mediumint")) {
- return "Integer";
- } else if (type.equals("bit")) {
- return "Boolean";
- } else if (type.equals("bigint")) {
- return "BigInteger";
- } else if (type.equals("decimal")) {
- return "BigDecimal";
- } else if (type.equals("date")) {
- return "Date";
- } else if (type.equals("datetime")) {
- return "Timestamp";
- } else if (type.equals("timestamp")) {
- return "Timestamp";
- } else if (type.equals("time")) {
- return "Time";
- } else if (type.equals("year")) {
- return "Date";
- } else if (type.equals("float")) {
- return "Float";
- } else if (type.equals("double")) {
- return "Double";
- } else if (type.equals("integer")) {
- return "Long";
- } else {
- return null;
- }
- }
-}
diff --git a/dsUtils/src/main/java/com/dsideal/GenerateCode/FileNameManager.java b/dsUtils/src/main/java/com/dsideal/GenerateCode/FileNameManager.java
deleted file mode 100644
index c20b9a2a..00000000
--- a/dsUtils/src/main/java/com/dsideal/GenerateCode/FileNameManager.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package com.dsideal.GenerateCode;
-
-public class FileNameManager {
-
- /***
- *
- * 首字母大写处理
- * 注意:先所有字符小写化
- *
- */
- public static String upFirstName(String name) {
- String s = null;
- if (name != null) {
- s = name.toLowerCase();
- String first = "" + s.charAt(0);
- first = first.toUpperCase();
- s = first + s.substring(1, s.length());
- }
- return s;
- }
-
- /***
- *
- * 首字母大写处理
- *
- */
- public static String upFirstNameNoLowerCase(String name) {
- String s = null;
- if (name != null) {
- s = name;
- String first = "" + s.charAt(0);
- first = first.toUpperCase();
- s = first + s.substring(1, s.length());
- }
- return s;
- }
-
- /***
- *
- * 字符数组驼峰命名法处理
- *
- */
- public static String CamelCase(String n[]) {
- String s = null;
- if (n != null && n.length > 0) {
- StringBuffer b = new StringBuffer();
- b.append(n[0].toLowerCase());
- for (int i = 1; i < n.length; i++) {
- b.append(upFirstName(n[i]));
- }
- s = b.toString();
- }
- return s;
- }
-
- /***
- *
- * 字符数组首字母大写处理
- *
- */
- public static String upFirstName(String n[]) {
- String s = null;
- if (n != null && n.length > 0) {
- StringBuffer b = new StringBuffer();
- for (int i = 0; i < n.length; i++) {
- b.append(upFirstName(n[i]));
- }
- s = b.toString();
- }
- return s;
- }
-}
\ No newline at end of file
diff --git a/dsUtils/src/main/java/com/dsideal/GenerateCode/getJavaBean.java b/dsUtils/src/main/java/com/dsideal/GenerateCode/getJavaBean.java
deleted file mode 100644
index 1c663c67..00000000
--- a/dsUtils/src/main/java/com/dsideal/GenerateCode/getJavaBean.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.dsideal.GenerateCode;
-
-import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
-import com.jfinal.plugin.hikaricp.HikariCpPlugin;
-
-import javax.sql.DataSource;
-import java.io.File;
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.Statement;
-import java.util.*;
-
-public class getJavaBean {
-
- public static void main(String[] args) throws Exception {
- // 配置Druid数据源插件
- HikariCpPlugin hpPlugin = new HikariCpPlugin(
- "jdbc:mysql://10.10.14.210:22066/ds_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false",
- "root",
- "DsideaL147258369",
- "com.mysql.cj.jdbc.Driver");
-
- // 配置ActiveRecord插件
- ActiveRecordPlugin arp = new ActiveRecordPlugin(hpPlugin);
- hpPlugin.start();
- arp.start();
-
- AutoCreatedEntityName autoCreatedEntityName = new AutoCreatedEntityName();
- autoCreatedEntityName.created(new String[]{"t_wx_record"},"com.dsideal");
- }
-}
diff --git a/dsUtils/src/main/java/com/dsideal/GenerateCode/so.java b/dsUtils/src/main/java/com/dsideal/GenerateCode/so.java
deleted file mode 100644
index dae606c7..00000000
--- a/dsUtils/src/main/java/com/dsideal/GenerateCode/so.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.dsideal.GenerateCode;
-
-public class so {
- public static void p(String msg){
- System.out.println(msg);
- }
-}
diff --git a/dsUtils/src/main/java/com/dsideal/R.java b/dsUtils/src/main/java/com/dsideal/R.java
deleted file mode 100644
index c3cd141f..00000000
--- a/dsUtils/src/main/java/com/dsideal/R.java
+++ /dev/null
@@ -1,50 +0,0 @@
-
-package com.dsideal;
-/***
- * 表文件结构。
- * 对应表文件名。
- * 在Model中不需要记住对应的表名。
- * 只用此文件中对应的名称。
- * 同时避免了字段名修改,删除后程序结构破坏。
- * @author 石啸天
- *
- */
-public final class R {
-
- /***
- *表名:t_wx_record
- */
- public static final class tWxRecord{
- public static final String tableName="t_wx_record";
- public static final String stationName="station_name";
- public static final String connectorno="connectorNo";
- public static final String typeName="type_name";
- public static final String createTime="create_time";
- public static final String connectorid="connectorId";
- public static final String typeId="type_id";
- public static final String stationId="station_id";
- public static final String memo="memo";
- public static final String equipmentid="equipmentId";
- public static final String wxOpenid="wx_openid";
- public static final String statusId="status_id";
- public static final String equipmentname="equipmentName";
- public static final String id="id";
- public static final String[] all={
- stationName,
- connectorno,
- typeName,
- createTime,
- connectorid,
- typeId,
- stationId,
- memo,
- equipmentid,
- wxOpenid,
- statusId,
- equipmentname,
- id
- };
- public static final Integer size=13;
- }
-
-}
\ No newline at end of file
diff --git a/dsUtils/src/main/java/com/dsideal/base/Model/TSysLoginperson.java b/dsUtils/src/main/java/com/dsideal/base/Model/TSysLoginperson.java
new file mode 100644
index 00000000..fce7ae03
--- /dev/null
+++ b/dsUtils/src/main/java/com/dsideal/base/Model/TSysLoginperson.java
@@ -0,0 +1,203 @@
+package com.dsideal.base.Model;
+
+import lombok.Setter;
+import lombok.Getter;
+//
+public class TSysLoginperson {
+ // 人员ID
+ @Getter
+ @Setter
+ private null person_id;
+ // 人员姓名
+ @Getter
+ @Setter
+ private null person_name;
+ // 身份ID
+ @Getter
+ @Setter
+ private null identity_id;
+ // 登录名
+ @Getter
+ @Setter
+ private null login_name;
+ // 密码
+ @Getter
+ @Setter
+ private null pwd;
+ // 原始密码
+ @Getter
+ @Setter
+ private null original_pwd;
+ // md5后的密码,用于CAS验证
+ @Getter
+ @Setter
+ private null pwdmd5;
+ // 性别
+ @Getter
+ @Setter
+ private null xb;
+ // 民族
+ @Getter
+ @Setter
+ private null mz;
+ // 政治面貌
+ @Getter
+ @Setter
+ private null zzmm;
+ // 身份证号
+ @Getter
+ @Setter
+ private null idcard_code;
+ // 出生日期
+ @Getter
+ @Setter
+ private null birthday;
+ // 创建时间
+ @Getter
+ @Setter
+ private null create_time;
+ // 在单位内部的排序号
+ @Getter
+ @Setter
+ private null sort_id;
+ // 手机号
+ @Getter
+ @Setter
+ private null telephone;
+ // 绑定微信的openid
+ @Getter
+ @Setter
+ private null wx_openid;
+ // 绑定QQ的openid
+ @Getter
+ @Setter
+ private null qq_openid;
+ // 电子邮箱
+ @Getter
+ @Setter
+ private null email;
+ // 人员状态
+ @Getter
+ @Setter
+ private null status_code;
+ // 是不是可用
+ @Getter
+ @Setter
+ private null b_use;
+ // 身份主键序列
+ @Getter
+ @Setter
+ private null identity_pk_num;
+ // 市ID
+ @Getter
+ @Setter
+ private null city_id;
+ // 县区ID
+ @Getter
+ @Setter
+ private null area_id;
+ // 主校ID
+ @Getter
+ @Setter
+ private null main_school_id;
+ // 单位ID
+ @Getter
+ @Setter
+ private null bureau_id;
+ // 所在部门
+ @Getter
+ @Setter
+ private null org_id;
+ // 学生所在班级
+ @Getter
+ @Setter
+ private null s_class_id;
+ // 学籍号 规定为16位
+ @Getter
+ @Setter
+ private null s_xjh;
+ // 学籍辅号 规定为13位
+ @Getter
+ @Setter
+ private null s_xjfh;
+ // 学生来源 1:正常入学 2:借读 9:其他
+ @Getter
+ @Setter
+ private null s_source;
+ // 学生是哪个学段的
+ @Getter
+ @Setter
+ private null s_stage_id;
+ // 进城务工随迁子女
+ @Getter
+ @Setter
+ private null s_suiqian;
+ // 是否留守儿童
+ @Getter
+ @Setter
+ private null s_liushou;
+ // 是否孤儿
+ @Getter
+ @Setter
+ private null s_guer;
+ // 是否残疾
+ @Getter
+ @Setter
+ private null s_canji;
+ // 如果是家长,那么他是哪个孩子的家长
+ @Getter
+ @Setter
+ private null p_child_id;
+ // 职务与分管,json形式
+ @Getter
+ @Setter
+ private null t_duty_charge;
+ // 最高学历 字典表t_dm_xl
+ @Getter
+ @Setter
+ private null t_xl_id;
+ // 职称
+ @Getter
+ @Setter
+ private null t_zc_id;
+ // 学段
+ @Getter
+ @Setter
+ private null t_stage_id;
+ // 主教学科
+ @Getter
+ @Setter
+ private null t_subject_id;
+ // 从教年月日
+ @Getter
+ @Setter
+ private null t_teaching_date;
+ // 是否骨干教师
+ @Getter
+ @Setter
+ private null t_gugan;
+ //
+ @Getter
+ @Setter
+ private null update_ts;
+ // 整数主键
+ @Getter
+ @Setter
+ private null id_int;
+ // 操作人员
+ @Getter
+ @Setter
+ private null operator;
+ // 操作者IP
+ @Getter
+ @Setter
+ private null ip_address;
+ // 微信小程序的openid
+ @Getter
+ @Setter
+ private null mini_openid;
+
+ public String toString(){
+ return "{ person_id: " + person_id +", person_name: " + person_name +", identity_id: " + identity_id +", login_name: " + login_name +", pwd: " + pwd +", original_pwd: " + original_pwd +", pwdmd5: " + pwdmd5 +", xb: " + xb +", mz: " + mz +", zzmm: " + zzmm +", idcard_code: " + idcard_code +", birthday: " + birthday +", create_time: " + create_time +", sort_id: " + sort_id +", telephone: " + telephone +", wx_openid: " + wx_openid +", qq_openid: " + qq_openid +", email: " + email +", status_code: " + status_code +", b_use: " + b_use +", identity_pk_num: " + identity_pk_num +", city_id: " + city_id +", area_id: " + area_id +", main_school_id: " + main_school_id +", bureau_id: " + bureau_id +", org_id: " + org_id +", s_class_id: " + s_class_id +", s_xjh: " + s_xjh +", s_xjfh: " + s_xjfh +", s_source: " + s_source +", s_stage_id: " + s_stage_id +", s_suiqian: " + s_suiqian +", s_liushou: " + s_liushou +", s_guer: " + s_guer +", s_canji: " + s_canji +", p_child_id: " + p_child_id +", t_duty_charge: " + t_duty_charge +", t_xl_id: " + t_xl_id +", t_zc_id: " + t_zc_id +", t_stage_id: " + t_stage_id +", t_subject_id: " + t_subject_id +", t_teaching_date: " + t_teaching_date +", t_gugan: " + t_gugan +", update_ts: " + update_ts +", id_int: " + id_int +", operator: " + operator +", ip_address: " + ip_address +", mini_openid: " + mini_openid +"}";
+ }
+}
diff --git a/dsBase/src/main/java/com/dsideal/base/Tools/getJavaBean.java b/dsUtils/src/main/java/com/dsideal/getJavaBean.java
similarity index 66%
rename from dsBase/src/main/java/com/dsideal/base/Tools/getJavaBean.java
rename to dsUtils/src/main/java/com/dsideal/getJavaBean.java
index c2bf23ec..75b09587 100644
--- a/dsBase/src/main/java/com/dsideal/base/Tools/getJavaBean.java
+++ b/dsUtils/src/main/java/com/dsideal/getJavaBean.java
@@ -1,11 +1,9 @@
-package com.dsideal.base.Tools;
+package com.dsideal;
import cn.hutool.core.io.FileUtil;
import com.jfinal.kit.PropKit;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.jfinal.plugin.hikaricp.HikariCpPlugin;
-import lombok.Getter;
-import lombok.Setter;
import javax.sql.DataSource;
import java.io.File;
@@ -13,57 +11,15 @@ import java.sql.*;
import java.util.*;
public class getJavaBean {
- // 白名单
- public static Set whiteSet = new HashSet<>();
+
// JavaBean保存的位置
- public static String beanPath = "Model";
+ public static String beanPath;
// JavaBean包名
- public static String beanPackage = "com.dsideal.base." + beanPath;
+ public static String beanPackage;
// mysql与java的数据类型映射
public static Map dataTypeMap = new HashMap<>();
- //初始化
- static {
- whiteSet.add("t_sys_loginperson");//目前只处理一张表
-
- // 获取当前类的Class对象
- Class> clazz = getJavaBean.class;
- // 获取当前类所在文件的绝对路径
- String path = clazz.getResource("").getPath();
- // 转换为File对象
- File classFile = new File(path);
- // 获取当前类所在的目录路径
- String classDir = classFile.getParentFile().getAbsolutePath();
- classDir = classDir.replace("\\target\\classes\\", "\\src\\main\\java\\");
- beanPath = classDir + File.separator + beanPath;
- if (!FileUtil.exist(beanPath)) {
- FileUtil.mkdir(beanPath);
- }
-
- //mysql与java的数据类型映射
- dataTypeMap.put("INT", "int");
- dataTypeMap.put("BIGINT", "long");
- dataTypeMap.put("DOUBLE", "double");
- dataTypeMap.put("FLOAT", "float");
- dataTypeMap.put("TINYINT", "int");
- dataTypeMap.put("DATE", "java.util.Date");
- dataTypeMap.put("TIMESTAMP", "java.util.Date");
- dataTypeMap.put("BIGINT UNSIGNED", "long");
- dataTypeMap.put("INT UNSIGNED", "long");
- dataTypeMap.put("MEDIUMINT", "int");
- dataTypeMap.put("MEDIUMINT UNSIGNED", "long");
- dataTypeMap.put("SMALLINT", "int");
- dataTypeMap.put("SMALLINT UNSIGNED", "long");
- dataTypeMap.put("TINYINT UNSIGNED", "long");
- dataTypeMap.put("LONGTEXT", "String");
- dataTypeMap.put("VARCHAR", "String");
- dataTypeMap.put("CHAR", "String");
- dataTypeMap.put("TEXT", "String");
- dataTypeMap.put("DATETIME", "java.util.Date");
- dataTypeMap.put("DECIMAL", "BigDecimal");
- dataTypeMap.put("BOOLEAN", "boolean");
- }
/**
* 获取当前数据库下的表
@@ -77,7 +33,7 @@ public class getJavaBean {
ResultSet rs = stmt.executeQuery("show tables");
while (rs.next()) {
String tableName = rs.getString(1);
- if (whiteSet.isEmpty() || whiteSet.contains(tableName)) {
+ if (tableName.equals(PropKit.get("tableName"))) {
tables.add(tableName);
}
}
@@ -149,7 +105,7 @@ public class getJavaBean {
for (int i = 0; i < fields.size(); i++) {
String field = fields.get(i);
- sb.append(" "+field + ": \" + " + field+" +\"");
+ sb.append(" " + field + ": \" + " + field + " +\"");
if (i < fields.size() - 1) {
sb.append(",");
}
@@ -167,12 +123,16 @@ public class getJavaBean {
public static void main(String[] args) throws Exception {
+ //加载配置文件
+ PropKit.use("application.properties");
+ beanPackage = PropKit.get("beanPackage");
+ beanPath = PropKit.get("beanPath");
+ beanPath = beanPath + "/" + beanPackage.replace(".", "/");
+
// 配置Druid数据源插件
- HikariCpPlugin hpPlugin = new HikariCpPlugin(
- "jdbc:mysql://10.10.14.210:22066/ds_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false",
- "root",
- "DsideaL147258369",
- "com.mysql.cj.jdbc.Driver");
+ HikariCpPlugin hpPlugin = new HikariCpPlugin(PropKit.get("jdbcUrl"), PropKit.get("user"),
+ PropKit.get("password").trim(), PropKit.get("driverClassName"));
+ hpPlugin.start();
// 配置ActiveRecord插件
ActiveRecordPlugin arp = new ActiveRecordPlugin(hpPlugin);
diff --git a/dsUtils/src/main/java/com/dsideal/tWxRecord/Twxrecord.java b/dsUtils/src/main/java/com/dsideal/tWxRecord/Twxrecord.java
deleted file mode 100644
index 0de2522b..00000000
--- a/dsUtils/src/main/java/com/dsideal/tWxRecord/Twxrecord.java
+++ /dev/null
@@ -1,255 +0,0 @@
-
-package com.dsideal.tWxRecord;
-
-import com.jfinal.plugin.activerecord.Model;
-import com.jfinal.plugin.activerecord.TableMapping;
-import com.jfinal.plugin.activerecord.Db;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import java.sql.Timestamp;
-
-/***
- * 自动生成的Model
- * @author 石啸天
- *
- */
-@SuppressWarnings("serial")
-public class Twxrecord extends Model {
- //--------------setter和getter---------------
-
- public Twxrecord setStationName(String stationName) {
- set("station_name", stationName);
- return this;
- }
-
- public String getStationName() {
- return get("station_name");
- }
-
- public Twxrecord setConnectorno(String connectorno) {
- set("connectorNo", connectorno);
- return this;
- }
-
- public String getConnectorno() {
- return get("connectorNo");
- }
-
- public Twxrecord setTypeName(String typeName) {
- set("type_name", typeName);
- return this;
- }
-
- public String getTypeName() {
- return get("type_name");
- }
-
- public Twxrecord setCreateTime(Timestamp createTime) {
- set("create_time", createTime);
- return this;
- }
-
- public Timestamp getCreateTime() {
- return get("create_time");
- }
-
- public Twxrecord setConnectorid(Integer connectorid) {
- set("connectorId", connectorid);
- return this;
- }
-
- public Integer getConnectorid() {
- return get("connectorId");
- }
-
- public Twxrecord setTypeId(Integer typeId) {
- set("type_id", typeId);
- return this;
- }
-
- public Integer getTypeId() {
- return get("type_id");
- }
-
- public Twxrecord setStationId(Integer stationId) {
- set("station_id", stationId);
- return this;
- }
-
- public Integer getStationId() {
- return get("station_id");
- }
-
- public Twxrecord setMemo(String memo) {
- set("memo", memo);
- return this;
- }
-
- public String getMemo() {
- return get("memo");
- }
-
- public Twxrecord setEquipmentid(Integer equipmentid) {
- set("equipmentId", equipmentid);
- return this;
- }
-
- public Integer getEquipmentid() {
- return get("equipmentId");
- }
-
- public Twxrecord setWxOpenid(String wxOpenid) {
- set("wx_openid", wxOpenid);
- return this;
- }
-
- public String getWxOpenid() {
- return get("wx_openid");
- }
-
- public Twxrecord setStatusId(Integer statusId) {
- set("status_id", statusId);
- return this;
- }
-
- public Integer getStatusId() {
- return get("status_id");
- }
-
- public Twxrecord setEquipmentname(String equipmentname) {
- set("equipmentName", equipmentname);
- return this;
- }
-
- public String getEquipmentname() {
- return get("equipmentName");
- }
-
- public Twxrecord setId(Integer id) {
- set("id", id);
- return this;
- }
-
- public Integer getId() {
- return get("id");
- }
-
-
- //-------------------------------------------
- /***
- *数据库操作实体
- */
- public static final Twxrecord dao = new Twxrecord();
- /**
- * 表名
- */
- public static final String tableName = "tWxRecord";
- /**
- * 表主键
- */
- public static final String[] primaryKey = TableMapping.me().getTable(dao.getClass()).getPrimaryKey();
-
- /***
- * 空构造
- */
- public Twxrecord() {
- }
-
- /***
- * 有参构造
- */
- public Twxrecord(
- String stationName,
- String connectorno,
- String typeName,
- Timestamp createTime,
- Integer connectorid,
- Integer typeId,
- Integer stationId,
- String memo,
- Integer equipmentid,
- String wxOpenid,
- Integer statusId,
- String equipmentname,
- Integer id
- ) {
- setData(
- stationName,
- connectorno,
- typeName,
- createTime,
- connectorid,
- typeId,
- stationId,
- memo,
- equipmentid,
- wxOpenid,
- statusId,
- equipmentname,
- id
- );
- }
-
- /***
- *数据批量设置
- */
- public Twxrecord setData(
- String stationName,
- String connectorno,
- String typeName,
- Timestamp createTime,
- Integer connectorid,
- Integer typeId,
- Integer stationId,
- String memo,
- Integer equipmentid,
- String wxOpenid,
- Integer statusId,
- String equipmentname,
- Integer id) {
- set("station_name", stationName);
- set("connectorNo", connectorno);
- set("type_name", typeName);
- set("create_time", createTime);
- set("connectorId", connectorid);
- set("type_id", typeId);
- set("station_id", stationId);
- set("memo", memo);
- set("equipmentId", equipmentid);
- set("wx_openid", wxOpenid);
- set("status_id", statusId);
- set("equipmentName", equipmentname);
- set("id", id);
- return this;
- }
-
- /***
- * 按ID逆序查询全部数据
- * 出现SQL注入漏洞
- * @param pageNumber 页码
- * @param pageSize 每页记录数
- * @return
- * @throws Exception
- */
- public Map paginate(int pageNumber, int pageSize, String para, Object value) throws Exception {
- Object[] o = new Object[]{};
- StringBuffer sb = new StringBuffer();
- sb.append("from " + tableName);
- if (value != null && value != null && value != "") {
- o = new Object[]{value};
- sb.append(" where " + para + "=?");
- }
- sb.append(" order by " + primaryKey + " DESC");
- Long num = Db.queryLong("select count(1) " + sb.toString(), o);
- List> data = paginate(pageNumber, pageSize, "select *", sb.toString(), o).getList();
- Map m = new HashMap();
- m.put("data", data);
- m.put("num", num);
- return m;
- }
-
-
-}
\ No newline at end of file
diff --git a/dsUtils/src/main/resources/application.properties b/dsUtils/src/main/resources/application.properties
new file mode 100644
index 00000000..ff945c7b
--- /dev/null
+++ b/dsUtils/src/main/resources/application.properties
@@ -0,0 +1,15 @@
+# ?????
+driverClassName=com.mysql.cj.jdbc.Driver
+user=root
+password=DsideaL147258369
+jdbcUrl=jdbc:mysql://10.10.14.210:22066/yltcharge?useUnicode=true&characterEncoding=UTF-8&useSSL=false
+
+# ????
+beanPath=D:/dsWork/dsProject/dsUtils/src/main/java
+
+# ??bean???
+beanPackage=com.dsideal.base.Model
+
+# ???????
+tableName=t_sys_loginperson
+
diff --git a/dsUtils/target/classes/Model/TSysLoginperson.java b/dsUtils/target/classes/Model/TSysLoginperson.java
new file mode 100644
index 00000000..fce7ae03
--- /dev/null
+++ b/dsUtils/target/classes/Model/TSysLoginperson.java
@@ -0,0 +1,203 @@
+package com.dsideal.base.Model;
+
+import lombok.Setter;
+import lombok.Getter;
+//
+public class TSysLoginperson {
+ // 人员ID
+ @Getter
+ @Setter
+ private null person_id;
+ // 人员姓名
+ @Getter
+ @Setter
+ private null person_name;
+ // 身份ID
+ @Getter
+ @Setter
+ private null identity_id;
+ // 登录名
+ @Getter
+ @Setter
+ private null login_name;
+ // 密码
+ @Getter
+ @Setter
+ private null pwd;
+ // 原始密码
+ @Getter
+ @Setter
+ private null original_pwd;
+ // md5后的密码,用于CAS验证
+ @Getter
+ @Setter
+ private null pwdmd5;
+ // 性别
+ @Getter
+ @Setter
+ private null xb;
+ // 民族
+ @Getter
+ @Setter
+ private null mz;
+ // 政治面貌
+ @Getter
+ @Setter
+ private null zzmm;
+ // 身份证号
+ @Getter
+ @Setter
+ private null idcard_code;
+ // 出生日期
+ @Getter
+ @Setter
+ private null birthday;
+ // 创建时间
+ @Getter
+ @Setter
+ private null create_time;
+ // 在单位内部的排序号
+ @Getter
+ @Setter
+ private null sort_id;
+ // 手机号
+ @Getter
+ @Setter
+ private null telephone;
+ // 绑定微信的openid
+ @Getter
+ @Setter
+ private null wx_openid;
+ // 绑定QQ的openid
+ @Getter
+ @Setter
+ private null qq_openid;
+ // 电子邮箱
+ @Getter
+ @Setter
+ private null email;
+ // 人员状态
+ @Getter
+ @Setter
+ private null status_code;
+ // 是不是可用
+ @Getter
+ @Setter
+ private null b_use;
+ // 身份主键序列
+ @Getter
+ @Setter
+ private null identity_pk_num;
+ // 市ID
+ @Getter
+ @Setter
+ private null city_id;
+ // 县区ID
+ @Getter
+ @Setter
+ private null area_id;
+ // 主校ID
+ @Getter
+ @Setter
+ private null main_school_id;
+ // 单位ID
+ @Getter
+ @Setter
+ private null bureau_id;
+ // 所在部门
+ @Getter
+ @Setter
+ private null org_id;
+ // 学生所在班级
+ @Getter
+ @Setter
+ private null s_class_id;
+ // 学籍号 规定为16位
+ @Getter
+ @Setter
+ private null s_xjh;
+ // 学籍辅号 规定为13位
+ @Getter
+ @Setter
+ private null s_xjfh;
+ // 学生来源 1:正常入学 2:借读 9:其他
+ @Getter
+ @Setter
+ private null s_source;
+ // 学生是哪个学段的
+ @Getter
+ @Setter
+ private null s_stage_id;
+ // 进城务工随迁子女
+ @Getter
+ @Setter
+ private null s_suiqian;
+ // 是否留守儿童
+ @Getter
+ @Setter
+ private null s_liushou;
+ // 是否孤儿
+ @Getter
+ @Setter
+ private null s_guer;
+ // 是否残疾
+ @Getter
+ @Setter
+ private null s_canji;
+ // 如果是家长,那么他是哪个孩子的家长
+ @Getter
+ @Setter
+ private null p_child_id;
+ // 职务与分管,json形式
+ @Getter
+ @Setter
+ private null t_duty_charge;
+ // 最高学历 字典表t_dm_xl
+ @Getter
+ @Setter
+ private null t_xl_id;
+ // 职称
+ @Getter
+ @Setter
+ private null t_zc_id;
+ // 学段
+ @Getter
+ @Setter
+ private null t_stage_id;
+ // 主教学科
+ @Getter
+ @Setter
+ private null t_subject_id;
+ // 从教年月日
+ @Getter
+ @Setter
+ private null t_teaching_date;
+ // 是否骨干教师
+ @Getter
+ @Setter
+ private null t_gugan;
+ //
+ @Getter
+ @Setter
+ private null update_ts;
+ // 整数主键
+ @Getter
+ @Setter
+ private null id_int;
+ // 操作人员
+ @Getter
+ @Setter
+ private null operator;
+ // 操作者IP
+ @Getter
+ @Setter
+ private null ip_address;
+ // 微信小程序的openid
+ @Getter
+ @Setter
+ private null mini_openid;
+
+ public String toString(){
+ return "{ person_id: " + person_id +", person_name: " + person_name +", identity_id: " + identity_id +", login_name: " + login_name +", pwd: " + pwd +", original_pwd: " + original_pwd +", pwdmd5: " + pwdmd5 +", xb: " + xb +", mz: " + mz +", zzmm: " + zzmm +", idcard_code: " + idcard_code +", birthday: " + birthday +", create_time: " + create_time +", sort_id: " + sort_id +", telephone: " + telephone +", wx_openid: " + wx_openid +", qq_openid: " + qq_openid +", email: " + email +", status_code: " + status_code +", b_use: " + b_use +", identity_pk_num: " + identity_pk_num +", city_id: " + city_id +", area_id: " + area_id +", main_school_id: " + main_school_id +", bureau_id: " + bureau_id +", org_id: " + org_id +", s_class_id: " + s_class_id +", s_xjh: " + s_xjh +", s_xjfh: " + s_xjfh +", s_source: " + s_source +", s_stage_id: " + s_stage_id +", s_suiqian: " + s_suiqian +", s_liushou: " + s_liushou +", s_guer: " + s_guer +", s_canji: " + s_canji +", p_child_id: " + p_child_id +", t_duty_charge: " + t_duty_charge +", t_xl_id: " + t_xl_id +", t_zc_id: " + t_zc_id +", t_stage_id: " + t_stage_id +", t_subject_id: " + t_subject_id +", t_teaching_date: " + t_teaching_date +", t_gugan: " + t_gugan +", update_ts: " + update_ts +", id_int: " + id_int +", operator: " + operator +", ip_address: " + ip_address +", mini_openid: " + mini_openid +"}";
+ }
+}
diff --git a/dsUtils/target/classes/application.properties b/dsUtils/target/classes/application.properties
new file mode 100644
index 00000000..ff945c7b
--- /dev/null
+++ b/dsUtils/target/classes/application.properties
@@ -0,0 +1,15 @@
+# ?????
+driverClassName=com.mysql.cj.jdbc.Driver
+user=root
+password=DsideaL147258369
+jdbcUrl=jdbc:mysql://10.10.14.210:22066/yltcharge?useUnicode=true&characterEncoding=UTF-8&useSSL=false
+
+# ????
+beanPath=D:/dsWork/dsProject/dsUtils/src/main/java
+
+# ??bean???
+beanPackage=com.dsideal.base.Model
+
+# ???????
+tableName=t_sys_loginperson
+
diff --git a/dsUtils/target/classes/base.Model/TSysLoginperson.java b/dsUtils/target/classes/base.Model/TSysLoginperson.java
new file mode 100644
index 00000000..fce7ae03
--- /dev/null
+++ b/dsUtils/target/classes/base.Model/TSysLoginperson.java
@@ -0,0 +1,203 @@
+package com.dsideal.base.Model;
+
+import lombok.Setter;
+import lombok.Getter;
+//
+public class TSysLoginperson {
+ // 人员ID
+ @Getter
+ @Setter
+ private null person_id;
+ // 人员姓名
+ @Getter
+ @Setter
+ private null person_name;
+ // 身份ID
+ @Getter
+ @Setter
+ private null identity_id;
+ // 登录名
+ @Getter
+ @Setter
+ private null login_name;
+ // 密码
+ @Getter
+ @Setter
+ private null pwd;
+ // 原始密码
+ @Getter
+ @Setter
+ private null original_pwd;
+ // md5后的密码,用于CAS验证
+ @Getter
+ @Setter
+ private null pwdmd5;
+ // 性别
+ @Getter
+ @Setter
+ private null xb;
+ // 民族
+ @Getter
+ @Setter
+ private null mz;
+ // 政治面貌
+ @Getter
+ @Setter
+ private null zzmm;
+ // 身份证号
+ @Getter
+ @Setter
+ private null idcard_code;
+ // 出生日期
+ @Getter
+ @Setter
+ private null birthday;
+ // 创建时间
+ @Getter
+ @Setter
+ private null create_time;
+ // 在单位内部的排序号
+ @Getter
+ @Setter
+ private null sort_id;
+ // 手机号
+ @Getter
+ @Setter
+ private null telephone;
+ // 绑定微信的openid
+ @Getter
+ @Setter
+ private null wx_openid;
+ // 绑定QQ的openid
+ @Getter
+ @Setter
+ private null qq_openid;
+ // 电子邮箱
+ @Getter
+ @Setter
+ private null email;
+ // 人员状态
+ @Getter
+ @Setter
+ private null status_code;
+ // 是不是可用
+ @Getter
+ @Setter
+ private null b_use;
+ // 身份主键序列
+ @Getter
+ @Setter
+ private null identity_pk_num;
+ // 市ID
+ @Getter
+ @Setter
+ private null city_id;
+ // 县区ID
+ @Getter
+ @Setter
+ private null area_id;
+ // 主校ID
+ @Getter
+ @Setter
+ private null main_school_id;
+ // 单位ID
+ @Getter
+ @Setter
+ private null bureau_id;
+ // 所在部门
+ @Getter
+ @Setter
+ private null org_id;
+ // 学生所在班级
+ @Getter
+ @Setter
+ private null s_class_id;
+ // 学籍号 规定为16位
+ @Getter
+ @Setter
+ private null s_xjh;
+ // 学籍辅号 规定为13位
+ @Getter
+ @Setter
+ private null s_xjfh;
+ // 学生来源 1:正常入学 2:借读 9:其他
+ @Getter
+ @Setter
+ private null s_source;
+ // 学生是哪个学段的
+ @Getter
+ @Setter
+ private null s_stage_id;
+ // 进城务工随迁子女
+ @Getter
+ @Setter
+ private null s_suiqian;
+ // 是否留守儿童
+ @Getter
+ @Setter
+ private null s_liushou;
+ // 是否孤儿
+ @Getter
+ @Setter
+ private null s_guer;
+ // 是否残疾
+ @Getter
+ @Setter
+ private null s_canji;
+ // 如果是家长,那么他是哪个孩子的家长
+ @Getter
+ @Setter
+ private null p_child_id;
+ // 职务与分管,json形式
+ @Getter
+ @Setter
+ private null t_duty_charge;
+ // 最高学历 字典表t_dm_xl
+ @Getter
+ @Setter
+ private null t_xl_id;
+ // 职称
+ @Getter
+ @Setter
+ private null t_zc_id;
+ // 学段
+ @Getter
+ @Setter
+ private null t_stage_id;
+ // 主教学科
+ @Getter
+ @Setter
+ private null t_subject_id;
+ // 从教年月日
+ @Getter
+ @Setter
+ private null t_teaching_date;
+ // 是否骨干教师
+ @Getter
+ @Setter
+ private null t_gugan;
+ //
+ @Getter
+ @Setter
+ private null update_ts;
+ // 整数主键
+ @Getter
+ @Setter
+ private null id_int;
+ // 操作人员
+ @Getter
+ @Setter
+ private null operator;
+ // 操作者IP
+ @Getter
+ @Setter
+ private null ip_address;
+ // 微信小程序的openid
+ @Getter
+ @Setter
+ private null mini_openid;
+
+ public String toString(){
+ return "{ person_id: " + person_id +", person_name: " + person_name +", identity_id: " + identity_id +", login_name: " + login_name +", pwd: " + pwd +", original_pwd: " + original_pwd +", pwdmd5: " + pwdmd5 +", xb: " + xb +", mz: " + mz +", zzmm: " + zzmm +", idcard_code: " + idcard_code +", birthday: " + birthday +", create_time: " + create_time +", sort_id: " + sort_id +", telephone: " + telephone +", wx_openid: " + wx_openid +", qq_openid: " + qq_openid +", email: " + email +", status_code: " + status_code +", b_use: " + b_use +", identity_pk_num: " + identity_pk_num +", city_id: " + city_id +", area_id: " + area_id +", main_school_id: " + main_school_id +", bureau_id: " + bureau_id +", org_id: " + org_id +", s_class_id: " + s_class_id +", s_xjh: " + s_xjh +", s_xjfh: " + s_xjfh +", s_source: " + s_source +", s_stage_id: " + s_stage_id +", s_suiqian: " + s_suiqian +", s_liushou: " + s_liushou +", s_guer: " + s_guer +", s_canji: " + s_canji +", p_child_id: " + p_child_id +", t_duty_charge: " + t_duty_charge +", t_xl_id: " + t_xl_id +", t_zc_id: " + t_zc_id +", t_stage_id: " + t_stage_id +", t_subject_id: " + t_subject_id +", t_teaching_date: " + t_teaching_date +", t_gugan: " + t_gugan +", update_ts: " + update_ts +", id_int: " + id_int +", operator: " + operator +", ip_address: " + ip_address +", mini_openid: " + mini_openid +"}";
+ }
+}
diff --git a/dsUtils/target/classes/null/TSysLoginperson.java b/dsUtils/target/classes/null/TSysLoginperson.java
new file mode 100644
index 00000000..fce7ae03
--- /dev/null
+++ b/dsUtils/target/classes/null/TSysLoginperson.java
@@ -0,0 +1,203 @@
+package com.dsideal.base.Model;
+
+import lombok.Setter;
+import lombok.Getter;
+//
+public class TSysLoginperson {
+ // 人员ID
+ @Getter
+ @Setter
+ private null person_id;
+ // 人员姓名
+ @Getter
+ @Setter
+ private null person_name;
+ // 身份ID
+ @Getter
+ @Setter
+ private null identity_id;
+ // 登录名
+ @Getter
+ @Setter
+ private null login_name;
+ // 密码
+ @Getter
+ @Setter
+ private null pwd;
+ // 原始密码
+ @Getter
+ @Setter
+ private null original_pwd;
+ // md5后的密码,用于CAS验证
+ @Getter
+ @Setter
+ private null pwdmd5;
+ // 性别
+ @Getter
+ @Setter
+ private null xb;
+ // 民族
+ @Getter
+ @Setter
+ private null mz;
+ // 政治面貌
+ @Getter
+ @Setter
+ private null zzmm;
+ // 身份证号
+ @Getter
+ @Setter
+ private null idcard_code;
+ // 出生日期
+ @Getter
+ @Setter
+ private null birthday;
+ // 创建时间
+ @Getter
+ @Setter
+ private null create_time;
+ // 在单位内部的排序号
+ @Getter
+ @Setter
+ private null sort_id;
+ // 手机号
+ @Getter
+ @Setter
+ private null telephone;
+ // 绑定微信的openid
+ @Getter
+ @Setter
+ private null wx_openid;
+ // 绑定QQ的openid
+ @Getter
+ @Setter
+ private null qq_openid;
+ // 电子邮箱
+ @Getter
+ @Setter
+ private null email;
+ // 人员状态
+ @Getter
+ @Setter
+ private null status_code;
+ // 是不是可用
+ @Getter
+ @Setter
+ private null b_use;
+ // 身份主键序列
+ @Getter
+ @Setter
+ private null identity_pk_num;
+ // 市ID
+ @Getter
+ @Setter
+ private null city_id;
+ // 县区ID
+ @Getter
+ @Setter
+ private null area_id;
+ // 主校ID
+ @Getter
+ @Setter
+ private null main_school_id;
+ // 单位ID
+ @Getter
+ @Setter
+ private null bureau_id;
+ // 所在部门
+ @Getter
+ @Setter
+ private null org_id;
+ // 学生所在班级
+ @Getter
+ @Setter
+ private null s_class_id;
+ // 学籍号 规定为16位
+ @Getter
+ @Setter
+ private null s_xjh;
+ // 学籍辅号 规定为13位
+ @Getter
+ @Setter
+ private null s_xjfh;
+ // 学生来源 1:正常入学 2:借读 9:其他
+ @Getter
+ @Setter
+ private null s_source;
+ // 学生是哪个学段的
+ @Getter
+ @Setter
+ private null s_stage_id;
+ // 进城务工随迁子女
+ @Getter
+ @Setter
+ private null s_suiqian;
+ // 是否留守儿童
+ @Getter
+ @Setter
+ private null s_liushou;
+ // 是否孤儿
+ @Getter
+ @Setter
+ private null s_guer;
+ // 是否残疾
+ @Getter
+ @Setter
+ private null s_canji;
+ // 如果是家长,那么他是哪个孩子的家长
+ @Getter
+ @Setter
+ private null p_child_id;
+ // 职务与分管,json形式
+ @Getter
+ @Setter
+ private null t_duty_charge;
+ // 最高学历 字典表t_dm_xl
+ @Getter
+ @Setter
+ private null t_xl_id;
+ // 职称
+ @Getter
+ @Setter
+ private null t_zc_id;
+ // 学段
+ @Getter
+ @Setter
+ private null t_stage_id;
+ // 主教学科
+ @Getter
+ @Setter
+ private null t_subject_id;
+ // 从教年月日
+ @Getter
+ @Setter
+ private null t_teaching_date;
+ // 是否骨干教师
+ @Getter
+ @Setter
+ private null t_gugan;
+ //
+ @Getter
+ @Setter
+ private null update_ts;
+ // 整数主键
+ @Getter
+ @Setter
+ private null id_int;
+ // 操作人员
+ @Getter
+ @Setter
+ private null operator;
+ // 操作者IP
+ @Getter
+ @Setter
+ private null ip_address;
+ // 微信小程序的openid
+ @Getter
+ @Setter
+ private null mini_openid;
+
+ public String toString(){
+ return "{ person_id: " + person_id +", person_name: " + person_name +", identity_id: " + identity_id +", login_name: " + login_name +", pwd: " + pwd +", original_pwd: " + original_pwd +", pwdmd5: " + pwdmd5 +", xb: " + xb +", mz: " + mz +", zzmm: " + zzmm +", idcard_code: " + idcard_code +", birthday: " + birthday +", create_time: " + create_time +", sort_id: " + sort_id +", telephone: " + telephone +", wx_openid: " + wx_openid +", qq_openid: " + qq_openid +", email: " + email +", status_code: " + status_code +", b_use: " + b_use +", identity_pk_num: " + identity_pk_num +", city_id: " + city_id +", area_id: " + area_id +", main_school_id: " + main_school_id +", bureau_id: " + bureau_id +", org_id: " + org_id +", s_class_id: " + s_class_id +", s_xjh: " + s_xjh +", s_xjfh: " + s_xjfh +", s_source: " + s_source +", s_stage_id: " + s_stage_id +", s_suiqian: " + s_suiqian +", s_liushou: " + s_liushou +", s_guer: " + s_guer +", s_canji: " + s_canji +", p_child_id: " + p_child_id +", t_duty_charge: " + t_duty_charge +", t_xl_id: " + t_xl_id +", t_zc_id: " + t_zc_id +", t_stage_id: " + t_stage_id +", t_subject_id: " + t_subject_id +", t_teaching_date: " + t_teaching_date +", t_gugan: " + t_gugan +", update_ts: " + update_ts +", id_int: " + id_int +", operator: " + operator +", ip_address: " + ip_address +", mini_openid: " + mini_openid +"}";
+ }
+}