初始提交
This commit is contained in:
commit
6826b2b5dc
32
.classpath
Normal file
32
.classpath
Normal file
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
logs/
|
||||
target/
|
||||
.settings/
|
||||
src/main/webapp/plugin/
|
||||
src/main/webapp/mods/
|
||||
jianr_v2.sql
|
38
.project
Normal file
38
.project
Normal file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>jianRMG_Service_v2</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
<project>a</project>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
24
.tern-project
Normal file
24
.tern-project
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"ecmaVersion": 5,
|
||||
"plugins": {
|
||||
"guess-types": {
|
||||
|
||||
},
|
||||
"outline": {
|
||||
|
||||
},
|
||||
"angular1": {
|
||||
|
||||
},
|
||||
"yui3": {
|
||||
|
||||
},
|
||||
"aui1.5.x": {
|
||||
|
||||
}
|
||||
},
|
||||
"libs": [
|
||||
"browser",
|
||||
"jquery"
|
||||
]
|
||||
}
|
149
pom.xml
Normal file
149
pom.xml
Normal file
@ -0,0 +1,149 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.yutou</groupId>
|
||||
<artifactId>jianRMG_Service_v2</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>jianRMG_Service_v2 Maven Webapp</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- J2EE -->
|
||||
<dependency>
|
||||
<groupId>javax</groupId>
|
||||
<artifactId>javaee-api</artifactId>
|
||||
<version>7.0</version>
|
||||
</dependency>
|
||||
<!-- Spring -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>4.3.10.RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
<version>4.3.0.RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-tx</artifactId>
|
||||
<version>4.3.0.RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-jdbc</artifactId>
|
||||
<version>4.3.0.RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webmvc</artifactId>
|
||||
<version>4.3.0.RELEASE</version>
|
||||
</dependency>
|
||||
<!-- mybatis -->
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.4.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis-spring</artifactId>
|
||||
<version>1.3.1</version>
|
||||
</dependency>
|
||||
<!-- log4j -->
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.17</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>2.8.2</version>
|
||||
</dependency>
|
||||
<!-- dbcp -->
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<!-- mysql -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>5.1.38</version>
|
||||
</dependency>
|
||||
<!-- 文件上传 -->
|
||||
<dependency>
|
||||
<groupId>commons-fileupload</groupId>
|
||||
<artifactId>commons-fileupload</artifactId>
|
||||
<version>1.3.3</version>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/org.json/json -->
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20170516</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.35</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/com.aliyun.oss/aliyun-sdk-oss -->
|
||||
<dependency>
|
||||
<groupId>com.aliyun.oss</groupId>
|
||||
<artifactId>aliyun-sdk-oss</artifactId>
|
||||
<version>2.8.1</version>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
<version>2.9.0</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
<build>
|
||||
<finalName>jianrmod</finalName>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-maven-plugin</artifactId>
|
||||
<version>9.4.5.v20170502</version>
|
||||
<configuration>
|
||||
<scanIntervalSeconds>10</scanIntervalSeconds>
|
||||
<httpConnector>
|
||||
<port>8088</port>
|
||||
</httpConnector>
|
||||
|
||||
</configuration>
|
||||
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
</project>
|
@ -0,0 +1,81 @@
|
||||
package com.yutou.controller.Web;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yutou.mybatis.TGameVersion;
|
||||
import com.yutou.mybatis.TGameVersionExample;
|
||||
import com.yutou.mybatis.TModfilePath;
|
||||
import com.yutou.mybatis.TModfilePathExample;
|
||||
import com.yutou.mybatis.TModtype;
|
||||
import com.yutou.mybatis.TModtypeExample;
|
||||
import com.yutou.mybatis.ZsShipType;
|
||||
import com.yutou.mybatis.ZsShipTypeExample;
|
||||
import com.yutou.mybatis.dao.TGameVersionMapper;
|
||||
import com.yutou.mybatis.dao.TModfilePathMapper;
|
||||
import com.yutou.mybatis.dao.TModtypeMapper;
|
||||
import com.yutou.mybatis.dao.ZsShipTypeMapper;
|
||||
|
||||
@Controller
|
||||
public class WebJianDataController {
|
||||
@Resource
|
||||
ZsShipTypeMapper shipTypeMapper;
|
||||
@Resource
|
||||
TModtypeMapper modTypeMapper;
|
||||
@Resource
|
||||
TModfilePathMapper modPathMapper;
|
||||
@Resource
|
||||
TGameVersionMapper gameVersionMapper;
|
||||
|
||||
@RequestMapping("/mod/jiantype.do")
|
||||
@ResponseBody
|
||||
public String getJianType() {
|
||||
JSONArray data=new JSONArray();
|
||||
List<ZsShipType> list=shipTypeMapper.selectByExample(new ZsShipTypeExample());
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
data.put(JSON.toJSONString(list.get(i)));
|
||||
}
|
||||
return data.toString();
|
||||
}
|
||||
@RequestMapping("/mod/modtype.do")
|
||||
@ResponseBody
|
||||
public String getModType() {
|
||||
JSONArray data=new JSONArray();
|
||||
List<TModtype> list=modTypeMapper.selectByExample(new TModtypeExample());
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
data.put(JSON.toJSONString(list.get(i)));
|
||||
}
|
||||
return data.toString();
|
||||
}
|
||||
@RequestMapping("/mod/installPath.do")
|
||||
@ResponseBody
|
||||
public String getInstallPath() {
|
||||
JSONArray data=new JSONArray();
|
||||
List<TModfilePath> list=modPathMapper.selectByExample(new TModfilePathExample());
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
data.put(JSON.toJSONString(list.get(i)));
|
||||
}
|
||||
return data.toString();
|
||||
}
|
||||
@RequestMapping("/mod/getGameVerList.do")
|
||||
@ResponseBody
|
||||
public String getGameVersion(HttpServletRequest request) {
|
||||
JSONArray array=new JSONArray();
|
||||
List<TGameVersion> list=gameVersionMapper.selectByExample(new TGameVersionExample());
|
||||
for (TGameVersion gameVersion : list) {
|
||||
JSONObject json=new JSONObject(JSON.toJSONString(gameVersion));
|
||||
array.put(json);
|
||||
}
|
||||
return array.toString();
|
||||
}
|
||||
|
||||
}
|
116
src/main/java/com/yutou/controller/Web/WebLoginController.java
Normal file
116
src/main/java/com/yutou/controller/Web/WebLoginController.java
Normal file
@ -0,0 +1,116 @@
|
||||
package com.yutou.controller.Web;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.yutou.enums.UserEnum;
|
||||
import com.yutou.enums.UserPower;
|
||||
import com.yutou.mybatis.User;
|
||||
import com.yutou.services.UserService;
|
||||
import com.yutou.utlis.RedisUtlis;
|
||||
import com.yutou.utlis.Tools;
|
||||
|
||||
@Controller
|
||||
public class WebLoginController {
|
||||
@Resource
|
||||
UserService userService;
|
||||
|
||||
@RequestMapping("/user/login.do")
|
||||
@ResponseBody
|
||||
public String login(HttpServletRequest request) {
|
||||
String uname = request.getParameter("uname");
|
||||
String pass = request.getParameter("pass");
|
||||
JSONObject json = new JSONObject();
|
||||
if (Tools.StringIsEmpty(uname, pass)) {
|
||||
json.put("msg", UserEnum.ACCOUNT_OR_PASSWORD_NOT.msg);
|
||||
json.put("code", UserEnum.ACCOUNT_OR_PASSWORD_NOT.code);
|
||||
return json.toString();
|
||||
}
|
||||
int str = userService.login(uname, pass);
|
||||
json.put("id", str);
|
||||
json.put("session", request.getSession().getId());
|
||||
json.put("name", uname);
|
||||
switch (str) {
|
||||
case -2:
|
||||
json.put("msg", UserEnum.ACCOUNT_OR_PASSWORD_ERROR.msg);
|
||||
json.put("code", UserEnum.ACCOUNT_OR_PASSWORD_ERROR.code);
|
||||
break;
|
||||
case -1:
|
||||
json.put("msg", UserEnum.LOGIN_NOT_REG.msg);
|
||||
json.put("code", UserEnum.LOGIN_NOT_REG.code);
|
||||
break;
|
||||
default:
|
||||
json.put("msg", UserEnum.LOGIN_SUCCESS.msg);
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
json.put("id", str);
|
||||
/*Tools.saveSession(request, request.getSession().getId(), str);*/
|
||||
RedisUtlis.set(request.getSession().getId(), str+"");
|
||||
break;
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/user/reg.do")
|
||||
@ResponseBody
|
||||
public String reg(HttpServletRequest request,String uname,String pass,String name) {
|
||||
JSONObject json = new JSONObject();
|
||||
if (Tools.StringIsEmpty(uname, pass)) {
|
||||
json.put("msg", UserEnum.ACCOUNT_OR_PASSWORD_NOT.msg);
|
||||
json.put("code", UserEnum.ACCOUNT_OR_PASSWORD_NOT.code);
|
||||
return json.toString();
|
||||
}
|
||||
int str = userService.reg(uname,name, pass);
|
||||
if (str >= 0) {
|
||||
json.put("code", UserEnum.REG_SUCCESS.code);
|
||||
json.put("msg", UserEnum.REG_SUCCESS.msg);
|
||||
} else {
|
||||
json.put("code", UserEnum.REG_ERROR.code);
|
||||
json.put("msg", UserEnum.REG_ERROR.msg);
|
||||
}
|
||||
json.put("id", str);
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/user/test.do")
|
||||
@ResponseBody
|
||||
public String testLogin(HttpServletRequest request) {
|
||||
int udata = -1;
|
||||
User user=null;
|
||||
String referer=request.getHeader("referer");
|
||||
try {
|
||||
udata = Integer.valueOf(RedisUtlis.get(request.getSession().getId()));
|
||||
user=userService.getUser(udata);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
int upower=UserPower.getPower(referer);
|
||||
JSONObject json = new JSONObject();
|
||||
if (udata == -1) {
|
||||
json.put("code", UserEnum.LOGIN_NOT_LOGIN.code);
|
||||
json.put("msg", UserEnum.LOGIN_NOT_LOGIN.msg);
|
||||
} else {
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
json.put("msg", UserEnum.LOGIN_SUCCESS.msg);
|
||||
}
|
||||
if(user!=null) {
|
||||
if(user.getPower()<upower) {
|
||||
json.put("code", UserEnum.LOGIN_NOT_POWER.code);
|
||||
json.put("msg", UserEnum.LOGIN_NOT_POWER.msg);
|
||||
}
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/user/logout.do")
|
||||
@ResponseBody
|
||||
public String logout(HttpServletRequest request) {
|
||||
RedisUtlis.remove(request.getSession().getId());
|
||||
return "{}";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.yutou.controller.Web;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.yutou.mybatis.TMod;
|
||||
import com.yutou.mybatis.TModExample;
|
||||
import com.yutou.mybatis.dao.TModMapper;
|
||||
|
||||
@Controller
|
||||
public class WebTestController {
|
||||
@Resource
|
||||
TModMapper modMapper;
|
||||
private int index=0;
|
||||
@RequestMapping("/payment/prewarning/getMessage.do")
|
||||
@ResponseBody
|
||||
public String Test(String type) {
|
||||
return "{\"data\":[{\"phone\":\"123456789\",\"message\":\"渠道"+(++index)+":代收-一休-通道:爱冲印动漫 半小时内请求包月验证码失败占比超过90%,请留意。\",\"subtime\":\"2018-08-03 14:00:02\"},{\"phone\":\"123456789\",\"message\":\"渠道:代收-超诣-通道:天翼阅读-省份内蒙古 半小时内请求包月验证码失败占比超过90%,请留意。\",\"subtime\":\""+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())+"\"}],\"resultCode\":\"00\",\"resultDesc\":\"成功\"}";
|
||||
}
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
package com.yutou.controller.Web;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import com.yutou.enums.UserEnum;
|
||||
import com.yutou.mybatis.User;
|
||||
import com.yutou.services.ModService;
|
||||
import com.yutou.services.UserService;
|
||||
import com.yutou.utlis.Log;
|
||||
import com.yutou.utlis.ServiceStaticValue;
|
||||
import com.yutou.utlis.Tools;
|
||||
|
||||
/**
|
||||
* 上传魔改页面的接口
|
||||
*
|
||||
* @author yutou
|
||||
*
|
||||
*/
|
||||
@Controller
|
||||
public class WebUploadModController {
|
||||
@Resource
|
||||
UserService userService;
|
||||
@Resource
|
||||
ModService modService;
|
||||
|
||||
@RequestMapping("/mod/upload/upload.do")
|
||||
@ResponseBody
|
||||
public String upload(HttpServletRequest request) {
|
||||
JSONObject json = new JSONObject();
|
||||
JSONObject data=null;
|
||||
String _json=request.getParameter("json");
|
||||
String _files=request.getParameter("files");
|
||||
if(Tools.StringIsEmpty(_json)) {
|
||||
json.put("code", "-1");
|
||||
json.put("msg", "参数异常!请截图本页面后反馈至管理员");
|
||||
return json.toString();
|
||||
}
|
||||
data=new JSONObject(_json);
|
||||
User user=null;
|
||||
try {
|
||||
user=userService.getUser((int) Tools.getSessionKey(request, request.getSession().getId()));
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
json.put("code", UserEnum.LOGIN_NOT_LOGIN.code);
|
||||
json.put("msg", UserEnum.LOGIN_NOT_LOGIN.msg);
|
||||
return json.toString();
|
||||
}
|
||||
JSONObject iconJson=(JSONObject) Tools.getSessionKey(request, "icon");
|
||||
JSONObject imageJson=(JSONObject) Tools.getSessionKey(request, "image");
|
||||
JSONArray filesJson;
|
||||
if(_files!=null) {
|
||||
try {
|
||||
filesJson=new JSONArray(_files);
|
||||
} catch (Exception e) {
|
||||
filesJson=new JSONArray();
|
||||
Log.printf_Error(e, WebUploadModController.this);
|
||||
}
|
||||
}else {
|
||||
filesJson=new JSONArray();
|
||||
}
|
||||
if(iconJson!=null)
|
||||
data.put("icon", iconJson.getString("url"));
|
||||
if(imageJson!=null)
|
||||
data.put("image", imageJson.getString("url"));
|
||||
if(filesJson!=null)
|
||||
data.put("files", filesJson);
|
||||
json.put("code", "1");
|
||||
json.put("msg", "提交成功!");
|
||||
|
||||
data.put("byid", user.getId());
|
||||
|
||||
data=new JSONObject(data.toString().replaceAll(ServiceStaticValue.SERVICE_URL, ""));
|
||||
Log.i("上传总接口", data.toString());
|
||||
|
||||
if(modService.upload(data)==1) {
|
||||
new File(Tools.getRootModsPath(request)+data.getString("path")+"/lock").delete();
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("/mod/upload/icon.do")
|
||||
@ResponseBody
|
||||
public String upload_icon(@RequestParam(value = "icon", required = false) MultipartFile file,HttpServletRequest request) {
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
String url=Tools.createFile(request, "mods/"+request.getParameter("path")+"/", file,"icon.png");
|
||||
json.put("id", 1);
|
||||
json.put("url", ServiceStaticValue.SERVICE_URL+url);
|
||||
json.put("path", request.getParameter("path"));
|
||||
Log.i("上传", Tools.getRootModsPath(request)+request.getParameter("path")+"/lock");
|
||||
new File(Tools.getRootModsPath(request)+request.getParameter("path")+"/lock").createNewFile();
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
Log.i("上传图标", json.toString());
|
||||
Tools.saveSession(request, "icon", json);
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("/mod/upload/image.do")
|
||||
@ResponseBody
|
||||
public String upload_image(@RequestParam(value = "image", required = false) MultipartFile file,HttpServletRequest request) {
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
String url=ServiceStaticValue.SERVICE_URL+Tools.createFile(request, "mods/"+request.getParameter("path")+"/", file,"image.png");
|
||||
json.put("id", 2);
|
||||
json.put("url", url);
|
||||
json.put("path", request.getParameter("path"));
|
||||
new File( Tools.getRootModsPath(request)+request.getParameter("path")+"/lock").createNewFile();
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
Tools.saveSession(request, "image", json);
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("/mod/upload/files.do")
|
||||
@ResponseBody
|
||||
public String upload_file(@RequestParam(value = "file", required = false) MultipartFile file,HttpServletRequest request) {
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
String url=Tools.createFile(request, "mods/"+request.getParameter("path")+"/", file,null);
|
||||
json.put("id", 3);
|
||||
json.put("url", url);
|
||||
json.put("name", file.getOriginalFilename());
|
||||
json.put("path", request.getParameter("path"));
|
||||
new File(Tools.getRootModsPath(request)+request.getParameter("path")+"/lock").createNewFile();
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
Log.i("上传文件"+json.toString());
|
||||
return json.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.yutou.controller.Web;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yutou.enums.ModEnum;
|
||||
import com.yutou.enums.UserEnum;
|
||||
import com.yutou.mybatis.TMod;
|
||||
import com.yutou.services.ModService;
|
||||
import com.yutou.services.UserService;
|
||||
import com.yutou.utlis.Log;
|
||||
import com.yutou.utlis.RedisUtlis;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/user")
|
||||
public class WebUserController {
|
||||
@Resource
|
||||
UserService userService;
|
||||
@Resource
|
||||
ModService modService;
|
||||
@RequestMapping("/mods.do")
|
||||
@ResponseBody
|
||||
public String getModOfUser(HttpServletRequest request) {
|
||||
JSONObject json=new JSONObject();
|
||||
int uid=Integer.valueOf(RedisUtlis.get(request.getSession().getId()));
|
||||
List<TMod> list=modService.getUserOfId(uid);
|
||||
if(list!=null&&list.size()>0) {
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
}else {
|
||||
json.put("code", ModEnum.ERROR.code);
|
||||
json.put("msg", ModEnum.ERROR.msg);
|
||||
json.put("data", "[]");
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("/udata.do")
|
||||
@ResponseBody
|
||||
public String getUserData(HttpServletRequest request) {
|
||||
JSONObject userdata=new JSONObject();
|
||||
try {
|
||||
String uid_=RedisUtlis.get(request.getSession().getId());
|
||||
int uid=Integer.valueOf(uid_);
|
||||
Log.i("用户","用户id:"+uid);
|
||||
userdata.put("msg", UserEnum.LOGIN_SUCCESS.code);
|
||||
userdata.put("message", "ok");
|
||||
userdata.put("data", userService.getUserData(uid).getJSONObject("data"));
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
userdata.put("code", UserEnum.LOGIN_NOT_LOGIN.code);
|
||||
userdata.put("msg", UserEnum.LOGIN_NOT_LOGIN.msg);
|
||||
e.printStackTrace();
|
||||
}
|
||||
return userdata.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.yutou.controller.android;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yutou.enums.ModEnum;
|
||||
import com.yutou.mybatis.MAppHome;
|
||||
import com.yutou.mybatis.MAppMg;
|
||||
import com.yutou.mybatis.MAppTools;
|
||||
import com.yutou.mybatis.SConfig;
|
||||
import com.yutou.services.AppConfig;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("android/config/")
|
||||
public class AppController {
|
||||
@Resource
|
||||
AppConfig appConfig;
|
||||
|
||||
|
||||
@RequestMapping("get.do")
|
||||
@ResponseBody
|
||||
public String getAppConfig(HttpServletRequest request) {
|
||||
SConfig config=appConfig.getConfig(1);
|
||||
JSONObject json=new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", config);
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("home.do")
|
||||
@ResponseBody
|
||||
public String getHome(HttpServletRequest request) {
|
||||
List<MAppHome> list=appConfig.getHomeList();
|
||||
JSONObject json=new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("utils.do")
|
||||
@ResponseBody
|
||||
public String getUtils(int min,int max) {
|
||||
List<MAppTools> list=appConfig.getTools();
|
||||
JSONObject json=new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("mg.do")
|
||||
@ResponseBody
|
||||
public String getMg(HttpServletRequest request) {
|
||||
List<MAppMg> list=appConfig.getMgList();
|
||||
JSONObject json=new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
@RequestMapping("update.do")
|
||||
@ResponseBody
|
||||
public String getUpdate(HttpServletRequest request) {
|
||||
SConfig config=appConfig.getConfig(1);
|
||||
JSONObject json=new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(config));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.yutou.controller.android;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yutou.enums.ModEnum;
|
||||
import com.yutou.mybatis.MBanner;
|
||||
import com.yutou.services.MBannerService;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("android/banner")
|
||||
public class BannerController {
|
||||
@Resource
|
||||
MBannerService bannerService;
|
||||
|
||||
@RequestMapping("/get.do")
|
||||
@ResponseBody
|
||||
public String getBanner(HttpServletRequest request) {
|
||||
List<MBanner> list=bannerService.getBanner();
|
||||
JSONObject json=new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
}
|
423
src/main/java/com/yutou/controller/android/ModController.java
Normal file
423
src/main/java/com/yutou/controller/android/ModController.java
Normal file
@ -0,0 +1,423 @@
|
||||
package com.yutou.controller.android;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yutou.enums.ModEnum;
|
||||
import com.yutou.enums.UserEnum;
|
||||
import com.yutou.enums.UserPower;
|
||||
import com.yutou.mybatis.MGamePackname;
|
||||
import com.yutou.mybatis.TMod;
|
||||
import com.yutou.mybatis.TModcomment;
|
||||
import com.yutou.mybatis.TModfile;
|
||||
import com.yutou.mybatis.TModtag;
|
||||
import com.yutou.mybatis.User;
|
||||
import com.yutou.services.AppConfig;
|
||||
import com.yutou.services.ModService;
|
||||
import com.yutou.services.UserService;
|
||||
import com.yutou.utlis.Log;
|
||||
import com.yutou.utlis.RedisUtlis;
|
||||
import com.yutou.utlis.Tools;
|
||||
|
||||
@RequestMapping("android/mod")
|
||||
@Controller
|
||||
public class ModController {
|
||||
@Resource
|
||||
ModService modService;
|
||||
@Resource
|
||||
AppConfig appService;
|
||||
@Resource
|
||||
UserService user;
|
||||
private static final String LOGINSTATE = "loginState";
|
||||
|
||||
@ModelAttribute
|
||||
public void test(HttpServletRequest request, String token, String uid) {
|
||||
if (RedisUtlis.exists(token, uid)) {
|
||||
request.setAttribute(LOGINSTATE, true);
|
||||
} else {
|
||||
request.setAttribute(LOGINSTATE, false);
|
||||
}
|
||||
int _uid = 0;
|
||||
if (!Tools.StringIsEmpty(uid)) {
|
||||
try {
|
||||
_uid = Integer.valueOf(uid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
}
|
||||
User u=user.getUser(_uid);
|
||||
request.setAttribute("uid", uid);
|
||||
if(u!=null)
|
||||
request.setAttribute("upower", u.getPower());
|
||||
else
|
||||
request.setAttribute("upower", 0);
|
||||
request.setAttribute("token", token);
|
||||
u=null;
|
||||
}
|
||||
|
||||
@RequestMapping("/all.do")
|
||||
@ResponseBody
|
||||
public String getAllMod(HttpServletRequest request, String min_str, String max_str) {
|
||||
int min, max;
|
||||
JSONObject json = new JSONObject();
|
||||
try {
|
||||
min = Integer.valueOf(min_str);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
min = -1;
|
||||
}
|
||||
try {
|
||||
max = Integer.valueOf(max_str);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
max = -1;
|
||||
}
|
||||
int uPower = 0;
|
||||
if ((boolean) request.getAttribute(LOGINSTATE)) {
|
||||
try {
|
||||
int _uid = Integer.valueOf((String) request.getAttribute("uid"));
|
||||
User u = user.getUser(_uid);
|
||||
uPower = u.getPower();
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
List<TMod> list = modService.getMods(min, max, uPower);
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
if (list.size() == 0 || (list.size() < (max - min))) {
|
||||
json.put("pager", false);
|
||||
} else {
|
||||
json.put("pager", true);
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/search.do")
|
||||
@ResponseBody
|
||||
public String search(HttpServletRequest request, String key) {
|
||||
List<TMod> list = modService.getMod(key, (int)request.getAttribute("upower"));
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/getMod.do")
|
||||
@ResponseBody
|
||||
public String getMod(HttpServletRequest request, String id) {
|
||||
JSONObject json = new JSONObject();
|
||||
int _id = -1;
|
||||
try {
|
||||
_id = Integer.valueOf(id);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
json.put("code", ModEnum.ERROR.code);
|
||||
json.put("msg", ModEnum.ERROR.msg);
|
||||
json.put("data", "");
|
||||
return json.toString();
|
||||
}
|
||||
TMod mod = modService.getMod(_id, (int)request.getAttribute("upower"));
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", mod);
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/getMods.do")
|
||||
@ResponseBody
|
||||
public String getMods(HttpServletRequest request, String ids) {
|
||||
System.out.println(ids);
|
||||
List<TMod> mods = new ArrayList<>();
|
||||
try {
|
||||
JSONArray _ids = new JSONArray(ids);
|
||||
for (int i = 0; i < _ids.length(); i++) {
|
||||
mods.add(modService.getMod(_ids.getInt(i), (int)request.getAttribute("upower")));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(mods));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/getComment.do")
|
||||
@ResponseBody
|
||||
public String getComment(HttpServletRequest request, String id) {
|
||||
JSONObject json = new JSONObject();
|
||||
int _id = -1;
|
||||
try {
|
||||
_id = Integer.valueOf(id);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
json.put("code", ModEnum.ERROR.code);
|
||||
json.put("msg", ModEnum.ERROR.msg);
|
||||
json.put("data", "");
|
||||
return json.toString();
|
||||
}
|
||||
List<TModcomment> list = modService.getModComment(_id);
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/getType.do")
|
||||
@ResponseBody
|
||||
public String getType(HttpServletRequest request, String mType, String jType) {
|
||||
boolean isModType = mType == null ? false : true;
|
||||
Log.i("/getType.do", "mType:" + mType + " jType:" + jType + " isType:" + isModType);
|
||||
JSONObject json = new JSONObject();
|
||||
List<?> list = new ArrayList<>();
|
||||
int tmp = 0;
|
||||
if (isModType) {
|
||||
try {
|
||||
tmp = Integer.valueOf(mType);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
list = modService.getTypeOfMod(tmp);
|
||||
} else {
|
||||
try {
|
||||
tmp = Integer.valueOf(jType);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
list = modService.getTypeOfJian(tmp);
|
||||
}
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
Log.i("/getType.do return", json.toString());
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/user.do")
|
||||
@ResponseBody
|
||||
public String getUser(HttpServletRequest request, String uid) {
|
||||
int _uid = -1;
|
||||
JSONObject json = new JSONObject();
|
||||
try {
|
||||
_uid = Integer.valueOf(uid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
json.put("code", ModEnum.ERROR.code);
|
||||
json.put("msg", ModEnum.ERROR.msg);
|
||||
json.put("data", "");
|
||||
return json.toString();
|
||||
}
|
||||
List<TMod> list = modService.getUserOfId(_uid);
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/remod.do")
|
||||
@ResponseBody
|
||||
public String getReMod(HttpServletRequest request, String mid, String remid) {
|
||||
int _mid = 0;
|
||||
int _remid = 0;
|
||||
JSONObject json = new JSONObject();
|
||||
try {
|
||||
_mid = Integer.valueOf(mid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
try {
|
||||
_remid = Integer.valueOf(remid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
List<TMod> list = modService.getReMod(_mid, _remid);
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/tags.do")
|
||||
@ResponseBody
|
||||
public String getModTag(HttpServletRequest request, String mid) {
|
||||
int _mid = 0;
|
||||
try {
|
||||
_mid = Integer.valueOf(mid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
JSONObject json = new JSONObject();
|
||||
List<TModtag> list = modService.getModTag(_mid);
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/download.do", produces = "text/html;charset=UTF-8")
|
||||
@ResponseBody
|
||||
public String getDownload(HttpServletRequest request, String mid, String uid) {
|
||||
int _mid = 0;
|
||||
int _uid = 0;
|
||||
try {
|
||||
_mid = Integer.valueOf(mid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
try {
|
||||
_uid = Integer.valueOf(uid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
|
||||
List<TModfile> list = modService.getModFile(_mid, _uid);
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/packnames.do")
|
||||
@ResponseBody
|
||||
public String getPackNames(HttpServletRequest request) {
|
||||
List<MGamePackname> list = appService.getPackNames(false);
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(list));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/getCollect.do")
|
||||
@ResponseBody
|
||||
public String getUserCollect(HttpServletRequest request) {
|
||||
JSONObject json = new JSONObject();
|
||||
String token = request.getParameter("token");
|
||||
String id = RedisUtlis.get(token);
|
||||
String min = request.getParameter("min");
|
||||
String max = request.getParameter("max");
|
||||
if (!(boolean) request.getAttribute(LOGINSTATE)) {
|
||||
json.put("state", request.getAttribute(LOGINSTATE));
|
||||
json.put("msg", "登录信息失效");
|
||||
json.put("code", 101);
|
||||
return json.toString();
|
||||
}
|
||||
int _min = Integer.valueOf(min);
|
||||
int _max = Integer.valueOf(max);
|
||||
int _id = Integer.valueOf(id);
|
||||
List<TMod> mods = user.userCollectMod(_min, _max, _id);
|
||||
json.put("msg", "获取成功");
|
||||
json.put("data", JSON.toJSON(mods));
|
||||
json.put("next", (_max < user.userCollectMod(0, -1, _id).size()) ? true : false);
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/removeCollect.do")
|
||||
@ResponseBody
|
||||
public String removeUserCollect(HttpServletRequest request) {
|
||||
JSONObject json = new JSONObject();
|
||||
String mid = request.getParameter("mid");
|
||||
if (!(boolean) request.getAttribute(LOGINSTATE)) {
|
||||
json.put("state", request.getAttribute(LOGINSTATE));
|
||||
json.put("msg", "登录信息失效");
|
||||
json.put("code", 101);
|
||||
return json.toString();
|
||||
}
|
||||
if (user.removeCollectMod(Integer.valueOf(mid)) == 1) {
|
||||
json.put("data", true);
|
||||
json.put("msg", "移除收藏成功");
|
||||
} else {
|
||||
json.put("data", false);
|
||||
json.put("msg", "移除收藏失败");
|
||||
}
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/collection.do")
|
||||
@ResponseBody
|
||||
public String setCollection(HttpServletRequest request, String mid) {
|
||||
if (!(boolean) request.getAttribute(LOGINSTATE)) {
|
||||
JSONObject error = new JSONObject();
|
||||
error.put("msg", "失败");
|
||||
error.put("code", "0101");
|
||||
return error.toString();
|
||||
}
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("code", ModEnum.SUCCESS.code);
|
||||
json.put("msg", ModEnum.SUCCESS.msg);
|
||||
json.put("data", JSON.toJSON(modService.setConllection(request.getAttribute("uid").toString(), mid)));
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("/move.do")
|
||||
@ResponseBody
|
||||
public String AdminMod(HttpServletRequest request) {
|
||||
JSONObject json = new JSONObject();
|
||||
String token = request.getParameter("token");
|
||||
String mid = request.getParameter("mid");
|
||||
String type = request.getParameter("type");
|
||||
if (!(boolean) request.getAttribute(LOGINSTATE)) {
|
||||
json.put("state", request.getAttribute(LOGINSTATE));
|
||||
json.put("msg", "信息失效");
|
||||
json.put("code", 101);
|
||||
return json.toString();
|
||||
}
|
||||
User u = user.getUser(Integer.valueOf(RedisUtlis.get(token)));
|
||||
if (u.getPower() < UserPower.Power.U_Auditor.code) {
|
||||
json.put("state", request.getAttribute(LOGINSTATE));
|
||||
json.put("msg", UserEnum.LOGIN_NOT_POWER.msg);
|
||||
json.put("code", UserEnum.LOGIN_NOT_POWER.code);
|
||||
return json.toString();
|
||||
}
|
||||
int i = 0;
|
||||
switch (type) {
|
||||
case "0":
|
||||
i = modService.setModPower(Integer.valueOf(mid), 0);
|
||||
break;
|
||||
case "1":
|
||||
i = modService.setModPower(Integer.valueOf(mid), 1);
|
||||
break;
|
||||
case "move":
|
||||
String newjType = request.getParameter("jType");
|
||||
String newmType = request.getParameter("mType");
|
||||
if (!Tools.StringIsEmpty(newjType, newmType)) {
|
||||
i = modService.moveMod(Integer.valueOf(mid), newjType, newmType);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
json.put("code", 100);
|
||||
json.put("msg", i == 1 ? "修改成功" : "修改失败");
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/typeInfo.do", produces = "text/html;charset=UTF-8")
|
||||
@ResponseBody
|
||||
public String getModType(HttpServletRequest request) {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("msg", "ok");
|
||||
json.put("code", 100);
|
||||
json.put("data", modService.getTypeInfo());
|
||||
return json.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.yutou.controller.android;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import com.yutou.mybatis.User;
|
||||
import com.yutou.services.PlugsService;
|
||||
import com.yutou.services.UserService;
|
||||
import com.yutou.utlis.RedisUtlis;
|
||||
import com.yutou.utlis.Tools;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("android/plugs/")
|
||||
public class PlugController {
|
||||
@Resource
|
||||
PlugsService plugService;
|
||||
@Resource
|
||||
UserService user;
|
||||
private static final String LOGINSTATE = "loginState";
|
||||
|
||||
@ModelAttribute
|
||||
public void test(HttpServletRequest request, String token, String uid) {
|
||||
if (RedisUtlis.exists(token, uid)) {
|
||||
request.setAttribute(LOGINSTATE, true);
|
||||
} else {
|
||||
request.setAttribute(LOGINSTATE, false);
|
||||
}
|
||||
int _uid = 0;
|
||||
if (!Tools.StringIsEmpty(uid)) {
|
||||
try {
|
||||
_uid = Integer.valueOf(uid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
}
|
||||
User u=user.getUser(_uid);
|
||||
request.setAttribute("uid", uid);
|
||||
if(u!=null)
|
||||
request.setAttribute("upower", u.getPower());
|
||||
else
|
||||
request.setAttribute("upower", 0);
|
||||
request.setAttribute("token", token);
|
||||
u=null;
|
||||
}
|
||||
public String getAllPlugs(HttpServletRequest request) {
|
||||
String version=request.getParameter("version");
|
||||
return"";
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.yutou.controller.android;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.yutou.enums.UserEnum;
|
||||
import com.yutou.services.SystemService;
|
||||
import com.yutou.services.UserService;
|
||||
import com.yutou.utlis.RedisUtlis;
|
||||
import com.yutou.utlis.Tools;
|
||||
|
||||
@RequestMapping("/android/system")
|
||||
@Controller
|
||||
public class SystemController {
|
||||
@Resource
|
||||
SystemService systemService;
|
||||
@Resource
|
||||
UserService user;
|
||||
private static final String LOGINSTATE="loginState";
|
||||
@ModelAttribute
|
||||
public void test(HttpServletRequest request, String token, String uid) {
|
||||
if (RedisUtlis.exists(token, uid)) {
|
||||
request.setAttribute(LOGINSTATE, true);
|
||||
} else {
|
||||
request.setAttribute(LOGINSTATE, false);
|
||||
}
|
||||
request.setAttribute("uid", uid);
|
||||
request.setAttribute("token", token);
|
||||
}
|
||||
@RequestMapping("/addFeedBack.do")
|
||||
@ResponseBody
|
||||
public String addFeedBack(HttpServletRequest request) {
|
||||
JSONObject json=new JSONObject();
|
||||
if(!(boolean) request.getAttribute(LOGINSTATE)) {
|
||||
json.put("code", UserEnum.LOGIN_NOT_LOGIN.code);
|
||||
json.put("msg", UserEnum.LOGIN_NOT_LOGIN.msg);
|
||||
return json.toString();
|
||||
}
|
||||
String uid=(String) request.getAttribute("uid");
|
||||
String context=request.getParameter("context");
|
||||
String sysinfo=request.getParameter("sysinfo");
|
||||
int _uid=0;
|
||||
try {
|
||||
_uid=Integer.valueOf(uid);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
if(Tools.StringIsEmpty(uid,context,sysinfo)) {
|
||||
json.put("code", 110);
|
||||
json.put("msg","参数不能为空");
|
||||
return json.toString();
|
||||
}
|
||||
json.put("code", 100);
|
||||
json.put("msg", systemService.addFeedBack(_uid, context, sysinfo)==1?"提交成功":"提交失败");
|
||||
return json.toString();
|
||||
}
|
||||
}
|
184
src/main/java/com/yutou/controller/android/UserController.java
Normal file
184
src/main/java/com/yutou/controller/android/UserController.java
Normal file
@ -0,0 +1,184 @@
|
||||
package com.yutou.controller.android;
|
||||
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yutou.enums.UserEnum;
|
||||
import com.yutou.mybatis.User;
|
||||
import com.yutou.services.ModService;
|
||||
import com.yutou.services.UserService;
|
||||
import com.yutou.utlis.Log;
|
||||
import com.yutou.utlis.MD5Signature;
|
||||
import com.yutou.utlis.RedisUtlis;
|
||||
import com.yutou.utlis.ServiceStaticValue;
|
||||
import com.yutou.utlis.Tools;
|
||||
|
||||
@RequestMapping("/android/user/")
|
||||
@Controller
|
||||
public class UserController {
|
||||
@Resource
|
||||
UserService user;
|
||||
@Resource
|
||||
ModService modService;
|
||||
|
||||
@RequestMapping("login.do")
|
||||
@ResponseBody
|
||||
public String login(HttpServletRequest request, HttpServletResponse response) {
|
||||
Log.i(request.getAttribute("loginState") + "");
|
||||
String uname = request.getParameter("uname");
|
||||
String pass = request.getParameter("pass");
|
||||
int uid = user.login(uname, pass);
|
||||
JSONObject json = new JSONObject();
|
||||
if (Tools.StringIsEmpty(uname, pass)) {
|
||||
json.put("msg", "账号密码为空");
|
||||
json.put("code", "0203");
|
||||
return json.toString();
|
||||
}
|
||||
switch (uid) {
|
||||
case -2:
|
||||
json.put("msg", "失败/账户密码错误");
|
||||
json.put("code", "0101");
|
||||
break;
|
||||
case -1:
|
||||
json.put("msg", "你还没有注册呢");
|
||||
json.put("code", "0102");
|
||||
break;
|
||||
default:
|
||||
String token = getToken(request, uid);
|
||||
json.put("msg", "登录成功");
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
json.put("token", token);
|
||||
User u = user.getUser(uid);
|
||||
u.setPass("669969");
|
||||
json.put("data", JSON.toJSON(u));
|
||||
RedisUtlis.set(token, uid + "", ServiceStaticValue.TOKEN_TIMEOUT);
|
||||
break;
|
||||
}
|
||||
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("reg.do")
|
||||
@ResponseBody
|
||||
public String reg(HttpServletRequest request) {
|
||||
String uname = request.getParameter("uname");
|
||||
String pass = request.getParameter("pass");
|
||||
String name = request.getParameter("name");
|
||||
JSONObject json = new JSONObject();
|
||||
if (Tools.StringIsEmpty(uname, pass)) {
|
||||
json.put("msg", "账号密码为空");
|
||||
json.put("code", "0203");
|
||||
return json.toString();
|
||||
}
|
||||
int str = user.reg(uname, name, pass);
|
||||
if (str >= 0) {
|
||||
json.put("code", UserEnum.REG_SUCCESS.code);
|
||||
json.put("msg", UserEnum.REG_SUCCESS.msg);
|
||||
String token = getToken(request, str);
|
||||
json.put("token", token);
|
||||
RedisUtlis.set(token, str + "", ServiceStaticValue.TOKEN_TIMEOUT);
|
||||
} else {
|
||||
json.put("code", UserEnum.REG_ERROR.code);
|
||||
json.put("msg", UserEnum.REG_ERROR.msg);
|
||||
}
|
||||
json.put("id", str);
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("reload.do")
|
||||
@ResponseBody
|
||||
public String reload(int uid, String token, HttpServletRequest request) {
|
||||
JSONObject json = new JSONObject();
|
||||
if ((boolean) request.getAttribute("loginState")) {
|
||||
String newtoken = getToken(request, uid);
|
||||
json.put("msg", "登录成功");
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
json.put("token", newtoken);
|
||||
RedisUtlis.set(token, uid + "", ServiceStaticValue.TOKEN_TIMEOUT);
|
||||
} else {
|
||||
json.put("msg", "登录失败");
|
||||
json.put("code", "0101");
|
||||
json.put("token", token);
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("logout.do")
|
||||
@ResponseBody
|
||||
public String logout(HttpServletRequest request, String uid, String token) {
|
||||
JSONObject json = new JSONObject();
|
||||
if ((boolean) request.getAttribute("loginState")) {
|
||||
json.put("msg", "注销成功");
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
json.put("token", "");
|
||||
RedisUtlis.remove(token);
|
||||
} else {
|
||||
json.put("code", UserEnum.LOGIN_NOT_LOGIN.code);
|
||||
json.put("msg", UserEnum.LOGIN_NOT_LOGIN.msg);
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@RequestMapping("user.do")
|
||||
@ResponseBody
|
||||
public String getUserData(HttpServletRequest request, String token, int uid) {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("msg", "失败");
|
||||
json.put("code", "0101");
|
||||
if ((boolean) request.getAttribute("loginState")) {
|
||||
if (RedisUtlis.get(uid + "").equals(token)) {
|
||||
User u = user.getUser(uid);
|
||||
json.put("data", user.getUserData(u.getId()).getJSONObject("data"));
|
||||
json.put("msg", UserEnum.LOGIN_SUCCESS.msg);
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
}
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
|
||||
@ModelAttribute
|
||||
public void test(HttpServletRequest request, String token, String uid) {
|
||||
if (RedisUtlis.exists(uid, token)) {
|
||||
request.setAttribute("loginState", true);
|
||||
} else {
|
||||
request.setAttribute("loginState", false);
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("test.do")
|
||||
@ResponseBody
|
||||
public String testLogin(HttpServletRequest request, String token) {
|
||||
int id = 0;
|
||||
JSONObject json = new JSONObject();
|
||||
try {
|
||||
token=request.getParameter("token");
|
||||
String _uid = RedisUtlis.get(token);
|
||||
id = Integer.valueOf(_uid);
|
||||
json.put("state", request.getAttribute("loginState"));
|
||||
json.put("msg", UserEnum.LOGIN_SUCCESS.msg);
|
||||
json.put("code", UserEnum.LOGIN_SUCCESS.code);
|
||||
json.put("data", user.getUserData(id)) ;
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
json.put("state", request.getAttribute("loginState"));
|
||||
json.put("msg", "登录信息失效");
|
||||
json.put("code", 101);
|
||||
}
|
||||
return json.toString();
|
||||
}
|
||||
private String getToken(HttpServletRequest request, int uid) {
|
||||
String address = Tools.getRemoteAddress(request);
|
||||
String time = System.currentTimeMillis() + "";
|
||||
String token = MD5Signature.sign(address + time + (uid + ""), ServiceStaticValue.SERVICE_URL);
|
||||
return token;
|
||||
}
|
||||
}
|
59
src/main/java/com/yutou/controller/test.java
Normal file
59
src/main/java/com/yutou/controller/test.java
Normal file
@ -0,0 +1,59 @@
|
||||
package com.yutou.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yutou.mybatis.TMod;
|
||||
import com.yutou.services.ModService;
|
||||
import com.yutou.utlis.RedisUtlis;
|
||||
|
||||
|
||||
@Controller
|
||||
public class test {
|
||||
@Resource
|
||||
ModService modService;
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping("/mod.do")
|
||||
public String getMod(HttpServletRequest request) {
|
||||
String str=request.getParameter("id");
|
||||
int id=-1;
|
||||
try {
|
||||
id=Integer.valueOf(str);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
TMod mod=modService.getMod(id,0);
|
||||
return JSON.toJSONString(mod);
|
||||
}
|
||||
@ResponseBody
|
||||
@RequestMapping("/search.do")
|
||||
public String searchMod(String search) {
|
||||
System.out.println("搜索:"+search);
|
||||
List<TMod> mod=modService.getMod(search,0);
|
||||
return JSON.toJSONString(mod);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/redis/set.do")
|
||||
@ResponseBody
|
||||
public String set(String key,String value) {
|
||||
boolean tmp=false;
|
||||
tmp=RedisUtlis.set(key, value);
|
||||
return tmp+"";
|
||||
}
|
||||
@RequestMapping("/redis/get.do")
|
||||
@ResponseBody
|
||||
public String get(String key) {
|
||||
String value="get";
|
||||
value=RedisUtlis.get(key);
|
||||
return value;
|
||||
}
|
||||
}
|
212
src/main/java/com/yutou/controller/ulit.java
Normal file
212
src/main/java/com/yutou/controller/ulit.java
Normal file
@ -0,0 +1,212 @@
|
||||
package com.yutou.controller;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Properties;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipOutputStream;
|
||||
|
||||
import javax.mail.Message;
|
||||
import javax.mail.Session;
|
||||
import javax.mail.Transport;
|
||||
import javax.mail.internet.InternetAddress;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
public class ulit {
|
||||
public String getMD5(String filePath) {
|
||||
try {
|
||||
Process process = Runtime.getRuntime().exec(
|
||||
"certutil -hashfile " + filePath + " MD5");
|
||||
BufferedReader bufferedReader = new BufferedReader(
|
||||
new InputStreamReader(process.getInputStream()));
|
||||
bufferedReader.readLine();
|
||||
String str = bufferedReader.readLine();
|
||||
String strs[] = str.split(" ");
|
||||
String sts = "";
|
||||
for (String string : strs) {
|
||||
sts = sts.concat(string);
|
||||
}
|
||||
return sts;
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static JSONObject getCID(String path) {
|
||||
File jsp = new File(path + "/cid.txt");
|
||||
try {
|
||||
BufferedReader bufferedReader = new BufferedReader(
|
||||
new InputStreamReader(new FileInputStream(jsp), "UTF-8"));
|
||||
String tmp;
|
||||
String json = "";
|
||||
while ((tmp = bufferedReader.readLine()) != null) {
|
||||
json += tmp;
|
||||
}
|
||||
bufferedReader.close();
|
||||
JSONObject jsonObject = JSONObject.fromObject(json);
|
||||
return jsonObject;
|
||||
} catch (FileNotFoundException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static String getFileJSON(File file) {
|
||||
if (file == null || !file.exists()) {
|
||||
return "null";
|
||||
} else {
|
||||
try {
|
||||
BufferedReader reader = new BufferedReader(new FileReader(file));
|
||||
String tmp;
|
||||
String json = "";
|
||||
while ((tmp = reader.readLine()) != null) {
|
||||
json += tmp;
|
||||
}
|
||||
reader.close();
|
||||
return json;
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
return "null";
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return "null";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static Message createEmail(Session session, String mail, String username,String title,String info)
|
||||
throws Exception {
|
||||
MimeMessage message = new MimeMessage(session);
|
||||
message.setFrom(new InternetAddress(username));
|
||||
message.setRecipient(Message.RecipientType.TO,
|
||||
new InternetAddress(mail));
|
||||
info += "<p>本邮件为系统自动发送,请勿回复!如是问题反馈的回复,则可以回邮件";
|
||||
message.setSubject(title);
|
||||
message.setContent(info, "text/html;charset=UTF-8");
|
||||
message.saveChanges();
|
||||
return message;
|
||||
}
|
||||
|
||||
public static void sendEmail(String mail,String title,String info) {
|
||||
if (mail == null || mail.equals("")) {
|
||||
return;
|
||||
}
|
||||
String username = "583819556@qq.com";
|
||||
String password = "mnhznjzwcswpbgae";
|
||||
String host = "smtp.qq.com";// 这里放的是邮箱的主机
|
||||
File file = new File("email.json");
|
||||
if (!file.exists()) {
|
||||
try {
|
||||
file.createNewFile();
|
||||
JSONObject object = new JSONObject();
|
||||
object.accumulate("username", "583819556@qq.com");
|
||||
object.accumulate("password", "mnhznjzwcswpbgae");
|
||||
object.accumulate("host", "smtp.qq.com");
|
||||
PrintWriter writer = new PrintWriter(file);
|
||||
writer.write(object.toString());
|
||||
writer.flush();
|
||||
writer.close();
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
JSONObject obj = JSONObject.fromObject(ulit.getFileJSON(file));
|
||||
username = obj.getString("username");
|
||||
password = obj.getString("password");
|
||||
host = obj.getString("host");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
}
|
||||
|
||||
Properties props = System.getProperties();
|
||||
|
||||
// Setup mail server
|
||||
props.put("mail.smtp.host", host);
|
||||
props.put("mail.smtp.auth", "true");
|
||||
props.put("mail.smtp.ssl.enable", "true");
|
||||
props.setProperty("mail.transport.protocol", "smtp");
|
||||
Session session = Session.getInstance(props);
|
||||
session.setDebug(true);
|
||||
try {
|
||||
Message message = createEmail(session, mail, username,title,info);
|
||||
Transport ts;
|
||||
ts = session.getTransport();
|
||||
ts.connect(host, username, password);
|
||||
ts.sendMessage(message, message.getAllRecipients());
|
||||
ts.close();
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
public static boolean zip(File[] files, File zip) {
|
||||
try {
|
||||
ZipOutputStream zipOutputStream = new ZipOutputStream(
|
||||
new FileOutputStream(zip));
|
||||
FileInputStream input=null;
|
||||
int t ;
|
||||
for (File file : files) {
|
||||
if(file.getName().equals("mods.zip")){
|
||||
continue;
|
||||
}
|
||||
zipOutputStream.putNextEntry(new ZipEntry(file.getName()));
|
||||
input = new FileInputStream(file);
|
||||
t = 0;
|
||||
while ((t = input.read()) != -1) {
|
||||
zipOutputStream.write(t);
|
||||
}
|
||||
if(input!=null)
|
||||
input.close();
|
||||
}
|
||||
zipOutputStream.finish();
|
||||
zipOutputStream.close();
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
System.err.println("压缩失败:");
|
||||
e.printStackTrace();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static void deleteMod(String modPath){
|
||||
System.out.println("删除:"+modPath);
|
||||
File files=new File(modPath);
|
||||
if(files.exists())
|
||||
delete(files);
|
||||
|
||||
}
|
||||
public static void delete(File file){
|
||||
for (File f : file.listFiles()) {
|
||||
if(f.isFile()){
|
||||
f.delete();
|
||||
}else{
|
||||
delete(f);
|
||||
f.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
deleteMod("F:\\apache-tomcat-8.0.33\\webapps\\jianrmg_Service\\jianr\\test");
|
||||
|
||||
}
|
||||
}
|
14
src/main/java/com/yutou/enums/ModEnum.java
Normal file
14
src/main/java/com/yutou/enums/ModEnum.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.yutou.enums;
|
||||
|
||||
public enum ModEnum {
|
||||
SUCCESS(100,"success"),
|
||||
ERROR(101,"error");
|
||||
|
||||
public int code;
|
||||
public String msg;
|
||||
private ModEnum(int code,String msg) {
|
||||
// TODO Auto-generated constructor stub
|
||||
this.code=code;
|
||||
this.msg=msg;
|
||||
}
|
||||
}
|
21
src/main/java/com/yutou/enums/UserEnum.java
Normal file
21
src/main/java/com/yutou/enums/UserEnum.java
Normal file
@ -0,0 +1,21 @@
|
||||
package com.yutou.enums;
|
||||
|
||||
public enum UserEnum {
|
||||
LOGIN_SUCCESS(100,"登录成功"),
|
||||
ACCOUNT_OR_PASSWORD_ERROR(101,"账号密码错误"),
|
||||
LOGIN_NOT_REG(102,"没有注册"),
|
||||
ACCOUNT_OR_PASSWORD_NOT(103,"账号密码为空"),
|
||||
LOGIN_NOT_LOGIN(104,"未登录"),
|
||||
LOGIN_NOT_POWER(105,"没有权限"),
|
||||
|
||||
REG_SUCCESS(200,"注册成功"),
|
||||
REG_ERROR(202,"注册失败");
|
||||
|
||||
public int code;
|
||||
public String msg;
|
||||
private UserEnum(int code,String msg) {
|
||||
// TODO Auto-generated constructor stub
|
||||
this.code=code;
|
||||
this.msg=msg;
|
||||
}
|
||||
}
|
29
src/main/java/com/yutou/enums/UserPower.java
Normal file
29
src/main/java/com/yutou/enums/UserPower.java
Normal file
@ -0,0 +1,29 @@
|
||||
package com.yutou.enums;
|
||||
|
||||
public class UserPower {
|
||||
public enum Power{
|
||||
USER (0,"#"), //普通用户
|
||||
UPLOAD(0,"upmod.jsp"), //上传者
|
||||
U_Auditor(5,"#"), // 审核员
|
||||
ADMIN (999,"#"); //管理员
|
||||
|
||||
public int code;
|
||||
private String html;
|
||||
|
||||
private Power(int _code,String html) {
|
||||
this.code=_code;
|
||||
this.html=html;
|
||||
}
|
||||
}
|
||||
public UserPower() {
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
public static int getPower(String html) {
|
||||
for (Power power : Power.values()) {
|
||||
if(html.contains(power.html)) {
|
||||
return power.code;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.yutou.interfaces;
|
||||
|
||||
public interface AppConfigListInterfaces {
|
||||
Integer getIndexs();
|
||||
}
|
174
src/main/java/com/yutou/mybatis/MAppHome.java
Normal file
174
src/main/java/com/yutou/mybatis/MAppHome.java
Normal file
@ -0,0 +1,174 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import com.yutou.interfaces.AppConfigListInterfaces;
|
||||
|
||||
public class MAppHome implements AppConfigListInterfaces{
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_home.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_home.text
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String text;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_home.imageUrl
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String imageurl;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_home.click
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String click;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_home.type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer type;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_home.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer isshow;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_home.version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_home.id
|
||||
* @return the value of m_app_home.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_home.id
|
||||
* @param id the value for m_app_home.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_home.text
|
||||
* @return the value of m_app_home.text
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_home.text
|
||||
* @param text the value for m_app_home.text
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_home.imageUrl
|
||||
* @return the value of m_app_home.imageUrl
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getImageurl() {
|
||||
return imageurl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_home.imageUrl
|
||||
* @param imageurl the value for m_app_home.imageUrl
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setImageurl(String imageurl) {
|
||||
this.imageurl = imageurl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_home.click
|
||||
* @return the value of m_app_home.click
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getClick() {
|
||||
return click;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_home.click
|
||||
* @param click the value for m_app_home.click
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setClick(String click) {
|
||||
this.click = click;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_home.type
|
||||
* @return the value of m_app_home.type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_home.type
|
||||
* @param type the value for m_app_home.type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_home.isshow
|
||||
* @return the value of m_app_home.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getIsshow() {
|
||||
return isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_home.isshow
|
||||
* @param isshow the value for m_app_home.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setIsshow(Integer isshow) {
|
||||
this.isshow = isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_home.version
|
||||
* @return the value of m_app_home.version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_home.version
|
||||
* @param version the value for m_app_home.version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getIndexs() {
|
||||
// TODO Auto-generated method stub
|
||||
return id;
|
||||
}
|
||||
}
|
711
src/main/java/com/yutou/mybatis/MAppHomeExample.java
Normal file
711
src/main/java/com/yutou/mybatis/MAppHomeExample.java
Normal file
@ -0,0 +1,711 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MAppHomeExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public MAppHomeExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextIsNull() {
|
||||
addCriterion("text is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextIsNotNull() {
|
||||
addCriterion("text is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextEqualTo(String value) {
|
||||
addCriterion("text =", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextNotEqualTo(String value) {
|
||||
addCriterion("text <>", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextGreaterThan(String value) {
|
||||
addCriterion("text >", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("text >=", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextLessThan(String value) {
|
||||
addCriterion("text <", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextLessThanOrEqualTo(String value) {
|
||||
addCriterion("text <=", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextLike(String value) {
|
||||
addCriterion("text like", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextNotLike(String value) {
|
||||
addCriterion("text not like", value, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextIn(List<String> values) {
|
||||
addCriterion("text in", values, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextNotIn(List<String> values) {
|
||||
addCriterion("text not in", values, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextBetween(String value1, String value2) {
|
||||
addCriterion("text between", value1, value2, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTextNotBetween(String value1, String value2) {
|
||||
addCriterion("text not between", value1, value2, "text");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlIsNull() {
|
||||
addCriterion("imageUrl is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlIsNotNull() {
|
||||
addCriterion("imageUrl is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlEqualTo(String value) {
|
||||
addCriterion("imageUrl =", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlNotEqualTo(String value) {
|
||||
addCriterion("imageUrl <>", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlGreaterThan(String value) {
|
||||
addCriterion("imageUrl >", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("imageUrl >=", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlLessThan(String value) {
|
||||
addCriterion("imageUrl <", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlLessThanOrEqualTo(String value) {
|
||||
addCriterion("imageUrl <=", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlLike(String value) {
|
||||
addCriterion("imageUrl like", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlNotLike(String value) {
|
||||
addCriterion("imageUrl not like", value, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlIn(List<String> values) {
|
||||
addCriterion("imageUrl in", values, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlNotIn(List<String> values) {
|
||||
addCriterion("imageUrl not in", values, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlBetween(String value1, String value2) {
|
||||
addCriterion("imageUrl between", value1, value2, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageurlNotBetween(String value1, String value2) {
|
||||
addCriterion("imageUrl not between", value1, value2, "imageurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickIsNull() {
|
||||
addCriterion("click is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickIsNotNull() {
|
||||
addCriterion("click is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickEqualTo(String value) {
|
||||
addCriterion("click =", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotEqualTo(String value) {
|
||||
addCriterion("click <>", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickGreaterThan(String value) {
|
||||
addCriterion("click >", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("click >=", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickLessThan(String value) {
|
||||
addCriterion("click <", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickLessThanOrEqualTo(String value) {
|
||||
addCriterion("click <=", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickLike(String value) {
|
||||
addCriterion("click like", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotLike(String value) {
|
||||
addCriterion("click not like", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickIn(List<String> values) {
|
||||
addCriterion("click in", values, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotIn(List<String> values) {
|
||||
addCriterion("click not in", values, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickBetween(String value1, String value2) {
|
||||
addCriterion("click between", value1, value2, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotBetween(String value1, String value2) {
|
||||
addCriterion("click not between", value1, value2, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(Integer value) {
|
||||
addCriterion("type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(Integer value) {
|
||||
addCriterion("type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(Integer value) {
|
||||
addCriterion("type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(Integer value) {
|
||||
addCriterion("type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<Integer> values) {
|
||||
addCriterion("type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<Integer> values) {
|
||||
addCriterion("type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(Integer value1, Integer value2) {
|
||||
addCriterion("type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNull() {
|
||||
addCriterion("isshow is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNotNull() {
|
||||
addCriterion("isshow is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowEqualTo(Integer value) {
|
||||
addCriterion("isshow =", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotEqualTo(Integer value) {
|
||||
addCriterion("isshow <>", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThan(Integer value) {
|
||||
addCriterion("isshow >", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow >=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThan(Integer value) {
|
||||
addCriterion("isshow <", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow <=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIn(List<Integer> values) {
|
||||
addCriterion("isshow in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotIn(List<Integer> values) {
|
||||
addCriterion("isshow not in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow not between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIsNull() {
|
||||
addCriterion("version is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIsNotNull() {
|
||||
addCriterion("version is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionEqualTo(Integer value) {
|
||||
addCriterion("version =", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotEqualTo(Integer value) {
|
||||
addCriterion("version <>", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionGreaterThan(Integer value) {
|
||||
addCriterion("version >", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("version >=", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionLessThan(Integer value) {
|
||||
addCriterion("version <", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("version <=", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIn(List<Integer> values) {
|
||||
addCriterion("version in", values, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotIn(List<Integer> values) {
|
||||
addCriterion("version not in", values, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionBetween(Integer value1, Integer value2) {
|
||||
addCriterion("version between", value1, value2, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("version not between", value1, value2, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table m_app_home
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Tue Jan 23 10:49:57 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
215
src/main/java/com/yutou/mybatis/MAppMg.java
Normal file
215
src/main/java/com/yutou/mybatis/MAppMg.java
Normal file
@ -0,0 +1,215 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import com.yutou.interfaces.AppConfigListInterfaces;
|
||||
|
||||
public class MAppMg implements AppConfigListInterfaces{
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.indexs
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer indexs;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.icon
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String icon;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.mg_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String mgType;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer isshow;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String url;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer version;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_mg.main_function
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String mainFunction;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.id
|
||||
* @return the value of m_app_mg.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.id
|
||||
* @param id the value for m_app_mg.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.indexs
|
||||
* @return the value of m_app_mg.indexs
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
@Override
|
||||
public Integer getIndexs() {
|
||||
return indexs;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.indexs
|
||||
* @param indexs the value for m_app_mg.indexs
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setIndexs(Integer indexs) {
|
||||
this.indexs = indexs;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.name
|
||||
* @return the value of m_app_mg.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.name
|
||||
* @param name the value for m_app_mg.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.icon
|
||||
* @return the value of m_app_mg.icon
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.icon
|
||||
* @param icon the value for m_app_mg.icon
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.mg_type
|
||||
* @return the value of m_app_mg.mg_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMgType() {
|
||||
return mgType;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.mg_type
|
||||
* @param mgType the value for m_app_mg.mg_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMgType(String mgType) {
|
||||
this.mgType = mgType;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.isshow
|
||||
* @return the value of m_app_mg.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getIsshow() {
|
||||
return isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.isshow
|
||||
* @param isshow the value for m_app_mg.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setIsshow(Integer isshow) {
|
||||
this.isshow = isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.url
|
||||
* @return the value of m_app_mg.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.url
|
||||
* @param url the value for m_app_mg.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.version
|
||||
* @return the value of m_app_mg.version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.version
|
||||
* @param version the value for m_app_mg.version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_mg.main_function
|
||||
* @return the value of m_app_mg.main_function
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMainFunction() {
|
||||
return mainFunction;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_mg.main_function
|
||||
* @param mainFunction the value for m_app_mg.main_function
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMainFunction(String mainFunction) {
|
||||
this.mainFunction = mainFunction;
|
||||
}
|
||||
}
|
851
src/main/java/com/yutou/mybatis/MAppMgExample.java
Normal file
851
src/main/java/com/yutou/mybatis/MAppMgExample.java
Normal file
@ -0,0 +1,851 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MAppMgExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public MAppMgExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsIsNull() {
|
||||
addCriterion("indexs is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsIsNotNull() {
|
||||
addCriterion("indexs is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsEqualTo(Integer value) {
|
||||
addCriterion("indexs =", value, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsNotEqualTo(Integer value) {
|
||||
addCriterion("indexs <>", value, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsGreaterThan(Integer value) {
|
||||
addCriterion("indexs >", value, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("indexs >=", value, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsLessThan(Integer value) {
|
||||
addCriterion("indexs <", value, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("indexs <=", value, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsIn(List<Integer> values) {
|
||||
addCriterion("indexs in", values, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsNotIn(List<Integer> values) {
|
||||
addCriterion("indexs not in", values, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsBetween(Integer value1, Integer value2) {
|
||||
addCriterion("indexs between", value1, value2, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexsNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("indexs not between", value1, value2, "indexs");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconIsNull() {
|
||||
addCriterion("icon is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconIsNotNull() {
|
||||
addCriterion("icon is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconEqualTo(String value) {
|
||||
addCriterion("icon =", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconNotEqualTo(String value) {
|
||||
addCriterion("icon <>", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconGreaterThan(String value) {
|
||||
addCriterion("icon >", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("icon >=", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconLessThan(String value) {
|
||||
addCriterion("icon <", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconLessThanOrEqualTo(String value) {
|
||||
addCriterion("icon <=", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconLike(String value) {
|
||||
addCriterion("icon like", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconNotLike(String value) {
|
||||
addCriterion("icon not like", value, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconIn(List<String> values) {
|
||||
addCriterion("icon in", values, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconNotIn(List<String> values) {
|
||||
addCriterion("icon not in", values, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconBetween(String value1, String value2) {
|
||||
addCriterion("icon between", value1, value2, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIconNotBetween(String value1, String value2) {
|
||||
addCriterion("icon not between", value1, value2, "icon");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeIsNull() {
|
||||
addCriterion("mg_type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeIsNotNull() {
|
||||
addCriterion("mg_type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeEqualTo(String value) {
|
||||
addCriterion("mg_type =", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeNotEqualTo(String value) {
|
||||
addCriterion("mg_type <>", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeGreaterThan(String value) {
|
||||
addCriterion("mg_type >", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("mg_type >=", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeLessThan(String value) {
|
||||
addCriterion("mg_type <", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("mg_type <=", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeLike(String value) {
|
||||
addCriterion("mg_type like", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeNotLike(String value) {
|
||||
addCriterion("mg_type not like", value, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeIn(List<String> values) {
|
||||
addCriterion("mg_type in", values, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeNotIn(List<String> values) {
|
||||
addCriterion("mg_type not in", values, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeBetween(String value1, String value2) {
|
||||
addCriterion("mg_type between", value1, value2, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMgTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("mg_type not between", value1, value2, "mgType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNull() {
|
||||
addCriterion("isshow is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNotNull() {
|
||||
addCriterion("isshow is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowEqualTo(Integer value) {
|
||||
addCriterion("isshow =", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotEqualTo(Integer value) {
|
||||
addCriterion("isshow <>", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThan(Integer value) {
|
||||
addCriterion("isshow >", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow >=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThan(Integer value) {
|
||||
addCriterion("isshow <", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow <=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIn(List<Integer> values) {
|
||||
addCriterion("isshow in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotIn(List<Integer> values) {
|
||||
addCriterion("isshow not in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow not between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNull() {
|
||||
addCriterion("url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNotNull() {
|
||||
addCriterion("url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlEqualTo(String value) {
|
||||
addCriterion("url =", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotEqualTo(String value) {
|
||||
addCriterion("url <>", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThan(String value) {
|
||||
addCriterion("url >", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("url >=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThan(String value) {
|
||||
addCriterion("url <", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("url <=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLike(String value) {
|
||||
addCriterion("url like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotLike(String value) {
|
||||
addCriterion("url not like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIn(List<String> values) {
|
||||
addCriterion("url in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotIn(List<String> values) {
|
||||
addCriterion("url not in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlBetween(String value1, String value2) {
|
||||
addCriterion("url between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("url not between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIsNull() {
|
||||
addCriterion("version is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIsNotNull() {
|
||||
addCriterion("version is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionEqualTo(Integer value) {
|
||||
addCriterion("version =", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotEqualTo(Integer value) {
|
||||
addCriterion("version <>", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionGreaterThan(Integer value) {
|
||||
addCriterion("version >", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("version >=", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionLessThan(Integer value) {
|
||||
addCriterion("version <", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("version <=", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIn(List<Integer> values) {
|
||||
addCriterion("version in", values, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotIn(List<Integer> values) {
|
||||
addCriterion("version not in", values, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionBetween(Integer value1, Integer value2) {
|
||||
addCriterion("version between", value1, value2, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("version not between", value1, value2, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionIsNull() {
|
||||
addCriterion("main_function is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionIsNotNull() {
|
||||
addCriterion("main_function is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionEqualTo(String value) {
|
||||
addCriterion("main_function =", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotEqualTo(String value) {
|
||||
addCriterion("main_function <>", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionGreaterThan(String value) {
|
||||
addCriterion("main_function >", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("main_function >=", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionLessThan(String value) {
|
||||
addCriterion("main_function <", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionLessThanOrEqualTo(String value) {
|
||||
addCriterion("main_function <=", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionLike(String value) {
|
||||
addCriterion("main_function like", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotLike(String value) {
|
||||
addCriterion("main_function not like", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionIn(List<String> values) {
|
||||
addCriterion("main_function in", values, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotIn(List<String> values) {
|
||||
addCriterion("main_function not in", values, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionBetween(String value1, String value2) {
|
||||
addCriterion("main_function between", value1, value2, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotBetween(String value1, String value2) {
|
||||
addCriterion("main_function not between", value1, value2, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table m_app_mg
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Tue Jan 23 10:49:57 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
191
src/main/java/com/yutou/mybatis/MAppPlugs.java
Normal file
191
src/main/java/com/yutou/mybatis/MAppPlugs.java
Normal file
@ -0,0 +1,191 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class MAppPlugs {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.id
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.name
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.fileName
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private String filename;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.fileUrl
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private String fileurl;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.mainFunction
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private String mainfunction;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.subTime
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private Date subtime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.show
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private Integer show;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_plugs.version
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.id
|
||||
* @return the value of m_app_plugs.id
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.id
|
||||
* @param id the value for m_app_plugs.id
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.name
|
||||
* @return the value of m_app_plugs.name
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.name
|
||||
* @param name the value for m_app_plugs.name
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.fileName
|
||||
* @return the value of m_app_plugs.fileName
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.fileName
|
||||
* @param filename the value for m_app_plugs.fileName
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.fileUrl
|
||||
* @return the value of m_app_plugs.fileUrl
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getFileurl() {
|
||||
return fileurl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.fileUrl
|
||||
* @param fileurl the value for m_app_plugs.fileUrl
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setFileurl(String fileurl) {
|
||||
this.fileurl = fileurl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.mainFunction
|
||||
* @return the value of m_app_plugs.mainFunction
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getMainfunction() {
|
||||
return mainfunction;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.mainFunction
|
||||
* @param mainfunction the value for m_app_plugs.mainFunction
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setMainfunction(String mainfunction) {
|
||||
this.mainfunction = mainfunction;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.subTime
|
||||
* @return the value of m_app_plugs.subTime
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Date getSubtime() {
|
||||
return subtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.subTime
|
||||
* @param subtime the value for m_app_plugs.subTime
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setSubtime(Date subtime) {
|
||||
this.subtime = subtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.show
|
||||
* @return the value of m_app_plugs.show
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Integer getShow() {
|
||||
return show;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.show
|
||||
* @param show the value for m_app_plugs.show
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setShow(Integer show) {
|
||||
this.show = show;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_plugs.version
|
||||
* @return the value of m_app_plugs.version
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_plugs.version
|
||||
* @param version the value for m_app_plugs.version
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
}
|
782
src/main/java/com/yutou/mybatis/MAppPlugsExample.java
Normal file
782
src/main/java/com/yutou/mybatis/MAppPlugsExample.java
Normal file
@ -0,0 +1,782 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class MAppPlugsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public MAppPlugsExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameIsNull() {
|
||||
addCriterion("fileName is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameIsNotNull() {
|
||||
addCriterion("fileName is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameEqualTo(String value) {
|
||||
addCriterion("fileName =", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotEqualTo(String value) {
|
||||
addCriterion("fileName <>", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameGreaterThan(String value) {
|
||||
addCriterion("fileName >", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("fileName >=", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameLessThan(String value) {
|
||||
addCriterion("fileName <", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameLessThanOrEqualTo(String value) {
|
||||
addCriterion("fileName <=", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameLike(String value) {
|
||||
addCriterion("fileName like", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotLike(String value) {
|
||||
addCriterion("fileName not like", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameIn(List<String> values) {
|
||||
addCriterion("fileName in", values, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotIn(List<String> values) {
|
||||
addCriterion("fileName not in", values, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameBetween(String value1, String value2) {
|
||||
addCriterion("fileName between", value1, value2, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotBetween(String value1, String value2) {
|
||||
addCriterion("fileName not between", value1, value2, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlIsNull() {
|
||||
addCriterion("fileUrl is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlIsNotNull() {
|
||||
addCriterion("fileUrl is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlEqualTo(String value) {
|
||||
addCriterion("fileUrl =", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlNotEqualTo(String value) {
|
||||
addCriterion("fileUrl <>", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlGreaterThan(String value) {
|
||||
addCriterion("fileUrl >", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("fileUrl >=", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlLessThan(String value) {
|
||||
addCriterion("fileUrl <", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlLessThanOrEqualTo(String value) {
|
||||
addCriterion("fileUrl <=", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlLike(String value) {
|
||||
addCriterion("fileUrl like", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlNotLike(String value) {
|
||||
addCriterion("fileUrl not like", value, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlIn(List<String> values) {
|
||||
addCriterion("fileUrl in", values, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlNotIn(List<String> values) {
|
||||
addCriterion("fileUrl not in", values, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlBetween(String value1, String value2) {
|
||||
addCriterion("fileUrl between", value1, value2, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileurlNotBetween(String value1, String value2) {
|
||||
addCriterion("fileUrl not between", value1, value2, "fileurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionIsNull() {
|
||||
addCriterion("mainFunction is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionIsNotNull() {
|
||||
addCriterion("mainFunction is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionEqualTo(String value) {
|
||||
addCriterion("mainFunction =", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionNotEqualTo(String value) {
|
||||
addCriterion("mainFunction <>", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionGreaterThan(String value) {
|
||||
addCriterion("mainFunction >", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("mainFunction >=", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionLessThan(String value) {
|
||||
addCriterion("mainFunction <", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionLessThanOrEqualTo(String value) {
|
||||
addCriterion("mainFunction <=", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionLike(String value) {
|
||||
addCriterion("mainFunction like", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionNotLike(String value) {
|
||||
addCriterion("mainFunction not like", value, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionIn(List<String> values) {
|
||||
addCriterion("mainFunction in", values, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionNotIn(List<String> values) {
|
||||
addCriterion("mainFunction not in", values, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionBetween(String value1, String value2) {
|
||||
addCriterion("mainFunction between", value1, value2, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainfunctionNotBetween(String value1, String value2) {
|
||||
addCriterion("mainFunction not between", value1, value2, "mainfunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeIsNull() {
|
||||
addCriterion("subTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeIsNotNull() {
|
||||
addCriterion("subTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeEqualTo(Date value) {
|
||||
addCriterion("subTime =", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeNotEqualTo(Date value) {
|
||||
addCriterion("subTime <>", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeGreaterThan(Date value) {
|
||||
addCriterion("subTime >", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("subTime >=", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeLessThan(Date value) {
|
||||
addCriterion("subTime <", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("subTime <=", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeIn(List<Date> values) {
|
||||
addCriterion("subTime in", values, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeNotIn(List<Date> values) {
|
||||
addCriterion("subTime not in", values, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeBetween(Date value1, Date value2) {
|
||||
addCriterion("subTime between", value1, value2, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("subTime not between", value1, value2, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowIsNull() {
|
||||
addCriterion("show is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowIsNotNull() {
|
||||
addCriterion("show is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowEqualTo(Integer value) {
|
||||
addCriterion("show =", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowNotEqualTo(Integer value) {
|
||||
addCriterion("show <>", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowGreaterThan(Integer value) {
|
||||
addCriterion("show >", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("show >=", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowLessThan(Integer value) {
|
||||
addCriterion("show <", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("show <=", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowIn(List<Integer> values) {
|
||||
addCriterion("show in", values, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowNotIn(List<Integer> values) {
|
||||
addCriterion("show not in", values, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowBetween(Integer value1, Integer value2) {
|
||||
addCriterion("show between", value1, value2, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("show not between", value1, value2, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIsNull() {
|
||||
addCriterion("version is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIsNotNull() {
|
||||
addCriterion("version is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionEqualTo(Integer value) {
|
||||
addCriterion("version =", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotEqualTo(Integer value) {
|
||||
addCriterion("version <>", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionGreaterThan(Integer value) {
|
||||
addCriterion("version >", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("version >=", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionLessThan(Integer value) {
|
||||
addCriterion("version <", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("version <=", value, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionIn(List<Integer> values) {
|
||||
addCriterion("version in", values, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotIn(List<Integer> values) {
|
||||
addCriterion("version not in", values, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionBetween(Integer value1, Integer value2) {
|
||||
addCriterion("version between", value1, value2, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andVersionNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("version not between", value1, value2, "version");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table m_app_plugs
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jul 11 15:51:10 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
166
src/main/java/com/yutou/mybatis/MAppTools.java
Normal file
166
src/main/java/com/yutou/mybatis/MAppTools.java
Normal file
@ -0,0 +1,166 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class MAppTools {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_tools.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_tools.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_tools.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String image;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_tools.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String url;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_tools.main_function
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String mainFunction;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_tools.permission
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer permission;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_app_tools.show
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer show;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_tools.id
|
||||
* @return the value of m_app_tools.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_tools.id
|
||||
* @param id the value for m_app_tools.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_tools.name
|
||||
* @return the value of m_app_tools.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_tools.name
|
||||
* @param name the value for m_app_tools.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_tools.image
|
||||
* @return the value of m_app_tools.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_tools.image
|
||||
* @param image the value for m_app_tools.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_tools.url
|
||||
* @return the value of m_app_tools.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_tools.url
|
||||
* @param url the value for m_app_tools.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_tools.main_function
|
||||
* @return the value of m_app_tools.main_function
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMainFunction() {
|
||||
return mainFunction;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_tools.main_function
|
||||
* @param mainFunction the value for m_app_tools.main_function
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMainFunction(String mainFunction) {
|
||||
this.mainFunction = mainFunction;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_tools.permission
|
||||
* @return the value of m_app_tools.permission
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getPermission() {
|
||||
return permission;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_tools.permission
|
||||
* @param permission the value for m_app_tools.permission
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setPermission(Integer permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_app_tools.show
|
||||
* @return the value of m_app_tools.show
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getShow() {
|
||||
return show;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_app_tools.show
|
||||
* @param show the value for m_app_tools.show
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setShow(Integer show) {
|
||||
this.show = show;
|
||||
}
|
||||
}
|
721
src/main/java/com/yutou/mybatis/MAppToolsExample.java
Normal file
721
src/main/java/com/yutou/mybatis/MAppToolsExample.java
Normal file
@ -0,0 +1,721 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MAppToolsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public MAppToolsExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIsNull() {
|
||||
addCriterion("image is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIsNotNull() {
|
||||
addCriterion("image is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageEqualTo(String value) {
|
||||
addCriterion("image =", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotEqualTo(String value) {
|
||||
addCriterion("image <>", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageGreaterThan(String value) {
|
||||
addCriterion("image >", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("image >=", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLessThan(String value) {
|
||||
addCriterion("image <", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLessThanOrEqualTo(String value) {
|
||||
addCriterion("image <=", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLike(String value) {
|
||||
addCriterion("image like", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotLike(String value) {
|
||||
addCriterion("image not like", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIn(List<String> values) {
|
||||
addCriterion("image in", values, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotIn(List<String> values) {
|
||||
addCriterion("image not in", values, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageBetween(String value1, String value2) {
|
||||
addCriterion("image between", value1, value2, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotBetween(String value1, String value2) {
|
||||
addCriterion("image not between", value1, value2, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNull() {
|
||||
addCriterion("url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNotNull() {
|
||||
addCriterion("url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlEqualTo(String value) {
|
||||
addCriterion("url =", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotEqualTo(String value) {
|
||||
addCriterion("url <>", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThan(String value) {
|
||||
addCriterion("url >", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("url >=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThan(String value) {
|
||||
addCriterion("url <", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("url <=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLike(String value) {
|
||||
addCriterion("url like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotLike(String value) {
|
||||
addCriterion("url not like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIn(List<String> values) {
|
||||
addCriterion("url in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotIn(List<String> values) {
|
||||
addCriterion("url not in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlBetween(String value1, String value2) {
|
||||
addCriterion("url between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("url not between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionIsNull() {
|
||||
addCriterion("main_function is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionIsNotNull() {
|
||||
addCriterion("main_function is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionEqualTo(String value) {
|
||||
addCriterion("main_function =", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotEqualTo(String value) {
|
||||
addCriterion("main_function <>", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionGreaterThan(String value) {
|
||||
addCriterion("main_function >", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("main_function >=", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionLessThan(String value) {
|
||||
addCriterion("main_function <", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionLessThanOrEqualTo(String value) {
|
||||
addCriterion("main_function <=", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionLike(String value) {
|
||||
addCriterion("main_function like", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotLike(String value) {
|
||||
addCriterion("main_function not like", value, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionIn(List<String> values) {
|
||||
addCriterion("main_function in", values, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotIn(List<String> values) {
|
||||
addCriterion("main_function not in", values, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionBetween(String value1, String value2) {
|
||||
addCriterion("main_function between", value1, value2, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMainFunctionNotBetween(String value1, String value2) {
|
||||
addCriterion("main_function not between", value1, value2, "mainFunction");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIsNull() {
|
||||
addCriterion("permission is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIsNotNull() {
|
||||
addCriterion("permission is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionEqualTo(Integer value) {
|
||||
addCriterion("permission =", value, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionNotEqualTo(Integer value) {
|
||||
addCriterion("permission <>", value, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionGreaterThan(Integer value) {
|
||||
addCriterion("permission >", value, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("permission >=", value, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionLessThan(Integer value) {
|
||||
addCriterion("permission <", value, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("permission <=", value, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionIn(List<Integer> values) {
|
||||
addCriterion("permission in", values, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionNotIn(List<Integer> values) {
|
||||
addCriterion("permission not in", values, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionBetween(Integer value1, Integer value2) {
|
||||
addCriterion("permission between", value1, value2, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPermissionNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("permission not between", value1, value2, "permission");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowIsNull() {
|
||||
addCriterion("show is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowIsNotNull() {
|
||||
addCriterion("show is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowEqualTo(Integer value) {
|
||||
addCriterion("show =", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowNotEqualTo(Integer value) {
|
||||
addCriterion("show <>", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowGreaterThan(Integer value) {
|
||||
addCriterion("show >", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("show >=", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowLessThan(Integer value) {
|
||||
addCriterion("show <", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("show <=", value, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowIn(List<Integer> values) {
|
||||
addCriterion("show in", values, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowNotIn(List<Integer> values) {
|
||||
addCriterion("show not in", values, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowBetween(Integer value1, Integer value2) {
|
||||
addCriterion("show between", value1, value2, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShowNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("show not between", value1, value2, "show");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table m_app_tools
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Fri Sep 21 12:03:15 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
97
src/main/java/com/yutou/mybatis/MBanner.java
Normal file
97
src/main/java/com/yutou/mybatis/MBanner.java
Normal file
@ -0,0 +1,97 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class MBanner {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_banner.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_banner.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String url;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_banner.click
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String click;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_banner.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer isshow;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_banner.id
|
||||
* @return the value of m_banner.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_banner.id
|
||||
* @param id the value for m_banner.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_banner.url
|
||||
* @return the value of m_banner.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_banner.url
|
||||
* @param url the value for m_banner.url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_banner.click
|
||||
* @return the value of m_banner.click
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getClick() {
|
||||
return click;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_banner.click
|
||||
* @param click the value for m_banner.click
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setClick(String click) {
|
||||
this.click = click;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_banner.isshow
|
||||
* @return the value of m_banner.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getIsshow() {
|
||||
return isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_banner.isshow
|
||||
* @param isshow the value for m_banner.isshow
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setIsshow(Integer isshow) {
|
||||
this.isshow = isshow;
|
||||
}
|
||||
}
|
521
src/main/java/com/yutou/mybatis/MBannerExample.java
Normal file
521
src/main/java/com/yutou/mybatis/MBannerExample.java
Normal file
@ -0,0 +1,521 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MBannerExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public MBannerExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNull() {
|
||||
addCriterion("url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNotNull() {
|
||||
addCriterion("url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlEqualTo(String value) {
|
||||
addCriterion("url =", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotEqualTo(String value) {
|
||||
addCriterion("url <>", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThan(String value) {
|
||||
addCriterion("url >", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("url >=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThan(String value) {
|
||||
addCriterion("url <", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("url <=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLike(String value) {
|
||||
addCriterion("url like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotLike(String value) {
|
||||
addCriterion("url not like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIn(List<String> values) {
|
||||
addCriterion("url in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotIn(List<String> values) {
|
||||
addCriterion("url not in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlBetween(String value1, String value2) {
|
||||
addCriterion("url between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("url not between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickIsNull() {
|
||||
addCriterion("click is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickIsNotNull() {
|
||||
addCriterion("click is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickEqualTo(String value) {
|
||||
addCriterion("click =", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotEqualTo(String value) {
|
||||
addCriterion("click <>", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickGreaterThan(String value) {
|
||||
addCriterion("click >", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("click >=", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickLessThan(String value) {
|
||||
addCriterion("click <", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickLessThanOrEqualTo(String value) {
|
||||
addCriterion("click <=", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickLike(String value) {
|
||||
addCriterion("click like", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotLike(String value) {
|
||||
addCriterion("click not like", value, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickIn(List<String> values) {
|
||||
addCriterion("click in", values, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotIn(List<String> values) {
|
||||
addCriterion("click not in", values, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickBetween(String value1, String value2) {
|
||||
addCriterion("click between", value1, value2, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClickNotBetween(String value1, String value2) {
|
||||
addCriterion("click not between", value1, value2, "click");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNull() {
|
||||
addCriterion("isshow is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNotNull() {
|
||||
addCriterion("isshow is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowEqualTo(Integer value) {
|
||||
addCriterion("isshow =", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotEqualTo(Integer value) {
|
||||
addCriterion("isshow <>", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThan(Integer value) {
|
||||
addCriterion("isshow >", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow >=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThan(Integer value) {
|
||||
addCriterion("isshow <", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow <=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIn(List<Integer> values) {
|
||||
addCriterion("isshow in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotIn(List<Integer> values) {
|
||||
addCriterion("isshow not in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow not between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table m_banner
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Sun Jan 21 17:47:54 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
97
src/main/java/com/yutou/mybatis/MGamePackname.java
Normal file
97
src/main/java/com/yutou/mybatis/MGamePackname.java
Normal file
@ -0,0 +1,97 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class MGamePackname {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_game_packname.id
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_game_packname.packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private String packname;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_game_packname.zhname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private String zhname;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column m_game_packname.isshow
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
private Integer isshow;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_game_packname.id
|
||||
* @return the value of m_game_packname.id
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_game_packname.id
|
||||
* @param id the value for m_game_packname.id
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_game_packname.packname
|
||||
* @return the value of m_game_packname.packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getPackname() {
|
||||
return packname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_game_packname.packname
|
||||
* @param packname the value for m_game_packname.packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setPackname(String packname) {
|
||||
this.packname = packname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_game_packname.zhname
|
||||
* @return the value of m_game_packname.zhname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getZhname() {
|
||||
return zhname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_game_packname.zhname
|
||||
* @param zhname the value for m_game_packname.zhname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setZhname(String zhname) {
|
||||
this.zhname = zhname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column m_game_packname.isshow
|
||||
* @return the value of m_game_packname.isshow
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Integer getIsshow() {
|
||||
return isshow;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column m_game_packname.isshow
|
||||
* @param isshow the value for m_game_packname.isshow
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setIsshow(Integer isshow) {
|
||||
this.isshow = isshow;
|
||||
}
|
||||
}
|
521
src/main/java/com/yutou/mybatis/MGamePacknameExample.java
Normal file
521
src/main/java/com/yutou/mybatis/MGamePacknameExample.java
Normal file
@ -0,0 +1,521 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MGamePacknameExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public MGamePacknameExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameIsNull() {
|
||||
addCriterion("packname is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameIsNotNull() {
|
||||
addCriterion("packname is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameEqualTo(String value) {
|
||||
addCriterion("packname =", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameNotEqualTo(String value) {
|
||||
addCriterion("packname <>", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameGreaterThan(String value) {
|
||||
addCriterion("packname >", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("packname >=", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameLessThan(String value) {
|
||||
addCriterion("packname <", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameLessThanOrEqualTo(String value) {
|
||||
addCriterion("packname <=", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameLike(String value) {
|
||||
addCriterion("packname like", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameNotLike(String value) {
|
||||
addCriterion("packname not like", value, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameIn(List<String> values) {
|
||||
addCriterion("packname in", values, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameNotIn(List<String> values) {
|
||||
addCriterion("packname not in", values, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameBetween(String value1, String value2) {
|
||||
addCriterion("packname between", value1, value2, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPacknameNotBetween(String value1, String value2) {
|
||||
addCriterion("packname not between", value1, value2, "packname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameIsNull() {
|
||||
addCriterion("zhname is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameIsNotNull() {
|
||||
addCriterion("zhname is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameEqualTo(String value) {
|
||||
addCriterion("zhname =", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameNotEqualTo(String value) {
|
||||
addCriterion("zhname <>", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameGreaterThan(String value) {
|
||||
addCriterion("zhname >", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("zhname >=", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameLessThan(String value) {
|
||||
addCriterion("zhname <", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameLessThanOrEqualTo(String value) {
|
||||
addCriterion("zhname <=", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameLike(String value) {
|
||||
addCriterion("zhname like", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameNotLike(String value) {
|
||||
addCriterion("zhname not like", value, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameIn(List<String> values) {
|
||||
addCriterion("zhname in", values, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameNotIn(List<String> values) {
|
||||
addCriterion("zhname not in", values, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameBetween(String value1, String value2) {
|
||||
addCriterion("zhname between", value1, value2, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andZhnameNotBetween(String value1, String value2) {
|
||||
addCriterion("zhname not between", value1, value2, "zhname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNull() {
|
||||
addCriterion("isshow is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIsNotNull() {
|
||||
addCriterion("isshow is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowEqualTo(Integer value) {
|
||||
addCriterion("isshow =", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotEqualTo(Integer value) {
|
||||
addCriterion("isshow <>", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThan(Integer value) {
|
||||
addCriterion("isshow >", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow >=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThan(Integer value) {
|
||||
addCriterion("isshow <", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("isshow <=", value, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowIn(List<Integer> values) {
|
||||
addCriterion("isshow in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotIn(List<Integer> values) {
|
||||
addCriterion("isshow not in", values, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsshowNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("isshow not between", value1, value2, "isshow");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table m_game_packname
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Fri Feb 02 17:35:04 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
166
src/main/java/com/yutou/mybatis/SConfig.java
Normal file
166
src/main/java/com/yutou/mybatis/SConfig.java
Normal file
@ -0,0 +1,166 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class SConfig {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column s_config.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column s_config.apk_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String apkVersion;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column s_config.msg_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String msgVersion;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column s_config.apk_url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String apkUrl;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column s_config.msg_url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String msgUrl;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column s_config.message
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String message;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column s_config.downloadHome
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String downloadhome;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column s_config.id
|
||||
* @return the value of s_config.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column s_config.id
|
||||
* @param id the value for s_config.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column s_config.apk_version
|
||||
* @return the value of s_config.apk_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getApkVersion() {
|
||||
return apkVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column s_config.apk_version
|
||||
* @param apkVersion the value for s_config.apk_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setApkVersion(String apkVersion) {
|
||||
this.apkVersion = apkVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column s_config.msg_version
|
||||
* @return the value of s_config.msg_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMsgVersion() {
|
||||
return msgVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column s_config.msg_version
|
||||
* @param msgVersion the value for s_config.msg_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMsgVersion(String msgVersion) {
|
||||
this.msgVersion = msgVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column s_config.apk_url
|
||||
* @return the value of s_config.apk_url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getApkUrl() {
|
||||
return apkUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column s_config.apk_url
|
||||
* @param apkUrl the value for s_config.apk_url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setApkUrl(String apkUrl) {
|
||||
this.apkUrl = apkUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column s_config.msg_url
|
||||
* @return the value of s_config.msg_url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMsgUrl() {
|
||||
return msgUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column s_config.msg_url
|
||||
* @param msgUrl the value for s_config.msg_url
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMsgUrl(String msgUrl) {
|
||||
this.msgUrl = msgUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column s_config.message
|
||||
* @return the value of s_config.message
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column s_config.message
|
||||
* @param message the value for s_config.message
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column s_config.downloadHome
|
||||
* @return the value of s_config.downloadHome
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getDownloadhome() {
|
||||
return downloadhome;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column s_config.downloadHome
|
||||
* @param downloadhome the value for s_config.downloadHome
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDownloadhome(String downloadhome) {
|
||||
this.downloadhome = downloadhome;
|
||||
}
|
||||
}
|
741
src/main/java/com/yutou/mybatis/SConfigExample.java
Normal file
741
src/main/java/com/yutou/mybatis/SConfigExample.java
Normal file
@ -0,0 +1,741 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SConfigExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public SConfigExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionIsNull() {
|
||||
addCriterion("apk_version is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionIsNotNull() {
|
||||
addCriterion("apk_version is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionEqualTo(String value) {
|
||||
addCriterion("apk_version =", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionNotEqualTo(String value) {
|
||||
addCriterion("apk_version <>", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionGreaterThan(String value) {
|
||||
addCriterion("apk_version >", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("apk_version >=", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionLessThan(String value) {
|
||||
addCriterion("apk_version <", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionLessThanOrEqualTo(String value) {
|
||||
addCriterion("apk_version <=", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionLike(String value) {
|
||||
addCriterion("apk_version like", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionNotLike(String value) {
|
||||
addCriterion("apk_version not like", value, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionIn(List<String> values) {
|
||||
addCriterion("apk_version in", values, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionNotIn(List<String> values) {
|
||||
addCriterion("apk_version not in", values, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionBetween(String value1, String value2) {
|
||||
addCriterion("apk_version between", value1, value2, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkVersionNotBetween(String value1, String value2) {
|
||||
addCriterion("apk_version not between", value1, value2, "apkVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionIsNull() {
|
||||
addCriterion("msg_version is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionIsNotNull() {
|
||||
addCriterion("msg_version is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionEqualTo(String value) {
|
||||
addCriterion("msg_version =", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionNotEqualTo(String value) {
|
||||
addCriterion("msg_version <>", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionGreaterThan(String value) {
|
||||
addCriterion("msg_version >", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("msg_version >=", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionLessThan(String value) {
|
||||
addCriterion("msg_version <", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionLessThanOrEqualTo(String value) {
|
||||
addCriterion("msg_version <=", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionLike(String value) {
|
||||
addCriterion("msg_version like", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionNotLike(String value) {
|
||||
addCriterion("msg_version not like", value, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionIn(List<String> values) {
|
||||
addCriterion("msg_version in", values, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionNotIn(List<String> values) {
|
||||
addCriterion("msg_version not in", values, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionBetween(String value1, String value2) {
|
||||
addCriterion("msg_version between", value1, value2, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgVersionNotBetween(String value1, String value2) {
|
||||
addCriterion("msg_version not between", value1, value2, "msgVersion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlIsNull() {
|
||||
addCriterion("apk_url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlIsNotNull() {
|
||||
addCriterion("apk_url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlEqualTo(String value) {
|
||||
addCriterion("apk_url =", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlNotEqualTo(String value) {
|
||||
addCriterion("apk_url <>", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlGreaterThan(String value) {
|
||||
addCriterion("apk_url >", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("apk_url >=", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlLessThan(String value) {
|
||||
addCriterion("apk_url <", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("apk_url <=", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlLike(String value) {
|
||||
addCriterion("apk_url like", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlNotLike(String value) {
|
||||
addCriterion("apk_url not like", value, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlIn(List<String> values) {
|
||||
addCriterion("apk_url in", values, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlNotIn(List<String> values) {
|
||||
addCriterion("apk_url not in", values, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlBetween(String value1, String value2) {
|
||||
addCriterion("apk_url between", value1, value2, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andApkUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("apk_url not between", value1, value2, "apkUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlIsNull() {
|
||||
addCriterion("msg_url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlIsNotNull() {
|
||||
addCriterion("msg_url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlEqualTo(String value) {
|
||||
addCriterion("msg_url =", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlNotEqualTo(String value) {
|
||||
addCriterion("msg_url <>", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlGreaterThan(String value) {
|
||||
addCriterion("msg_url >", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("msg_url >=", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlLessThan(String value) {
|
||||
addCriterion("msg_url <", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("msg_url <=", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlLike(String value) {
|
||||
addCriterion("msg_url like", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlNotLike(String value) {
|
||||
addCriterion("msg_url not like", value, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlIn(List<String> values) {
|
||||
addCriterion("msg_url in", values, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlNotIn(List<String> values) {
|
||||
addCriterion("msg_url not in", values, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlBetween(String value1, String value2) {
|
||||
addCriterion("msg_url between", value1, value2, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMsgUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("msg_url not between", value1, value2, "msgUrl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageIsNull() {
|
||||
addCriterion("message is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageIsNotNull() {
|
||||
addCriterion("message is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageEqualTo(String value) {
|
||||
addCriterion("message =", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotEqualTo(String value) {
|
||||
addCriterion("message <>", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageGreaterThan(String value) {
|
||||
addCriterion("message >", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("message >=", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageLessThan(String value) {
|
||||
addCriterion("message <", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageLessThanOrEqualTo(String value) {
|
||||
addCriterion("message <=", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageLike(String value) {
|
||||
addCriterion("message like", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotLike(String value) {
|
||||
addCriterion("message not like", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageIn(List<String> values) {
|
||||
addCriterion("message in", values, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotIn(List<String> values) {
|
||||
addCriterion("message not in", values, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageBetween(String value1, String value2) {
|
||||
addCriterion("message between", value1, value2, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotBetween(String value1, String value2) {
|
||||
addCriterion("message not between", value1, value2, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeIsNull() {
|
||||
addCriterion("downloadHome is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeIsNotNull() {
|
||||
addCriterion("downloadHome is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeEqualTo(String value) {
|
||||
addCriterion("downloadHome =", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeNotEqualTo(String value) {
|
||||
addCriterion("downloadHome <>", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeGreaterThan(String value) {
|
||||
addCriterion("downloadHome >", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("downloadHome >=", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeLessThan(String value) {
|
||||
addCriterion("downloadHome <", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeLessThanOrEqualTo(String value) {
|
||||
addCriterion("downloadHome <=", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeLike(String value) {
|
||||
addCriterion("downloadHome like", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeNotLike(String value) {
|
||||
addCriterion("downloadHome not like", value, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeIn(List<String> values) {
|
||||
addCriterion("downloadHome in", values, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeNotIn(List<String> values) {
|
||||
addCriterion("downloadHome not in", values, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeBetween(String value1, String value2) {
|
||||
addCriterion("downloadHome between", value1, value2, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDownloadhomeNotBetween(String value1, String value2) {
|
||||
addCriterion("downloadHome not between", value1, value2, "downloadhome");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table s_config
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
122
src/main/java/com/yutou/mybatis/TFeedback.java
Normal file
122
src/main/java/com/yutou/mybatis/TFeedback.java
Normal file
@ -0,0 +1,122 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class TFeedback {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_feedback.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_feedback.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_feedback.context
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String context;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_feedback.subtime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Date subtime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_feedback.sysinfo
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String sysinfo;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_feedback.id
|
||||
* @return the value of t_feedback.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_feedback.id
|
||||
* @param id the value for t_feedback.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_feedback.uid
|
||||
* @return the value of t_feedback.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_feedback.uid
|
||||
* @param uid the value for t_feedback.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_feedback.context
|
||||
* @return the value of t_feedback.context
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getContext() {
|
||||
return context;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_feedback.context
|
||||
* @param context the value for t_feedback.context
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setContext(String context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_feedback.subtime
|
||||
* @return the value of t_feedback.subtime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Date getSubtime() {
|
||||
return subtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_feedback.subtime
|
||||
* @param subtime the value for t_feedback.subtime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setSubtime(Date subtime) {
|
||||
this.subtime = subtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_feedback.sysinfo
|
||||
* @return the value of t_feedback.sysinfo
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getSysinfo() {
|
||||
return sysinfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_feedback.sysinfo
|
||||
* @param sysinfo the value for t_feedback.sysinfo
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setSysinfo(String sysinfo) {
|
||||
this.sysinfo = sysinfo;
|
||||
}
|
||||
}
|
582
src/main/java/com/yutou/mybatis/TFeedbackExample.java
Normal file
582
src/main/java/com/yutou/mybatis/TFeedbackExample.java
Normal file
@ -0,0 +1,582 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class TFeedbackExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TFeedbackExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextIsNull() {
|
||||
addCriterion("context is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextIsNotNull() {
|
||||
addCriterion("context is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextEqualTo(String value) {
|
||||
addCriterion("context =", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextNotEqualTo(String value) {
|
||||
addCriterion("context <>", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextGreaterThan(String value) {
|
||||
addCriterion("context >", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("context >=", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextLessThan(String value) {
|
||||
addCriterion("context <", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextLessThanOrEqualTo(String value) {
|
||||
addCriterion("context <=", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextLike(String value) {
|
||||
addCriterion("context like", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextNotLike(String value) {
|
||||
addCriterion("context not like", value, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextIn(List<String> values) {
|
||||
addCriterion("context in", values, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextNotIn(List<String> values) {
|
||||
addCriterion("context not in", values, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextBetween(String value1, String value2) {
|
||||
addCriterion("context between", value1, value2, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContextNotBetween(String value1, String value2) {
|
||||
addCriterion("context not between", value1, value2, "context");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeIsNull() {
|
||||
addCriterion("subtime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeIsNotNull() {
|
||||
addCriterion("subtime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeEqualTo(Date value) {
|
||||
addCriterion("subtime =", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeNotEqualTo(Date value) {
|
||||
addCriterion("subtime <>", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeGreaterThan(Date value) {
|
||||
addCriterion("subtime >", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("subtime >=", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeLessThan(Date value) {
|
||||
addCriterion("subtime <", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("subtime <=", value, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeIn(List<Date> values) {
|
||||
addCriterion("subtime in", values, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeNotIn(List<Date> values) {
|
||||
addCriterion("subtime not in", values, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeBetween(Date value1, Date value2) {
|
||||
addCriterion("subtime between", value1, value2, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("subtime not between", value1, value2, "subtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoIsNull() {
|
||||
addCriterion("sysinfo is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoIsNotNull() {
|
||||
addCriterion("sysinfo is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoEqualTo(String value) {
|
||||
addCriterion("sysinfo =", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoNotEqualTo(String value) {
|
||||
addCriterion("sysinfo <>", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoGreaterThan(String value) {
|
||||
addCriterion("sysinfo >", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("sysinfo >=", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoLessThan(String value) {
|
||||
addCriterion("sysinfo <", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoLessThanOrEqualTo(String value) {
|
||||
addCriterion("sysinfo <=", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoLike(String value) {
|
||||
addCriterion("sysinfo like", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoNotLike(String value) {
|
||||
addCriterion("sysinfo not like", value, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoIn(List<String> values) {
|
||||
addCriterion("sysinfo in", values, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoNotIn(List<String> values) {
|
||||
addCriterion("sysinfo not in", values, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoBetween(String value1, String value2) {
|
||||
addCriterion("sysinfo between", value1, value2, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSysinfoNotBetween(String value1, String value2) {
|
||||
addCriterion("sysinfo not between", value1, value2, "sysinfo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_feedback
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jun 27 17:33:48 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
51
src/main/java/com/yutou/mybatis/TGameVersion.java
Normal file
51
src/main/java/com/yutou/mybatis/TGameVersion.java
Normal file
@ -0,0 +1,51 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TGameVersion {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_game_version.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_game_version.gameVersion
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String gameversion;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_game_version.id
|
||||
* @return the value of t_game_version.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_game_version.id
|
||||
* @param id the value for t_game_version.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_game_version.gameVersion
|
||||
* @return the value of t_game_version.gameVersion
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getGameversion() {
|
||||
return gameversion;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_game_version.gameVersion
|
||||
* @param gameversion the value for t_game_version.gameVersion
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setGameversion(String gameversion) {
|
||||
this.gameversion = gameversion;
|
||||
}
|
||||
}
|
391
src/main/java/com/yutou/mybatis/TGameVersionExample.java
Normal file
391
src/main/java/com/yutou/mybatis/TGameVersionExample.java
Normal file
@ -0,0 +1,391 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TGameVersionExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TGameVersionExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionIsNull() {
|
||||
addCriterion("gameVersion is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionIsNotNull() {
|
||||
addCriterion("gameVersion is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionEqualTo(String value) {
|
||||
addCriterion("gameVersion =", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionNotEqualTo(String value) {
|
||||
addCriterion("gameVersion <>", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionGreaterThan(String value) {
|
||||
addCriterion("gameVersion >", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("gameVersion >=", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionLessThan(String value) {
|
||||
addCriterion("gameVersion <", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionLessThanOrEqualTo(String value) {
|
||||
addCriterion("gameVersion <=", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionLike(String value) {
|
||||
addCriterion("gameVersion like", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionNotLike(String value) {
|
||||
addCriterion("gameVersion not like", value, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionIn(List<String> values) {
|
||||
addCriterion("gameVersion in", values, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionNotIn(List<String> values) {
|
||||
addCriterion("gameVersion not in", values, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionBetween(String value1, String value2) {
|
||||
addCriterion("gameVersion between", value1, value2, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGameversionNotBetween(String value1, String value2) {
|
||||
addCriterion("gameVersion not between", value1, value2, "gameversion");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_game_version
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
166
src/main/java/com/yutou/mybatis/TLines.java
Normal file
166
src/main/java/com/yutou/mybatis/TLines.java
Normal file
@ -0,0 +1,166 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TLines {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_lines.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_lines.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_lines.title
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String title;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_lines.info
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String info;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_lines.json
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String json;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_lines.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long createtime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_lines.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer power;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_lines.id
|
||||
* @return the value of t_lines.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_lines.id
|
||||
* @param id the value for t_lines.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_lines.uid
|
||||
* @return the value of t_lines.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_lines.uid
|
||||
* @param uid the value for t_lines.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_lines.title
|
||||
* @return the value of t_lines.title
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_lines.title
|
||||
* @param title the value for t_lines.title
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_lines.info
|
||||
* @return the value of t_lines.info
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getInfo() {
|
||||
return info;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_lines.info
|
||||
* @param info the value for t_lines.info
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setInfo(String info) {
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_lines.json
|
||||
* @return the value of t_lines.json
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getJson() {
|
||||
return json;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_lines.json
|
||||
* @param json the value for t_lines.json
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setJson(String json) {
|
||||
this.json = json;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_lines.createTime
|
||||
* @return the value of t_lines.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_lines.createTime
|
||||
* @param createtime the value for t_lines.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setCreatetime(Long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_lines.power
|
||||
* @return the value of t_lines.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getPower() {
|
||||
return power;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_lines.power
|
||||
* @param power the value for t_lines.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setPower(Integer power) {
|
||||
this.power = power;
|
||||
}
|
||||
}
|
711
src/main/java/com/yutou/mybatis/TLinesExample.java
Normal file
711
src/main/java/com/yutou/mybatis/TLinesExample.java
Normal file
@ -0,0 +1,711 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TLinesExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TLinesExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIsNull() {
|
||||
addCriterion("title is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIsNotNull() {
|
||||
addCriterion("title is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleEqualTo(String value) {
|
||||
addCriterion("title =", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotEqualTo(String value) {
|
||||
addCriterion("title <>", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleGreaterThan(String value) {
|
||||
addCriterion("title >", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("title >=", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLessThan(String value) {
|
||||
addCriterion("title <", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLessThanOrEqualTo(String value) {
|
||||
addCriterion("title <=", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleLike(String value) {
|
||||
addCriterion("title like", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotLike(String value) {
|
||||
addCriterion("title not like", value, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleIn(List<String> values) {
|
||||
addCriterion("title in", values, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotIn(List<String> values) {
|
||||
addCriterion("title not in", values, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleBetween(String value1, String value2) {
|
||||
addCriterion("title between", value1, value2, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTitleNotBetween(String value1, String value2) {
|
||||
addCriterion("title not between", value1, value2, "title");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoIsNull() {
|
||||
addCriterion("info is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoIsNotNull() {
|
||||
addCriterion("info is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoEqualTo(String value) {
|
||||
addCriterion("info =", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoNotEqualTo(String value) {
|
||||
addCriterion("info <>", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoGreaterThan(String value) {
|
||||
addCriterion("info >", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("info >=", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoLessThan(String value) {
|
||||
addCriterion("info <", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoLessThanOrEqualTo(String value) {
|
||||
addCriterion("info <=", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoLike(String value) {
|
||||
addCriterion("info like", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoNotLike(String value) {
|
||||
addCriterion("info not like", value, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoIn(List<String> values) {
|
||||
addCriterion("info in", values, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoNotIn(List<String> values) {
|
||||
addCriterion("info not in", values, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoBetween(String value1, String value2) {
|
||||
addCriterion("info between", value1, value2, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInfoNotBetween(String value1, String value2) {
|
||||
addCriterion("info not between", value1, value2, "info");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonIsNull() {
|
||||
addCriterion("json is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonIsNotNull() {
|
||||
addCriterion("json is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonEqualTo(String value) {
|
||||
addCriterion("json =", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonNotEqualTo(String value) {
|
||||
addCriterion("json <>", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonGreaterThan(String value) {
|
||||
addCriterion("json >", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("json >=", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonLessThan(String value) {
|
||||
addCriterion("json <", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonLessThanOrEqualTo(String value) {
|
||||
addCriterion("json <=", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonLike(String value) {
|
||||
addCriterion("json like", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonNotLike(String value) {
|
||||
addCriterion("json not like", value, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonIn(List<String> values) {
|
||||
addCriterion("json in", values, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonNotIn(List<String> values) {
|
||||
addCriterion("json not in", values, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonBetween(String value1, String value2) {
|
||||
addCriterion("json between", value1, value2, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andJsonNotBetween(String value1, String value2) {
|
||||
addCriterion("json not between", value1, value2, "json");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNull() {
|
||||
addCriterion("createTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNotNull() {
|
||||
addCriterion("createTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeEqualTo(Long value) {
|
||||
addCriterion("createTime =", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotEqualTo(Long value) {
|
||||
addCriterion("createTime <>", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThan(Long value) {
|
||||
addCriterion("createTime >", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime >=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThan(Long value) {
|
||||
addCriterion("createTime <", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime <=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIn(List<Long> values) {
|
||||
addCriterion("createTime in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotIn(List<Long> values) {
|
||||
addCriterion("createTime not in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime not between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIsNull() {
|
||||
addCriterion("power is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIsNotNull() {
|
||||
addCriterion("power is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerEqualTo(Integer value) {
|
||||
addCriterion("power =", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotEqualTo(Integer value) {
|
||||
addCriterion("power <>", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerGreaterThan(Integer value) {
|
||||
addCriterion("power >", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("power >=", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerLessThan(Integer value) {
|
||||
addCriterion("power <", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("power <=", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIn(List<Integer> values) {
|
||||
addCriterion("power in", values, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotIn(List<Integer> values) {
|
||||
addCriterion("power not in", values, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerBetween(Integer value1, Integer value2) {
|
||||
addCriterion("power between", value1, value2, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("power not between", value1, value2, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_lines
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
419
src/main/java/com/yutou/mybatis/TMod.java
Normal file
419
src/main/java/com/yutou/mybatis/TMod.java
Normal file
@ -0,0 +1,419 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TMod {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.modName
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String modname;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.title
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String title;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.modType
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String modtype;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.jianrType
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String jianrtype;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.jianr_id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer jianrId;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.info
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String info;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.byId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer byid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.byUser
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String byuser;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.overview
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String overview;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String image;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.icon
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String icon;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long createtime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long updatetime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.modVersion
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer modversion;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.gameVerId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer gameverid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.city
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer city;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.reMod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer remod;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.id
|
||||
* @return the value of t_mod.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.id
|
||||
* @param id the value for t_mod.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.modName
|
||||
* @return the value of t_mod.modName
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getModname() {
|
||||
return modname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.modName
|
||||
* @param modname the value for t_mod.modName
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setModname(String modname) {
|
||||
this.modname = modname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.title
|
||||
* @return the value of t_mod.title
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.title
|
||||
* @param title the value for t_mod.title
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.modType
|
||||
* @return the value of t_mod.modType
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getModtype() {
|
||||
return modtype;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.modType
|
||||
* @param modtype the value for t_mod.modType
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setModtype(String modtype) {
|
||||
this.modtype = modtype;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.jianrType
|
||||
* @return the value of t_mod.jianrType
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getJianrtype() {
|
||||
return jianrtype;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.jianrType
|
||||
* @param jianrtype the value for t_mod.jianrType
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setJianrtype(String jianrtype) {
|
||||
this.jianrtype = jianrtype;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.jianr_id
|
||||
* @return the value of t_mod.jianr_id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getJianrId() {
|
||||
return jianrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.jianr_id
|
||||
* @param jianrId the value for t_mod.jianr_id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setJianrId(Integer jianrId) {
|
||||
this.jianrId = jianrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.info
|
||||
* @return the value of t_mod.info
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getInfo() {
|
||||
return info;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.info
|
||||
* @param info the value for t_mod.info
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setInfo(String info) {
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.byId
|
||||
* @return the value of t_mod.byId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getByid() {
|
||||
return byid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.byId
|
||||
* @param byid the value for t_mod.byId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setByid(Integer byid) {
|
||||
this.byid = byid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.byUser
|
||||
* @return the value of t_mod.byUser
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getByuser() {
|
||||
return byuser;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.byUser
|
||||
* @param byuser the value for t_mod.byUser
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setByuser(String byuser) {
|
||||
this.byuser = byuser;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.overview
|
||||
* @return the value of t_mod.overview
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOverview() {
|
||||
return overview;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.overview
|
||||
* @param overview the value for t_mod.overview
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOverview(String overview) {
|
||||
this.overview = overview;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.image
|
||||
* @return the value of t_mod.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.image
|
||||
* @param image the value for t_mod.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.icon
|
||||
* @return the value of t_mod.icon
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.icon
|
||||
* @param icon the value for t_mod.icon
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.createTime
|
||||
* @return the value of t_mod.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.createTime
|
||||
* @param createtime the value for t_mod.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setCreatetime(Long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.updateTime
|
||||
* @return the value of t_mod.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getUpdatetime() {
|
||||
return updatetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.updateTime
|
||||
* @param updatetime the value for t_mod.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUpdatetime(Long updatetime) {
|
||||
this.updatetime = updatetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.modVersion
|
||||
* @return the value of t_mod.modVersion
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getModversion() {
|
||||
return modversion;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.modVersion
|
||||
* @param modversion the value for t_mod.modVersion
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setModversion(Integer modversion) {
|
||||
this.modversion = modversion;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.gameVerId
|
||||
* @return the value of t_mod.gameVerId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getGameverid() {
|
||||
return gameverid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.gameVerId
|
||||
* @param gameverid the value for t_mod.gameVerId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setGameverid(Integer gameverid) {
|
||||
this.gameverid = gameverid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.city
|
||||
* @return the value of t_mod.city
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.city
|
||||
* @param city the value for t_mod.city
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setCity(Integer city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.reMod
|
||||
* @return the value of t_mod.reMod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getRemod() {
|
||||
return remod;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.reMod
|
||||
* @param remod the value for t_mod.reMod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setRemod(Integer remod) {
|
||||
this.remod = remod;
|
||||
}
|
||||
}
|
1431
src/main/java/com/yutou/mybatis/TModExample.java
Normal file
1431
src/main/java/com/yutou/mybatis/TModExample.java
Normal file
File diff suppressed because it is too large
Load Diff
97
src/main/java/com/yutou/mybatis/TModcomment.java
Normal file
97
src/main/java/com/yutou/mybatis/TModcomment.java
Normal file
@ -0,0 +1,97 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TModcomment {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modcomment.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modcomment.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer mid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modcomment.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modcomment.message
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String message;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modcomment.id
|
||||
* @return the value of t_modcomment.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modcomment.id
|
||||
* @param id the value for t_modcomment.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modcomment.mid
|
||||
* @return the value of t_modcomment.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getMid() {
|
||||
return mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modcomment.mid
|
||||
* @param mid the value for t_modcomment.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMid(Integer mid) {
|
||||
this.mid = mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modcomment.uid
|
||||
* @return the value of t_modcomment.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modcomment.uid
|
||||
* @param uid the value for t_modcomment.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modcomment.message
|
||||
* @return the value of t_modcomment.message
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modcomment.message
|
||||
* @param message the value for t_modcomment.message
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
511
src/main/java/com/yutou/mybatis/TModcommentExample.java
Normal file
511
src/main/java/com/yutou/mybatis/TModcommentExample.java
Normal file
@ -0,0 +1,511 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModcommentExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModcommentExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNull() {
|
||||
addCriterion("mid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNotNull() {
|
||||
addCriterion("mid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidEqualTo(Integer value) {
|
||||
addCriterion("mid =", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotEqualTo(Integer value) {
|
||||
addCriterion("mid <>", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThan(Integer value) {
|
||||
addCriterion("mid >", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid >=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThan(Integer value) {
|
||||
addCriterion("mid <", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid <=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIn(List<Integer> values) {
|
||||
addCriterion("mid in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotIn(List<Integer> values) {
|
||||
addCriterion("mid not in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid not between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageIsNull() {
|
||||
addCriterion("message is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageIsNotNull() {
|
||||
addCriterion("message is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageEqualTo(String value) {
|
||||
addCriterion("message =", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotEqualTo(String value) {
|
||||
addCriterion("message <>", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageGreaterThan(String value) {
|
||||
addCriterion("message >", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("message >=", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageLessThan(String value) {
|
||||
addCriterion("message <", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageLessThanOrEqualTo(String value) {
|
||||
addCriterion("message <=", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageLike(String value) {
|
||||
addCriterion("message like", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotLike(String value) {
|
||||
addCriterion("message not like", value, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageIn(List<String> values) {
|
||||
addCriterion("message in", values, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotIn(List<String> values) {
|
||||
addCriterion("message not in", values, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageBetween(String value1, String value2) {
|
||||
addCriterion("message between", value1, value2, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMessageNotBetween(String value1, String value2) {
|
||||
addCriterion("message not between", value1, value2, "message");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_modcomment
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
74
src/main/java/com/yutou/mybatis/TModdownload.java
Normal file
74
src/main/java/com/yutou/mybatis/TModdownload.java
Normal file
@ -0,0 +1,74 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TModdownload {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_moddownload.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_moddownload.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer mid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_moddownload.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_moddownload.id
|
||||
* @return the value of t_moddownload.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_moddownload.id
|
||||
* @param id the value for t_moddownload.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_moddownload.mid
|
||||
* @return the value of t_moddownload.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getMid() {
|
||||
return mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_moddownload.mid
|
||||
* @param mid the value for t_moddownload.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMid(Integer mid) {
|
||||
this.mid = mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_moddownload.uid
|
||||
* @return the value of t_moddownload.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_moddownload.uid
|
||||
* @param uid the value for t_moddownload.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
}
|
441
src/main/java/com/yutou/mybatis/TModdownloadExample.java
Normal file
441
src/main/java/com/yutou/mybatis/TModdownloadExample.java
Normal file
@ -0,0 +1,441 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModdownloadExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModdownloadExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNull() {
|
||||
addCriterion("mid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNotNull() {
|
||||
addCriterion("mid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidEqualTo(Integer value) {
|
||||
addCriterion("mid =", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotEqualTo(Integer value) {
|
||||
addCriterion("mid <>", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThan(Integer value) {
|
||||
addCriterion("mid >", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid >=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThan(Integer value) {
|
||||
addCriterion("mid <", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid <=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIn(List<Integer> values) {
|
||||
addCriterion("mid in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotIn(List<Integer> values) {
|
||||
addCriterion("mid not in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid not between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_moddownload
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
167
src/main/java/com/yutou/mybatis/TModfile.java
Normal file
167
src/main/java/com/yutou/mybatis/TModfile.java
Normal file
@ -0,0 +1,167 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
|
||||
public class TModfile {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer mid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile.fileName
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String filename;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile.serviceUrl
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String serviceurl;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile.installPathId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String installpathid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long createtime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long updatetime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile.id
|
||||
* @return the value of t_modfile.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile.id
|
||||
* @param id the value for t_modfile.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile.mid
|
||||
* @return the value of t_modfile.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getMid() {
|
||||
return mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile.mid
|
||||
* @param mid the value for t_modfile.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMid(Integer mid) {
|
||||
this.mid = mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile.fileName
|
||||
* @return the value of t_modfile.fileName
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile.fileName
|
||||
* @param filename the value for t_modfile.fileName
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile.serviceUrl
|
||||
* @return the value of t_modfile.serviceUrl
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getServiceurl() {
|
||||
return serviceurl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile.serviceUrl
|
||||
* @param serviceurl the value for t_modfile.serviceUrl
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setServiceurl(String serviceurl) {
|
||||
this.serviceurl = serviceurl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile.installPathId
|
||||
* @return the value of t_modfile.installPathId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getInstallpathid() {
|
||||
return installpathid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile.installPathId
|
||||
* @param installpathid the value for t_modfile.installPathId
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setInstallpathid(String installpathid) {
|
||||
this.installpathid = installpathid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile.createTime
|
||||
* @return the value of t_modfile.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile.createTime
|
||||
* @param createtime the value for t_modfile.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setCreatetime(Long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile.updateTime
|
||||
* @return the value of t_modfile.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getUpdatetime() {
|
||||
return updatetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile.updateTime
|
||||
* @param updatetime the value for t_modfile.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUpdatetime(Long updatetime) {
|
||||
this.updatetime = updatetime;
|
||||
}
|
||||
}
|
711
src/main/java/com/yutou/mybatis/TModfileExample.java
Normal file
711
src/main/java/com/yutou/mybatis/TModfileExample.java
Normal file
@ -0,0 +1,711 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModfileExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModfileExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNull() {
|
||||
addCriterion("mid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNotNull() {
|
||||
addCriterion("mid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidEqualTo(Integer value) {
|
||||
addCriterion("mid =", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotEqualTo(Integer value) {
|
||||
addCriterion("mid <>", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThan(Integer value) {
|
||||
addCriterion("mid >", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid >=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThan(Integer value) {
|
||||
addCriterion("mid <", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid <=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIn(List<Integer> values) {
|
||||
addCriterion("mid in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotIn(List<Integer> values) {
|
||||
addCriterion("mid not in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid not between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameIsNull() {
|
||||
addCriterion("fileName is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameIsNotNull() {
|
||||
addCriterion("fileName is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameEqualTo(String value) {
|
||||
addCriterion("fileName =", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotEqualTo(String value) {
|
||||
addCriterion("fileName <>", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameGreaterThan(String value) {
|
||||
addCriterion("fileName >", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("fileName >=", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameLessThan(String value) {
|
||||
addCriterion("fileName <", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameLessThanOrEqualTo(String value) {
|
||||
addCriterion("fileName <=", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameLike(String value) {
|
||||
addCriterion("fileName like", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotLike(String value) {
|
||||
addCriterion("fileName not like", value, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameIn(List<String> values) {
|
||||
addCriterion("fileName in", values, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotIn(List<String> values) {
|
||||
addCriterion("fileName not in", values, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameBetween(String value1, String value2) {
|
||||
addCriterion("fileName between", value1, value2, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilenameNotBetween(String value1, String value2) {
|
||||
addCriterion("fileName not between", value1, value2, "filename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlIsNull() {
|
||||
addCriterion("serviceUrl is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlIsNotNull() {
|
||||
addCriterion("serviceUrl is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlEqualTo(String value) {
|
||||
addCriterion("serviceUrl =", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlNotEqualTo(String value) {
|
||||
addCriterion("serviceUrl <>", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlGreaterThan(String value) {
|
||||
addCriterion("serviceUrl >", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("serviceUrl >=", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlLessThan(String value) {
|
||||
addCriterion("serviceUrl <", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlLessThanOrEqualTo(String value) {
|
||||
addCriterion("serviceUrl <=", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlLike(String value) {
|
||||
addCriterion("serviceUrl like", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlNotLike(String value) {
|
||||
addCriterion("serviceUrl not like", value, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlIn(List<String> values) {
|
||||
addCriterion("serviceUrl in", values, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlNotIn(List<String> values) {
|
||||
addCriterion("serviceUrl not in", values, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlBetween(String value1, String value2) {
|
||||
addCriterion("serviceUrl between", value1, value2, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andServiceurlNotBetween(String value1, String value2) {
|
||||
addCriterion("serviceUrl not between", value1, value2, "serviceurl");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidIsNull() {
|
||||
addCriterion("installPathId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidIsNotNull() {
|
||||
addCriterion("installPathId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidEqualTo(String value) {
|
||||
addCriterion("installPathId =", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidNotEqualTo(String value) {
|
||||
addCriterion("installPathId <>", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidGreaterThan(String value) {
|
||||
addCriterion("installPathId >", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("installPathId >=", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidLessThan(String value) {
|
||||
addCriterion("installPathId <", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidLessThanOrEqualTo(String value) {
|
||||
addCriterion("installPathId <=", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidLike(String value) {
|
||||
addCriterion("installPathId like", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidNotLike(String value) {
|
||||
addCriterion("installPathId not like", value, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidIn(List<String> values) {
|
||||
addCriterion("installPathId in", values, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidNotIn(List<String> values) {
|
||||
addCriterion("installPathId not in", values, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidBetween(String value1, String value2) {
|
||||
addCriterion("installPathId between", value1, value2, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInstallpathidNotBetween(String value1, String value2) {
|
||||
addCriterion("installPathId not between", value1, value2, "installpathid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNull() {
|
||||
addCriterion("createTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNotNull() {
|
||||
addCriterion("createTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeEqualTo(Long value) {
|
||||
addCriterion("createTime =", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotEqualTo(Long value) {
|
||||
addCriterion("createTime <>", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThan(Long value) {
|
||||
addCriterion("createTime >", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime >=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThan(Long value) {
|
||||
addCriterion("createTime <", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime <=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIn(List<Long> values) {
|
||||
addCriterion("createTime in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotIn(List<Long> values) {
|
||||
addCriterion("createTime not in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime not between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeIsNull() {
|
||||
addCriterion("updateTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeIsNotNull() {
|
||||
addCriterion("updateTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeEqualTo(Long value) {
|
||||
addCriterion("updateTime =", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeNotEqualTo(Long value) {
|
||||
addCriterion("updateTime <>", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeGreaterThan(Long value) {
|
||||
addCriterion("updateTime >", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("updateTime >=", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeLessThan(Long value) {
|
||||
addCriterion("updateTime <", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("updateTime <=", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeIn(List<Long> values) {
|
||||
addCriterion("updateTime in", values, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeNotIn(List<Long> values) {
|
||||
addCriterion("updateTime not in", values, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeBetween(Long value1, Long value2) {
|
||||
addCriterion("updateTime between", value1, value2, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("updateTime not between", value1, value2, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_modfile
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
74
src/main/java/com/yutou/mybatis/TModfilePath.java
Normal file
74
src/main/java/com/yutou/mybatis/TModfilePath.java
Normal file
@ -0,0 +1,74 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TModfilePath {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile_path.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile_path.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modfile_path.path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile_path.id
|
||||
* @return the value of t_modfile_path.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile_path.id
|
||||
* @param id the value for t_modfile_path.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile_path.name
|
||||
* @return the value of t_modfile_path.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile_path.name
|
||||
* @param name the value for t_modfile_path.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modfile_path.path
|
||||
* @return the value of t_modfile_path.path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modfile_path.path
|
||||
* @param path the value for t_modfile_path.path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
}
|
461
src/main/java/com/yutou/mybatis/TModfilePathExample.java
Normal file
461
src/main/java/com/yutou/mybatis/TModfilePathExample.java
Normal file
@ -0,0 +1,461 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModfilePathExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModfilePathExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathIsNull() {
|
||||
addCriterion("path is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathIsNotNull() {
|
||||
addCriterion("path is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathEqualTo(String value) {
|
||||
addCriterion("path =", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathNotEqualTo(String value) {
|
||||
addCriterion("path <>", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathGreaterThan(String value) {
|
||||
addCriterion("path >", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("path >=", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathLessThan(String value) {
|
||||
addCriterion("path <", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathLessThanOrEqualTo(String value) {
|
||||
addCriterion("path <=", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathLike(String value) {
|
||||
addCriterion("path like", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathNotLike(String value) {
|
||||
addCriterion("path not like", value, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathIn(List<String> values) {
|
||||
addCriterion("path in", values, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathNotIn(List<String> values) {
|
||||
addCriterion("path not in", values, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathBetween(String value1, String value2) {
|
||||
addCriterion("path between", value1, value2, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathNotBetween(String value1, String value2) {
|
||||
addCriterion("path not between", value1, value2, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_modfile_path
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
143
src/main/java/com/yutou/mybatis/TModpower.java
Normal file
143
src/main/java/com/yutou/mybatis/TModpower.java
Normal file
@ -0,0 +1,143 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TModpower {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modpower.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modpower.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer mid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modpower.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String power;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modpower.powerUser
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String poweruser;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modpower.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long createtime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modpower.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long updatetime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modpower.id
|
||||
* @return the value of t_modpower.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modpower.id
|
||||
* @param id the value for t_modpower.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modpower.mid
|
||||
* @return the value of t_modpower.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getMid() {
|
||||
return mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modpower.mid
|
||||
* @param mid the value for t_modpower.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMid(Integer mid) {
|
||||
this.mid = mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modpower.power
|
||||
* @return the value of t_modpower.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getPower() {
|
||||
return power;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modpower.power
|
||||
* @param power the value for t_modpower.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setPower(String power) {
|
||||
this.power = power;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modpower.powerUser
|
||||
* @return the value of t_modpower.powerUser
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getPoweruser() {
|
||||
return poweruser;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modpower.powerUser
|
||||
* @param poweruser the value for t_modpower.powerUser
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setPoweruser(String poweruser) {
|
||||
this.poweruser = poweruser;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modpower.createTime
|
||||
* @return the value of t_modpower.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modpower.createTime
|
||||
* @param createtime the value for t_modpower.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setCreatetime(Long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modpower.updateTime
|
||||
* @return the value of t_modpower.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getUpdatetime() {
|
||||
return updatetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modpower.updateTime
|
||||
* @param updatetime the value for t_modpower.updateTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUpdatetime(Long updatetime) {
|
||||
this.updatetime = updatetime;
|
||||
}
|
||||
}
|
641
src/main/java/com/yutou/mybatis/TModpowerExample.java
Normal file
641
src/main/java/com/yutou/mybatis/TModpowerExample.java
Normal file
@ -0,0 +1,641 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModpowerExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModpowerExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNull() {
|
||||
addCriterion("mid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNotNull() {
|
||||
addCriterion("mid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidEqualTo(Integer value) {
|
||||
addCriterion("mid =", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotEqualTo(Integer value) {
|
||||
addCriterion("mid <>", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThan(Integer value) {
|
||||
addCriterion("mid >", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid >=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThan(Integer value) {
|
||||
addCriterion("mid <", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid <=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIn(List<Integer> values) {
|
||||
addCriterion("mid in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotIn(List<Integer> values) {
|
||||
addCriterion("mid not in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid not between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIsNull() {
|
||||
addCriterion("power is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIsNotNull() {
|
||||
addCriterion("power is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerEqualTo(String value) {
|
||||
addCriterion("power =", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotEqualTo(String value) {
|
||||
addCriterion("power <>", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerGreaterThan(String value) {
|
||||
addCriterion("power >", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("power >=", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerLessThan(String value) {
|
||||
addCriterion("power <", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerLessThanOrEqualTo(String value) {
|
||||
addCriterion("power <=", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerLike(String value) {
|
||||
addCriterion("power like", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotLike(String value) {
|
||||
addCriterion("power not like", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIn(List<String> values) {
|
||||
addCriterion("power in", values, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotIn(List<String> values) {
|
||||
addCriterion("power not in", values, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerBetween(String value1, String value2) {
|
||||
addCriterion("power between", value1, value2, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotBetween(String value1, String value2) {
|
||||
addCriterion("power not between", value1, value2, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserIsNull() {
|
||||
addCriterion("powerUser is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserIsNotNull() {
|
||||
addCriterion("powerUser is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserEqualTo(String value) {
|
||||
addCriterion("powerUser =", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserNotEqualTo(String value) {
|
||||
addCriterion("powerUser <>", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserGreaterThan(String value) {
|
||||
addCriterion("powerUser >", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("powerUser >=", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserLessThan(String value) {
|
||||
addCriterion("powerUser <", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserLessThanOrEqualTo(String value) {
|
||||
addCriterion("powerUser <=", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserLike(String value) {
|
||||
addCriterion("powerUser like", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserNotLike(String value) {
|
||||
addCriterion("powerUser not like", value, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserIn(List<String> values) {
|
||||
addCriterion("powerUser in", values, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserNotIn(List<String> values) {
|
||||
addCriterion("powerUser not in", values, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserBetween(String value1, String value2) {
|
||||
addCriterion("powerUser between", value1, value2, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPoweruserNotBetween(String value1, String value2) {
|
||||
addCriterion("powerUser not between", value1, value2, "poweruser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNull() {
|
||||
addCriterion("createTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNotNull() {
|
||||
addCriterion("createTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeEqualTo(Long value) {
|
||||
addCriterion("createTime =", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotEqualTo(Long value) {
|
||||
addCriterion("createTime <>", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThan(Long value) {
|
||||
addCriterion("createTime >", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime >=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThan(Long value) {
|
||||
addCriterion("createTime <", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime <=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIn(List<Long> values) {
|
||||
addCriterion("createTime in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotIn(List<Long> values) {
|
||||
addCriterion("createTime not in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime not between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeIsNull() {
|
||||
addCriterion("updateTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeIsNotNull() {
|
||||
addCriterion("updateTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeEqualTo(Long value) {
|
||||
addCriterion("updateTime =", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeNotEqualTo(Long value) {
|
||||
addCriterion("updateTime <>", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeGreaterThan(Long value) {
|
||||
addCriterion("updateTime >", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("updateTime >=", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeLessThan(Long value) {
|
||||
addCriterion("updateTime <", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("updateTime <=", value, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeIn(List<Long> values) {
|
||||
addCriterion("updateTime in", values, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeNotIn(List<Long> values) {
|
||||
addCriterion("updateTime not in", values, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeBetween(Long value1, Long value2) {
|
||||
addCriterion("updateTime between", value1, value2, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatetimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("updateTime not between", value1, value2, "updatetime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_modpower
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
97
src/main/java/com/yutou/mybatis/TModrating.java
Normal file
97
src/main/java/com/yutou/mybatis/TModrating.java
Normal file
@ -0,0 +1,97 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TModrating {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modrating.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modrating.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer mid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modrating.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modrating.totalScore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Float totalscore;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modrating.id
|
||||
* @return the value of t_modrating.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modrating.id
|
||||
* @param id the value for t_modrating.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modrating.mid
|
||||
* @return the value of t_modrating.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getMid() {
|
||||
return mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modrating.mid
|
||||
* @param mid the value for t_modrating.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMid(Integer mid) {
|
||||
this.mid = mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modrating.uid
|
||||
* @return the value of t_modrating.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modrating.uid
|
||||
* @param uid the value for t_modrating.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modrating.totalScore
|
||||
* @return the value of t_modrating.totalScore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Float getTotalscore() {
|
||||
return totalscore;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modrating.totalScore
|
||||
* @param totalscore the value for t_modrating.totalScore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setTotalscore(Float totalscore) {
|
||||
this.totalscore = totalscore;
|
||||
}
|
||||
}
|
501
src/main/java/com/yutou/mybatis/TModratingExample.java
Normal file
501
src/main/java/com/yutou/mybatis/TModratingExample.java
Normal file
@ -0,0 +1,501 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModratingExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModratingExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNull() {
|
||||
addCriterion("mid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNotNull() {
|
||||
addCriterion("mid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidEqualTo(Integer value) {
|
||||
addCriterion("mid =", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotEqualTo(Integer value) {
|
||||
addCriterion("mid <>", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThan(Integer value) {
|
||||
addCriterion("mid >", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid >=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThan(Integer value) {
|
||||
addCriterion("mid <", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid <=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIn(List<Integer> values) {
|
||||
addCriterion("mid in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotIn(List<Integer> values) {
|
||||
addCriterion("mid not in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid not between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreIsNull() {
|
||||
addCriterion("totalScore is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreIsNotNull() {
|
||||
addCriterion("totalScore is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreEqualTo(Float value) {
|
||||
addCriterion("totalScore =", value, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreNotEqualTo(Float value) {
|
||||
addCriterion("totalScore <>", value, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreGreaterThan(Float value) {
|
||||
addCriterion("totalScore >", value, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreGreaterThanOrEqualTo(Float value) {
|
||||
addCriterion("totalScore >=", value, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreLessThan(Float value) {
|
||||
addCriterion("totalScore <", value, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreLessThanOrEqualTo(Float value) {
|
||||
addCriterion("totalScore <=", value, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreIn(List<Float> values) {
|
||||
addCriterion("totalScore in", values, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreNotIn(List<Float> values) {
|
||||
addCriterion("totalScore not in", values, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreBetween(Float value1, Float value2) {
|
||||
addCriterion("totalScore between", value1, value2, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalscoreNotBetween(Float value1, Float value2) {
|
||||
addCriterion("totalScore not between", value1, value2, "totalscore");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_modrating
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
80
src/main/java/com/yutou/mybatis/TModtag.java
Normal file
80
src/main/java/com/yutou/mybatis/TModtag.java
Normal file
@ -0,0 +1,80 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TModtag{
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modtag.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modtag.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer mid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modtag.tag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String tag;
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modtag.id
|
||||
* @return the value of t_modtag.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modtag.id
|
||||
* @param id the value for t_modtag.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modtag.mid
|
||||
* @return the value of t_modtag.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getMid() {
|
||||
return mid;
|
||||
}
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modtag.mid
|
||||
* @param mid the value for t_modtag.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMid(Integer mid) {
|
||||
this.mid = mid;
|
||||
}
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modtag.tag
|
||||
* @return the value of t_modtag.tag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getTag() {
|
||||
return tag;
|
||||
}
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modtag.tag
|
||||
* @param tag the value for t_modtag.tag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setTag(String tag) {
|
||||
this.tag = tag;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TModtag [id=" + id + ", mid=" + mid + ", tag=" + tag + "]";
|
||||
}
|
||||
public TModtag clone(){
|
||||
// TODO Auto-generated method stub
|
||||
TModtag tag=new TModtag();
|
||||
tag.setId(this.id);
|
||||
tag.setMid(this.mid);
|
||||
tag.setTag(this.tag);
|
||||
return tag;
|
||||
}
|
||||
}
|
451
src/main/java/com/yutou/mybatis/TModtagExample.java
Normal file
451
src/main/java/com/yutou/mybatis/TModtagExample.java
Normal file
@ -0,0 +1,451 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModtagExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModtagExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNull() {
|
||||
addCriterion("mid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNotNull() {
|
||||
addCriterion("mid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidEqualTo(Integer value) {
|
||||
addCriterion("mid =", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotEqualTo(Integer value) {
|
||||
addCriterion("mid <>", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThan(Integer value) {
|
||||
addCriterion("mid >", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid >=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThan(Integer value) {
|
||||
addCriterion("mid <", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid <=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIn(List<Integer> values) {
|
||||
addCriterion("mid in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotIn(List<Integer> values) {
|
||||
addCriterion("mid not in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid not between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagIsNull() {
|
||||
addCriterion("tag is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagIsNotNull() {
|
||||
addCriterion("tag is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagEqualTo(String value) {
|
||||
addCriterion("tag =", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagNotEqualTo(String value) {
|
||||
addCriterion("tag <>", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagGreaterThan(String value) {
|
||||
addCriterion("tag >", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("tag >=", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagLessThan(String value) {
|
||||
addCriterion("tag <", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagLessThanOrEqualTo(String value) {
|
||||
addCriterion("tag <=", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagLike(String value) {
|
||||
addCriterion("tag like", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagNotLike(String value) {
|
||||
addCriterion("tag not like", value, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagIn(List<String> values) {
|
||||
addCriterion("tag in", values, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagNotIn(List<String> values) {
|
||||
addCriterion("tag not in", values, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagBetween(String value1, String value2) {
|
||||
addCriterion("tag between", value1, value2, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTagNotBetween(String value1, String value2) {
|
||||
addCriterion("tag not between", value1, value2, "tag");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_modtag
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
51
src/main/java/com/yutou/mybatis/TModtype.java
Normal file
51
src/main/java/com/yutou/mybatis/TModtype.java
Normal file
@ -0,0 +1,51 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class TModtype {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modtype.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column t_modtype.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modtype.id
|
||||
* @return the value of t_modtype.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modtype.id
|
||||
* @param id the value for t_modtype.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column t_modtype.name
|
||||
* @return the value of t_modtype.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column t_modtype.name
|
||||
* @param name the value for t_modtype.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
391
src/main/java/com/yutou/mybatis/TModtypeExample.java
Normal file
391
src/main/java/com/yutou/mybatis/TModtypeExample.java
Normal file
@ -0,0 +1,391 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TModtypeExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public TModtypeExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table t_modtype
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
74
src/main/java/com/yutou/mybatis/UUserGameData.java
Normal file
74
src/main/java/com/yutou/mybatis/UUserGameData.java
Normal file
@ -0,0 +1,74 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class UUserGameData {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_user_game_data.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_user_game_data.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_user_game_data.file
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String file;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_user_game_data.id
|
||||
* @return the value of u_user_game_data.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_user_game_data.id
|
||||
* @param id the value for u_user_game_data.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_user_game_data.uid
|
||||
* @return the value of u_user_game_data.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_user_game_data.uid
|
||||
* @param uid the value for u_user_game_data.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_user_game_data.file
|
||||
* @return the value of u_user_game_data.file
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_user_game_data.file
|
||||
* @param file the value for u_user_game_data.file
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setFile(String file) {
|
||||
this.file = file;
|
||||
}
|
||||
}
|
451
src/main/java/com/yutou/mybatis/UUserGameDataExample.java
Normal file
451
src/main/java/com/yutou/mybatis/UUserGameDataExample.java
Normal file
@ -0,0 +1,451 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UUserGameDataExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public UUserGameDataExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileIsNull() {
|
||||
addCriterion("file is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileIsNotNull() {
|
||||
addCriterion("file is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileEqualTo(String value) {
|
||||
addCriterion("file =", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNotEqualTo(String value) {
|
||||
addCriterion("file <>", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileGreaterThan(String value) {
|
||||
addCriterion("file >", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("file >=", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileLessThan(String value) {
|
||||
addCriterion("file <", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileLessThanOrEqualTo(String value) {
|
||||
addCriterion("file <=", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileLike(String value) {
|
||||
addCriterion("file like", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNotLike(String value) {
|
||||
addCriterion("file not like", value, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileIn(List<String> values) {
|
||||
addCriterion("file in", values, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNotIn(List<String> values) {
|
||||
addCriterion("file not in", values, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileBetween(String value1, String value2) {
|
||||
addCriterion("file between", value1, value2, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileNotBetween(String value1, String value2) {
|
||||
addCriterion("file not between", value1, value2, "file");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table u_user_game_data
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
97
src/main/java/com/yutou/mybatis/UUsercollection.java
Normal file
97
src/main/java/com/yutou/mybatis/UUsercollection.java
Normal file
@ -0,0 +1,97 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class UUsercollection {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_usercollection.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_usercollection.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_usercollection.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer mid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_usercollection.createtime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long createtime;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_usercollection.id
|
||||
* @return the value of u_usercollection.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_usercollection.id
|
||||
* @param id the value for u_usercollection.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_usercollection.uid
|
||||
* @return the value of u_usercollection.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_usercollection.uid
|
||||
* @param uid the value for u_usercollection.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_usercollection.mid
|
||||
* @return the value of u_usercollection.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getMid() {
|
||||
return mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_usercollection.mid
|
||||
* @param mid the value for u_usercollection.mid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMid(Integer mid) {
|
||||
this.mid = mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_usercollection.createtime
|
||||
* @return the value of u_usercollection.createtime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_usercollection.createtime
|
||||
* @param createtime the value for u_usercollection.createtime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setCreatetime(Long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
}
|
501
src/main/java/com/yutou/mybatis/UUsercollectionExample.java
Normal file
501
src/main/java/com/yutou/mybatis/UUsercollectionExample.java
Normal file
@ -0,0 +1,501 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UUsercollectionExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public UUsercollectionExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNull() {
|
||||
addCriterion("mid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIsNotNull() {
|
||||
addCriterion("mid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidEqualTo(Integer value) {
|
||||
addCriterion("mid =", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotEqualTo(Integer value) {
|
||||
addCriterion("mid <>", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThan(Integer value) {
|
||||
addCriterion("mid >", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid >=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThan(Integer value) {
|
||||
addCriterion("mid <", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("mid <=", value, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidIn(List<Integer> values) {
|
||||
addCriterion("mid in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotIn(List<Integer> values) {
|
||||
addCriterion("mid not in", values, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("mid not between", value1, value2, "mid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNull() {
|
||||
addCriterion("createtime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNotNull() {
|
||||
addCriterion("createtime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeEqualTo(Long value) {
|
||||
addCriterion("createtime =", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotEqualTo(Long value) {
|
||||
addCriterion("createtime <>", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThan(Long value) {
|
||||
addCriterion("createtime >", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("createtime >=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThan(Long value) {
|
||||
addCriterion("createtime <", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("createtime <=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIn(List<Long> values) {
|
||||
addCriterion("createtime in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotIn(List<Long> values) {
|
||||
addCriterion("createtime not in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeBetween(Long value1, Long value2) {
|
||||
addCriterion("createtime between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("createtime not between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table u_usercollection
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
120
src/main/java/com/yutou/mybatis/UUserdata.java
Normal file
120
src/main/java/com/yutou/mybatis/UUserdata.java
Normal file
@ -0,0 +1,120 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class UUserdata {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_userdata.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_userdata.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_userdata.email
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String email;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_userdata.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Long createtime;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_userdata.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String image;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_userdata.id
|
||||
* @return the value of u_userdata.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_userdata.id
|
||||
* @param id the value for u_userdata.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_userdata.uid
|
||||
* @return the value of u_userdata.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_userdata.uid
|
||||
* @param uid the value for u_userdata.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_userdata.email
|
||||
* @return the value of u_userdata.email
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_userdata.email
|
||||
* @param email the value for u_userdata.email
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_userdata.createTime
|
||||
* @return the value of u_userdata.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Long getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_userdata.createTime
|
||||
* @param createtime the value for u_userdata.createTime
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setCreatetime(Long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_userdata.image
|
||||
* @return the value of u_userdata.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_userdata.image
|
||||
* @param image the value for u_userdata.image
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
}
|
581
src/main/java/com/yutou/mybatis/UUserdataExample.java
Normal file
581
src/main/java/com/yutou/mybatis/UUserdataExample.java
Normal file
@ -0,0 +1,581 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UUserdataExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public UUserdataExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailIsNull() {
|
||||
addCriterion("email is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailIsNotNull() {
|
||||
addCriterion("email is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailEqualTo(String value) {
|
||||
addCriterion("email =", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailNotEqualTo(String value) {
|
||||
addCriterion("email <>", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailGreaterThan(String value) {
|
||||
addCriterion("email >", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("email >=", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailLessThan(String value) {
|
||||
addCriterion("email <", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailLessThanOrEqualTo(String value) {
|
||||
addCriterion("email <=", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailLike(String value) {
|
||||
addCriterion("email like", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailNotLike(String value) {
|
||||
addCriterion("email not like", value, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailIn(List<String> values) {
|
||||
addCriterion("email in", values, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailNotIn(List<String> values) {
|
||||
addCriterion("email not in", values, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailBetween(String value1, String value2) {
|
||||
addCriterion("email between", value1, value2, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEmailNotBetween(String value1, String value2) {
|
||||
addCriterion("email not between", value1, value2, "email");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNull() {
|
||||
addCriterion("createTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNotNull() {
|
||||
addCriterion("createTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeEqualTo(Long value) {
|
||||
addCriterion("createTime =", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotEqualTo(Long value) {
|
||||
addCriterion("createTime <>", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThan(Long value) {
|
||||
addCriterion("createTime >", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime >=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThan(Long value) {
|
||||
addCriterion("createTime <", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThanOrEqualTo(Long value) {
|
||||
addCriterion("createTime <=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIn(List<Long> values) {
|
||||
addCriterion("createTime in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotIn(List<Long> values) {
|
||||
addCriterion("createTime not in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotBetween(Long value1, Long value2) {
|
||||
addCriterion("createTime not between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIsNull() {
|
||||
addCriterion("image is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIsNotNull() {
|
||||
addCriterion("image is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageEqualTo(String value) {
|
||||
addCriterion("image =", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotEqualTo(String value) {
|
||||
addCriterion("image <>", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageGreaterThan(String value) {
|
||||
addCriterion("image >", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("image >=", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLessThan(String value) {
|
||||
addCriterion("image <", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLessThanOrEqualTo(String value) {
|
||||
addCriterion("image <=", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageLike(String value) {
|
||||
addCriterion("image like", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotLike(String value) {
|
||||
addCriterion("image not like", value, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageIn(List<String> values) {
|
||||
addCriterion("image in", values, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotIn(List<String> values) {
|
||||
addCriterion("image not in", values, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageBetween(String value1, String value2) {
|
||||
addCriterion("image between", value1, value2, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImageNotBetween(String value1, String value2) {
|
||||
addCriterion("image not between", value1, value2, "image");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table u_userdata
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
51
src/main/java/com/yutou/mybatis/UUserkey.java
Normal file
51
src/main/java/com/yutou/mybatis/UUserkey.java
Normal file
@ -0,0 +1,51 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class UUserkey {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_userkey.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_userkey.key
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_userkey.id
|
||||
* @return the value of u_userkey.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_userkey.id
|
||||
* @param id the value for u_userkey.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_userkey.key
|
||||
* @return the value of u_userkey.key
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_userkey.key
|
||||
* @param key the value for u_userkey.key
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
}
|
391
src/main/java/com/yutou/mybatis/UUserkeyExample.java
Normal file
391
src/main/java/com/yutou/mybatis/UUserkeyExample.java
Normal file
@ -0,0 +1,391 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UUserkeyExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public UUserkeyExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyIsNull() {
|
||||
addCriterion("key is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyIsNotNull() {
|
||||
addCriterion("key is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyEqualTo(String value) {
|
||||
addCriterion("key =", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyNotEqualTo(String value) {
|
||||
addCriterion("key <>", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyGreaterThan(String value) {
|
||||
addCriterion("key >", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("key >=", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyLessThan(String value) {
|
||||
addCriterion("key <", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyLessThanOrEqualTo(String value) {
|
||||
addCriterion("key <=", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyLike(String value) {
|
||||
addCriterion("key like", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyNotLike(String value) {
|
||||
addCriterion("key not like", value, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyIn(List<String> values) {
|
||||
addCriterion("key in", values, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyNotIn(List<String> values) {
|
||||
addCriterion("key not in", values, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyBetween(String value1, String value2) {
|
||||
addCriterion("key between", value1, value2, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyNotBetween(String value1, String value2) {
|
||||
addCriterion("key not between", value1, value2, "key");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table u_userkey
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
74
src/main/java/com/yutou/mybatis/UUsermodscore.java
Normal file
74
src/main/java/com/yutou/mybatis/UUsermodscore.java
Normal file
@ -0,0 +1,74 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class UUsermodscore {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_usermodscore.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_usermodscore.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer uid;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column u_usermodscore.score_id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer scoreId;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_usermodscore.id
|
||||
* @return the value of u_usermodscore.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_usermodscore.id
|
||||
* @param id the value for u_usermodscore.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_usermodscore.uid
|
||||
* @return the value of u_usermodscore.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_usermodscore.uid
|
||||
* @param uid the value for u_usermodscore.uid
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUid(Integer uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column u_usermodscore.score_id
|
||||
* @return the value of u_usermodscore.score_id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getScoreId() {
|
||||
return scoreId;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column u_usermodscore.score_id
|
||||
* @param scoreId the value for u_usermodscore.score_id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setScoreId(Integer scoreId) {
|
||||
this.scoreId = scoreId;
|
||||
}
|
||||
}
|
441
src/main/java/com/yutou/mybatis/UUsermodscoreExample.java
Normal file
441
src/main/java/com/yutou/mybatis/UUsermodscoreExample.java
Normal file
@ -0,0 +1,441 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UUsermodscoreExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public UUsermodscoreExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNull() {
|
||||
addCriterion("uid is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIsNotNull() {
|
||||
addCriterion("uid is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidEqualTo(Integer value) {
|
||||
addCriterion("uid =", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotEqualTo(Integer value) {
|
||||
addCriterion("uid <>", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThan(Integer value) {
|
||||
addCriterion("uid >", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid >=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThan(Integer value) {
|
||||
addCriterion("uid <", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("uid <=", value, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidIn(List<Integer> values) {
|
||||
addCriterion("uid in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotIn(List<Integer> values) {
|
||||
addCriterion("uid not in", values, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUidNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("uid not between", value1, value2, "uid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdIsNull() {
|
||||
addCriterion("score_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdIsNotNull() {
|
||||
addCriterion("score_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdEqualTo(Integer value) {
|
||||
addCriterion("score_id =", value, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdNotEqualTo(Integer value) {
|
||||
addCriterion("score_id <>", value, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdGreaterThan(Integer value) {
|
||||
addCriterion("score_id >", value, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("score_id >=", value, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdLessThan(Integer value) {
|
||||
addCriterion("score_id <", value, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("score_id <=", value, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdIn(List<Integer> values) {
|
||||
addCriterion("score_id in", values, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdNotIn(List<Integer> values) {
|
||||
addCriterion("score_id not in", values, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("score_id between", value1, value2, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andScoreIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("score_id not between", value1, value2, "scoreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table u_usermodscore
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
143
src/main/java/com/yutou/mybatis/User.java
Normal file
143
src/main/java/com/yutou/mybatis/User.java
Normal file
@ -0,0 +1,143 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class User {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column user.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column user.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column user.pass
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String pass;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column user.IMEI
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String imei;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column user.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer power;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column user.uname
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String uname;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column user.id
|
||||
* @return the value of user.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column user.id
|
||||
* @param id the value for user.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column user.name
|
||||
* @return the value of user.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column user.name
|
||||
* @param name the value for user.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column user.pass
|
||||
* @return the value of user.pass
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getPass() {
|
||||
return pass;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column user.pass
|
||||
* @param pass the value for user.pass
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setPass(String pass) {
|
||||
this.pass = pass;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column user.IMEI
|
||||
* @return the value of user.IMEI
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column user.IMEI
|
||||
* @param imei the value for user.IMEI
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column user.power
|
||||
* @return the value of user.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getPower() {
|
||||
return power;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column user.power
|
||||
* @param power the value for user.power
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setPower(Integer power) {
|
||||
this.power = power;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column user.uname
|
||||
* @return the value of user.uname
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column user.uname
|
||||
* @param uname the value for user.uname
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
}
|
661
src/main/java/com/yutou/mybatis/UserExample.java
Normal file
661
src/main/java/com/yutou/mybatis/UserExample.java
Normal file
@ -0,0 +1,661 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UserExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public UserExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassIsNull() {
|
||||
addCriterion("pass is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassIsNotNull() {
|
||||
addCriterion("pass is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassEqualTo(String value) {
|
||||
addCriterion("pass =", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassNotEqualTo(String value) {
|
||||
addCriterion("pass <>", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassGreaterThan(String value) {
|
||||
addCriterion("pass >", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("pass >=", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassLessThan(String value) {
|
||||
addCriterion("pass <", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassLessThanOrEqualTo(String value) {
|
||||
addCriterion("pass <=", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassLike(String value) {
|
||||
addCriterion("pass like", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassNotLike(String value) {
|
||||
addCriterion("pass not like", value, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassIn(List<String> values) {
|
||||
addCriterion("pass in", values, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassNotIn(List<String> values) {
|
||||
addCriterion("pass not in", values, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassBetween(String value1, String value2) {
|
||||
addCriterion("pass between", value1, value2, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPassNotBetween(String value1, String value2) {
|
||||
addCriterion("pass not between", value1, value2, "pass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiIsNull() {
|
||||
addCriterion("IMEI is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiIsNotNull() {
|
||||
addCriterion("IMEI is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiEqualTo(String value) {
|
||||
addCriterion("IMEI =", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiNotEqualTo(String value) {
|
||||
addCriterion("IMEI <>", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiGreaterThan(String value) {
|
||||
addCriterion("IMEI >", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("IMEI >=", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiLessThan(String value) {
|
||||
addCriterion("IMEI <", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiLessThanOrEqualTo(String value) {
|
||||
addCriterion("IMEI <=", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiLike(String value) {
|
||||
addCriterion("IMEI like", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiNotLike(String value) {
|
||||
addCriterion("IMEI not like", value, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiIn(List<String> values) {
|
||||
addCriterion("IMEI in", values, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiNotIn(List<String> values) {
|
||||
addCriterion("IMEI not in", values, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiBetween(String value1, String value2) {
|
||||
addCriterion("IMEI between", value1, value2, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImeiNotBetween(String value1, String value2) {
|
||||
addCriterion("IMEI not between", value1, value2, "imei");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIsNull() {
|
||||
addCriterion("power is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIsNotNull() {
|
||||
addCriterion("power is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerEqualTo(Integer value) {
|
||||
addCriterion("power =", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotEqualTo(Integer value) {
|
||||
addCriterion("power <>", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerGreaterThan(Integer value) {
|
||||
addCriterion("power >", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("power >=", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerLessThan(Integer value) {
|
||||
addCriterion("power <", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("power <=", value, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerIn(List<Integer> values) {
|
||||
addCriterion("power in", values, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotIn(List<Integer> values) {
|
||||
addCriterion("power not in", values, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerBetween(Integer value1, Integer value2) {
|
||||
addCriterion("power between", value1, value2, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPowerNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("power not between", value1, value2, "power");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameIsNull() {
|
||||
addCriterion("uname is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameIsNotNull() {
|
||||
addCriterion("uname is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameEqualTo(String value) {
|
||||
addCriterion("uname =", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotEqualTo(String value) {
|
||||
addCriterion("uname <>", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameGreaterThan(String value) {
|
||||
addCriterion("uname >", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("uname >=", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameLessThan(String value) {
|
||||
addCriterion("uname <", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameLessThanOrEqualTo(String value) {
|
||||
addCriterion("uname <=", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameLike(String value) {
|
||||
addCriterion("uname like", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotLike(String value) {
|
||||
addCriterion("uname not like", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameIn(List<String> values) {
|
||||
addCriterion("uname in", values, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotIn(List<String> values) {
|
||||
addCriterion("uname not in", values, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameBetween(String value1, String value2) {
|
||||
addCriterion("uname between", value1, value2, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotBetween(String value1, String value2) {
|
||||
addCriterion("uname not between", value1, value2, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table user
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
97
src/main/java/com/yutou/mybatis/ZsShipType.java
Normal file
97
src/main/java/com/yutou/mybatis/ZsShipType.java
Normal file
@ -0,0 +1,97 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
public class ZsShipType {
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.shortname
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String shortname;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.mark
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
private String mark;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column zs_ship_type.id
|
||||
* @return the value of zs_ship_type.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.id
|
||||
* @param id the value for zs_ship_type.id
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column zs_ship_type.name
|
||||
* @return the value of zs_ship_type.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.name
|
||||
* @param name the value for zs_ship_type.name
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column zs_ship_type.shortname
|
||||
* @return the value of zs_ship_type.shortname
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getShortname() {
|
||||
return shortname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.shortname
|
||||
* @param shortname the value for zs_ship_type.shortname
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setShortname(String shortname) {
|
||||
this.shortname = shortname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method returns the value of the database column zs_ship_type.mark
|
||||
* @return the value of zs_ship_type.mark
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getMark() {
|
||||
return mark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.mark
|
||||
* @param mark the value for zs_ship_type.mark
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setMark(String mark) {
|
||||
this.mark = mark;
|
||||
}
|
||||
}
|
531
src/main/java/com/yutou/mybatis/ZsShipTypeExample.java
Normal file
531
src/main/java/com/yutou/mybatis/ZsShipTypeExample.java
Normal file
@ -0,0 +1,531 @@
|
||||
package com.yutou.mybatis;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ZsShipTypeExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected String orderByClause;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected boolean distinct;
|
||||
/**
|
||||
* This field was generated by MyBatis Generator. This field corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public ZsShipTypeExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameIsNull() {
|
||||
addCriterion("shortname is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameIsNotNull() {
|
||||
addCriterion("shortname is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameEqualTo(String value) {
|
||||
addCriterion("shortname =", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameNotEqualTo(String value) {
|
||||
addCriterion("shortname <>", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameGreaterThan(String value) {
|
||||
addCriterion("shortname >", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shortname >=", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameLessThan(String value) {
|
||||
addCriterion("shortname <", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameLessThanOrEqualTo(String value) {
|
||||
addCriterion("shortname <=", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameLike(String value) {
|
||||
addCriterion("shortname like", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameNotLike(String value) {
|
||||
addCriterion("shortname not like", value, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameIn(List<String> values) {
|
||||
addCriterion("shortname in", values, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameNotIn(List<String> values) {
|
||||
addCriterion("shortname not in", values, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameBetween(String value1, String value2) {
|
||||
addCriterion("shortname between", value1, value2, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShortnameNotBetween(String value1, String value2) {
|
||||
addCriterion("shortname not between", value1, value2, "shortname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkIsNull() {
|
||||
addCriterion("mark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkIsNotNull() {
|
||||
addCriterion("mark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkEqualTo(String value) {
|
||||
addCriterion("mark =", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkNotEqualTo(String value) {
|
||||
addCriterion("mark <>", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkGreaterThan(String value) {
|
||||
addCriterion("mark >", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("mark >=", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkLessThan(String value) {
|
||||
addCriterion("mark <", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkLessThanOrEqualTo(String value) {
|
||||
addCriterion("mark <=", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkLike(String value) {
|
||||
addCriterion("mark like", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkNotLike(String value) {
|
||||
addCriterion("mark not like", value, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkIn(List<String> values) {
|
||||
addCriterion("mark in", values, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkNotIn(List<String> values) {
|
||||
addCriterion("mark not in", values, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkBetween(String value1, String value2) {
|
||||
addCriterion("mark between", value1, value2, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMarkNotBetween(String value1, String value2) {
|
||||
addCriterion("mark not between", value1, value2, "mark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator. This class corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
private Object value;
|
||||
private Object secondValue;
|
||||
private boolean noValue;
|
||||
private boolean singleValue;
|
||||
private boolean betweenValue;
|
||||
private boolean listValue;
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table zs_ship_type
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge Wed Jan 03 17:41:45 CST 2018
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/MAppHomeMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/MAppHomeMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.MAppHome;
|
||||
import com.yutou.mybatis.MAppHomeExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MAppHomeMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(MAppHomeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(MAppHomeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(MAppHome record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(MAppHome record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<MAppHome> selectByExample(MAppHomeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
MAppHome selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MAppHome record, @Param("example") MAppHomeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") MAppHome record, @Param("example") MAppHomeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MAppHome record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_home
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(MAppHome record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/MAppMgMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/MAppMgMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.MAppMg;
|
||||
import com.yutou.mybatis.MAppMgExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MAppMgMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(MAppMgExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(MAppMgExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(MAppMg record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(MAppMg record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<MAppMg> selectByExample(MAppMgExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
MAppMg selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MAppMg record, @Param("example") MAppMgExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") MAppMg record, @Param("example") MAppMgExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MAppMg record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_mg
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(MAppMg record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/MAppPlugsMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/MAppPlugsMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.MAppPlugs;
|
||||
import com.yutou.mybatis.MAppPlugsExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MAppPlugsMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
long countByExample(MAppPlugsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int deleteByExample(MAppPlugsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int insert(MAppPlugs record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int insertSelective(MAppPlugs record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
List<MAppPlugs> selectByExample(MAppPlugsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
MAppPlugs selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MAppPlugs record, @Param("example") MAppPlugsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") MAppPlugs record, @Param("example") MAppPlugsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MAppPlugs record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_plugs
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(MAppPlugs record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/MAppToolsMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/MAppToolsMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.MAppTools;
|
||||
import com.yutou.mybatis.MAppToolsExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MAppToolsMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(MAppToolsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(MAppToolsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(MAppTools record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(MAppTools record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<MAppTools> selectByExample(MAppToolsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
MAppTools selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MAppTools record, @Param("example") MAppToolsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") MAppTools record, @Param("example") MAppToolsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MAppTools record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_app_tools
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(MAppTools record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/MBannerMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/MBannerMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.MBanner;
|
||||
import com.yutou.mybatis.MBannerExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MBannerMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(MBannerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(MBannerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(MBanner record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(MBanner record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<MBanner> selectByExample(MBannerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
MBanner selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MBanner record, @Param("example") MBannerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") MBanner record, @Param("example") MBannerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MBanner record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_banner
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(MBanner record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/MGamePacknameMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/MGamePacknameMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.MGamePackname;
|
||||
import com.yutou.mybatis.MGamePacknameExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MGamePacknameMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
long countByExample(MGamePacknameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int deleteByExample(MGamePacknameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int insert(MGamePackname record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int insertSelective(MGamePackname record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
List<MGamePackname> selectByExample(MGamePacknameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
MGamePackname selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MGamePackname record, @Param("example") MGamePacknameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") MGamePackname record, @Param("example") MGamePacknameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MGamePackname record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table m_game_packname
|
||||
* @mbg.generated Wed Aug 22 16:53:28 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(MGamePackname record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/SConfigMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/SConfigMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.SConfig;
|
||||
import com.yutou.mybatis.SConfigExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface SConfigMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(SConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(SConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(SConfig record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(SConfig record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<SConfig> selectByExample(SConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
SConfig selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") SConfig record, @Param("example") SConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") SConfig record, @Param("example") SConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(SConfig record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table s_config
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(SConfig record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TFeedbackMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TFeedbackMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TFeedback;
|
||||
import com.yutou.mybatis.TFeedbackExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TFeedbackMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TFeedbackExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TFeedbackExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TFeedback record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TFeedback record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TFeedback> selectByExample(TFeedbackExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TFeedback selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TFeedback record, @Param("example") TFeedbackExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TFeedback record, @Param("example") TFeedbackExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TFeedback record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_feedback
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TFeedback record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TGameVersionMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TGameVersionMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TGameVersion;
|
||||
import com.yutou.mybatis.TGameVersionExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TGameVersionMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TGameVersionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TGameVersionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TGameVersion record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TGameVersion record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TGameVersion> selectByExample(TGameVersionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TGameVersion selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TGameVersion record, @Param("example") TGameVersionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TGameVersion record, @Param("example") TGameVersionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TGameVersion record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_game_version
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TGameVersion record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TLinesMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TLinesMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TLines;
|
||||
import com.yutou.mybatis.TLinesExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TLinesMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TLinesExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TLinesExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TLines record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TLines record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TLines> selectByExample(TLinesExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TLines selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TLines record, @Param("example") TLinesExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TLines record, @Param("example") TLinesExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TLines record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_lines
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TLines record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TMod;
|
||||
import com.yutou.mybatis.TModExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TMod record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TMod record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TMod> selectByExample(TModExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TMod selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TMod record, @Param("example") TModExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TMod record, @Param("example") TModExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TMod record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_mod
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TMod record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModcommentMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModcommentMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModcomment;
|
||||
import com.yutou.mybatis.TModcommentExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModcommentMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModcommentExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModcommentExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModcomment record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModcomment record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModcomment> selectByExample(TModcommentExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModcomment selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModcomment record, @Param("example") TModcommentExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModcomment record, @Param("example") TModcommentExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModcomment record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modcomment
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModcomment record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModdownloadMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModdownloadMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModdownload;
|
||||
import com.yutou.mybatis.TModdownloadExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModdownloadMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModdownloadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModdownloadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModdownload record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModdownload record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModdownload> selectByExample(TModdownloadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModdownload selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModdownload record, @Param("example") TModdownloadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModdownload record, @Param("example") TModdownloadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModdownload record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_moddownload
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModdownload record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModfileMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModfileMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModfile;
|
||||
import com.yutou.mybatis.TModfileExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModfileMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModfileExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModfileExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModfile record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModfile record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModfile> selectByExample(TModfileExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModfile selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModfile record, @Param("example") TModfileExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModfile record, @Param("example") TModfileExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModfile record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModfile record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModfilePathMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModfilePathMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModfilePath;
|
||||
import com.yutou.mybatis.TModfilePathExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModfilePathMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModfilePathExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModfilePathExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModfilePath record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModfilePath record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModfilePath> selectByExample(TModfilePathExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModfilePath selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModfilePath record, @Param("example") TModfilePathExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModfilePath record, @Param("example") TModfilePathExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModfilePath record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modfile_path
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModfilePath record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModpowerMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModpowerMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModpower;
|
||||
import com.yutou.mybatis.TModpowerExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModpowerMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModpowerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModpowerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModpower record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModpower record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModpower> selectByExample(TModpowerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModpower selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModpower record, @Param("example") TModpowerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModpower record, @Param("example") TModpowerExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModpower record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modpower
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModpower record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModratingMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModratingMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModrating;
|
||||
import com.yutou.mybatis.TModratingExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModratingMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModratingExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModratingExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModrating record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModrating record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModrating> selectByExample(TModratingExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModrating selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModrating record, @Param("example") TModratingExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModrating record, @Param("example") TModratingExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModrating record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modrating
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModrating record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModtagMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModtagMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModtag;
|
||||
import com.yutou.mybatis.TModtagExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModtagMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModtagExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModtagExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModtag record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModtag record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModtag> selectByExample(TModtagExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModtag selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModtag record, @Param("example") TModtagExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModtag record, @Param("example") TModtagExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModtag record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtag
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModtag record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/TModtypeMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/TModtypeMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.TModtype;
|
||||
import com.yutou.mybatis.TModtypeExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface TModtypeMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(TModtypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(TModtypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(TModtype record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(TModtype record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<TModtype> selectByExample(TModtypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
TModtype selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") TModtype record, @Param("example") TModtypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") TModtype record, @Param("example") TModtypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(TModtype record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table t_modtype
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(TModtype record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/UUserGameDataMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/UUserGameDataMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.UUserGameData;
|
||||
import com.yutou.mybatis.UUserGameDataExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UUserGameDataMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(UUserGameDataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(UUserGameDataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(UUserGameData record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(UUserGameData record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<UUserGameData> selectByExample(UUserGameDataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
UUserGameData selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") UUserGameData record, @Param("example") UUserGameDataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") UUserGameData record, @Param("example") UUserGameDataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(UUserGameData record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_user_game_data
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(UUserGameData record);
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.UUsercollection;
|
||||
import com.yutou.mybatis.UUsercollectionExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UUsercollectionMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(UUsercollectionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(UUsercollectionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(UUsercollection record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(UUsercollection record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<UUsercollection> selectByExample(UUsercollectionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
UUsercollection selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") UUsercollection record,
|
||||
@Param("example") UUsercollectionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") UUsercollection record, @Param("example") UUsercollectionExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(UUsercollection record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usercollection
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(UUsercollection record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/UUserdataMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/UUserdataMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.UUserdata;
|
||||
import com.yutou.mybatis.UUserdataExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UUserdataMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(UUserdataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(UUserdataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(UUserdata record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(UUserdata record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<UUserdata> selectByExample(UUserdataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
UUserdata selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") UUserdata record, @Param("example") UUserdataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") UUserdata record, @Param("example") UUserdataExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(UUserdata record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userdata
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(UUserdata record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/UUserkeyMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/UUserkeyMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.UUserkey;
|
||||
import com.yutou.mybatis.UUserkeyExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UUserkeyMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(UUserkeyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(UUserkeyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(UUserkey record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(UUserkey record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<UUserkey> selectByExample(UUserkeyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
UUserkey selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") UUserkey record, @Param("example") UUserkeyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") UUserkey record, @Param("example") UUserkeyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(UUserkey record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_userkey
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(UUserkey record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/UUsermodscoreMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/UUsermodscoreMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.UUsermodscore;
|
||||
import com.yutou.mybatis.UUsermodscoreExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UUsermodscoreMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(UUsermodscoreExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(UUsermodscoreExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(UUsermodscore record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(UUsermodscore record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<UUsermodscore> selectByExample(UUsermodscoreExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
UUsermodscore selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") UUsermodscore record, @Param("example") UUsermodscoreExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") UUsermodscore record, @Param("example") UUsermodscoreExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(UUsermodscore record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table u_usermodscore
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(UUsermodscore record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/UserMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/UserMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.User;
|
||||
import com.yutou.mybatis.UserExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UserMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(User record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(User record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<User> selectByExample(UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
User selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") User record, @Param("example") UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(User record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table user
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(User record);
|
||||
}
|
75
src/main/java/com/yutou/mybatis/dao/ZsShipTypeMapper.java
Normal file
75
src/main/java/com/yutou/mybatis/dao/ZsShipTypeMapper.java
Normal file
@ -0,0 +1,75 @@
|
||||
package com.yutou.mybatis.dao;
|
||||
|
||||
import com.yutou.mybatis.ZsShipType;
|
||||
import com.yutou.mybatis.ZsShipTypeExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface ZsShipTypeMapper {
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
long countByExample(ZsShipTypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByExample(ZsShipTypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insert(ZsShipType record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int insertSelective(ZsShipType record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
List<ZsShipType> selectByExample(ZsShipTypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
ZsShipType selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") ZsShipType record, @Param("example") ZsShipTypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByExample(@Param("record") ZsShipType record, @Param("example") ZsShipTypeExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKeySelective(ZsShipType record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator. This method corresponds to the database table zs_ship_type
|
||||
* @mbg.generated Fri Sep 21 14:37:42 CST 2018
|
||||
*/
|
||||
int updateByPrimaryKey(ZsShipType record);
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user