Commit 599a87cf by ethanlamzs

业务模块初始配置

1 parent efe4ba98
Showing 170 changed files with 24713 additions and 24 deletions
package com.zhzf.fpj.xcx.envir.exceptions;
/**
*
*/
public class ServiceException extends Exception{
public ServiceException(Throwable e){
super(e);
}
}
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-business</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>business-sharding-strategy</artifactId>
<name>business-sharding-strategy</name>
<description>business-sharding-strategy</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>io.shardingjdbc</groupId>
<artifactId>sharding-jdbc-orchestration-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2.1</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.sharding.strategy;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.List;
import java.util.SortedMap;
import java.util.TreeMap;
/**
* hash 一致性算法
* @param <T>
*/
public class ConsistentHash<T>{
private int nodeNum; //每个真实节点关联的虚拟节点个数
private TreeMap<Long, T> nodes; // 虚拟节点
private List<T> shards; // 真实机器节点
private String NODE_NAME;
// public static void main(String[] args) throws IOException {
// Map<String, Integer> map = new HashMap<>();
// ConsistentHash<String> hash = new ConsistentHash<>(Arrays.asList("1","2","3","4","5","6","7","8"), 64);
// String data = FileUtils.readFileToString(new File("schoolCode.properties"), "utf-8");
// for(String s:data.split(",")){
// String tableName = hash.getShardInfo(s);
// if(map.containsKey(tableName)){
// int newInt = map.get(tableName).intValue()+1;
// map.put(tableName, newInt);
// }else{
// map.put(tableName, 1);
// }
// }
// for(Map.Entry<String, Integer> e:map.entrySet()){
// System.out.println(e.getKey()+" "+e.getValue());
// }
// }
public ConsistentHash(String nodeName,List<T> shards){
this(nodeName,shards, 100);
}
public ConsistentHash(String nodeName,List<T> shards, int nodeNum){
this.shards = shards;
this.nodeNum = nodeNum;
this.NODE_NAME = nodeName;
this.NODE_NAME = this.NODE_NAME==null?"NODE":nodeName;
init();
}
/**
* 初始化一致性hash环
*/
private void init(){
nodes = new TreeMap<Long, T>();
for(int i=0;i!=shards.size();i++) { // 每个真实机器节点都需要关联虚拟节点
final T shardInfo = shards.get(i);
for(int n=0;n<nodeNum;n++){
// 一个真实机器节点关联NODE_NUM个虚拟节点
nodes.put(hash("SHARD-"+i+"-"+this.NODE_NAME+"-"+n), shardInfo);
}
}
}
public T getShardInfo(String key) {
SortedMap<Long, T> tail = nodes.tailMap(hash(key));// 沿环的顺时针找到一个虚拟节点
if(tail.size()==0) {
return nodes.get(nodes.firstKey());
}
return tail.get(tail.firstKey()); // 返回该虚拟节点对应的真实机器节点的信息
}
/**
* MurMurHash算法,是非加密HASH算法,性能很高
* 比传统的CRC32,MD5,SHA-1(这两个算法都是加密HASH算法,复杂度本身就很高,带来的性能上的损害也不可避免)
* 等HASH算法要快很多,而且据说这个算法的碰撞率很低
* http://murmurhash.googlepages.com/
* @param key
* @return
*/
private static Long hash(String key) {
ByteBuffer buf = ByteBuffer.wrap(key.getBytes());
int seed = 0x1234ABCD;
ByteOrder byteOrder = buf.order();
buf.order(ByteOrder.LITTLE_ENDIAN);
long m = 0xc6a4a7935bd1e995L;
int r = 47;
long h = seed ^ (buf.remaining() * m);
long k;
while (buf.remaining() >= 8) {
k = buf.getLong();
k *= m;
k ^= k >>> r;
k *= m;
h ^= k;
h *= m;
}
if(buf.remaining() > 0){
ByteBuffer finish = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN);
// for big-endian version, do this first:
// finish.position(8-buf.remaining());
finish.put(buf).rewind();
h ^= finish.getLong();
h *= m;
}
h ^= h >>> r;
h *= m;
h ^= h >>> r;
buf.order(byteOrder);
return h;
}
}
package com.zhzf.fpj.xcx.sharding.strategy;
/**
* Created by Ethan on 2017/6/8.
*/
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* 节点分配器
*
*/
public class NodeDiretor {
private static NodeDiretor instance;
/**
* 记录拆分节点的数据
*/
private Map<String,ConsistentHash<Integer>> ConsistentHashMgr = new HashMap<>();
private NodeDiretor(){
}
/**
* 获取服务对象
* @return
*/
public static NodeDiretor getService(){
if(instance==null){
instance = new NodeDiretor();
}
return instance;
}
/**
* 根据目标群的数量,返回对应
* @param tNodeNum
* @param srcKey
* @param nodeType
*
**/
public Integer targetNode(int tNodeNum,String srcKey,String nodeType){
if(!ConsistentHashMgr.containsKey(tNodeNum+"")){
//初始化
List<Integer> nodes = new ArrayList<Integer>();
for(int i=0;i<tNodeNum;i++){
nodes.add(i);
}
ConsistentHash<Integer> newConsistentHash = new ConsistentHash<Integer>(nodeType,nodes);
ConsistentHashMgr.put(tNodeNum+"",newConsistentHash);
return newConsistentHash.getShardInfo(srcKey);
}else{
return ConsistentHashMgr.get(tNodeNum+"").getShardInfo(srcKey);
}
}
}
package com.zhzf.fpj.xcx.sharding.strategy.ds;
import com.zhzf.fpj.xcx.sharding.strategy.NodeDiretor;
import io.shardingjdbc.core.api.algorithm.sharding.PreciseShardingValue;
import io.shardingjdbc.core.api.algorithm.sharding.standard.PreciseShardingAlgorithm;
import java.util.Collection;
public final class PreciseModuloDatabaseShardingAlgorithm implements PreciseShardingAlgorithm<String> {
@Override
public String doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<String> shardingValue) {
int node = NodeDiretor.getService().targetNode(availableTargetNames.size(),shardingValue.getValue(),"db");
for (String each : availableTargetNames) {
if(each.endsWith("_"+node)){
return each;
}
}
throw new UnsupportedOperationException();
}
}
package com.zhzf.fpj.xcx.sharding.strategy.table;
import com.zhzf.fpj.xcx.sharding.strategy.NodeDiretor;
import io.shardingjdbc.core.api.algorithm.sharding.PreciseShardingValue;
import io.shardingjdbc.core.api.algorithm.sharding.standard.PreciseShardingAlgorithm;
import java.util.Collection;
public final class PreciseModuloTableShardingAlgorithm implements PreciseShardingAlgorithm<String> {
@Override
public String doSharding(final Collection<String> availableTargetNames, final PreciseShardingValue<String> shardingValue) {
int node = NodeDiretor.getService().targetNode(tableNodeNums(availableTargetNames), shardingValue.getValue(),"tbl");
for (String each : availableTargetNames) {
if (each.endsWith("_"+node)) {
return each;
}
}
throw new UnsupportedOperationException();
}
int tableNodeNums(Collection<String> availableTargetNames){
int num = availableTargetNames.size();
return num;
}
}
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-business</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>core-business-clazzalbum</artifactId>
<name>core-business-clazzalbum</name>
<description>core-business-clazzalbum</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>io.shardingjdbc</groupId>
<artifactId>sharding-jdbc-orchestration-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2.1</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
/*
* Copyright 1999-2015 dangdang.com.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* </p>
*/
package com.zhzf.fpj.xcx.clazzalbum;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
@SpringBootApplication
public class SpringBootDataMybatisMain {
// CHECKSTYLE:OFF
public static void main(final String[] args) {
// CHECKSTYLE:ON
Object[] starts = new Object[1];
starts[0] = SpringBootDataMybatisMain.class;
SpringApplication app = new SpringApplication(starts);
//app.addListeners(new ApplicationEnvironmentPreparedEventListener());
//app.addListeners(new ApplicationListener2());
ApplicationContext applicationContext = app.run(args);
//applicationContext.getBean(DemoService.class).demo("local_dao-demo-sec");
//OrchestrationDataSourceCloseableUtil.closeQuietly(applicationContext.getBean(OrchestrationShardingDataSource.class));
}
}
package com.zhzf.fpj.xcx.clazzalbum.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class ClazzAlbums extends EntityBean {
/**
* 主键,所属表字段为 clazz_albums.id
*/
private Long id;
/**
* 唯一码,所属表字段为 clazz_albums.unique_code
*/
private String uniqueCode;
/**
* 班级码,所属表字段为 clazz_albums.class_code
*/
private String classCode;
/**
* 创建相册的用户unionId,所属表字段为 clazz_albums.creator_user_id
*/
private String creatorUserId;
/**
* 相册名称,所属表字段为 clazz_albums.name
*/
private String name;
/**
* 相册状态 0删除 1可用,所属表字段为 clazz_albums.status
*/
private Integer status;
/**
* 内含照片总数,所属表字段为 clazz_albums.num
*/
private Integer num;
/**
* 创建时间,所属表字段为 clazz_albums.create_time
*/
private Long createTime;
/**
clazz_albums.id
*
* @return the value of clazz_albums.id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Long getId() {
return id;
}
/**
clazz_albums.id
*
* @param id the value for clazz_albums.id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
clazz_albums.unique_code
*
* @return the value of clazz_albums.unique_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getUniqueCode() {
return uniqueCode;
}
/**
clazz_albums.unique_code
*
* @param uniqueCode the value for clazz_albums.unique_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setUniqueCode(String uniqueCode) {
this.uniqueCode = uniqueCode == null ? null : uniqueCode.trim();
}
/**
clazz_albums.class_code
*
* @return the value of clazz_albums.class_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
clazz_albums.class_code
*
* @param classCode the value for clazz_albums.class_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
clazz_albums.creator_user_id
*
* @return the value of clazz_albums.creator_user_id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getCreatorUserId() {
return creatorUserId;
}
/**
clazz_albums.creator_user_id
*
* @param creatorUserId the value for clazz_albums.creator_user_id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setCreatorUserId(String creatorUserId) {
this.creatorUserId = creatorUserId == null ? null : creatorUserId.trim();
}
/**
clazz_albums.name
*
* @return the value of clazz_albums.name
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getName() {
return name;
}
/**
clazz_albums.name
*
* @param name the value for clazz_albums.name
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
/**
clazz_albums.status
*
* @return the value of clazz_albums.status
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
clazz_albums.status
*
* @param status the value for clazz_albums.status
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
/**
clazz_albums.num
*
* @return the value of clazz_albums.num
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Integer getNum() {
return num;
}
/**
clazz_albums.num
*
* @param num the value for clazz_albums.num
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setNum(Integer num) {
this.num = num;
}
/**
clazz_albums.create_time
*
* @return the value of clazz_albums.create_time
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Long getCreateTime() {
return createTime;
}
/**
clazz_albums.create_time
*
* @param createTime the value for clazz_albums.create_time
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.model;
import java.util.ArrayList;
import java.util.List;
public class ClazzAlbumsExample {
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected String orderByClause;
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected boolean distinct;
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public ClazzAlbumsExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 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("wca.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("wca.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("wca.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("wca.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("wca.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("wca.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("wca.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("wca.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("wca.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("wca.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("wca.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("wca.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNull() {
addCriterion("wca.unique_code is null");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNotNull() {
addCriterion("wca.unique_code is not null");
return (Criteria) this;
}
public Criteria andUniqueCodeEqualTo(String value) {
addCriterion("wca.unique_code =", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotEqualTo(String value) {
addCriterion("wca.unique_code <>", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThan(String value) {
addCriterion("wca.unique_code >", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThanOrEqualTo(String value) {
addCriterion("wca.unique_code >=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThan(String value) {
addCriterion("wca.unique_code <", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThanOrEqualTo(String value) {
addCriterion("wca.unique_code <=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLike(String value) {
addCriterion("wca.unique_code like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotLike(String value) {
addCriterion("wca.unique_code not like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeIn(List<String> values) {
addCriterion("wca.unique_code in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotIn(List<String> values) {
addCriterion("wca.unique_code not in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeBetween(String value1, String value2) {
addCriterion("wca.unique_code between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotBetween(String value1, String value2) {
addCriterion("wca.unique_code not between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("wca.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("wca.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("wca.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("wca.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("wca.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("wca.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("wca.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("wca.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("wca.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("wca.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("wca.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("wca.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("wca.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("wca.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNull() {
addCriterion("wca.creator_user_id is null");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNotNull() {
addCriterion("wca.creator_user_id is not null");
return (Criteria) this;
}
public Criteria andCreatorUserIdEqualTo(String value) {
addCriterion("wca.creator_user_id =", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotEqualTo(String value) {
addCriterion("wca.creator_user_id <>", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThan(String value) {
addCriterion("wca.creator_user_id >", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThanOrEqualTo(String value) {
addCriterion("wca.creator_user_id >=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThan(String value) {
addCriterion("wca.creator_user_id <", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThanOrEqualTo(String value) {
addCriterion("wca.creator_user_id <=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLike(String value) {
addCriterion("wca.creator_user_id like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotLike(String value) {
addCriterion("wca.creator_user_id not like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdIn(List<String> values) {
addCriterion("wca.creator_user_id in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotIn(List<String> values) {
addCriterion("wca.creator_user_id not in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdBetween(String value1, String value2) {
addCriterion("wca.creator_user_id between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotBetween(String value1, String value2) {
addCriterion("wca.creator_user_id not between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("wca.name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("wca.name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("wca.name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("wca.name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("wca.name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("wca.name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("wca.name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("wca.name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("wca.name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("wca.name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("wca.name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("wca.name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("wca.name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("wca.name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("wca.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("wca.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("wca.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("wca.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("wca.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("wca.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("wca.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("wca.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("wca.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("wca.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("wca.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("wca.status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andNumIsNull() {
addCriterion("wca.num is null");
return (Criteria) this;
}
public Criteria andNumIsNotNull() {
addCriterion("wca.num is not null");
return (Criteria) this;
}
public Criteria andNumEqualTo(Integer value) {
addCriterion("wca.num =", value, "num");
return (Criteria) this;
}
public Criteria andNumNotEqualTo(Integer value) {
addCriterion("wca.num <>", value, "num");
return (Criteria) this;
}
public Criteria andNumGreaterThan(Integer value) {
addCriterion("wca.num >", value, "num");
return (Criteria) this;
}
public Criteria andNumGreaterThanOrEqualTo(Integer value) {
addCriterion("wca.num >=", value, "num");
return (Criteria) this;
}
public Criteria andNumLessThan(Integer value) {
addCriterion("wca.num <", value, "num");
return (Criteria) this;
}
public Criteria andNumLessThanOrEqualTo(Integer value) {
addCriterion("wca.num <=", value, "num");
return (Criteria) this;
}
public Criteria andNumIn(List<Integer> values) {
addCriterion("wca.num in", values, "num");
return (Criteria) this;
}
public Criteria andNumNotIn(List<Integer> values) {
addCriterion("wca.num not in", values, "num");
return (Criteria) this;
}
public Criteria andNumBetween(Integer value1, Integer value2) {
addCriterion("wca.num between", value1, value2, "num");
return (Criteria) this;
}
public Criteria andNumNotBetween(Integer value1, Integer value2) {
addCriterion("wca.num not between", value1, value2, "num");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("wca.create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("wca.create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("wca.create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("wca.create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("wca.create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("wca.create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("wca.create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("wca.create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("wca.create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("wca.create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("wca.create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("wca.create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
此实体关联 表是:clazz_albumsclazz_albums
*
* @mbggenerated do_not_delete_during_merge Fri Apr 27 10:45:06 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class ClazzAlbumsMaterial extends EntityBean {
/**
* 主键,所属表字段为 clazz_albums_material.id
*/
private Long id;
/**
* 唯一码,所属表字段为 clazz_albums_material.unique_code
*/
private String uniqueCode;
/**
* 相册表唯一码,对应clazz_albums.unique_code,所属表字段为 clazz_albums_material.albums_unique
*/
private String albumsUnique;
/**
* 相册上传记录表唯一码,对应clazz_albums_record.unique_code,所属表字段为 clazz_albums_material.record_unique
*/
private String recordUnique;
/**
* 班级码,所属表字段为 clazz_albums_material.class_code
*/
private String classCode;
/**
* 创建者unionId,所属表字段为 clazz_albums_material.creator_user_id
*/
private String creatorUserId;
/**
* 素材种类 1图片 2视频,所属表字段为 clazz_albums_material.type
*/
private Integer type;
/**
* 素材路径,绝对路径,所属表字段为 clazz_albums_material.url
*/
private String url;
/**
* 素材状态,0删除 1可用,删除资源同时需要减少clazz_albums_record.num和clazz_albums.num的数量,所属表字段为 clazz_albums_material.status
*/
private Integer status;
/**
* 素材顺序,所属表字段为 clazz_albums_material.order_num
*/
private Integer orderNum;
/**
* 创建时间,所属表字段为 clazz_albums_material.create_time
*/
private Long createTime;
/**
clazz_albums_material.id
*
* @return the value of clazz_albums_material.id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Long getId() {
return id;
}
/**
clazz_albums_material.id
*
* @param id the value for clazz_albums_material.id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
clazz_albums_material.unique_code
*
* @return the value of clazz_albums_material.unique_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getUniqueCode() {
return uniqueCode;
}
/**
clazz_albums_material.unique_code
*
* @param uniqueCode the value for clazz_albums_material.unique_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setUniqueCode(String uniqueCode) {
this.uniqueCode = uniqueCode == null ? null : uniqueCode.trim();
}
/**
clazz_albums_material.albums_unique
*
* @return the value of clazz_albums_material.albums_unique
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getAlbumsUnique() {
return albumsUnique;
}
/**
clazz_albums_material.albums_unique
*
* @param albumsUnique the value for clazz_albums_material.albums_unique
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setAlbumsUnique(String albumsUnique) {
this.albumsUnique = albumsUnique == null ? null : albumsUnique.trim();
}
/**
clazz_albums_material.record_unique
*
* @return the value of clazz_albums_material.record_unique
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getRecordUnique() {
return recordUnique;
}
/**
clazz_albums_material.record_unique
*
* @param recordUnique the value for clazz_albums_material.record_unique
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setRecordUnique(String recordUnique) {
this.recordUnique = recordUnique == null ? null : recordUnique.trim();
}
/**
clazz_albums_material.class_code
*
* @return the value of clazz_albums_material.class_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
clazz_albums_material.class_code
*
* @param classCode the value for clazz_albums_material.class_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
clazz_albums_material.creator_user_id
*
* @return the value of clazz_albums_material.creator_user_id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getCreatorUserId() {
return creatorUserId;
}
/**
clazz_albums_material.creator_user_id
*
* @param creatorUserId the value for clazz_albums_material.creator_user_id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setCreatorUserId(String creatorUserId) {
this.creatorUserId = creatorUserId == null ? null : creatorUserId.trim();
}
/**
clazz_albums_material.type
*
* @return the value of clazz_albums_material.type
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Integer getType() {
return type;
}
/**
clazz_albums_material.type
*
* @param type the value for clazz_albums_material.type
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setType(Integer type) {
this.type = type;
}
/**
clazz_albums_material.url
*
* @return the value of clazz_albums_material.url
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getUrl() {
return url;
}
/**
clazz_albums_material.url
*
* @param url the value for clazz_albums_material.url
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
/**
clazz_albums_material.status
*
* @return the value of clazz_albums_material.status
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
clazz_albums_material.status
*
* @param status the value for clazz_albums_material.status
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
/**
clazz_albums_material.order_num
*
* @return the value of clazz_albums_material.order_num
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Integer getOrderNum() {
return orderNum;
}
/**
clazz_albums_material.order_num
*
* @param orderNum the value for clazz_albums_material.order_num
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setOrderNum(Integer orderNum) {
this.orderNum = orderNum;
}
/**
clazz_albums_material.create_time
*
* @return the value of clazz_albums_material.create_time
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Long getCreateTime() {
return createTime;
}
/**
clazz_albums_material.create_time
*
* @param createTime the value for clazz_albums_material.create_time
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.model;
import java.util.ArrayList;
import java.util.List;
public class ClazzAlbumsMaterialExample {
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected String orderByClause;
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected boolean distinct;
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public ClazzAlbumsMaterialExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 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("wcam.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("wcam.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("wcam.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("wcam.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("wcam.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("wcam.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("wcam.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("wcam.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("wcam.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("wcam.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("wcam.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("wcam.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNull() {
addCriterion("wcam.unique_code is null");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNotNull() {
addCriterion("wcam.unique_code is not null");
return (Criteria) this;
}
public Criteria andUniqueCodeEqualTo(String value) {
addCriterion("wcam.unique_code =", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotEqualTo(String value) {
addCriterion("wcam.unique_code <>", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThan(String value) {
addCriterion("wcam.unique_code >", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThanOrEqualTo(String value) {
addCriterion("wcam.unique_code >=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThan(String value) {
addCriterion("wcam.unique_code <", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThanOrEqualTo(String value) {
addCriterion("wcam.unique_code <=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLike(String value) {
addCriterion("wcam.unique_code like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotLike(String value) {
addCriterion("wcam.unique_code not like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeIn(List<String> values) {
addCriterion("wcam.unique_code in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotIn(List<String> values) {
addCriterion("wcam.unique_code not in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeBetween(String value1, String value2) {
addCriterion("wcam.unique_code between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotBetween(String value1, String value2) {
addCriterion("wcam.unique_code not between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andAlbumsUniqueIsNull() {
addCriterion("wcam.albums_unique is null");
return (Criteria) this;
}
public Criteria andAlbumsUniqueIsNotNull() {
addCriterion("wcam.albums_unique is not null");
return (Criteria) this;
}
public Criteria andAlbumsUniqueEqualTo(String value) {
addCriterion("wcam.albums_unique =", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotEqualTo(String value) {
addCriterion("wcam.albums_unique <>", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueGreaterThan(String value) {
addCriterion("wcam.albums_unique >", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueGreaterThanOrEqualTo(String value) {
addCriterion("wcam.albums_unique >=", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueLessThan(String value) {
addCriterion("wcam.albums_unique <", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueLessThanOrEqualTo(String value) {
addCriterion("wcam.albums_unique <=", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueLike(String value) {
addCriterion("wcam.albums_unique like", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotLike(String value) {
addCriterion("wcam.albums_unique not like", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueIn(List<String> values) {
addCriterion("wcam.albums_unique in", values, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotIn(List<String> values) {
addCriterion("wcam.albums_unique not in", values, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueBetween(String value1, String value2) {
addCriterion("wcam.albums_unique between", value1, value2, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotBetween(String value1, String value2) {
addCriterion("wcam.albums_unique not between", value1, value2, "albumsUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueIsNull() {
addCriterion("wcam.record_unique is null");
return (Criteria) this;
}
public Criteria andRecordUniqueIsNotNull() {
addCriterion("wcam.record_unique is not null");
return (Criteria) this;
}
public Criteria andRecordUniqueEqualTo(String value) {
addCriterion("wcam.record_unique =", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueNotEqualTo(String value) {
addCriterion("wcam.record_unique <>", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueGreaterThan(String value) {
addCriterion("wcam.record_unique >", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueGreaterThanOrEqualTo(String value) {
addCriterion("wcam.record_unique >=", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueLessThan(String value) {
addCriterion("wcam.record_unique <", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueLessThanOrEqualTo(String value) {
addCriterion("wcam.record_unique <=", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueLike(String value) {
addCriterion("wcam.record_unique like", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueNotLike(String value) {
addCriterion("wcam.record_unique not like", value, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueIn(List<String> values) {
addCriterion("wcam.record_unique in", values, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueNotIn(List<String> values) {
addCriterion("wcam.record_unique not in", values, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueBetween(String value1, String value2) {
addCriterion("wcam.record_unique between", value1, value2, "recordUnique");
return (Criteria) this;
}
public Criteria andRecordUniqueNotBetween(String value1, String value2) {
addCriterion("wcam.record_unique not between", value1, value2, "recordUnique");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("wcam.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("wcam.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("wcam.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("wcam.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("wcam.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("wcam.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("wcam.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("wcam.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("wcam.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("wcam.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("wcam.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("wcam.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("wcam.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("wcam.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNull() {
addCriterion("wcam.creator_user_id is null");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNotNull() {
addCriterion("wcam.creator_user_id is not null");
return (Criteria) this;
}
public Criteria andCreatorUserIdEqualTo(String value) {
addCriterion("wcam.creator_user_id =", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotEqualTo(String value) {
addCriterion("wcam.creator_user_id <>", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThan(String value) {
addCriterion("wcam.creator_user_id >", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThanOrEqualTo(String value) {
addCriterion("wcam.creator_user_id >=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThan(String value) {
addCriterion("wcam.creator_user_id <", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThanOrEqualTo(String value) {
addCriterion("wcam.creator_user_id <=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLike(String value) {
addCriterion("wcam.creator_user_id like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotLike(String value) {
addCriterion("wcam.creator_user_id not like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdIn(List<String> values) {
addCriterion("wcam.creator_user_id in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotIn(List<String> values) {
addCriterion("wcam.creator_user_id not in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdBetween(String value1, String value2) {
addCriterion("wcam.creator_user_id between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotBetween(String value1, String value2) {
addCriterion("wcam.creator_user_id not between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("wcam.type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("wcam.type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("wcam.type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("wcam.type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("wcam.type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("wcam.type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("wcam.type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("wcam.type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("wcam.type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("wcam.type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("wcam.type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("wcam.type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("wcam.url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("wcam.url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("wcam.url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("wcam.url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("wcam.url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("wcam.url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("wcam.url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("wcam.url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("wcam.url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("wcam.url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("wcam.url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("wcam.url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("wcam.url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("wcam.url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("wcam.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("wcam.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("wcam.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("wcam.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("wcam.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("wcam.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("wcam.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("wcam.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("wcam.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("wcam.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("wcam.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("wcam.status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andOrderNumIsNull() {
addCriterion("wcam.order_num is null");
return (Criteria) this;
}
public Criteria andOrderNumIsNotNull() {
addCriterion("wcam.order_num is not null");
return (Criteria) this;
}
public Criteria andOrderNumEqualTo(Integer value) {
addCriterion("wcam.order_num =", value, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumNotEqualTo(Integer value) {
addCriterion("wcam.order_num <>", value, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumGreaterThan(Integer value) {
addCriterion("wcam.order_num >", value, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumGreaterThanOrEqualTo(Integer value) {
addCriterion("wcam.order_num >=", value, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumLessThan(Integer value) {
addCriterion("wcam.order_num <", value, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumLessThanOrEqualTo(Integer value) {
addCriterion("wcam.order_num <=", value, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumIn(List<Integer> values) {
addCriterion("wcam.order_num in", values, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumNotIn(List<Integer> values) {
addCriterion("wcam.order_num not in", values, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumBetween(Integer value1, Integer value2) {
addCriterion("wcam.order_num between", value1, value2, "orderNum");
return (Criteria) this;
}
public Criteria andOrderNumNotBetween(Integer value1, Integer value2) {
addCriterion("wcam.order_num not between", value1, value2, "orderNum");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("wcam.create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("wcam.create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("wcam.create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("wcam.create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("wcam.create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("wcam.create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("wcam.create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("wcam.create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("wcam.create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("wcam.create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("wcam.create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("wcam.create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
此实体关联 表是:clazz_albums_materialclazz_albums_material
*
* @mbggenerated do_not_delete_during_merge Fri Apr 27 10:45:06 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class ClazzAlbumsRecord extends EntityBean {
/**
* 主键,所属表字段为 clazz_albums_record.id
*/
private Long id;
/**
* 相册批次唯一吗,所属表字段为 clazz_albums_record.unique_code
*/
private String uniqueCode;
/**
* 相册表唯一吗,对应clazz_albums.unique_code,所属表字段为 clazz_albums_record.albums_unique
*/
private String albumsUnique;
/**
* 班级码,所属表字段为 clazz_albums_record.class_code
*/
private String classCode;
/**
* 创建者unionId,所属表字段为 clazz_albums_record.creator_user_id
*/
private String creatorUserId;
/**
* 相册批次内资源数量,查询时大于0才显示这个照片详情,所属表字段为 clazz_albums_record.num
*/
private Integer num;
/**
* 创建时间,所属表字段为 clazz_albums_record.create_time
*/
private Long createTime;
/**
clazz_albums_record.id
*
* @return the value of clazz_albums_record.id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Long getId() {
return id;
}
/**
clazz_albums_record.id
*
* @param id the value for clazz_albums_record.id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
clazz_albums_record.unique_code
*
* @return the value of clazz_albums_record.unique_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getUniqueCode() {
return uniqueCode;
}
/**
clazz_albums_record.unique_code
*
* @param uniqueCode the value for clazz_albums_record.unique_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setUniqueCode(String uniqueCode) {
this.uniqueCode = uniqueCode == null ? null : uniqueCode.trim();
}
/**
clazz_albums_record.albums_unique
*
* @return the value of clazz_albums_record.albums_unique
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getAlbumsUnique() {
return albumsUnique;
}
/**
clazz_albums_record.albums_unique
*
* @param albumsUnique the value for clazz_albums_record.albums_unique
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setAlbumsUnique(String albumsUnique) {
this.albumsUnique = albumsUnique == null ? null : albumsUnique.trim();
}
/**
clazz_albums_record.class_code
*
* @return the value of clazz_albums_record.class_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
clazz_albums_record.class_code
*
* @param classCode the value for clazz_albums_record.class_code
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
clazz_albums_record.creator_user_id
*
* @return the value of clazz_albums_record.creator_user_id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getCreatorUserId() {
return creatorUserId;
}
/**
clazz_albums_record.creator_user_id
*
* @param creatorUserId the value for clazz_albums_record.creator_user_id
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setCreatorUserId(String creatorUserId) {
this.creatorUserId = creatorUserId == null ? null : creatorUserId.trim();
}
/**
clazz_albums_record.num
*
* @return the value of clazz_albums_record.num
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Integer getNum() {
return num;
}
/**
clazz_albums_record.num
*
* @param num the value for clazz_albums_record.num
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setNum(Integer num) {
this.num = num;
}
/**
clazz_albums_record.create_time
*
* @return the value of clazz_albums_record.create_time
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Long getCreateTime() {
return createTime;
}
/**
clazz_albums_record.create_time
*
* @param createTime the value for clazz_albums_record.create_time
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.model;
import java.util.ArrayList;
import java.util.List;
public class ClazzAlbumsRecordExample {
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected String orderByClause;
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected boolean distinct;
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public ClazzAlbumsRecordExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 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("wcar.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("wcar.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("wcar.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("wcar.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("wcar.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("wcar.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("wcar.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("wcar.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("wcar.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("wcar.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("wcar.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("wcar.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNull() {
addCriterion("wcar.unique_code is null");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNotNull() {
addCriterion("wcar.unique_code is not null");
return (Criteria) this;
}
public Criteria andUniqueCodeEqualTo(String value) {
addCriterion("wcar.unique_code =", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotEqualTo(String value) {
addCriterion("wcar.unique_code <>", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThan(String value) {
addCriterion("wcar.unique_code >", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThanOrEqualTo(String value) {
addCriterion("wcar.unique_code >=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThan(String value) {
addCriterion("wcar.unique_code <", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThanOrEqualTo(String value) {
addCriterion("wcar.unique_code <=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLike(String value) {
addCriterion("wcar.unique_code like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotLike(String value) {
addCriterion("wcar.unique_code not like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeIn(List<String> values) {
addCriterion("wcar.unique_code in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotIn(List<String> values) {
addCriterion("wcar.unique_code not in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeBetween(String value1, String value2) {
addCriterion("wcar.unique_code between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotBetween(String value1, String value2) {
addCriterion("wcar.unique_code not between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andAlbumsUniqueIsNull() {
addCriterion("wcar.albums_unique is null");
return (Criteria) this;
}
public Criteria andAlbumsUniqueIsNotNull() {
addCriterion("wcar.albums_unique is not null");
return (Criteria) this;
}
public Criteria andAlbumsUniqueEqualTo(String value) {
addCriterion("wcar.albums_unique =", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotEqualTo(String value) {
addCriterion("wcar.albums_unique <>", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueGreaterThan(String value) {
addCriterion("wcar.albums_unique >", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueGreaterThanOrEqualTo(String value) {
addCriterion("wcar.albums_unique >=", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueLessThan(String value) {
addCriterion("wcar.albums_unique <", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueLessThanOrEqualTo(String value) {
addCriterion("wcar.albums_unique <=", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueLike(String value) {
addCriterion("wcar.albums_unique like", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotLike(String value) {
addCriterion("wcar.albums_unique not like", value, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueIn(List<String> values) {
addCriterion("wcar.albums_unique in", values, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotIn(List<String> values) {
addCriterion("wcar.albums_unique not in", values, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueBetween(String value1, String value2) {
addCriterion("wcar.albums_unique between", value1, value2, "albumsUnique");
return (Criteria) this;
}
public Criteria andAlbumsUniqueNotBetween(String value1, String value2) {
addCriterion("wcar.albums_unique not between", value1, value2, "albumsUnique");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("wcar.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("wcar.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("wcar.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("wcar.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("wcar.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("wcar.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("wcar.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("wcar.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("wcar.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("wcar.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("wcar.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("wcar.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("wcar.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("wcar.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNull() {
addCriterion("wcar.creator_user_id is null");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNotNull() {
addCriterion("wcar.creator_user_id is not null");
return (Criteria) this;
}
public Criteria andCreatorUserIdEqualTo(String value) {
addCriterion("wcar.creator_user_id =", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotEqualTo(String value) {
addCriterion("wcar.creator_user_id <>", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThan(String value) {
addCriterion("wcar.creator_user_id >", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThanOrEqualTo(String value) {
addCriterion("wcar.creator_user_id >=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThan(String value) {
addCriterion("wcar.creator_user_id <", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThanOrEqualTo(String value) {
addCriterion("wcar.creator_user_id <=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLike(String value) {
addCriterion("wcar.creator_user_id like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotLike(String value) {
addCriterion("wcar.creator_user_id not like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdIn(List<String> values) {
addCriterion("wcar.creator_user_id in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotIn(List<String> values) {
addCriterion("wcar.creator_user_id not in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdBetween(String value1, String value2) {
addCriterion("wcar.creator_user_id between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotBetween(String value1, String value2) {
addCriterion("wcar.creator_user_id not between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andNumIsNull() {
addCriterion("wcar.num is null");
return (Criteria) this;
}
public Criteria andNumIsNotNull() {
addCriterion("wcar.num is not null");
return (Criteria) this;
}
public Criteria andNumEqualTo(Integer value) {
addCriterion("wcar.num =", value, "num");
return (Criteria) this;
}
public Criteria andNumNotEqualTo(Integer value) {
addCriterion("wcar.num <>", value, "num");
return (Criteria) this;
}
public Criteria andNumGreaterThan(Integer value) {
addCriterion("wcar.num >", value, "num");
return (Criteria) this;
}
public Criteria andNumGreaterThanOrEqualTo(Integer value) {
addCriterion("wcar.num >=", value, "num");
return (Criteria) this;
}
public Criteria andNumLessThan(Integer value) {
addCriterion("wcar.num <", value, "num");
return (Criteria) this;
}
public Criteria andNumLessThanOrEqualTo(Integer value) {
addCriterion("wcar.num <=", value, "num");
return (Criteria) this;
}
public Criteria andNumIn(List<Integer> values) {
addCriterion("wcar.num in", values, "num");
return (Criteria) this;
}
public Criteria andNumNotIn(List<Integer> values) {
addCriterion("wcar.num not in", values, "num");
return (Criteria) this;
}
public Criteria andNumBetween(Integer value1, Integer value2) {
addCriterion("wcar.num between", value1, value2, "num");
return (Criteria) this;
}
public Criteria andNumNotBetween(Integer value1, Integer value2) {
addCriterion("wcar.num not between", value1, value2, "num");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("wcar.create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("wcar.create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("wcar.create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("wcar.create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("wcar.create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("wcar.create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("wcar.create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("wcar.create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("wcar.create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("wcar.create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("wcar.create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("wcar.create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
此实体关联 表是:clazz_albums_recordclazz_albums_record
*
* @mbggenerated do_not_delete_during_merge Fri Apr 27 10:45:06 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.repository;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ClazzAlbumsMapper {
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int countByExample(ClazzAlbumsExample example);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int deleteByExample(ClazzAlbumsExample example);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int insert(ClazzAlbums record);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int insertSelective(ClazzAlbums record);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
List<ClazzAlbums> selectByExample(ClazzAlbumsExample example);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
ClazzAlbums selectByPrimaryKey(Long id);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByExampleSelective(@Param("record") ClazzAlbums record, @Param("example") ClazzAlbumsExample example);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByExample(@Param("record") ClazzAlbums record, @Param("example") ClazzAlbumsExample example);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByPrimaryKeySelective(ClazzAlbums record);
/**
clazz_albums
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByPrimaryKey(ClazzAlbums record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.repository;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterialExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ClazzAlbumsMaterialMapper {
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int countByExample(ClazzAlbumsMaterialExample example);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int deleteByExample(ClazzAlbumsMaterialExample example);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int insert(ClazzAlbumsMaterial record);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int insertSelective(ClazzAlbumsMaterial record);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
List<ClazzAlbumsMaterial> selectByExample(ClazzAlbumsMaterialExample example);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
ClazzAlbumsMaterial selectByPrimaryKey(Long id);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByExampleSelective(@Param("record") ClazzAlbumsMaterial record, @Param("example") ClazzAlbumsMaterialExample example);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByExample(@Param("record") ClazzAlbumsMaterial record, @Param("example") ClazzAlbumsMaterialExample example);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByPrimaryKeySelective(ClazzAlbumsMaterial record);
/**
clazz_albums_material
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByPrimaryKey(ClazzAlbumsMaterial record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.repository;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ClazzAlbumsRecordMapper {
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int countByExample(ClazzAlbumsRecordExample example);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int deleteByExample(ClazzAlbumsRecordExample example);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int insert(ClazzAlbumsRecord record);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int insertSelective(ClazzAlbumsRecord record);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
List<ClazzAlbumsRecord> selectByExample(ClazzAlbumsRecordExample example);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
ClazzAlbumsRecord selectByPrimaryKey(Long id);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByExampleSelective(@Param("record") ClazzAlbumsRecord record, @Param("example") ClazzAlbumsRecordExample example);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByExample(@Param("record") ClazzAlbumsRecord record, @Param("example") ClazzAlbumsRecordExample example);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByPrimaryKeySelective(ClazzAlbumsRecord record);
/**
clazz_albums_record
*
* @mbggenerated Fri Apr 27 10:45:06 CST 2018
*/
int updateByPrimaryKey(ClazzAlbumsRecord record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.clazzalbum.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterialExample;
import java.util.List;
public interface IClazzAlbumsMaterialService {
/**
* 创建对应事例
* @param newClazzAlbumsMaterialEntry
* @return
* @throws ServiceException
*/
public long create(ClazzAlbumsMaterial newClazzAlbumsMaterialEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newClazzAlbumsMaterialEntry
* @return
* @throws ServiceException
*/
public boolean update(ClazzAlbumsMaterial newClazzAlbumsMaterialEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public ClazzAlbumsMaterial get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<ClazzAlbumsMaterial> loadByPages(ClazzAlbumsMaterialExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.clazzalbum.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecordExample;
import java.util.List;
public interface IClazzAlbumsRecordService {
/**
* 创建对应事例
* @param newClazzAlbumsRecordEntry
* @return
* @throws ServiceException
*/
public long create(ClazzAlbumsRecord newClazzAlbumsRecordEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newClazzAlbumsRecordEntry
* @return
* @throws ServiceException
*/
public boolean update(ClazzAlbumsRecord newClazzAlbumsRecordEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public ClazzAlbumsRecord get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<ClazzAlbumsRecord> loadByPages(ClazzAlbumsRecordExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.clazzalbum.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsExample;
import java.util.List;
public interface IClazzAlbumsService {
/**
* 创建对应事例
* @param newClazzAlbumsEntry
* @return
* @throws ServiceException
*/
public long create(ClazzAlbums newClazzAlbumsEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newClazzAlbumsEntry
* @return
* @throws ServiceException
*/
public boolean update(ClazzAlbums newClazzAlbumsEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public ClazzAlbums get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<ClazzAlbums> loadByPages(ClazzAlbumsExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.clazzalbum.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterialExample;
import com.zhzf.fpj.xcx.clazzalbum.repository.ClazzAlbumsMaterialMapper;
import com.zhzf.fpj.xcx.clazzalbum.service.IClazzAlbumsMaterialService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class ClazzAlbumsMaterialService implements IClazzAlbumsMaterialService {
final static Logger logger = LoggerFactory.getLogger(ClazzAlbumsMaterialService.class);
@Resource
private ClazzAlbumsMaterialMapper clazzAlbumsMaterialMapper;
@Override
public long create(ClazzAlbumsMaterial newClazzAlbumsMaterialEntry) throws ServiceException {
try{
clazzAlbumsMaterialMapper.insert(newClazzAlbumsMaterialEntry);
long primaryKeyId = newClazzAlbumsMaterialEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(ClazzAlbumsMaterial newClazzAlbumsMaterialEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
clazzAlbumsMaterialMapper.updateByPrimaryKey(newClazzAlbumsMaterialEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public ClazzAlbumsMaterial get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return clazzAlbumsMaterialMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<ClazzAlbumsMaterial> loadByPages(ClazzAlbumsMaterialExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return clazzAlbumsMaterialMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.clazzalbum.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecordExample;
import com.zhzf.fpj.xcx.clazzalbum.repository.ClazzAlbumsRecordMapper;
import com.zhzf.fpj.xcx.clazzalbum.service.IClazzAlbumsRecordService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class ClazzAlbumsRecordService implements IClazzAlbumsRecordService {
final static Logger logger = LoggerFactory.getLogger(ClazzAlbumsRecordService.class);
@Resource
private ClazzAlbumsRecordMapper clazzAlbumsRecordMapper;
@Override
public long create(ClazzAlbumsRecord newClazzAlbumsRecordEntry) throws ServiceException {
try{
clazzAlbumsRecordMapper.insert(newClazzAlbumsRecordEntry);
long primaryKeyId = newClazzAlbumsRecordEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(ClazzAlbumsRecord newClazzAlbumsRecordEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
clazzAlbumsRecordMapper.updateByPrimaryKey(newClazzAlbumsRecordEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public ClazzAlbumsRecord get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return clazzAlbumsRecordMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<ClazzAlbumsRecord> loadByPages(ClazzAlbumsRecordExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return clazzAlbumsRecordMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.clazzalbum.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsExample;
import com.zhzf.fpj.xcx.clazzalbum.repository.ClazzAlbumsMapper;
import com.zhzf.fpj.xcx.clazzalbum.service.IClazzAlbumsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class ClazzAlbumsService implements IClazzAlbumsService {
final static Logger logger = LoggerFactory.getLogger(ClazzAlbumsService.class);
@Resource
private ClazzAlbumsMapper clazzAlbumsMapper;
@Override
public long create(ClazzAlbums newClazzAlbumsEntry) throws ServiceException {
try{
clazzAlbumsMapper.insert(newClazzAlbumsEntry);
long primaryKeyId = newClazzAlbumsEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(ClazzAlbums newClazzAlbumsEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
clazzAlbumsMapper.updateByPrimaryKey(newClazzAlbumsEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public ClazzAlbums get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return clazzAlbumsMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<ClazzAlbums> loadByPages(ClazzAlbumsExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return clazzAlbumsMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.clazzalbum.repository.ClazzAlbumsMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<id column="wca_id" property="id" jdbcType="BIGINT" />
<result column="wca_unique_code" property="uniqueCode" jdbcType="VARCHAR" />
<result column="wca_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="wca_creator_user_id" property="creatorUserId" jdbcType="VARCHAR" />
<result column="wca_name" property="name" jdbcType="VARCHAR" />
<result column="wca_status" property="status" jdbcType="INTEGER" />
<result column="wca_num" property="num" jdbcType="INTEGER" />
<result column="wca_create_time" property="createTime" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
wca.id as wca_id, wca.unique_code as wca_unique_code, wca.class_code as wca_class_code,
wca.creator_user_id as wca_creator_user_id, wca.name as wca_name, wca.status as wca_status,
wca.num as wca_num, wca.create_time as wca_create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from clazz_albums wca
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select
<include refid="Base_Column_List" />
from clazz_albums wca
where wca.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
delete from clazz_albums
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
delete from clazz_albums wca
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
insert into clazz_albums (id, unique_code, class_code,
creator_user_id, name, status,
num, create_time)
values (#{id,jdbcType=BIGINT}, #{uniqueCode,jdbcType=VARCHAR}, #{classCode,jdbcType=VARCHAR},
#{creatorUserId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{num,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
insert into clazz_albums
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uniqueCode != null" >
unique_code,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="creatorUserId != null" >
creator_user_id,
</if>
<if test="name != null" >
name,
</if>
<if test="status != null" >
status,
</if>
<if test="num != null" >
num,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="uniqueCode != null" >
#{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
#{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
<if test="num != null" >
#{num,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select count(*) from clazz_albums wca
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums wca
<set >
<if test="record.id != null" >
wca.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.uniqueCode != null" >
wca.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
wca.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.creatorUserId != null" >
wca.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
</if>
<if test="record.name != null" >
wca.name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
wca.status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.num != null" >
wca.num = #{record.num,jdbcType=INTEGER},
</if>
<if test="record.createTime != null" >
wca.create_time = #{record.createTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums wca
set wca.id = #{record.id,jdbcType=BIGINT},
wca.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
wca.class_code = #{record.classCode,jdbcType=VARCHAR},
wca.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
wca.name = #{record.name,jdbcType=VARCHAR},
wca.status = #{record.status,jdbcType=INTEGER},
wca.num = #{record.num,jdbcType=INTEGER},
wca.create_time = #{record.createTime,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums
<set >
<if test="uniqueCode != null" >
unique_code = #{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
<if test="num != null" >
num = #{num,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums
set unique_code = #{uniqueCode,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
num = #{num,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.clazzalbum.repository.ClazzAlbumsMaterialMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<id column="wcam_id" property="id" jdbcType="BIGINT" />
<result column="wcam_unique_code" property="uniqueCode" jdbcType="VARCHAR" />
<result column="wcam_albums_unique" property="albumsUnique" jdbcType="VARCHAR" />
<result column="wcam_record_unique" property="recordUnique" jdbcType="VARCHAR" />
<result column="wcam_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="wcam_creator_user_id" property="creatorUserId" jdbcType="VARCHAR" />
<result column="wcam_type" property="type" jdbcType="INTEGER" />
<result column="wcam_url" property="url" jdbcType="VARCHAR" />
<result column="wcam_status" property="status" jdbcType="INTEGER" />
<result column="wcam_order_num" property="orderNum" jdbcType="INTEGER" />
<result column="wcam_create_time" property="createTime" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
wcam.id as wcam_id, wcam.unique_code as wcam_unique_code, wcam.albums_unique as wcam_albums_unique,
wcam.record_unique as wcam_record_unique, wcam.class_code as wcam_class_code, wcam.creator_user_id as wcam_creator_user_id,
wcam.type as wcam_type, wcam.url as wcam_url, wcam.status as wcam_status, wcam.order_num as wcam_order_num,
wcam.create_time as wcam_create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterialExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from clazz_albums_material wcam
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select
<include refid="Base_Column_List" />
from clazz_albums_material wcam
where wcam.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
delete from clazz_albums_material
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterialExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
delete from clazz_albums_material wcam
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
insert into clazz_albums_material (id, unique_code, albums_unique,
record_unique, class_code, creator_user_id,
type, url, status,
order_num, create_time)
values (#{id,jdbcType=BIGINT}, #{uniqueCode,jdbcType=VARCHAR}, #{albumsUnique,jdbcType=VARCHAR},
#{recordUnique,jdbcType=VARCHAR}, #{classCode,jdbcType=VARCHAR}, #{creatorUserId,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{orderNum,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
insert into clazz_albums_material
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uniqueCode != null" >
unique_code,
</if>
<if test="albumsUnique != null" >
albums_unique,
</if>
<if test="recordUnique != null" >
record_unique,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="creatorUserId != null" >
creator_user_id,
</if>
<if test="type != null" >
type,
</if>
<if test="url != null" >
url,
</if>
<if test="status != null" >
status,
</if>
<if test="orderNum != null" >
order_num,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="uniqueCode != null" >
#{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="albumsUnique != null" >
#{albumsUnique,jdbcType=VARCHAR},
</if>
<if test="recordUnique != null" >
#{recordUnique,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
#{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="url != null" >
#{url,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
<if test="orderNum != null" >
#{orderNum,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterialExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select count(*) from clazz_albums_material wcam
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_material wcam
<set >
<if test="record.id != null" >
wcam.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.uniqueCode != null" >
wcam.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
</if>
<if test="record.albumsUnique != null" >
wcam.albums_unique = #{record.albumsUnique,jdbcType=VARCHAR},
</if>
<if test="record.recordUnique != null" >
wcam.record_unique = #{record.recordUnique,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
wcam.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.creatorUserId != null" >
wcam.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
wcam.type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.url != null" >
wcam.url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
wcam.status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.orderNum != null" >
wcam.order_num = #{record.orderNum,jdbcType=INTEGER},
</if>
<if test="record.createTime != null" >
wcam.create_time = #{record.createTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_material wcam
set wcam.id = #{record.id,jdbcType=BIGINT},
wcam.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
wcam.albums_unique = #{record.albumsUnique,jdbcType=VARCHAR},
wcam.record_unique = #{record.recordUnique,jdbcType=VARCHAR},
wcam.class_code = #{record.classCode,jdbcType=VARCHAR},
wcam.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
wcam.type = #{record.type,jdbcType=INTEGER},
wcam.url = #{record.url,jdbcType=VARCHAR},
wcam.status = #{record.status,jdbcType=INTEGER},
wcam.order_num = #{record.orderNum,jdbcType=INTEGER},
wcam.create_time = #{record.createTime,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_material
<set >
<if test="uniqueCode != null" >
unique_code = #{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="albumsUnique != null" >
albums_unique = #{albumsUnique,jdbcType=VARCHAR},
</if>
<if test="recordUnique != null" >
record_unique = #{recordUnique,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="type != null" >
type = #{type,jdbcType=INTEGER},
</if>
<if test="url != null" >
url = #{url,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
<if test="orderNum != null" >
order_num = #{orderNum,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsMaterial" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_material
set unique_code = #{uniqueCode,jdbcType=VARCHAR},
albums_unique = #{albumsUnique,jdbcType=VARCHAR},
record_unique = #{recordUnique,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
url = #{url,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
order_num = #{orderNum,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.clazzalbum.repository.ClazzAlbumsRecordMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<id column="wcar_id" property="id" jdbcType="BIGINT" />
<result column="wcar_unique_code" property="uniqueCode" jdbcType="VARCHAR" />
<result column="wcar_albums_unique" property="albumsUnique" jdbcType="VARCHAR" />
<result column="wcar_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="wcar_creator_user_id" property="creatorUserId" jdbcType="VARCHAR" />
<result column="wcar_num" property="num" jdbcType="INTEGER" />
<result column="wcar_create_time" property="createTime" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
wcar.id as wcar_id, wcar.unique_code as wcar_unique_code, wcar.albums_unique as wcar_albums_unique,
wcar.class_code as wcar_class_code, wcar.creator_user_id as wcar_creator_user_id,
wcar.num as wcar_num, wcar.create_time as wcar_create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecordExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from clazz_albums_record wcar
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select
<include refid="Base_Column_List" />
from clazz_albums_record wcar
where wcar.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
delete from clazz_albums_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecordExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
delete from clazz_albums_record wcar
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
insert into clazz_albums_record (id, unique_code, albums_unique,
class_code, creator_user_id, num,
create_time)
values (#{id,jdbcType=BIGINT}, #{uniqueCode,jdbcType=VARCHAR}, #{albumsUnique,jdbcType=VARCHAR},
#{classCode,jdbcType=VARCHAR}, #{creatorUserId,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER},
#{createTime,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
insert into clazz_albums_record
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uniqueCode != null" >
unique_code,
</if>
<if test="albumsUnique != null" >
albums_unique,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="creatorUserId != null" >
creator_user_id,
</if>
<if test="num != null" >
num,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="uniqueCode != null" >
#{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="albumsUnique != null" >
#{albumsUnique,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
#{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="num != null" >
#{num,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecordExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
select count(*) from clazz_albums_record wcar
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_record wcar
<set >
<if test="record.id != null" >
wcar.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.uniqueCode != null" >
wcar.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
</if>
<if test="record.albumsUnique != null" >
wcar.albums_unique = #{record.albumsUnique,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
wcar.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.creatorUserId != null" >
wcar.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
</if>
<if test="record.num != null" >
wcar.num = #{record.num,jdbcType=INTEGER},
</if>
<if test="record.createTime != null" >
wcar.create_time = #{record.createTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_record wcar
set wcar.id = #{record.id,jdbcType=BIGINT},
wcar.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
wcar.albums_unique = #{record.albumsUnique,jdbcType=VARCHAR},
wcar.class_code = #{record.classCode,jdbcType=VARCHAR},
wcar.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
wcar.num = #{record.num,jdbcType=INTEGER},
wcar.create_time = #{record.createTime,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_record
<set >
<if test="uniqueCode != null" >
unique_code = #{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="albumsUnique != null" >
albums_unique = #{albumsUnique,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="num != null" >
num = #{num,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbumsRecord" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:45:06 CST 2018.
-->
update clazz_albums_record
set unique_code = #{uniqueCode,jdbcType=VARCHAR},
albums_unique = #{albumsUnique,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
num = #{num,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<!--<settings>-->
<!--<setting name="logImpl" value="STDOUT_LOGGING" />-->
<!--</settings>-->
<typeAliases>
<package name="com.zhzf.fpj.xcx.clazzalbum.model"/>
</typeAliases>
<mappers>
<mapper resource="META-INF/mappers/ClazzAlbumsMapper.xml"/>
<mapper resource="META-INF/mappers/ClazzAlbumsMaterialMapper.xml"/>
<mapper resource="META-INF/mappers/ClazzAlbumsRecordMapper.xml"/>
</mappers>
</configuration>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<classPathEntry
location="/Users/ethanlam/Documents/base_env/apache-maven-repo/mysql/mysql-connector-java/5.1.35/mysql-connector-java-5.1.35.jar" />
<context id="notice-check" targetRuntime="MyBatis3">
<commentGenerator>
<property name="suppressAllComments" value="false" />
<property name="suppressDate" value="false"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://10.136.55.211:3306/wbyb_clazzalbum?useUnicode=true"
userId="weixiao"
password="Weixiao@123">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="com.zhzf.fpj.xcx.clazzalbum.model"
targetProject="src/main/java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
<property name="rootClass" value="com.zhzf.fpj.xcx.model.EntityBean"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="META-INF.mappers" targetProject="src/main/resources">
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.zhzf.fpj.xcx.clazzalbum.repository" targetProject="src/main/java">
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!-- 配置需要生成的表对象逻辑 -->
<table schema="wbyb_muc" tableName="clazz_albums" domainObjectName="ClazzAlbums" alias="wca">
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="clazz_albums_material" domainObjectName="ClazzAlbumsMaterial" alias="wcam">
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="clazz_albums_record" domainObjectName="ClazzAlbumsRecord" alias="wcar">
<property name="my.isgen.usekeys" value="true"/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file \ No newline at end of file
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>com.zhzf.fpj.xcx</groupId> <groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-buiness</artifactId> <artifactId>core-business</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<artifactId>core-buiness-demo-sec</artifactId> <artifactId>core-business-demo-sec</artifactId>
<name>core-buiness-demo-sec</name> <name>core-business-demo-sec</name>
<description>core-buiness-demo-sec</description> <description>core-business-demo-sec</description>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
......
sharding.jdbc.datasource.names=ds_0,ds_1
sharding.jdbc.datasource.ds_0.type=org.apache.commons.dbcp.BasicDataSource
sharding.jdbc.datasource.ds_0.driver-class-name=com.mysql.jdbc.Driver
sharding.jdbc.datasource.ds_0.url=jdbc:mysql://115.28.171.4:3306/demo_ds_0
sharding.jdbc.datasource.ds_0.username=root
sharding.jdbc.datasource.ds_0.password=123456
sharding.jdbc.datasource.ds_1.type=org.apache.commons.dbcp.BasicDataSource
sharding.jdbc.datasource.ds_1.driver-class-name=com.mysql.jdbc.Driver
sharding.jdbc.datasource.ds_1.url=jdbc:mysql://115.28.171.4:3306/demo_ds_1
sharding.jdbc.datasource.ds_1.username=root
sharding.jdbc.datasource.ds_1.password=123456
sharding.jdbc.config.sharding.default-database-strategy.inline.sharding-column=user_id
sharding.jdbc.config.sharding.default-database-strategy.inline.algorithm-expression=ds_${user_id % 2}
sharding.jdbc.config.sharding.tables.t_order.actual-data-nodes=ds_${0..1}.t_order_${0..1}
sharding.jdbc.config.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
sharding.jdbc.config.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order_${order_id % 2}
sharding.jdbc.config.sharding.tables.t_order.key-generator-column-name=order_id
sharding.jdbc.config.sharding.tables.t_order_item.actual-data-nodes=ds_${0..1}.t_order_item_${0..1}
sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item_${order_id % 2}
sharding.jdbc.config.sharding.tables.t_order_item.key-generator-column-name=order_item_id
sharding.jdbc.config.sharding.props.sql.show=false
sharding.jdbc.config.orchestration.name=demo_spring_boot_ds_sharding
sharding.jdbc.config.orchestration.type=sharding
sharding.jdbc.config.orchestration.overwrite=false
sharding.jdbc.config.orchestration.zookeeper.namespace=orchestration-spring-boot-demo
sharding.jdbc.config.orchestration.zookeeper.server-lists=localhost:2181
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="log.context.name" value="sharding-jdbc-spring-namespace-jpa-example" />
<property name="log.charset" value="UTF-8" />
<property name="log.pattern" value="[%-5level] %date --%thread-- [%logger] %msg %n" />
<contextName>${log.context.name}</contextName>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="${log.charset}">
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="com.zaxxer.hikari" level="WARN" />
<root>
<level value="DEBUG" />
<appender-ref ref="STDOUT" />
</root>
</configuration>
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>com.zhzf.fpj.xcx</groupId> <groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-buiness</artifactId> <artifactId>core-business</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<artifactId>core-buiness-demo</artifactId> <artifactId>core-business-demo</artifactId>
<name>core-buiness-demo</name> <name>core-business-demo</name>
<description>core-buiness-demo</description> <description>core-business-demo</description>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
...@@ -33,6 +33,11 @@ ...@@ -33,6 +33,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
</plugin> </plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2.1</version>
</plugin>
</plugins> </plugins>
</build> </build>
......
spring.jpa.properties.hibernate.hbm2ddl.auto=create
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
#spring.jpa.properties.hibernate.show_sql=true
mybatis.config-location=classpath:META-INF/mybatis-config.xml
spring.profiles.active=sharding
#spring.profiles.active=sharding-db
#spring.profiles.active=sharding-tbl
#spring.profiles.active=masterslave
#spring.profiles.active=sharding-masterslave
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<classPathEntry
location="/Users/Ethan/Documents/apache-maven-3.2.2/repo/mysql/mysql-connector-java/5.1.35/mysql-connector-java-5.1.35.jar" />
<context id="notice-check" targetRuntime="MyBatis3">
<plugin type="org.mybatis.generator.maven.ext.UseGeneratedKeysPlugin"/>
<commentGenerator>
<property name="suppressAllComments" value="false" />
<property name="suppressDate" value="false"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://115.28.171.4:3306/wxq_notice?useUnicode=true"
userId="root"
password="123456">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="com.qtone.wxq.notice.presist.model"
targetProject="src/main/java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
<property name="rootClass" value="com.qtone.wxq.commons.domain.base.EntityDomain"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="sqlmap.notice" targetProject="src/main/resources">
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.qtone.wxq.notice.presist.mapping" targetProject="src/main/java">
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!-- 配置需要生成的表对象逻辑 -->
<table schema="wxq_notice" tableName="notice_subscr" domainObjectName="NoticeSubscrEntry" alias="nps">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_attachment" domainObjectName="NoticeAttachmentEntry" alias="nae">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="sent_remark" domainObjectName="SentRemarkEntry" alias="sre">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_comment" domainObjectName="NoticeCommentEntry" alias="nct">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_school_permission" domainObjectName="NoticeSchoolPermissionEntry" alias="nsp">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_teacher_permission" domainObjectName="NoticeTeacherPermissionEntry" alias="ntp">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_review_del" domainObjectName="NoticeReviewDelEntry" alias="nrd">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice" domainObjectName="NoticeEntry" alias="nti">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_answer" domainObjectName="NoticeAnswerEntry" alias="na">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_confirm" domainObjectName="NoticeConfirmEntry" alias="nc">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice_subject" domainObjectName="NoticeSubjectEntry" alias="ns">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wxq_notice" tableName="notice" domainObjectName="NoticeEntry" alias="nti">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file \ No newline at end of file
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-business</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>core-business-muc</artifactId>
<name>core-business-muc</name>
<description>core-business-muc</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>io.shardingjdbc</groupId>
<artifactId>sharding-jdbc-orchestration-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>business-sharding-strategy</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2.1</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
/*
* Copyright 1999-2015 dangdang.com.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* </p>
*/
package com.zhzf.fpj.xcx.muc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
@SpringBootApplication
public class SpringBootDataMybatisMain {
// CHECKSTYLE:OFF
public static void main(final String[] args) {
// CHECKSTYLE:ON
System.out.println("start.....1");
Object[] starts = new Object[1];
starts[0] = SpringBootDataMybatisMain.class;
SpringApplication app = new SpringApplication(starts);
ApplicationContext applicationContext = app.run(args);
System.out.println("start.....2");
//applicationContext.getBean(IMucClassService.class).demo("local_dao-demo-sec");
//OrchestrationDataSourceCloseableUtil.closeQuietly(applicationContext.getBean(OrchestrationShardingDataSource.class));
}
}
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucClass extends EntityBean {
/**
* ,所属表字段为 muc_class.id
*/
private Long id;
/**
* 班级码,所属表字段为 muc_class.class_code
*/
private String classCode;
/**
* 班级名称,所属表字段为 muc_class.class_name
*/
private String className;
/**
* 微信群组id,所属表字段为 muc_class.group_id
*/
private String groupId;
/**
* 学段 1幼儿园 2小学 3初中 4高中,所属表字段为 muc_class.xd
*/
private Integer xd;
/**
* 班主任的unionId,所属表字段为 muc_class.master_unionId
*/
private String masterUnionid;
/**
* 创建人的unionId,所属表字段为 muc_class.creator
*/
private String creator;
/**
* 创建时间,所属表字段为 muc_class.create_date
*/
private Long createDate;
/**
* 最后修改人微信唯一码,所属表字段为 muc_class.last_modifier
*/
private String lastModifier;
/**
* 最后修改时间,所属表字段为 muc_class.last_modDate
*/
private Long lastModdate;
/**
* 状态 10正常 30删除,所属表字段为 muc_class.status
*/
private Integer status;
/**
muc_class.id
*
* @return the value of muc_class.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_class.id
*
* @param id the value for muc_class.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_class.class_code
*
* @return the value of muc_class.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
muc_class.class_code
*
* @param classCode the value for muc_class.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
muc_class.class_name
*
* @return the value of muc_class.class_name
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getClassName() {
return className;
}
/**
muc_class.class_name
*
* @param className the value for muc_class.class_name
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setClassName(String className) {
this.className = className == null ? null : className.trim();
}
/**
muc_class.group_id
*
* @return the value of muc_class.group_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getGroupId() {
return groupId;
}
/**
muc_class.group_id
*
* @param groupId the value for muc_class.group_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setGroupId(String groupId) {
this.groupId = groupId == null ? null : groupId.trim();
}
/**
muc_class.xd
*
* @return the value of muc_class.xd
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getXd() {
return xd;
}
/**
muc_class.xd
*
* @param xd the value for muc_class.xd
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setXd(Integer xd) {
this.xd = xd;
}
/**
muc_class.master_unionId
*
* @return the value of muc_class.master_unionId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getMasterUnionid() {
return masterUnionid;
}
/**
muc_class.master_unionId
*
* @param masterUnionid the value for muc_class.master_unionId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setMasterUnionid(String masterUnionid) {
this.masterUnionid = masterUnionid == null ? null : masterUnionid.trim();
}
/**
muc_class.creator
*
* @return the value of muc_class.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getCreator() {
return creator;
}
/**
muc_class.creator
*
* @param creator the value for muc_class.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreator(String creator) {
this.creator = creator == null ? null : creator.trim();
}
/**
muc_class.create_date
*
* @return the value of muc_class.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getCreateDate() {
return createDate;
}
/**
muc_class.create_date
*
* @param createDate the value for muc_class.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreateDate(Long createDate) {
this.createDate = createDate;
}
/**
muc_class.last_modifier
*
* @return the value of muc_class.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getLastModifier() {
return lastModifier;
}
/**
muc_class.last_modifier
*
* @param lastModifier the value for muc_class.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModifier(String lastModifier) {
this.lastModifier = lastModifier == null ? null : lastModifier.trim();
}
/**
muc_class.last_modDate
*
* @return the value of muc_class.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getLastModdate() {
return lastModdate;
}
/**
muc_class.last_modDate
*
* @param lastModdate the value for muc_class.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModdate(Long lastModdate) {
this.lastModdate = lastModdate;
}
/**
muc_class.status
*
* @return the value of muc_class.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
muc_class.status
*
* @param status the value for muc_class.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucClassExample {
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucClassExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucc.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucc.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucc.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucc.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucc.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucc.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucc.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucc.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucc.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucc.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucc.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucc.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("mucc.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("mucc.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("mucc.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("mucc.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("mucc.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("mucc.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("mucc.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("mucc.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("mucc.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("mucc.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("mucc.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("mucc.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("mucc.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("mucc.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassNameIsNull() {
addCriterion("mucc.class_name is null");
return (Criteria) this;
}
public Criteria andClassNameIsNotNull() {
addCriterion("mucc.class_name is not null");
return (Criteria) this;
}
public Criteria andClassNameEqualTo(String value) {
addCriterion("mucc.class_name =", value, "className");
return (Criteria) this;
}
public Criteria andClassNameNotEqualTo(String value) {
addCriterion("mucc.class_name <>", value, "className");
return (Criteria) this;
}
public Criteria andClassNameGreaterThan(String value) {
addCriterion("mucc.class_name >", value, "className");
return (Criteria) this;
}
public Criteria andClassNameGreaterThanOrEqualTo(String value) {
addCriterion("mucc.class_name >=", value, "className");
return (Criteria) this;
}
public Criteria andClassNameLessThan(String value) {
addCriterion("mucc.class_name <", value, "className");
return (Criteria) this;
}
public Criteria andClassNameLessThanOrEqualTo(String value) {
addCriterion("mucc.class_name <=", value, "className");
return (Criteria) this;
}
public Criteria andClassNameLike(String value) {
addCriterion("mucc.class_name like", value, "className");
return (Criteria) this;
}
public Criteria andClassNameNotLike(String value) {
addCriterion("mucc.class_name not like", value, "className");
return (Criteria) this;
}
public Criteria andClassNameIn(List<String> values) {
addCriterion("mucc.class_name in", values, "className");
return (Criteria) this;
}
public Criteria andClassNameNotIn(List<String> values) {
addCriterion("mucc.class_name not in", values, "className");
return (Criteria) this;
}
public Criteria andClassNameBetween(String value1, String value2) {
addCriterion("mucc.class_name between", value1, value2, "className");
return (Criteria) this;
}
public Criteria andClassNameNotBetween(String value1, String value2) {
addCriterion("mucc.class_name not between", value1, value2, "className");
return (Criteria) this;
}
public Criteria andGroupIdIsNull() {
addCriterion("mucc.group_id is null");
return (Criteria) this;
}
public Criteria andGroupIdIsNotNull() {
addCriterion("mucc.group_id is not null");
return (Criteria) this;
}
public Criteria andGroupIdEqualTo(String value) {
addCriterion("mucc.group_id =", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotEqualTo(String value) {
addCriterion("mucc.group_id <>", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdGreaterThan(String value) {
addCriterion("mucc.group_id >", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdGreaterThanOrEqualTo(String value) {
addCriterion("mucc.group_id >=", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLessThan(String value) {
addCriterion("mucc.group_id <", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLessThanOrEqualTo(String value) {
addCriterion("mucc.group_id <=", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLike(String value) {
addCriterion("mucc.group_id like", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotLike(String value) {
addCriterion("mucc.group_id not like", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdIn(List<String> values) {
addCriterion("mucc.group_id in", values, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotIn(List<String> values) {
addCriterion("mucc.group_id not in", values, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdBetween(String value1, String value2) {
addCriterion("mucc.group_id between", value1, value2, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotBetween(String value1, String value2) {
addCriterion("mucc.group_id not between", value1, value2, "groupId");
return (Criteria) this;
}
public Criteria andXdIsNull() {
addCriterion("mucc.xd is null");
return (Criteria) this;
}
public Criteria andXdIsNotNull() {
addCriterion("mucc.xd is not null");
return (Criteria) this;
}
public Criteria andXdEqualTo(Integer value) {
addCriterion("mucc.xd =", value, "xd");
return (Criteria) this;
}
public Criteria andXdNotEqualTo(Integer value) {
addCriterion("mucc.xd <>", value, "xd");
return (Criteria) this;
}
public Criteria andXdGreaterThan(Integer value) {
addCriterion("mucc.xd >", value, "xd");
return (Criteria) this;
}
public Criteria andXdGreaterThanOrEqualTo(Integer value) {
addCriterion("mucc.xd >=", value, "xd");
return (Criteria) this;
}
public Criteria andXdLessThan(Integer value) {
addCriterion("mucc.xd <", value, "xd");
return (Criteria) this;
}
public Criteria andXdLessThanOrEqualTo(Integer value) {
addCriterion("mucc.xd <=", value, "xd");
return (Criteria) this;
}
public Criteria andXdIn(List<Integer> values) {
addCriterion("mucc.xd in", values, "xd");
return (Criteria) this;
}
public Criteria andXdNotIn(List<Integer> values) {
addCriterion("mucc.xd not in", values, "xd");
return (Criteria) this;
}
public Criteria andXdBetween(Integer value1, Integer value2) {
addCriterion("mucc.xd between", value1, value2, "xd");
return (Criteria) this;
}
public Criteria andXdNotBetween(Integer value1, Integer value2) {
addCriterion("mucc.xd not between", value1, value2, "xd");
return (Criteria) this;
}
public Criteria andMasterUnionidIsNull() {
addCriterion("mucc.master_unionId is null");
return (Criteria) this;
}
public Criteria andMasterUnionidIsNotNull() {
addCriterion("mucc.master_unionId is not null");
return (Criteria) this;
}
public Criteria andMasterUnionidEqualTo(String value) {
addCriterion("mucc.master_unionId =", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidNotEqualTo(String value) {
addCriterion("mucc.master_unionId <>", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidGreaterThan(String value) {
addCriterion("mucc.master_unionId >", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidGreaterThanOrEqualTo(String value) {
addCriterion("mucc.master_unionId >=", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidLessThan(String value) {
addCriterion("mucc.master_unionId <", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidLessThanOrEqualTo(String value) {
addCriterion("mucc.master_unionId <=", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidLike(String value) {
addCriterion("mucc.master_unionId like", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidNotLike(String value) {
addCriterion("mucc.master_unionId not like", value, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidIn(List<String> values) {
addCriterion("mucc.master_unionId in", values, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidNotIn(List<String> values) {
addCriterion("mucc.master_unionId not in", values, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidBetween(String value1, String value2) {
addCriterion("mucc.master_unionId between", value1, value2, "masterUnionid");
return (Criteria) this;
}
public Criteria andMasterUnionidNotBetween(String value1, String value2) {
addCriterion("mucc.master_unionId not between", value1, value2, "masterUnionid");
return (Criteria) this;
}
public Criteria andCreatorIsNull() {
addCriterion("mucc.creator is null");
return (Criteria) this;
}
public Criteria andCreatorIsNotNull() {
addCriterion("mucc.creator is not null");
return (Criteria) this;
}
public Criteria andCreatorEqualTo(String value) {
addCriterion("mucc.creator =", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotEqualTo(String value) {
addCriterion("mucc.creator <>", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThan(String value) {
addCriterion("mucc.creator >", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThanOrEqualTo(String value) {
addCriterion("mucc.creator >=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThan(String value) {
addCriterion("mucc.creator <", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThanOrEqualTo(String value) {
addCriterion("mucc.creator <=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLike(String value) {
addCriterion("mucc.creator like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotLike(String value) {
addCriterion("mucc.creator not like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorIn(List<String> values) {
addCriterion("mucc.creator in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotIn(List<String> values) {
addCriterion("mucc.creator not in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorBetween(String value1, String value2) {
addCriterion("mucc.creator between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotBetween(String value1, String value2) {
addCriterion("mucc.creator not between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("mucc.create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("mucc.create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Long value) {
addCriterion("mucc.create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Long value) {
addCriterion("mucc.create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Long value) {
addCriterion("mucc.create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
addCriterion("mucc.create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Long value) {
addCriterion("mucc.create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Long value) {
addCriterion("mucc.create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Long> values) {
addCriterion("mucc.create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Long> values) {
addCriterion("mucc.create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Long value1, Long value2) {
addCriterion("mucc.create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Long value1, Long value2) {
addCriterion("mucc.create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andLastModifierIsNull() {
addCriterion("mucc.last_modifier is null");
return (Criteria) this;
}
public Criteria andLastModifierIsNotNull() {
addCriterion("mucc.last_modifier is not null");
return (Criteria) this;
}
public Criteria andLastModifierEqualTo(String value) {
addCriterion("mucc.last_modifier =", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotEqualTo(String value) {
addCriterion("mucc.last_modifier <>", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThan(String value) {
addCriterion("mucc.last_modifier >", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThanOrEqualTo(String value) {
addCriterion("mucc.last_modifier >=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThan(String value) {
addCriterion("mucc.last_modifier <", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThanOrEqualTo(String value) {
addCriterion("mucc.last_modifier <=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLike(String value) {
addCriterion("mucc.last_modifier like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotLike(String value) {
addCriterion("mucc.last_modifier not like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierIn(List<String> values) {
addCriterion("mucc.last_modifier in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotIn(List<String> values) {
addCriterion("mucc.last_modifier not in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierBetween(String value1, String value2) {
addCriterion("mucc.last_modifier between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotBetween(String value1, String value2) {
addCriterion("mucc.last_modifier not between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModdateIsNull() {
addCriterion("mucc.last_modDate is null");
return (Criteria) this;
}
public Criteria andLastModdateIsNotNull() {
addCriterion("mucc.last_modDate is not null");
return (Criteria) this;
}
public Criteria andLastModdateEqualTo(Long value) {
addCriterion("mucc.last_modDate =", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotEqualTo(Long value) {
addCriterion("mucc.last_modDate <>", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThan(Long value) {
addCriterion("mucc.last_modDate >", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThanOrEqualTo(Long value) {
addCriterion("mucc.last_modDate >=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThan(Long value) {
addCriterion("mucc.last_modDate <", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThanOrEqualTo(Long value) {
addCriterion("mucc.last_modDate <=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateIn(List<Long> values) {
addCriterion("mucc.last_modDate in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotIn(List<Long> values) {
addCriterion("mucc.last_modDate not in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateBetween(Long value1, Long value2) {
addCriterion("mucc.last_modDate between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotBetween(Long value1, Long value2) {
addCriterion("mucc.last_modDate not between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("mucc.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("mucc.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("mucc.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("mucc.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("mucc.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("mucc.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("mucc.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("mucc.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("mucc.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("mucc.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("mucc.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("mucc.status not between", value1, value2, "status");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_classmuc_class
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_class
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucStudent extends EntityBean {
/**
* ,所属表字段为 muc_student.id
*/
private Long id;
/**
* 班级码,所属表字段为 muc_student.class_code
*/
private String classCode;
/**
* 学生id,所属表字段为 muc_student.stu_id
*/
private String stuId;
/**
* 学生姓名,所属表字段为 muc_student.stu_name
*/
private String stuName;
/**
* 性别,所属表字段为 muc_student.gender
*/
private Integer gender;
/**
* 创建人微信唯一码,所属表字段为 muc_student.creator
*/
private String creator;
/**
* 创建时间,所属表字段为 muc_student.create_date
*/
private Long createDate;
/**
* 最后修改人微信唯一码,所属表字段为 muc_student.last_modifier
*/
private String lastModifier;
/**
* 最后修改时间,所属表字段为 muc_student.last_modDate
*/
private Long lastModdate;
/**
* 状态 10正常 30删除,所属表字段为 muc_student.status
*/
private Integer status;
/**
muc_student.id
*
* @return the value of muc_student.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_student.id
*
* @param id the value for muc_student.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_student.class_code
*
* @return the value of muc_student.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
muc_student.class_code
*
* @param classCode the value for muc_student.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
muc_student.stu_id
*
* @return the value of muc_student.stu_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getStuId() {
return stuId;
}
/**
muc_student.stu_id
*
* @param stuId the value for muc_student.stu_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStuId(String stuId) {
this.stuId = stuId == null ? null : stuId.trim();
}
/**
muc_student.stu_name
*
* @return the value of muc_student.stu_name
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getStuName() {
return stuName;
}
/**
muc_student.stu_name
*
* @param stuName the value for muc_student.stu_name
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStuName(String stuName) {
this.stuName = stuName == null ? null : stuName.trim();
}
/**
muc_student.gender
*
* @return the value of muc_student.gender
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getGender() {
return gender;
}
/**
muc_student.gender
*
* @param gender the value for muc_student.gender
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setGender(Integer gender) {
this.gender = gender;
}
/**
muc_student.creator
*
* @return the value of muc_student.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getCreator() {
return creator;
}
/**
muc_student.creator
*
* @param creator the value for muc_student.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreator(String creator) {
this.creator = creator == null ? null : creator.trim();
}
/**
muc_student.create_date
*
* @return the value of muc_student.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getCreateDate() {
return createDate;
}
/**
muc_student.create_date
*
* @param createDate the value for muc_student.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreateDate(Long createDate) {
this.createDate = createDate;
}
/**
muc_student.last_modifier
*
* @return the value of muc_student.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getLastModifier() {
return lastModifier;
}
/**
muc_student.last_modifier
*
* @param lastModifier the value for muc_student.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModifier(String lastModifier) {
this.lastModifier = lastModifier == null ? null : lastModifier.trim();
}
/**
muc_student.last_modDate
*
* @return the value of muc_student.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getLastModdate() {
return lastModdate;
}
/**
muc_student.last_modDate
*
* @param lastModdate the value for muc_student.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModdate(Long lastModdate) {
this.lastModdate = lastModdate;
}
/**
muc_student.status
*
* @return the value of muc_student.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
muc_student.status
*
* @param status the value for muc_student.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucStudentExample {
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucStudentExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucs.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucs.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucs.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucs.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucs.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucs.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucs.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucs.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucs.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucs.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucs.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucs.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("mucs.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("mucs.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("mucs.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("mucs.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("mucs.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("mucs.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("mucs.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("mucs.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("mucs.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("mucs.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("mucs.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("mucs.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("mucs.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("mucs.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andStuIdIsNull() {
addCriterion("mucs.stu_id is null");
return (Criteria) this;
}
public Criteria andStuIdIsNotNull() {
addCriterion("mucs.stu_id is not null");
return (Criteria) this;
}
public Criteria andStuIdEqualTo(String value) {
addCriterion("mucs.stu_id =", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotEqualTo(String value) {
addCriterion("mucs.stu_id <>", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdGreaterThan(String value) {
addCriterion("mucs.stu_id >", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdGreaterThanOrEqualTo(String value) {
addCriterion("mucs.stu_id >=", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLessThan(String value) {
addCriterion("mucs.stu_id <", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLessThanOrEqualTo(String value) {
addCriterion("mucs.stu_id <=", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLike(String value) {
addCriterion("mucs.stu_id like", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotLike(String value) {
addCriterion("mucs.stu_id not like", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdIn(List<String> values) {
addCriterion("mucs.stu_id in", values, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotIn(List<String> values) {
addCriterion("mucs.stu_id not in", values, "stuId");
return (Criteria) this;
}
public Criteria andStuIdBetween(String value1, String value2) {
addCriterion("mucs.stu_id between", value1, value2, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotBetween(String value1, String value2) {
addCriterion("mucs.stu_id not between", value1, value2, "stuId");
return (Criteria) this;
}
public Criteria andStuNameIsNull() {
addCriterion("mucs.stu_name is null");
return (Criteria) this;
}
public Criteria andStuNameIsNotNull() {
addCriterion("mucs.stu_name is not null");
return (Criteria) this;
}
public Criteria andStuNameEqualTo(String value) {
addCriterion("mucs.stu_name =", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotEqualTo(String value) {
addCriterion("mucs.stu_name <>", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameGreaterThan(String value) {
addCriterion("mucs.stu_name >", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameGreaterThanOrEqualTo(String value) {
addCriterion("mucs.stu_name >=", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameLessThan(String value) {
addCriterion("mucs.stu_name <", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameLessThanOrEqualTo(String value) {
addCriterion("mucs.stu_name <=", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameLike(String value) {
addCriterion("mucs.stu_name like", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotLike(String value) {
addCriterion("mucs.stu_name not like", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameIn(List<String> values) {
addCriterion("mucs.stu_name in", values, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotIn(List<String> values) {
addCriterion("mucs.stu_name not in", values, "stuName");
return (Criteria) this;
}
public Criteria andStuNameBetween(String value1, String value2) {
addCriterion("mucs.stu_name between", value1, value2, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotBetween(String value1, String value2) {
addCriterion("mucs.stu_name not between", value1, value2, "stuName");
return (Criteria) this;
}
public Criteria andGenderIsNull() {
addCriterion("mucs.gender is null");
return (Criteria) this;
}
public Criteria andGenderIsNotNull() {
addCriterion("mucs.gender is not null");
return (Criteria) this;
}
public Criteria andGenderEqualTo(Integer value) {
addCriterion("mucs.gender =", value, "gender");
return (Criteria) this;
}
public Criteria andGenderNotEqualTo(Integer value) {
addCriterion("mucs.gender <>", value, "gender");
return (Criteria) this;
}
public Criteria andGenderGreaterThan(Integer value) {
addCriterion("mucs.gender >", value, "gender");
return (Criteria) this;
}
public Criteria andGenderGreaterThanOrEqualTo(Integer value) {
addCriterion("mucs.gender >=", value, "gender");
return (Criteria) this;
}
public Criteria andGenderLessThan(Integer value) {
addCriterion("mucs.gender <", value, "gender");
return (Criteria) this;
}
public Criteria andGenderLessThanOrEqualTo(Integer value) {
addCriterion("mucs.gender <=", value, "gender");
return (Criteria) this;
}
public Criteria andGenderIn(List<Integer> values) {
addCriterion("mucs.gender in", values, "gender");
return (Criteria) this;
}
public Criteria andGenderNotIn(List<Integer> values) {
addCriterion("mucs.gender not in", values, "gender");
return (Criteria) this;
}
public Criteria andGenderBetween(Integer value1, Integer value2) {
addCriterion("mucs.gender between", value1, value2, "gender");
return (Criteria) this;
}
public Criteria andGenderNotBetween(Integer value1, Integer value2) {
addCriterion("mucs.gender not between", value1, value2, "gender");
return (Criteria) this;
}
public Criteria andCreatorIsNull() {
addCriterion("mucs.creator is null");
return (Criteria) this;
}
public Criteria andCreatorIsNotNull() {
addCriterion("mucs.creator is not null");
return (Criteria) this;
}
public Criteria andCreatorEqualTo(String value) {
addCriterion("mucs.creator =", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotEqualTo(String value) {
addCriterion("mucs.creator <>", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThan(String value) {
addCriterion("mucs.creator >", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThanOrEqualTo(String value) {
addCriterion("mucs.creator >=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThan(String value) {
addCriterion("mucs.creator <", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThanOrEqualTo(String value) {
addCriterion("mucs.creator <=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLike(String value) {
addCriterion("mucs.creator like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotLike(String value) {
addCriterion("mucs.creator not like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorIn(List<String> values) {
addCriterion("mucs.creator in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotIn(List<String> values) {
addCriterion("mucs.creator not in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorBetween(String value1, String value2) {
addCriterion("mucs.creator between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotBetween(String value1, String value2) {
addCriterion("mucs.creator not between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("mucs.create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("mucs.create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Long value) {
addCriterion("mucs.create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Long value) {
addCriterion("mucs.create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Long value) {
addCriterion("mucs.create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
addCriterion("mucs.create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Long value) {
addCriterion("mucs.create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Long value) {
addCriterion("mucs.create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Long> values) {
addCriterion("mucs.create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Long> values) {
addCriterion("mucs.create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Long value1, Long value2) {
addCriterion("mucs.create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Long value1, Long value2) {
addCriterion("mucs.create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andLastModifierIsNull() {
addCriterion("mucs.last_modifier is null");
return (Criteria) this;
}
public Criteria andLastModifierIsNotNull() {
addCriterion("mucs.last_modifier is not null");
return (Criteria) this;
}
public Criteria andLastModifierEqualTo(String value) {
addCriterion("mucs.last_modifier =", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotEqualTo(String value) {
addCriterion("mucs.last_modifier <>", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThan(String value) {
addCriterion("mucs.last_modifier >", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThanOrEqualTo(String value) {
addCriterion("mucs.last_modifier >=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThan(String value) {
addCriterion("mucs.last_modifier <", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThanOrEqualTo(String value) {
addCriterion("mucs.last_modifier <=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLike(String value) {
addCriterion("mucs.last_modifier like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotLike(String value) {
addCriterion("mucs.last_modifier not like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierIn(List<String> values) {
addCriterion("mucs.last_modifier in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotIn(List<String> values) {
addCriterion("mucs.last_modifier not in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierBetween(String value1, String value2) {
addCriterion("mucs.last_modifier between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotBetween(String value1, String value2) {
addCriterion("mucs.last_modifier not between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModdateIsNull() {
addCriterion("mucs.last_modDate is null");
return (Criteria) this;
}
public Criteria andLastModdateIsNotNull() {
addCriterion("mucs.last_modDate is not null");
return (Criteria) this;
}
public Criteria andLastModdateEqualTo(Long value) {
addCriterion("mucs.last_modDate =", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotEqualTo(Long value) {
addCriterion("mucs.last_modDate <>", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThan(Long value) {
addCriterion("mucs.last_modDate >", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThanOrEqualTo(Long value) {
addCriterion("mucs.last_modDate >=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThan(Long value) {
addCriterion("mucs.last_modDate <", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThanOrEqualTo(Long value) {
addCriterion("mucs.last_modDate <=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateIn(List<Long> values) {
addCriterion("mucs.last_modDate in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotIn(List<Long> values) {
addCriterion("mucs.last_modDate not in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateBetween(Long value1, Long value2) {
addCriterion("mucs.last_modDate between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotBetween(Long value1, Long value2) {
addCriterion("mucs.last_modDate not between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("mucs.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("mucs.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("mucs.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("mucs.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("mucs.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("mucs.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("mucs.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("mucs.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("mucs.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("mucs.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("mucs.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("mucs.status not between", value1, value2, "status");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_studentmuc_student
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_student
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucStuentRel extends EntityBean {
/**
* ,所属表字段为 muc_stuent_rel.id
*/
private Long id;
/**
* 学生id,所属表字段为 muc_stuent_rel.stu_id
*/
private String stuId;
/**
* 家长用户微信唯一码,所属表字段为 muc_stuent_rel.union_id
*/
private String unionId;
/**
* 关系码,所属表字段为 muc_stuent_rel.relation_code
*/
private Integer relationCode;
/**
* 创建人微信唯一码,所属表字段为 muc_stuent_rel.creator
*/
private String creator;
/**
* 创建时间,所属表字段为 muc_stuent_rel.create_date
*/
private Long createDate;
/**
* 最后修改人微信唯一码,所属表字段为 muc_stuent_rel.last_modifier
*/
private String lastModifier;
/**
* 最后修改时间,所属表字段为 muc_stuent_rel.last_modDate
*/
private Long lastModdate;
/**
* 状态 10正常 30删除,所属表字段为 muc_stuent_rel.status
*/
private Integer status;
/**
muc_stuent_rel.id
*
* @return the value of muc_stuent_rel.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_stuent_rel.id
*
* @param id the value for muc_stuent_rel.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_stuent_rel.stu_id
*
* @return the value of muc_stuent_rel.stu_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getStuId() {
return stuId;
}
/**
muc_stuent_rel.stu_id
*
* @param stuId the value for muc_stuent_rel.stu_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStuId(String stuId) {
this.stuId = stuId == null ? null : stuId.trim();
}
/**
muc_stuent_rel.union_id
*
* @return the value of muc_stuent_rel.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getUnionId() {
return unionId;
}
/**
muc_stuent_rel.union_id
*
* @param unionId the value for muc_stuent_rel.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUnionId(String unionId) {
this.unionId = unionId == null ? null : unionId.trim();
}
/**
muc_stuent_rel.relation_code
*
* @return the value of muc_stuent_rel.relation_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getRelationCode() {
return relationCode;
}
/**
muc_stuent_rel.relation_code
*
* @param relationCode the value for muc_stuent_rel.relation_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setRelationCode(Integer relationCode) {
this.relationCode = relationCode;
}
/**
muc_stuent_rel.creator
*
* @return the value of muc_stuent_rel.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getCreator() {
return creator;
}
/**
muc_stuent_rel.creator
*
* @param creator the value for muc_stuent_rel.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreator(String creator) {
this.creator = creator == null ? null : creator.trim();
}
/**
muc_stuent_rel.create_date
*
* @return the value of muc_stuent_rel.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getCreateDate() {
return createDate;
}
/**
muc_stuent_rel.create_date
*
* @param createDate the value for muc_stuent_rel.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreateDate(Long createDate) {
this.createDate = createDate;
}
/**
muc_stuent_rel.last_modifier
*
* @return the value of muc_stuent_rel.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getLastModifier() {
return lastModifier;
}
/**
muc_stuent_rel.last_modifier
*
* @param lastModifier the value for muc_stuent_rel.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModifier(String lastModifier) {
this.lastModifier = lastModifier == null ? null : lastModifier.trim();
}
/**
muc_stuent_rel.last_modDate
*
* @return the value of muc_stuent_rel.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getLastModdate() {
return lastModdate;
}
/**
muc_stuent_rel.last_modDate
*
* @param lastModdate the value for muc_stuent_rel.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModdate(Long lastModdate) {
this.lastModdate = lastModdate;
}
/**
muc_stuent_rel.status
*
* @return the value of muc_stuent_rel.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
muc_stuent_rel.status
*
* @param status the value for muc_stuent_rel.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucStuentRelExample {
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucStuentRelExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucsr.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucsr.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucsr.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucsr.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucsr.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucsr.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucsr.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucsr.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucsr.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucsr.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucsr.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucsr.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andStuIdIsNull() {
addCriterion("mucsr.stu_id is null");
return (Criteria) this;
}
public Criteria andStuIdIsNotNull() {
addCriterion("mucsr.stu_id is not null");
return (Criteria) this;
}
public Criteria andStuIdEqualTo(String value) {
addCriterion("mucsr.stu_id =", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotEqualTo(String value) {
addCriterion("mucsr.stu_id <>", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdGreaterThan(String value) {
addCriterion("mucsr.stu_id >", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdGreaterThanOrEqualTo(String value) {
addCriterion("mucsr.stu_id >=", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLessThan(String value) {
addCriterion("mucsr.stu_id <", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLessThanOrEqualTo(String value) {
addCriterion("mucsr.stu_id <=", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLike(String value) {
addCriterion("mucsr.stu_id like", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotLike(String value) {
addCriterion("mucsr.stu_id not like", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdIn(List<String> values) {
addCriterion("mucsr.stu_id in", values, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotIn(List<String> values) {
addCriterion("mucsr.stu_id not in", values, "stuId");
return (Criteria) this;
}
public Criteria andStuIdBetween(String value1, String value2) {
addCriterion("mucsr.stu_id between", value1, value2, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotBetween(String value1, String value2) {
addCriterion("mucsr.stu_id not between", value1, value2, "stuId");
return (Criteria) this;
}
public Criteria andUnionIdIsNull() {
addCriterion("mucsr.union_id is null");
return (Criteria) this;
}
public Criteria andUnionIdIsNotNull() {
addCriterion("mucsr.union_id is not null");
return (Criteria) this;
}
public Criteria andUnionIdEqualTo(String value) {
addCriterion("mucsr.union_id =", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotEqualTo(String value) {
addCriterion("mucsr.union_id <>", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThan(String value) {
addCriterion("mucsr.union_id >", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThanOrEqualTo(String value) {
addCriterion("mucsr.union_id >=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThan(String value) {
addCriterion("mucsr.union_id <", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThanOrEqualTo(String value) {
addCriterion("mucsr.union_id <=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLike(String value) {
addCriterion("mucsr.union_id like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotLike(String value) {
addCriterion("mucsr.union_id not like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdIn(List<String> values) {
addCriterion("mucsr.union_id in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotIn(List<String> values) {
addCriterion("mucsr.union_id not in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdBetween(String value1, String value2) {
addCriterion("mucsr.union_id between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotBetween(String value1, String value2) {
addCriterion("mucsr.union_id not between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andRelationCodeIsNull() {
addCriterion("mucsr.relation_code is null");
return (Criteria) this;
}
public Criteria andRelationCodeIsNotNull() {
addCriterion("mucsr.relation_code is not null");
return (Criteria) this;
}
public Criteria andRelationCodeEqualTo(Integer value) {
addCriterion("mucsr.relation_code =", value, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeNotEqualTo(Integer value) {
addCriterion("mucsr.relation_code <>", value, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeGreaterThan(Integer value) {
addCriterion("mucsr.relation_code >", value, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeGreaterThanOrEqualTo(Integer value) {
addCriterion("mucsr.relation_code >=", value, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeLessThan(Integer value) {
addCriterion("mucsr.relation_code <", value, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeLessThanOrEqualTo(Integer value) {
addCriterion("mucsr.relation_code <=", value, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeIn(List<Integer> values) {
addCriterion("mucsr.relation_code in", values, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeNotIn(List<Integer> values) {
addCriterion("mucsr.relation_code not in", values, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeBetween(Integer value1, Integer value2) {
addCriterion("mucsr.relation_code between", value1, value2, "relationCode");
return (Criteria) this;
}
public Criteria andRelationCodeNotBetween(Integer value1, Integer value2) {
addCriterion("mucsr.relation_code not between", value1, value2, "relationCode");
return (Criteria) this;
}
public Criteria andCreatorIsNull() {
addCriterion("mucsr.creator is null");
return (Criteria) this;
}
public Criteria andCreatorIsNotNull() {
addCriterion("mucsr.creator is not null");
return (Criteria) this;
}
public Criteria andCreatorEqualTo(String value) {
addCriterion("mucsr.creator =", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotEqualTo(String value) {
addCriterion("mucsr.creator <>", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThan(String value) {
addCriterion("mucsr.creator >", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThanOrEqualTo(String value) {
addCriterion("mucsr.creator >=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThan(String value) {
addCriterion("mucsr.creator <", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThanOrEqualTo(String value) {
addCriterion("mucsr.creator <=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLike(String value) {
addCriterion("mucsr.creator like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotLike(String value) {
addCriterion("mucsr.creator not like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorIn(List<String> values) {
addCriterion("mucsr.creator in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotIn(List<String> values) {
addCriterion("mucsr.creator not in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorBetween(String value1, String value2) {
addCriterion("mucsr.creator between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotBetween(String value1, String value2) {
addCriterion("mucsr.creator not between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("mucsr.create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("mucsr.create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Long value) {
addCriterion("mucsr.create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Long value) {
addCriterion("mucsr.create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Long value) {
addCriterion("mucsr.create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
addCriterion("mucsr.create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Long value) {
addCriterion("mucsr.create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Long value) {
addCriterion("mucsr.create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Long> values) {
addCriterion("mucsr.create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Long> values) {
addCriterion("mucsr.create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Long value1, Long value2) {
addCriterion("mucsr.create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Long value1, Long value2) {
addCriterion("mucsr.create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andLastModifierIsNull() {
addCriterion("mucsr.last_modifier is null");
return (Criteria) this;
}
public Criteria andLastModifierIsNotNull() {
addCriterion("mucsr.last_modifier is not null");
return (Criteria) this;
}
public Criteria andLastModifierEqualTo(String value) {
addCriterion("mucsr.last_modifier =", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotEqualTo(String value) {
addCriterion("mucsr.last_modifier <>", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThan(String value) {
addCriterion("mucsr.last_modifier >", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThanOrEqualTo(String value) {
addCriterion("mucsr.last_modifier >=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThan(String value) {
addCriterion("mucsr.last_modifier <", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThanOrEqualTo(String value) {
addCriterion("mucsr.last_modifier <=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLike(String value) {
addCriterion("mucsr.last_modifier like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotLike(String value) {
addCriterion("mucsr.last_modifier not like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierIn(List<String> values) {
addCriterion("mucsr.last_modifier in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotIn(List<String> values) {
addCriterion("mucsr.last_modifier not in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierBetween(String value1, String value2) {
addCriterion("mucsr.last_modifier between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotBetween(String value1, String value2) {
addCriterion("mucsr.last_modifier not between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModdateIsNull() {
addCriterion("mucsr.last_modDate is null");
return (Criteria) this;
}
public Criteria andLastModdateIsNotNull() {
addCriterion("mucsr.last_modDate is not null");
return (Criteria) this;
}
public Criteria andLastModdateEqualTo(Long value) {
addCriterion("mucsr.last_modDate =", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotEqualTo(Long value) {
addCriterion("mucsr.last_modDate <>", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThan(Long value) {
addCriterion("mucsr.last_modDate >", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThanOrEqualTo(Long value) {
addCriterion("mucsr.last_modDate >=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThan(Long value) {
addCriterion("mucsr.last_modDate <", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThanOrEqualTo(Long value) {
addCriterion("mucsr.last_modDate <=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateIn(List<Long> values) {
addCriterion("mucsr.last_modDate in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotIn(List<Long> values) {
addCriterion("mucsr.last_modDate not in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateBetween(Long value1, Long value2) {
addCriterion("mucsr.last_modDate between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotBetween(Long value1, Long value2) {
addCriterion("mucsr.last_modDate not between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("mucsr.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("mucsr.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("mucsr.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("mucsr.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("mucsr.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("mucsr.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("mucsr.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("mucsr.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("mucsr.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("mucsr.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("mucsr.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("mucsr.status not between", value1, value2, "status");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_stuent_relmuc_stuent_rel
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucUser extends EntityBean {
/**
* ,所属表字段为 muc_user.id
*/
private Long id;
/**
* 用户微信唯一码,所属表字段为 muc_user.union_id
*/
private String unionId;
/**
* 手机号,所属表字段为 muc_user.phone
*/
private String phone;
/**
* 用户姓名,所属表字段为 muc_user.name
*/
private String name;
/**
* 性别,所属表字段为 muc_user.gender
*/
private Integer gender;
/**
* 用户头像,所属表字段为 muc_user.img_icon
*/
private String imgIcon;
/**
* 全局用户类型,所属表字段为 muc_user.global_type
*/
private Integer globalType;
/**
* 创建时间,所属表字段为 muc_user.create_date
*/
private Long createDate;
/**
* 最后修改人微信唯一码,所属表字段为 muc_user.last_modifier
*/
private String lastModifier;
/**
* 最后修改时间,所属表字段为 muc_user.last_modDate
*/
private Long lastModdate;
/**
* 状态 10正常 30删除,所属表字段为 muc_user.status
*/
private Integer status;
/**
muc_user.id
*
* @return the value of muc_user.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_user.id
*
* @param id the value for muc_user.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_user.union_id
*
* @return the value of muc_user.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getUnionId() {
return unionId;
}
/**
muc_user.union_id
*
* @param unionId the value for muc_user.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUnionId(String unionId) {
this.unionId = unionId == null ? null : unionId.trim();
}
/**
muc_user.phone
*
* @return the value of muc_user.phone
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getPhone() {
return phone;
}
/**
muc_user.phone
*
* @param phone the value for muc_user.phone
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setPhone(String phone) {
this.phone = phone == null ? null : phone.trim();
}
/**
muc_user.name
*
* @return the value of muc_user.name
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getName() {
return name;
}
/**
muc_user.name
*
* @param name the value for muc_user.name
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
/**
muc_user.gender
*
* @return the value of muc_user.gender
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getGender() {
return gender;
}
/**
muc_user.gender
*
* @param gender the value for muc_user.gender
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setGender(Integer gender) {
this.gender = gender;
}
/**
muc_user.img_icon
*
* @return the value of muc_user.img_icon
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getImgIcon() {
return imgIcon;
}
/**
muc_user.img_icon
*
* @param imgIcon the value for muc_user.img_icon
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setImgIcon(String imgIcon) {
this.imgIcon = imgIcon == null ? null : imgIcon.trim();
}
/**
muc_user.global_type
*
* @return the value of muc_user.global_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getGlobalType() {
return globalType;
}
/**
muc_user.global_type
*
* @param globalType the value for muc_user.global_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setGlobalType(Integer globalType) {
this.globalType = globalType;
}
/**
muc_user.create_date
*
* @return the value of muc_user.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getCreateDate() {
return createDate;
}
/**
muc_user.create_date
*
* @param createDate the value for muc_user.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreateDate(Long createDate) {
this.createDate = createDate;
}
/**
muc_user.last_modifier
*
* @return the value of muc_user.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getLastModifier() {
return lastModifier;
}
/**
muc_user.last_modifier
*
* @param lastModifier the value for muc_user.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModifier(String lastModifier) {
this.lastModifier = lastModifier == null ? null : lastModifier.trim();
}
/**
muc_user.last_modDate
*
* @return the value of muc_user.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getLastModdate() {
return lastModdate;
}
/**
muc_user.last_modDate
*
* @param lastModdate the value for muc_user.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModdate(Long lastModdate) {
this.lastModdate = lastModdate;
}
/**
muc_user.status
*
* @return the value of muc_user.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
muc_user.status
*
* @param status the value for muc_user.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucUserExample {
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucUserExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucm.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucm.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucm.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucm.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucm.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucm.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucm.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucm.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucm.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucm.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucm.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucm.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnionIdIsNull() {
addCriterion("mucm.union_id is null");
return (Criteria) this;
}
public Criteria andUnionIdIsNotNull() {
addCriterion("mucm.union_id is not null");
return (Criteria) this;
}
public Criteria andUnionIdEqualTo(String value) {
addCriterion("mucm.union_id =", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotEqualTo(String value) {
addCriterion("mucm.union_id <>", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThan(String value) {
addCriterion("mucm.union_id >", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThanOrEqualTo(String value) {
addCriterion("mucm.union_id >=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThan(String value) {
addCriterion("mucm.union_id <", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThanOrEqualTo(String value) {
addCriterion("mucm.union_id <=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLike(String value) {
addCriterion("mucm.union_id like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotLike(String value) {
addCriterion("mucm.union_id not like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdIn(List<String> values) {
addCriterion("mucm.union_id in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotIn(List<String> values) {
addCriterion("mucm.union_id not in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdBetween(String value1, String value2) {
addCriterion("mucm.union_id between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotBetween(String value1, String value2) {
addCriterion("mucm.union_id not between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andPhoneIsNull() {
addCriterion("mucm.phone is null");
return (Criteria) this;
}
public Criteria andPhoneIsNotNull() {
addCriterion("mucm.phone is not null");
return (Criteria) this;
}
public Criteria andPhoneEqualTo(String value) {
addCriterion("mucm.phone =", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotEqualTo(String value) {
addCriterion("mucm.phone <>", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneGreaterThan(String value) {
addCriterion("mucm.phone >", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneGreaterThanOrEqualTo(String value) {
addCriterion("mucm.phone >=", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLessThan(String value) {
addCriterion("mucm.phone <", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLessThanOrEqualTo(String value) {
addCriterion("mucm.phone <=", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLike(String value) {
addCriterion("mucm.phone like", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotLike(String value) {
addCriterion("mucm.phone not like", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneIn(List<String> values) {
addCriterion("mucm.phone in", values, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotIn(List<String> values) {
addCriterion("mucm.phone not in", values, "phone");
return (Criteria) this;
}
public Criteria andPhoneBetween(String value1, String value2) {
addCriterion("mucm.phone between", value1, value2, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotBetween(String value1, String value2) {
addCriterion("mucm.phone not between", value1, value2, "phone");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("mucm.name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("mucm.name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("mucm.name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("mucm.name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("mucm.name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("mucm.name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("mucm.name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("mucm.name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("mucm.name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("mucm.name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("mucm.name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("mucm.name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("mucm.name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("mucm.name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andGenderIsNull() {
addCriterion("mucm.gender is null");
return (Criteria) this;
}
public Criteria andGenderIsNotNull() {
addCriterion("mucm.gender is not null");
return (Criteria) this;
}
public Criteria andGenderEqualTo(Integer value) {
addCriterion("mucm.gender =", value, "gender");
return (Criteria) this;
}
public Criteria andGenderNotEqualTo(Integer value) {
addCriterion("mucm.gender <>", value, "gender");
return (Criteria) this;
}
public Criteria andGenderGreaterThan(Integer value) {
addCriterion("mucm.gender >", value, "gender");
return (Criteria) this;
}
public Criteria andGenderGreaterThanOrEqualTo(Integer value) {
addCriterion("mucm.gender >=", value, "gender");
return (Criteria) this;
}
public Criteria andGenderLessThan(Integer value) {
addCriterion("mucm.gender <", value, "gender");
return (Criteria) this;
}
public Criteria andGenderLessThanOrEqualTo(Integer value) {
addCriterion("mucm.gender <=", value, "gender");
return (Criteria) this;
}
public Criteria andGenderIn(List<Integer> values) {
addCriterion("mucm.gender in", values, "gender");
return (Criteria) this;
}
public Criteria andGenderNotIn(List<Integer> values) {
addCriterion("mucm.gender not in", values, "gender");
return (Criteria) this;
}
public Criteria andGenderBetween(Integer value1, Integer value2) {
addCriterion("mucm.gender between", value1, value2, "gender");
return (Criteria) this;
}
public Criteria andGenderNotBetween(Integer value1, Integer value2) {
addCriterion("mucm.gender not between", value1, value2, "gender");
return (Criteria) this;
}
public Criteria andImgIconIsNull() {
addCriterion("mucm.img_icon is null");
return (Criteria) this;
}
public Criteria andImgIconIsNotNull() {
addCriterion("mucm.img_icon is not null");
return (Criteria) this;
}
public Criteria andImgIconEqualTo(String value) {
addCriterion("mucm.img_icon =", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconNotEqualTo(String value) {
addCriterion("mucm.img_icon <>", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconGreaterThan(String value) {
addCriterion("mucm.img_icon >", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconGreaterThanOrEqualTo(String value) {
addCriterion("mucm.img_icon >=", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconLessThan(String value) {
addCriterion("mucm.img_icon <", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconLessThanOrEqualTo(String value) {
addCriterion("mucm.img_icon <=", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconLike(String value) {
addCriterion("mucm.img_icon like", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconNotLike(String value) {
addCriterion("mucm.img_icon not like", value, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconIn(List<String> values) {
addCriterion("mucm.img_icon in", values, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconNotIn(List<String> values) {
addCriterion("mucm.img_icon not in", values, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconBetween(String value1, String value2) {
addCriterion("mucm.img_icon between", value1, value2, "imgIcon");
return (Criteria) this;
}
public Criteria andImgIconNotBetween(String value1, String value2) {
addCriterion("mucm.img_icon not between", value1, value2, "imgIcon");
return (Criteria) this;
}
public Criteria andGlobalTypeIsNull() {
addCriterion("mucm.global_type is null");
return (Criteria) this;
}
public Criteria andGlobalTypeIsNotNull() {
addCriterion("mucm.global_type is not null");
return (Criteria) this;
}
public Criteria andGlobalTypeEqualTo(Integer value) {
addCriterion("mucm.global_type =", value, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeNotEqualTo(Integer value) {
addCriterion("mucm.global_type <>", value, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeGreaterThan(Integer value) {
addCriterion("mucm.global_type >", value, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("mucm.global_type >=", value, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeLessThan(Integer value) {
addCriterion("mucm.global_type <", value, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeLessThanOrEqualTo(Integer value) {
addCriterion("mucm.global_type <=", value, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeIn(List<Integer> values) {
addCriterion("mucm.global_type in", values, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeNotIn(List<Integer> values) {
addCriterion("mucm.global_type not in", values, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeBetween(Integer value1, Integer value2) {
addCriterion("mucm.global_type between", value1, value2, "globalType");
return (Criteria) this;
}
public Criteria andGlobalTypeNotBetween(Integer value1, Integer value2) {
addCriterion("mucm.global_type not between", value1, value2, "globalType");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("mucm.create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("mucm.create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Long value) {
addCriterion("mucm.create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Long value) {
addCriterion("mucm.create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Long value) {
addCriterion("mucm.create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
addCriterion("mucm.create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Long value) {
addCriterion("mucm.create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Long value) {
addCriterion("mucm.create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Long> values) {
addCriterion("mucm.create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Long> values) {
addCriterion("mucm.create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Long value1, Long value2) {
addCriterion("mucm.create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Long value1, Long value2) {
addCriterion("mucm.create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andLastModifierIsNull() {
addCriterion("mucm.last_modifier is null");
return (Criteria) this;
}
public Criteria andLastModifierIsNotNull() {
addCriterion("mucm.last_modifier is not null");
return (Criteria) this;
}
public Criteria andLastModifierEqualTo(String value) {
addCriterion("mucm.last_modifier =", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotEqualTo(String value) {
addCriterion("mucm.last_modifier <>", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThan(String value) {
addCriterion("mucm.last_modifier >", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThanOrEqualTo(String value) {
addCriterion("mucm.last_modifier >=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThan(String value) {
addCriterion("mucm.last_modifier <", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThanOrEqualTo(String value) {
addCriterion("mucm.last_modifier <=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLike(String value) {
addCriterion("mucm.last_modifier like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotLike(String value) {
addCriterion("mucm.last_modifier not like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierIn(List<String> values) {
addCriterion("mucm.last_modifier in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotIn(List<String> values) {
addCriterion("mucm.last_modifier not in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierBetween(String value1, String value2) {
addCriterion("mucm.last_modifier between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotBetween(String value1, String value2) {
addCriterion("mucm.last_modifier not between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModdateIsNull() {
addCriterion("mucm.last_modDate is null");
return (Criteria) this;
}
public Criteria andLastModdateIsNotNull() {
addCriterion("mucm.last_modDate is not null");
return (Criteria) this;
}
public Criteria andLastModdateEqualTo(Long value) {
addCriterion("mucm.last_modDate =", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotEqualTo(Long value) {
addCriterion("mucm.last_modDate <>", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThan(Long value) {
addCriterion("mucm.last_modDate >", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThanOrEqualTo(Long value) {
addCriterion("mucm.last_modDate >=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThan(Long value) {
addCriterion("mucm.last_modDate <", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThanOrEqualTo(Long value) {
addCriterion("mucm.last_modDate <=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateIn(List<Long> values) {
addCriterion("mucm.last_modDate in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotIn(List<Long> values) {
addCriterion("mucm.last_modDate not in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateBetween(Long value1, Long value2) {
addCriterion("mucm.last_modDate between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotBetween(Long value1, Long value2) {
addCriterion("mucm.last_modDate not between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("mucm.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("mucm.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("mucm.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("mucm.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("mucm.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("mucm.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("mucm.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("mucm.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("mucm.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("mucm.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("mucm.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("mucm.status not between", value1, value2, "status");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_usermuc_user
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_user
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucUserOpenId extends EntityBean {
/**
* ,所属表字段为 muc_user_openId.id
*/
private Long id;
/**
* 用户微信唯一码,所属表字段为 muc_user_openId.union_id
*/
private String unionId;
/**
* 小程序应用id,所属表字段为 muc_user_openId.app_id
*/
private String appId;
/**
* 用户对应小程序的openId,所属表字段为 muc_user_openId.open_id
*/
private String openId;
/**
muc_user_openId.id
*
* @return the value of muc_user_openId.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_user_openId.id
*
* @param id the value for muc_user_openId.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_user_openId.union_id
*
* @return the value of muc_user_openId.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getUnionId() {
return unionId;
}
/**
muc_user_openId.union_id
*
* @param unionId the value for muc_user_openId.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUnionId(String unionId) {
this.unionId = unionId == null ? null : unionId.trim();
}
/**
muc_user_openId.app_id
*
* @return the value of muc_user_openId.app_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getAppId() {
return appId;
}
/**
muc_user_openId.app_id
*
* @param appId the value for muc_user_openId.app_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setAppId(String appId) {
this.appId = appId == null ? null : appId.trim();
}
/**
muc_user_openId.open_id
*
* @return the value of muc_user_openId.open_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOpenId() {
return openId;
}
/**
muc_user_openId.open_id
*
* @param openId the value for muc_user_openId.open_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOpenId(String openId) {
this.openId = openId == null ? null : openId.trim();
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucUserOpenIdExample {
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucUserOpenIdExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucuo.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucuo.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucuo.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucuo.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucuo.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucuo.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucuo.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucuo.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucuo.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucuo.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucuo.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucuo.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnionIdIsNull() {
addCriterion("mucuo.union_id is null");
return (Criteria) this;
}
public Criteria andUnionIdIsNotNull() {
addCriterion("mucuo.union_id is not null");
return (Criteria) this;
}
public Criteria andUnionIdEqualTo(String value) {
addCriterion("mucuo.union_id =", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotEqualTo(String value) {
addCriterion("mucuo.union_id <>", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThan(String value) {
addCriterion("mucuo.union_id >", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThanOrEqualTo(String value) {
addCriterion("mucuo.union_id >=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThan(String value) {
addCriterion("mucuo.union_id <", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThanOrEqualTo(String value) {
addCriterion("mucuo.union_id <=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLike(String value) {
addCriterion("mucuo.union_id like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotLike(String value) {
addCriterion("mucuo.union_id not like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdIn(List<String> values) {
addCriterion("mucuo.union_id in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotIn(List<String> values) {
addCriterion("mucuo.union_id not in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdBetween(String value1, String value2) {
addCriterion("mucuo.union_id between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotBetween(String value1, String value2) {
addCriterion("mucuo.union_id not between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andAppIdIsNull() {
addCriterion("mucuo.app_id is null");
return (Criteria) this;
}
public Criteria andAppIdIsNotNull() {
addCriterion("mucuo.app_id is not null");
return (Criteria) this;
}
public Criteria andAppIdEqualTo(String value) {
addCriterion("mucuo.app_id =", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotEqualTo(String value) {
addCriterion("mucuo.app_id <>", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdGreaterThan(String value) {
addCriterion("mucuo.app_id >", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdGreaterThanOrEqualTo(String value) {
addCriterion("mucuo.app_id >=", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdLessThan(String value) {
addCriterion("mucuo.app_id <", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdLessThanOrEqualTo(String value) {
addCriterion("mucuo.app_id <=", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdLike(String value) {
addCriterion("mucuo.app_id like", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotLike(String value) {
addCriterion("mucuo.app_id not like", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdIn(List<String> values) {
addCriterion("mucuo.app_id in", values, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotIn(List<String> values) {
addCriterion("mucuo.app_id not in", values, "appId");
return (Criteria) this;
}
public Criteria andAppIdBetween(String value1, String value2) {
addCriterion("mucuo.app_id between", value1, value2, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotBetween(String value1, String value2) {
addCriterion("mucuo.app_id not between", value1, value2, "appId");
return (Criteria) this;
}
public Criteria andOpenIdIsNull() {
addCriterion("mucuo.open_id is null");
return (Criteria) this;
}
public Criteria andOpenIdIsNotNull() {
addCriterion("mucuo.open_id is not null");
return (Criteria) this;
}
public Criteria andOpenIdEqualTo(String value) {
addCriterion("mucuo.open_id =", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdNotEqualTo(String value) {
addCriterion("mucuo.open_id <>", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdGreaterThan(String value) {
addCriterion("mucuo.open_id >", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdGreaterThanOrEqualTo(String value) {
addCriterion("mucuo.open_id >=", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdLessThan(String value) {
addCriterion("mucuo.open_id <", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdLessThanOrEqualTo(String value) {
addCriterion("mucuo.open_id <=", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdLike(String value) {
addCriterion("mucuo.open_id like", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdNotLike(String value) {
addCriterion("mucuo.open_id not like", value, "openId");
return (Criteria) this;
}
public Criteria andOpenIdIn(List<String> values) {
addCriterion("mucuo.open_id in", values, "openId");
return (Criteria) this;
}
public Criteria andOpenIdNotIn(List<String> values) {
addCriterion("mucuo.open_id not in", values, "openId");
return (Criteria) this;
}
public Criteria andOpenIdBetween(String value1, String value2) {
addCriterion("mucuo.open_id between", value1, value2, "openId");
return (Criteria) this;
}
public Criteria andOpenIdNotBetween(String value1, String value2) {
addCriterion("mucuo.open_id not between", value1, value2, "openId");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_user_openIdmuc_user_openId
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucUserRole extends EntityBean {
/**
* ,所属表字段为 muc_user_role.id
*/
private Long id;
/**
* 用户微信唯一码,所属表字段为 muc_user_role.union_id
*/
private String unionId;
/**
* 所属班级码,所属表字段为 muc_user_role.class_code
*/
private String classCode;
/**
* 用户角色 1班主任 2家委,所属表字段为 muc_user_role.userRole
*/
private Integer userrole;
/**
* 创建人微信唯一码,所属表字段为 muc_user_role.creator
*/
private String creator;
/**
* 创建时间,所属表字段为 muc_user_role.create_date
*/
private Long createDate;
/**
* 最后修改人微信唯一码,所属表字段为 muc_user_role.last_modifier
*/
private String lastModifier;
/**
* 最后修改时间,所属表字段为 muc_user_role.last_modDate
*/
private Long lastModdate;
/**
* 状态 10正常 30删除,所属表字段为 muc_user_role.status
*/
private Integer status;
/**
muc_user_role.id
*
* @return the value of muc_user_role.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_user_role.id
*
* @param id the value for muc_user_role.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_user_role.union_id
*
* @return the value of muc_user_role.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getUnionId() {
return unionId;
}
/**
muc_user_role.union_id
*
* @param unionId the value for muc_user_role.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUnionId(String unionId) {
this.unionId = unionId == null ? null : unionId.trim();
}
/**
muc_user_role.class_code
*
* @return the value of muc_user_role.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
muc_user_role.class_code
*
* @param classCode the value for muc_user_role.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
muc_user_role.userRole
*
* @return the value of muc_user_role.userRole
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getUserrole() {
return userrole;
}
/**
muc_user_role.userRole
*
* @param userrole the value for muc_user_role.userRole
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUserrole(Integer userrole) {
this.userrole = userrole;
}
/**
muc_user_role.creator
*
* @return the value of muc_user_role.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getCreator() {
return creator;
}
/**
muc_user_role.creator
*
* @param creator the value for muc_user_role.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreator(String creator) {
this.creator = creator == null ? null : creator.trim();
}
/**
muc_user_role.create_date
*
* @return the value of muc_user_role.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getCreateDate() {
return createDate;
}
/**
muc_user_role.create_date
*
* @param createDate the value for muc_user_role.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreateDate(Long createDate) {
this.createDate = createDate;
}
/**
muc_user_role.last_modifier
*
* @return the value of muc_user_role.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getLastModifier() {
return lastModifier;
}
/**
muc_user_role.last_modifier
*
* @param lastModifier the value for muc_user_role.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModifier(String lastModifier) {
this.lastModifier = lastModifier == null ? null : lastModifier.trim();
}
/**
muc_user_role.last_modDate
*
* @return the value of muc_user_role.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getLastModdate() {
return lastModdate;
}
/**
muc_user_role.last_modDate
*
* @param lastModdate the value for muc_user_role.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModdate(Long lastModdate) {
this.lastModdate = lastModdate;
}
/**
muc_user_role.status
*
* @return the value of muc_user_role.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
muc_user_role.status
*
* @param status the value for muc_user_role.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucUserRoleExample {
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucUserRoleExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucur.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucur.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucur.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucur.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucur.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucur.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucur.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucur.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucur.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucur.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucur.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucur.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnionIdIsNull() {
addCriterion("mucur.union_id is null");
return (Criteria) this;
}
public Criteria andUnionIdIsNotNull() {
addCriterion("mucur.union_id is not null");
return (Criteria) this;
}
public Criteria andUnionIdEqualTo(String value) {
addCriterion("mucur.union_id =", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotEqualTo(String value) {
addCriterion("mucur.union_id <>", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThan(String value) {
addCriterion("mucur.union_id >", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThanOrEqualTo(String value) {
addCriterion("mucur.union_id >=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThan(String value) {
addCriterion("mucur.union_id <", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThanOrEqualTo(String value) {
addCriterion("mucur.union_id <=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLike(String value) {
addCriterion("mucur.union_id like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotLike(String value) {
addCriterion("mucur.union_id not like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdIn(List<String> values) {
addCriterion("mucur.union_id in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotIn(List<String> values) {
addCriterion("mucur.union_id not in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdBetween(String value1, String value2) {
addCriterion("mucur.union_id between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotBetween(String value1, String value2) {
addCriterion("mucur.union_id not between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("mucur.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("mucur.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("mucur.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("mucur.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("mucur.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("mucur.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("mucur.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("mucur.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("mucur.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("mucur.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("mucur.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("mucur.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("mucur.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("mucur.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andUserroleIsNull() {
addCriterion("mucur.userRole is null");
return (Criteria) this;
}
public Criteria andUserroleIsNotNull() {
addCriterion("mucur.userRole is not null");
return (Criteria) this;
}
public Criteria andUserroleEqualTo(Integer value) {
addCriterion("mucur.userRole =", value, "userrole");
return (Criteria) this;
}
public Criteria andUserroleNotEqualTo(Integer value) {
addCriterion("mucur.userRole <>", value, "userrole");
return (Criteria) this;
}
public Criteria andUserroleGreaterThan(Integer value) {
addCriterion("mucur.userRole >", value, "userrole");
return (Criteria) this;
}
public Criteria andUserroleGreaterThanOrEqualTo(Integer value) {
addCriterion("mucur.userRole >=", value, "userrole");
return (Criteria) this;
}
public Criteria andUserroleLessThan(Integer value) {
addCriterion("mucur.userRole <", value, "userrole");
return (Criteria) this;
}
public Criteria andUserroleLessThanOrEqualTo(Integer value) {
addCriterion("mucur.userRole <=", value, "userrole");
return (Criteria) this;
}
public Criteria andUserroleIn(List<Integer> values) {
addCriterion("mucur.userRole in", values, "userrole");
return (Criteria) this;
}
public Criteria andUserroleNotIn(List<Integer> values) {
addCriterion("mucur.userRole not in", values, "userrole");
return (Criteria) this;
}
public Criteria andUserroleBetween(Integer value1, Integer value2) {
addCriterion("mucur.userRole between", value1, value2, "userrole");
return (Criteria) this;
}
public Criteria andUserroleNotBetween(Integer value1, Integer value2) {
addCriterion("mucur.userRole not between", value1, value2, "userrole");
return (Criteria) this;
}
public Criteria andCreatorIsNull() {
addCriterion("mucur.creator is null");
return (Criteria) this;
}
public Criteria andCreatorIsNotNull() {
addCriterion("mucur.creator is not null");
return (Criteria) this;
}
public Criteria andCreatorEqualTo(String value) {
addCriterion("mucur.creator =", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotEqualTo(String value) {
addCriterion("mucur.creator <>", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThan(String value) {
addCriterion("mucur.creator >", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThanOrEqualTo(String value) {
addCriterion("mucur.creator >=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThan(String value) {
addCriterion("mucur.creator <", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThanOrEqualTo(String value) {
addCriterion("mucur.creator <=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLike(String value) {
addCriterion("mucur.creator like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotLike(String value) {
addCriterion("mucur.creator not like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorIn(List<String> values) {
addCriterion("mucur.creator in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotIn(List<String> values) {
addCriterion("mucur.creator not in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorBetween(String value1, String value2) {
addCriterion("mucur.creator between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotBetween(String value1, String value2) {
addCriterion("mucur.creator not between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("mucur.create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("mucur.create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Long value) {
addCriterion("mucur.create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Long value) {
addCriterion("mucur.create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Long value) {
addCriterion("mucur.create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
addCriterion("mucur.create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Long value) {
addCriterion("mucur.create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Long value) {
addCriterion("mucur.create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Long> values) {
addCriterion("mucur.create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Long> values) {
addCriterion("mucur.create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Long value1, Long value2) {
addCriterion("mucur.create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Long value1, Long value2) {
addCriterion("mucur.create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andLastModifierIsNull() {
addCriterion("mucur.last_modifier is null");
return (Criteria) this;
}
public Criteria andLastModifierIsNotNull() {
addCriterion("mucur.last_modifier is not null");
return (Criteria) this;
}
public Criteria andLastModifierEqualTo(String value) {
addCriterion("mucur.last_modifier =", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotEqualTo(String value) {
addCriterion("mucur.last_modifier <>", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThan(String value) {
addCriterion("mucur.last_modifier >", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThanOrEqualTo(String value) {
addCriterion("mucur.last_modifier >=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThan(String value) {
addCriterion("mucur.last_modifier <", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThanOrEqualTo(String value) {
addCriterion("mucur.last_modifier <=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLike(String value) {
addCriterion("mucur.last_modifier like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotLike(String value) {
addCriterion("mucur.last_modifier not like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierIn(List<String> values) {
addCriterion("mucur.last_modifier in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotIn(List<String> values) {
addCriterion("mucur.last_modifier not in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierBetween(String value1, String value2) {
addCriterion("mucur.last_modifier between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotBetween(String value1, String value2) {
addCriterion("mucur.last_modifier not between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModdateIsNull() {
addCriterion("mucur.last_modDate is null");
return (Criteria) this;
}
public Criteria andLastModdateIsNotNull() {
addCriterion("mucur.last_modDate is not null");
return (Criteria) this;
}
public Criteria andLastModdateEqualTo(Long value) {
addCriterion("mucur.last_modDate =", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotEqualTo(Long value) {
addCriterion("mucur.last_modDate <>", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThan(Long value) {
addCriterion("mucur.last_modDate >", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThanOrEqualTo(Long value) {
addCriterion("mucur.last_modDate >=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThan(Long value) {
addCriterion("mucur.last_modDate <", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThanOrEqualTo(Long value) {
addCriterion("mucur.last_modDate <=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateIn(List<Long> values) {
addCriterion("mucur.last_modDate in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotIn(List<Long> values) {
addCriterion("mucur.last_modDate not in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateBetween(Long value1, Long value2) {
addCriterion("mucur.last_modDate between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotBetween(Long value1, Long value2) {
addCriterion("mucur.last_modDate not between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("mucur.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("mucur.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("mucur.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("mucur.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("mucur.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("mucur.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("mucur.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("mucur.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("mucur.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("mucur.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("mucur.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("mucur.status not between", value1, value2, "status");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_user_rolemuc_user_role
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucUserTrace extends EntityBean {
/**
* ,所属表字段为 muc_user_trace.id
*/
private Long id;
/**
* 用户微信唯一码,所属表字段为 muc_user_trace.union_id
*/
private String unionId;
/**
* 所属班级码,所属表字段为 muc_user_trace.class_code
*/
private String classCode;
/**
* 微信群组id,所属表字段为 muc_user_trace.group_id
*/
private String groupId;
/**
* 创建时间,所属表字段为 muc_user_trace.create_date
*/
private Long createDate;
/**
muc_user_trace.id
*
* @return the value of muc_user_trace.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_user_trace.id
*
* @param id the value for muc_user_trace.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_user_trace.union_id
*
* @return the value of muc_user_trace.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getUnionId() {
return unionId;
}
/**
muc_user_trace.union_id
*
* @param unionId the value for muc_user_trace.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUnionId(String unionId) {
this.unionId = unionId == null ? null : unionId.trim();
}
/**
muc_user_trace.class_code
*
* @return the value of muc_user_trace.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
muc_user_trace.class_code
*
* @param classCode the value for muc_user_trace.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
muc_user_trace.group_id
*
* @return the value of muc_user_trace.group_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getGroupId() {
return groupId;
}
/**
muc_user_trace.group_id
*
* @param groupId the value for muc_user_trace.group_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setGroupId(String groupId) {
this.groupId = groupId == null ? null : groupId.trim();
}
/**
muc_user_trace.create_date
*
* @return the value of muc_user_trace.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getCreateDate() {
return createDate;
}
/**
muc_user_trace.create_date
*
* @param createDate the value for muc_user_trace.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreateDate(Long createDate) {
this.createDate = createDate;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucUserTraceExample {
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucUserTraceExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucut.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucut.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucut.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucut.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucut.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucut.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucut.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucut.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucut.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucut.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucut.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucut.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnionIdIsNull() {
addCriterion("mucut.union_id is null");
return (Criteria) this;
}
public Criteria andUnionIdIsNotNull() {
addCriterion("mucut.union_id is not null");
return (Criteria) this;
}
public Criteria andUnionIdEqualTo(String value) {
addCriterion("mucut.union_id =", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotEqualTo(String value) {
addCriterion("mucut.union_id <>", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThan(String value) {
addCriterion("mucut.union_id >", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThanOrEqualTo(String value) {
addCriterion("mucut.union_id >=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThan(String value) {
addCriterion("mucut.union_id <", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThanOrEqualTo(String value) {
addCriterion("mucut.union_id <=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLike(String value) {
addCriterion("mucut.union_id like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotLike(String value) {
addCriterion("mucut.union_id not like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdIn(List<String> values) {
addCriterion("mucut.union_id in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotIn(List<String> values) {
addCriterion("mucut.union_id not in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdBetween(String value1, String value2) {
addCriterion("mucut.union_id between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotBetween(String value1, String value2) {
addCriterion("mucut.union_id not between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("mucut.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("mucut.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("mucut.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("mucut.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("mucut.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("mucut.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("mucut.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("mucut.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("mucut.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("mucut.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("mucut.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("mucut.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("mucut.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("mucut.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andGroupIdIsNull() {
addCriterion("mucut.group_id is null");
return (Criteria) this;
}
public Criteria andGroupIdIsNotNull() {
addCriterion("mucut.group_id is not null");
return (Criteria) this;
}
public Criteria andGroupIdEqualTo(String value) {
addCriterion("mucut.group_id =", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotEqualTo(String value) {
addCriterion("mucut.group_id <>", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdGreaterThan(String value) {
addCriterion("mucut.group_id >", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdGreaterThanOrEqualTo(String value) {
addCriterion("mucut.group_id >=", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLessThan(String value) {
addCriterion("mucut.group_id <", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLessThanOrEqualTo(String value) {
addCriterion("mucut.group_id <=", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdLike(String value) {
addCriterion("mucut.group_id like", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotLike(String value) {
addCriterion("mucut.group_id not like", value, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdIn(List<String> values) {
addCriterion("mucut.group_id in", values, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotIn(List<String> values) {
addCriterion("mucut.group_id not in", values, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdBetween(String value1, String value2) {
addCriterion("mucut.group_id between", value1, value2, "groupId");
return (Criteria) this;
}
public Criteria andGroupIdNotBetween(String value1, String value2) {
addCriterion("mucut.group_id not between", value1, value2, "groupId");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("mucut.create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("mucut.create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Long value) {
addCriterion("mucut.create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Long value) {
addCriterion("mucut.create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Long value) {
addCriterion("mucut.create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
addCriterion("mucut.create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Long value) {
addCriterion("mucut.create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Long value) {
addCriterion("mucut.create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Long> values) {
addCriterion("mucut.create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Long> values) {
addCriterion("mucut.create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Long value1, Long value2) {
addCriterion("mucut.create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Long value1, Long value2) {
addCriterion("mucut.create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_user_tracemuc_user_trace
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class MucUserType extends EntityBean {
/**
* ,所属表字段为 muc_user_type.id
*/
private Long id;
/**
* 用户微信唯一码,所属表字段为 muc_user_type.union_id
*/
private String unionId;
/**
* 所属班级码,所属表字段为 muc_user_type.class_code
*/
private String classCode;
/**
* 用户类型 1教师2家长,所属表字段为 muc_user_type.user_type
*/
private Integer userType;
/**
* 创建人微信唯一码,所属表字段为 muc_user_type.creator
*/
private String creator;
/**
* 创建时间,所属表字段为 muc_user_type.create_date
*/
private Long createDate;
/**
* 最后修改人微信唯一码,所属表字段为 muc_user_type.last_modifier
*/
private String lastModifier;
/**
* 最后修改时间,所属表字段为 muc_user_type.last_modDate
*/
private Long lastModdate;
/**
* 状态 10正常 30删除,所属表字段为 muc_user_type.status
*/
private Integer status;
/**
muc_user_type.id
*
* @return the value of muc_user_type.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getId() {
return id;
}
/**
muc_user_type.id
*
* @param id the value for muc_user_type.id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
muc_user_type.union_id
*
* @return the value of muc_user_type.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getUnionId() {
return unionId;
}
/**
muc_user_type.union_id
*
* @param unionId the value for muc_user_type.union_id
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUnionId(String unionId) {
this.unionId = unionId == null ? null : unionId.trim();
}
/**
muc_user_type.class_code
*
* @return the value of muc_user_type.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
muc_user_type.class_code
*
* @param classCode the value for muc_user_type.class_code
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
muc_user_type.user_type
*
* @return the value of muc_user_type.user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getUserType() {
return userType;
}
/**
muc_user_type.user_type
*
* @param userType the value for muc_user_type.user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setUserType(Integer userType) {
this.userType = userType;
}
/**
muc_user_type.creator
*
* @return the value of muc_user_type.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getCreator() {
return creator;
}
/**
muc_user_type.creator
*
* @param creator the value for muc_user_type.creator
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreator(String creator) {
this.creator = creator == null ? null : creator.trim();
}
/**
muc_user_type.create_date
*
* @return the value of muc_user_type.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getCreateDate() {
return createDate;
}
/**
muc_user_type.create_date
*
* @param createDate the value for muc_user_type.create_date
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setCreateDate(Long createDate) {
this.createDate = createDate;
}
/**
muc_user_type.last_modifier
*
* @return the value of muc_user_type.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getLastModifier() {
return lastModifier;
}
/**
muc_user_type.last_modifier
*
* @param lastModifier the value for muc_user_type.last_modifier
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModifier(String lastModifier) {
this.lastModifier = lastModifier == null ? null : lastModifier.trim();
}
/**
muc_user_type.last_modDate
*
* @return the value of muc_user_type.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Long getLastModdate() {
return lastModdate;
}
/**
muc_user_type.last_modDate
*
* @param lastModdate the value for muc_user_type.last_modDate
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setLastModdate(Long lastModdate) {
this.lastModdate = lastModdate;
}
/**
muc_user_type.status
*
* @return the value of muc_user_type.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Integer getStatus() {
return status;
}
/**
muc_user_type.status
*
* @param status the value for muc_user_type.status
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setStatus(Integer status) {
this.status = status;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.model;
import java.util.ArrayList;
import java.util.List;
public class MucUserTypeExample {
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected String orderByClause;
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected boolean distinct;
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public MucUserTypeExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 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("mucutp.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("mucutp.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("mucutp.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("mucutp.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("mucutp.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("mucutp.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("mucutp.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("mucutp.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("mucutp.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("mucutp.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("mucutp.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("mucutp.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnionIdIsNull() {
addCriterion("mucutp.union_id is null");
return (Criteria) this;
}
public Criteria andUnionIdIsNotNull() {
addCriterion("mucutp.union_id is not null");
return (Criteria) this;
}
public Criteria andUnionIdEqualTo(String value) {
addCriterion("mucutp.union_id =", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotEqualTo(String value) {
addCriterion("mucutp.union_id <>", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThan(String value) {
addCriterion("mucutp.union_id >", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdGreaterThanOrEqualTo(String value) {
addCriterion("mucutp.union_id >=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThan(String value) {
addCriterion("mucutp.union_id <", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLessThanOrEqualTo(String value) {
addCriterion("mucutp.union_id <=", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdLike(String value) {
addCriterion("mucutp.union_id like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotLike(String value) {
addCriterion("mucutp.union_id not like", value, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdIn(List<String> values) {
addCriterion("mucutp.union_id in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotIn(List<String> values) {
addCriterion("mucutp.union_id not in", values, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdBetween(String value1, String value2) {
addCriterion("mucutp.union_id between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andUnionIdNotBetween(String value1, String value2) {
addCriterion("mucutp.union_id not between", value1, value2, "unionId");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("mucutp.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("mucutp.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("mucutp.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("mucutp.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("mucutp.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("mucutp.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("mucutp.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("mucutp.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("mucutp.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("mucutp.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("mucutp.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("mucutp.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("mucutp.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("mucutp.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andUserTypeIsNull() {
addCriterion("mucutp.user_type is null");
return (Criteria) this;
}
public Criteria andUserTypeIsNotNull() {
addCriterion("mucutp.user_type is not null");
return (Criteria) this;
}
public Criteria andUserTypeEqualTo(Integer value) {
addCriterion("mucutp.user_type =", value, "userType");
return (Criteria) this;
}
public Criteria andUserTypeNotEqualTo(Integer value) {
addCriterion("mucutp.user_type <>", value, "userType");
return (Criteria) this;
}
public Criteria andUserTypeGreaterThan(Integer value) {
addCriterion("mucutp.user_type >", value, "userType");
return (Criteria) this;
}
public Criteria andUserTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("mucutp.user_type >=", value, "userType");
return (Criteria) this;
}
public Criteria andUserTypeLessThan(Integer value) {
addCriterion("mucutp.user_type <", value, "userType");
return (Criteria) this;
}
public Criteria andUserTypeLessThanOrEqualTo(Integer value) {
addCriterion("mucutp.user_type <=", value, "userType");
return (Criteria) this;
}
public Criteria andUserTypeIn(List<Integer> values) {
addCriterion("mucutp.user_type in", values, "userType");
return (Criteria) this;
}
public Criteria andUserTypeNotIn(List<Integer> values) {
addCriterion("mucutp.user_type not in", values, "userType");
return (Criteria) this;
}
public Criteria andUserTypeBetween(Integer value1, Integer value2) {
addCriterion("mucutp.user_type between", value1, value2, "userType");
return (Criteria) this;
}
public Criteria andUserTypeNotBetween(Integer value1, Integer value2) {
addCriterion("mucutp.user_type not between", value1, value2, "userType");
return (Criteria) this;
}
public Criteria andCreatorIsNull() {
addCriterion("mucutp.creator is null");
return (Criteria) this;
}
public Criteria andCreatorIsNotNull() {
addCriterion("mucutp.creator is not null");
return (Criteria) this;
}
public Criteria andCreatorEqualTo(String value) {
addCriterion("mucutp.creator =", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotEqualTo(String value) {
addCriterion("mucutp.creator <>", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThan(String value) {
addCriterion("mucutp.creator >", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorGreaterThanOrEqualTo(String value) {
addCriterion("mucutp.creator >=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThan(String value) {
addCriterion("mucutp.creator <", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLessThanOrEqualTo(String value) {
addCriterion("mucutp.creator <=", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorLike(String value) {
addCriterion("mucutp.creator like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotLike(String value) {
addCriterion("mucutp.creator not like", value, "creator");
return (Criteria) this;
}
public Criteria andCreatorIn(List<String> values) {
addCriterion("mucutp.creator in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotIn(List<String> values) {
addCriterion("mucutp.creator not in", values, "creator");
return (Criteria) this;
}
public Criteria andCreatorBetween(String value1, String value2) {
addCriterion("mucutp.creator between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreatorNotBetween(String value1, String value2) {
addCriterion("mucutp.creator not between", value1, value2, "creator");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("mucutp.create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("mucutp.create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Long value) {
addCriterion("mucutp.create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Long value) {
addCriterion("mucutp.create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Long value) {
addCriterion("mucutp.create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
addCriterion("mucutp.create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Long value) {
addCriterion("mucutp.create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Long value) {
addCriterion("mucutp.create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Long> values) {
addCriterion("mucutp.create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Long> values) {
addCriterion("mucutp.create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Long value1, Long value2) {
addCriterion("mucutp.create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Long value1, Long value2) {
addCriterion("mucutp.create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andLastModifierIsNull() {
addCriterion("mucutp.last_modifier is null");
return (Criteria) this;
}
public Criteria andLastModifierIsNotNull() {
addCriterion("mucutp.last_modifier is not null");
return (Criteria) this;
}
public Criteria andLastModifierEqualTo(String value) {
addCriterion("mucutp.last_modifier =", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotEqualTo(String value) {
addCriterion("mucutp.last_modifier <>", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThan(String value) {
addCriterion("mucutp.last_modifier >", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierGreaterThanOrEqualTo(String value) {
addCriterion("mucutp.last_modifier >=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThan(String value) {
addCriterion("mucutp.last_modifier <", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLessThanOrEqualTo(String value) {
addCriterion("mucutp.last_modifier <=", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierLike(String value) {
addCriterion("mucutp.last_modifier like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotLike(String value) {
addCriterion("mucutp.last_modifier not like", value, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierIn(List<String> values) {
addCriterion("mucutp.last_modifier in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotIn(List<String> values) {
addCriterion("mucutp.last_modifier not in", values, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierBetween(String value1, String value2) {
addCriterion("mucutp.last_modifier between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModifierNotBetween(String value1, String value2) {
addCriterion("mucutp.last_modifier not between", value1, value2, "lastModifier");
return (Criteria) this;
}
public Criteria andLastModdateIsNull() {
addCriterion("mucutp.last_modDate is null");
return (Criteria) this;
}
public Criteria andLastModdateIsNotNull() {
addCriterion("mucutp.last_modDate is not null");
return (Criteria) this;
}
public Criteria andLastModdateEqualTo(Long value) {
addCriterion("mucutp.last_modDate =", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotEqualTo(Long value) {
addCriterion("mucutp.last_modDate <>", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThan(Long value) {
addCriterion("mucutp.last_modDate >", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateGreaterThanOrEqualTo(Long value) {
addCriterion("mucutp.last_modDate >=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThan(Long value) {
addCriterion("mucutp.last_modDate <", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateLessThanOrEqualTo(Long value) {
addCriterion("mucutp.last_modDate <=", value, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateIn(List<Long> values) {
addCriterion("mucutp.last_modDate in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotIn(List<Long> values) {
addCriterion("mucutp.last_modDate not in", values, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateBetween(Long value1, Long value2) {
addCriterion("mucutp.last_modDate between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andLastModdateNotBetween(Long value1, Long value2) {
addCriterion("mucutp.last_modDate not between", value1, value2, "lastModdate");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("mucutp.status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("mucutp.status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("mucutp.status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("mucutp.status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("mucutp.status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("mucutp.status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("mucutp.status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("mucutp.status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("mucutp.status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("mucutp.status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("mucutp.status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("mucutp.status not between", value1, value2, "status");
return (Criteria) this;
}
}
/**
此实体关联 表是:muc_user_typemuc_user_type
*
* @mbggenerated do_not_delete_during_merge Thu Apr 26 14:45:38 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 14:45:38 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucClass;
import com.zhzf.fpj.xcx.muc.model.MucClassExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface MucClassMapper {
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucClassExample example);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucClassExample example);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucClass record);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucClass record);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucClass> selectByExample(MucClassExample example);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucClass selectByPrimaryKey(Long id);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucClass record, @Param("example") MucClassExample example);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucClass record, @Param("example") MucClassExample example);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucClass record);
/**
muc_class
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucClass record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucStudent;
import com.zhzf.fpj.xcx.muc.model.MucStudentExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface MucStudentMapper {
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucStudentExample example);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucStudentExample example);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucStudent record);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucStudent record);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucStudent> selectByExample(MucStudentExample example);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucStudent selectByPrimaryKey(Long id);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucStudent record, @Param("example") MucStudentExample example);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucStudent record, @Param("example") MucStudentExample example);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucStudent record);
/**
muc_student
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucStudent record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucStuentRel;
import com.zhzf.fpj.xcx.muc.model.MucStuentRelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MucStuentRelMapper {
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucStuentRelExample example);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucStuentRelExample example);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucStuentRel record);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucStuentRel record);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucStuentRel> selectByExample(MucStuentRelExample example);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucStuentRel selectByPrimaryKey(Long id);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucStuentRel record, @Param("example") MucStuentRelExample example);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucStuentRel record, @Param("example") MucStuentRelExample example);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucStuentRel record);
/**
muc_stuent_rel
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucStuentRel record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucUser;
import com.zhzf.fpj.xcx.muc.model.MucUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MucUserMapper {
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucUserExample example);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucUserExample example);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucUser record);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucUser record);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucUser> selectByExample(MucUserExample example);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucUser selectByPrimaryKey(Long id);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucUser record, @Param("example") MucUserExample example);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucUser record, @Param("example") MucUserExample example);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucUser record);
/**
muc_user
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucUser record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucUserOpenId;
import com.zhzf.fpj.xcx.muc.model.MucUserOpenIdExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MucUserOpenIdMapper {
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucUserOpenIdExample example);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucUserOpenIdExample example);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucUserOpenId record);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucUserOpenId record);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucUserOpenId> selectByExample(MucUserOpenIdExample example);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucUserOpenId selectByPrimaryKey(Long id);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucUserOpenId record, @Param("example") MucUserOpenIdExample example);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucUserOpenId record, @Param("example") MucUserOpenIdExample example);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucUserOpenId record);
/**
muc_user_openId
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucUserOpenId record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucUserRole;
import com.zhzf.fpj.xcx.muc.model.MucUserRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MucUserRoleMapper {
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucUserRoleExample example);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucUserRoleExample example);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucUserRole record);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucUserRole record);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucUserRole> selectByExample(MucUserRoleExample example);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucUserRole selectByPrimaryKey(Long id);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucUserRole record, @Param("example") MucUserRoleExample example);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucUserRole record, @Param("example") MucUserRoleExample example);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucUserRole record);
/**
muc_user_role
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucUserRole record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucUserTrace;
import com.zhzf.fpj.xcx.muc.model.MucUserTraceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MucUserTraceMapper {
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucUserTraceExample example);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucUserTraceExample example);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucUserTrace record);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucUserTrace record);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucUserTrace> selectByExample(MucUserTraceExample example);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucUserTrace selectByPrimaryKey(Long id);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucUserTrace record, @Param("example") MucUserTraceExample example);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucUserTrace record, @Param("example") MucUserTraceExample example);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucUserTrace record);
/**
muc_user_trace
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucUserTrace record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.repository;
import com.zhzf.fpj.xcx.muc.model.MucUserType;
import com.zhzf.fpj.xcx.muc.model.MucUserTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MucUserTypeMapper {
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int countByExample(MucUserTypeExample example);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByExample(MucUserTypeExample example);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insert(MucUserType record);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int insertSelective(MucUserType record);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
List<MucUserType> selectByExample(MucUserTypeExample example);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
MucUserType selectByPrimaryKey(Long id);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExampleSelective(@Param("record") MucUserType record, @Param("example") MucUserTypeExample example);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByExample(@Param("record") MucUserType record, @Param("example") MucUserTypeExample example);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKeySelective(MucUserType record);
/**
muc_user_type
*
* @mbggenerated Thu Apr 26 17:47:11 CST 2018
*/
int updateByPrimaryKey(MucUserType record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucClass;
import com.zhzf.fpj.xcx.muc.model.MucClassExample;
import java.util.List;
public interface IMucClassService {
/**
* 创建对应事例
* @param newMucClassEntry
* @return
* @throws ServiceException
*/
public long create(MucClass newMucClassEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucClassEntry
* @return
* @throws ServiceException
*/
public boolean update(MucClass newMucClassEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucClass get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucClass> loadByPages(MucClassExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucStudent;
import com.zhzf.fpj.xcx.muc.model.MucStudentExample;
import java.util.List;
public interface IMucStudentService {
/**
* 创建对应事例
* @param newMucStudentEntry
* @return
* @throws ServiceException
*/
public long create(MucStudent newMucStudentEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucStudentEntry
* @return
* @throws ServiceException
*/
public boolean update(MucStudent newMucStudentEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucStudent get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucStudent> loadByPages(MucStudentExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucStuentRel;
import com.zhzf.fpj.xcx.muc.model.MucStuentRelExample;
import java.util.List;
public interface IMucStuentRelService {
/**
* 创建对应事例
* @param newMucStuentRelEntry
* @return
* @throws ServiceException
*/
public long create(MucStuentRel newMucStuentRelEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucStuentRelEntry
* @return
* @throws ServiceException
*/
public boolean update(MucStuentRel newMucStuentRelEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucStuentRel get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucStuentRel> loadByPages(MucStuentRelExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserOpenId;
import com.zhzf.fpj.xcx.muc.model.MucUserOpenIdExample;
import java.util.List;
public interface IMucUserOpenIdService {
/**
* 创建对应事例
* @param newMucUserOpenIdEntry
* @return
* @throws ServiceException
*/
public long create(MucUserOpenId newMucUserOpenIdEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucUserOpenIdEntry
* @return
* @throws ServiceException
*/
public boolean update(MucUserOpenId newMucUserOpenIdEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucUserOpenId get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucUserOpenId> loadByPages(MucUserOpenIdExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserRole;
import com.zhzf.fpj.xcx.muc.model.MucUserRoleExample;
import java.util.List;
public interface IMucUserRoleService {
/**
* 创建对应事例
* @param newMucUserRoleEntry
* @return
* @throws ServiceException
*/
public long create(MucUserRole newMucUserRoleEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucUserRoleEntry
* @return
* @throws ServiceException
*/
public boolean update(MucUserRole newMucUserRoleEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucUserRole get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucUserRole> loadByPages(MucUserRoleExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUser;
import com.zhzf.fpj.xcx.muc.model.MucUserExample;
import java.util.List;
public interface IMucUserService {
/**
* 创建对应事例
* @param newMucUserEntry
* @return
* @throws ServiceException
*/
public long create(MucUser newMucUserEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucUserEntry
* @return
* @throws ServiceException
*/
public boolean update(MucUser newMucUserEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucUser get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucUser> loadByPages(MucUserExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserTrace;
import com.zhzf.fpj.xcx.muc.model.MucUserTraceExample;
import java.util.List;
public interface IMucUserTraceService {
/**
* 创建对应事例
* @param newMucUserTraceEntry
* @return
* @throws ServiceException
*/
public long create(MucUserTrace newMucUserTraceEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucUserTraceEntry
* @return
* @throws ServiceException
*/
public boolean update(MucUserTrace newMucUserTraceEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucUserTrace get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucUserTrace> loadByPages(MucUserTraceExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserType;
import com.zhzf.fpj.xcx.muc.model.MucUserTypeExample;
import java.util.List;
public interface IMucUserTypeService {
/**
* 创建对应事例
* @param newMucUserTypeEntry
* @return
* @throws ServiceException
*/
public long create(MucUserType newMucUserTypeEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newMucUserTypeEntry
* @return
* @throws ServiceException
*/
public boolean update(MucUserType newMucUserTypeEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public MucUserType get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<MucUserType> loadByPages(MucUserTypeExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucClass;
import com.zhzf.fpj.xcx.muc.model.MucClassExample;
import com.zhzf.fpj.xcx.muc.repository.MucClassMapper;
import com.zhzf.fpj.xcx.muc.service.IMucClassService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucClassService implements IMucClassService {
final static Logger logger = LoggerFactory.getLogger(MucClassService.class);
@Resource
private MucClassMapper mucClassMapper;
@Override
public long create(MucClass newMucClassEntry) throws ServiceException {
try{
mucClassMapper.insert(newMucClassEntry);
long primaryKeyId = newMucClassEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucClass newMucClassEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucClassMapper.updateByPrimaryKey(newMucClassEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucClass get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucClassMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucClass> loadByPages(MucClassExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucClassMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucStudent;
import com.zhzf.fpj.xcx.muc.model.MucStudentExample;
import com.zhzf.fpj.xcx.muc.repository.MucStudentMapper;
import com.zhzf.fpj.xcx.muc.service.IMucStudentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucStudentService implements IMucStudentService {
final static Logger logger = LoggerFactory.getLogger(MucStudentService.class);
@Resource
private MucStudentMapper mucStudentMapper;
@Override
public long create(MucStudent newMucStudentEntry) throws ServiceException {
try{
mucStudentMapper.insert(newMucStudentEntry);
long primaryKeyId = newMucStudentEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucStudent newMucStudentEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucStudentMapper.updateByPrimaryKey(newMucStudentEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucStudent get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucStudentMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucStudent> loadByPages(MucStudentExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucStudentMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucStuentRel;
import com.zhzf.fpj.xcx.muc.model.MucStuentRelExample;
import com.zhzf.fpj.xcx.muc.repository.MucStuentRelMapper;
import com.zhzf.fpj.xcx.muc.service.IMucStuentRelService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucStuentRelService implements IMucStuentRelService {
final static Logger logger = LoggerFactory.getLogger(MucStuentRelService.class);
@Resource
private MucStuentRelMapper mucStuentRelMapper;
@Override
public long create(MucStuentRel newMucStuentRelEntry) throws ServiceException {
try{
mucStuentRelMapper.insert(newMucStuentRelEntry);
long primaryKeyId = newMucStuentRelEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucStuentRel newMucStuentRelEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucStuentRelMapper.updateByPrimaryKey(newMucStuentRelEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucStuentRel get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucStuentRelMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucStuentRel> loadByPages(MucStuentRelExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucStuentRelMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserOpenId;
import com.zhzf.fpj.xcx.muc.model.MucUserOpenIdExample;
import com.zhzf.fpj.xcx.muc.repository.MucUserOpenIdMapper;
import com.zhzf.fpj.xcx.muc.service.IMucUserOpenIdService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucUserOpenIdService implements IMucUserOpenIdService {
final static Logger logger = LoggerFactory.getLogger(MucUserOpenIdService.class);
@Resource
private MucUserOpenIdMapper mucUserOpenIdMapper;
@Override
public long create(MucUserOpenId newMucUserOpenIdEntry) throws ServiceException {
try{
mucUserOpenIdMapper.insert(newMucUserOpenIdEntry);
long primaryKeyId = newMucUserOpenIdEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucUserOpenId newMucUserOpenIdEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucUserOpenIdMapper.updateByPrimaryKey(newMucUserOpenIdEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucUserOpenId get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucUserOpenIdMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucUserOpenId> loadByPages(MucUserOpenIdExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucUserOpenIdMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserRole;
import com.zhzf.fpj.xcx.muc.model.MucUserRoleExample;
import com.zhzf.fpj.xcx.muc.repository.MucUserRoleMapper;
import com.zhzf.fpj.xcx.muc.service.IMucUserRoleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucUserRoleService implements IMucUserRoleService {
final static Logger logger = LoggerFactory.getLogger(MucUserRoleService.class);
@Resource
private MucUserRoleMapper mucUserRoleMapper;
@Override
public long create(MucUserRole newMucUserRoleEntry) throws ServiceException {
try{
mucUserRoleMapper.insert(newMucUserRoleEntry);
long primaryKeyId = newMucUserRoleEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucUserRole newMucUserRoleEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucUserRoleMapper.updateByPrimaryKey(newMucUserRoleEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucUserRole get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucUserRoleMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucUserRole> loadByPages(MucUserRoleExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucUserRoleMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUser;
import com.zhzf.fpj.xcx.muc.model.MucUserExample;
import com.zhzf.fpj.xcx.muc.repository.MucUserMapper;
import com.zhzf.fpj.xcx.muc.service.IMucUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucUserService implements IMucUserService {
final static Logger logger = LoggerFactory.getLogger(MucUserService.class);
@Resource
private MucUserMapper mucUserMapper;
@Override
public long create(MucUser newMucUserEntry) throws ServiceException {
try{
mucUserMapper.insert(newMucUserEntry);
long primaryKeyId = newMucUserEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucUser newMucUserEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucUserMapper.updateByPrimaryKey(newMucUserEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucUser get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucUserMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucUser> loadByPages(MucUserExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucUserMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserTrace;
import com.zhzf.fpj.xcx.muc.model.MucUserTraceExample;
import com.zhzf.fpj.xcx.muc.repository.MucUserTraceMapper;
import com.zhzf.fpj.xcx.muc.service.IMucUserTraceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucUserTraceService implements IMucUserTraceService {
final static Logger logger = LoggerFactory.getLogger(MucUserTraceService.class);
@Resource
private MucUserTraceMapper mucUserTraceMapper;
@Override
public long create(MucUserTrace newMucUserTraceEntry) throws ServiceException {
try{
mucUserTraceMapper.insert(newMucUserTraceEntry);
long primaryKeyId = newMucUserTraceEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucUserTrace newMucUserTraceEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucUserTraceMapper.updateByPrimaryKey(newMucUserTraceEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucUserTrace get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucUserTraceMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucUserTrace> loadByPages(MucUserTraceExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucUserTraceMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.muc.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.muc.model.MucUserType;
import com.zhzf.fpj.xcx.muc.model.MucUserTypeExample;
import com.zhzf.fpj.xcx.muc.repository.MucUserTypeMapper;
import com.zhzf.fpj.xcx.muc.service.IMucUserTypeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MucUserTypeService implements IMucUserTypeService {
final static Logger logger = LoggerFactory.getLogger(MucUserTypeService.class);
@Resource
private MucUserTypeMapper mucUserTypeMapper;
@Override
public long create(MucUserType newMucUserTypeEntry) throws ServiceException {
try{
mucUserTypeMapper.insert(newMucUserTypeEntry);
long primaryKeyId = newMucUserTypeEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(MucUserType newMucUserTypeEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
mucUserTypeMapper.updateByPrimaryKey(newMucUserTypeEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public MucUserType get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return mucUserTypeMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<MucUserType> loadByPages(MucUserTypeExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return mucUserTypeMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucClassMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucClass" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucc_id" property="id" jdbcType="BIGINT" />
<result column="mucc_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="mucc_class_name" property="className" jdbcType="VARCHAR" />
<result column="mucc_group_id" property="groupId" jdbcType="VARCHAR" />
<result column="mucc_xd" property="xd" jdbcType="INTEGER" />
<result column="mucc_master_unionId" property="masterUnionid" jdbcType="VARCHAR" />
<result column="mucc_creator" property="creator" jdbcType="VARCHAR" />
<result column="mucc_create_date" property="createDate" jdbcType="BIGINT" />
<result column="mucc_last_modifier" property="lastModifier" jdbcType="VARCHAR" />
<result column="mucc_last_modDate" property="lastModdate" jdbcType="BIGINT" />
<result column="mucc_status" property="status" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucc.id as mucc_id, mucc.class_code as mucc_class_code, mucc.class_name as mucc_class_name,
mucc.group_id as mucc_group_id, mucc.xd as mucc_xd, mucc.master_unionId as mucc_master_unionId,
mucc.creator as mucc_creator, mucc.create_date as mucc_create_date, mucc.last_modifier as mucc_last_modifier,
mucc.last_modDate as mucc_last_modDate, mucc.status as mucc_status
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucClassExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_class mucc
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_class mucc
where mucc.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_class
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucClassExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_class mucc
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucClass" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_class (id, class_code, class_name,
group_id, xd, master_unionId,
creator, create_date, last_modifier,
last_modDate, status)
values (#{id,jdbcType=BIGINT}, #{classCode,jdbcType=VARCHAR}, #{className,jdbcType=VARCHAR},
#{groupId,jdbcType=VARCHAR}, #{xd,jdbcType=INTEGER}, #{masterUnionid,jdbcType=VARCHAR},
#{creator,jdbcType=VARCHAR}, #{createDate,jdbcType=BIGINT}, #{lastModifier,jdbcType=VARCHAR},
#{lastModdate,jdbcType=BIGINT}, #{status,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucClass" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_class
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="className != null" >
class_name,
</if>
<if test="groupId != null" >
group_id,
</if>
<if test="xd != null" >
xd,
</if>
<if test="masterUnionid != null" >
master_unionId,
</if>
<if test="creator != null" >
creator,
</if>
<if test="createDate != null" >
create_date,
</if>
<if test="lastModifier != null" >
last_modifier,
</if>
<if test="lastModdate != null" >
last_modDate,
</if>
<if test="status != null" >
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="className != null" >
#{className,jdbcType=VARCHAR},
</if>
<if test="groupId != null" >
#{groupId,jdbcType=VARCHAR},
</if>
<if test="xd != null" >
#{xd,jdbcType=INTEGER},
</if>
<if test="masterUnionid != null" >
#{masterUnionid,jdbcType=VARCHAR},
</if>
<if test="creator != null" >
#{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
#{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
#{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucClassExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_class mucc
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_class mucc
<set >
<if test="record.id != null" >
mucc.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.classCode != null" >
mucc.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.className != null" >
mucc.class_name = #{record.className,jdbcType=VARCHAR},
</if>
<if test="record.groupId != null" >
mucc.group_id = #{record.groupId,jdbcType=VARCHAR},
</if>
<if test="record.xd != null" >
mucc.xd = #{record.xd,jdbcType=INTEGER},
</if>
<if test="record.masterUnionid != null" >
mucc.master_unionId = #{record.masterUnionid,jdbcType=VARCHAR},
</if>
<if test="record.creator != null" >
mucc.creator = #{record.creator,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null" >
mucc.create_date = #{record.createDate,jdbcType=BIGINT},
</if>
<if test="record.lastModifier != null" >
mucc.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
</if>
<if test="record.lastModdate != null" >
mucc.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
</if>
<if test="record.status != null" >
mucc.status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_class mucc
set mucc.id = #{record.id,jdbcType=BIGINT},
mucc.class_code = #{record.classCode,jdbcType=VARCHAR},
mucc.class_name = #{record.className,jdbcType=VARCHAR},
mucc.group_id = #{record.groupId,jdbcType=VARCHAR},
mucc.xd = #{record.xd,jdbcType=INTEGER},
mucc.master_unionId = #{record.masterUnionid,jdbcType=VARCHAR},
mucc.creator = #{record.creator,jdbcType=VARCHAR},
mucc.create_date = #{record.createDate,jdbcType=BIGINT},
mucc.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
mucc.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
mucc.status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucClass" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_class
<set >
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="className != null" >
class_name = #{className,jdbcType=VARCHAR},
</if>
<if test="groupId != null" >
group_id = #{groupId,jdbcType=VARCHAR},
</if>
<if test="xd != null" >
xd = #{xd,jdbcType=INTEGER},
</if>
<if test="masterUnionid != null" >
master_unionId = #{masterUnionid,jdbcType=VARCHAR},
</if>
<if test="creator != null" >
creator = #{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
create_date = #{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
last_modifier = #{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
last_modDate = #{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucClass" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_class
set class_code = #{classCode,jdbcType=VARCHAR},
class_name = #{className,jdbcType=VARCHAR},
group_id = #{groupId,jdbcType=VARCHAR},
xd = #{xd,jdbcType=INTEGER},
master_unionId = #{masterUnionid,jdbcType=VARCHAR},
creator = #{creator,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=BIGINT},
last_modifier = #{lastModifier,jdbcType=VARCHAR},
last_modDate = #{lastModdate,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucStudentMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucStudent" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucs_id" property="id" jdbcType="BIGINT" />
<result column="mucs_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="mucs_stu_id" property="stuId" jdbcType="VARCHAR" />
<result column="mucs_stu_name" property="stuName" jdbcType="VARCHAR" />
<result column="mucs_gender" property="gender" jdbcType="INTEGER" />
<result column="mucs_creator" property="creator" jdbcType="VARCHAR" />
<result column="mucs_create_date" property="createDate" jdbcType="BIGINT" />
<result column="mucs_last_modifier" property="lastModifier" jdbcType="VARCHAR" />
<result column="mucs_last_modDate" property="lastModdate" jdbcType="BIGINT" />
<result column="mucs_status" property="status" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucs.id as mucs_id, mucs.class_code as mucs_class_code, mucs.stu_id as mucs_stu_id,
mucs.stu_name as mucs_stu_name, mucs.gender as mucs_gender, mucs.creator as mucs_creator,
mucs.create_date as mucs_create_date, mucs.last_modifier as mucs_last_modifier, mucs.last_modDate as mucs_last_modDate,
mucs.status as mucs_status
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucStudentExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_student mucs
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_student mucs
where mucs.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_student
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucStudentExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_student mucs
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucStudent" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_student (id, class_code, stu_id,
stu_name, gender, creator,
create_date, last_modifier, last_modDate,
status)
values (#{id,jdbcType=BIGINT}, #{classCode,jdbcType=VARCHAR}, #{stuId,jdbcType=VARCHAR},
#{stuName,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, #{creator,jdbcType=VARCHAR},
#{createDate,jdbcType=BIGINT}, #{lastModifier,jdbcType=VARCHAR}, #{lastModdate,jdbcType=BIGINT},
#{status,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucStudent" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_student
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="stuId != null" >
stu_id,
</if>
<if test="stuName != null" >
stu_name,
</if>
<if test="gender != null" >
gender,
</if>
<if test="creator != null" >
creator,
</if>
<if test="createDate != null" >
create_date,
</if>
<if test="lastModifier != null" >
last_modifier,
</if>
<if test="lastModdate != null" >
last_modDate,
</if>
<if test="status != null" >
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="stuId != null" >
#{stuId,jdbcType=VARCHAR},
</if>
<if test="stuName != null" >
#{stuName,jdbcType=VARCHAR},
</if>
<if test="gender != null" >
#{gender,jdbcType=INTEGER},
</if>
<if test="creator != null" >
#{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
#{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
#{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucStudentExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_student mucs
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_student mucs
<set >
<if test="record.id != null" >
mucs.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.classCode != null" >
mucs.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.stuId != null" >
mucs.stu_id = #{record.stuId,jdbcType=VARCHAR},
</if>
<if test="record.stuName != null" >
mucs.stu_name = #{record.stuName,jdbcType=VARCHAR},
</if>
<if test="record.gender != null" >
mucs.gender = #{record.gender,jdbcType=INTEGER},
</if>
<if test="record.creator != null" >
mucs.creator = #{record.creator,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null" >
mucs.create_date = #{record.createDate,jdbcType=BIGINT},
</if>
<if test="record.lastModifier != null" >
mucs.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
</if>
<if test="record.lastModdate != null" >
mucs.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
</if>
<if test="record.status != null" >
mucs.status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_student mucs
set mucs.id = #{record.id,jdbcType=BIGINT},
mucs.class_code = #{record.classCode,jdbcType=VARCHAR},
mucs.stu_id = #{record.stuId,jdbcType=VARCHAR},
mucs.stu_name = #{record.stuName,jdbcType=VARCHAR},
mucs.gender = #{record.gender,jdbcType=INTEGER},
mucs.creator = #{record.creator,jdbcType=VARCHAR},
mucs.create_date = #{record.createDate,jdbcType=BIGINT},
mucs.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
mucs.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
mucs.status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucStudent" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_student
<set >
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="stuId != null" >
stu_id = #{stuId,jdbcType=VARCHAR},
</if>
<if test="stuName != null" >
stu_name = #{stuName,jdbcType=VARCHAR},
</if>
<if test="gender != null" >
gender = #{gender,jdbcType=INTEGER},
</if>
<if test="creator != null" >
creator = #{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
create_date = #{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
last_modifier = #{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
last_modDate = #{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucStudent" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_student
set class_code = #{classCode,jdbcType=VARCHAR},
stu_id = #{stuId,jdbcType=VARCHAR},
stu_name = #{stuName,jdbcType=VARCHAR},
gender = #{gender,jdbcType=INTEGER},
creator = #{creator,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=BIGINT},
last_modifier = #{lastModifier,jdbcType=VARCHAR},
last_modDate = #{lastModdate,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucStuentRelMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucStuentRel" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucsr_id" property="id" jdbcType="BIGINT" />
<result column="mucsr_stu_id" property="stuId" jdbcType="VARCHAR" />
<result column="mucsr_union_id" property="unionId" jdbcType="VARCHAR" />
<result column="mucsr_relation_code" property="relationCode" jdbcType="INTEGER" />
<result column="mucsr_creator" property="creator" jdbcType="VARCHAR" />
<result column="mucsr_create_date" property="createDate" jdbcType="BIGINT" />
<result column="mucsr_last_modifier" property="lastModifier" jdbcType="VARCHAR" />
<result column="mucsr_last_modDate" property="lastModdate" jdbcType="BIGINT" />
<result column="mucsr_status" property="status" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucsr.id as mucsr_id, mucsr.stu_id as mucsr_stu_id, mucsr.union_id as mucsr_union_id,
mucsr.relation_code as mucsr_relation_code, mucsr.creator as mucsr_creator, mucsr.create_date as mucsr_create_date,
mucsr.last_modifier as mucsr_last_modifier, mucsr.last_modDate as mucsr_last_modDate,
mucsr.status as mucsr_status
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucStuentRelExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_stuent_rel mucsr
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_stuent_rel mucsr
where mucsr.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_stuent_rel
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucStuentRelExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_stuent_rel mucsr
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucStuentRel" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_stuent_rel (id, stu_id, union_id,
relation_code, creator, create_date,
last_modifier, last_modDate, status
)
values (#{id,jdbcType=BIGINT}, #{stuId,jdbcType=VARCHAR}, #{unionId,jdbcType=VARCHAR},
#{relationCode,jdbcType=INTEGER}, #{creator,jdbcType=VARCHAR}, #{createDate,jdbcType=BIGINT},
#{lastModifier,jdbcType=VARCHAR}, #{lastModdate,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucStuentRel" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_stuent_rel
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="stuId != null" >
stu_id,
</if>
<if test="unionId != null" >
union_id,
</if>
<if test="relationCode != null" >
relation_code,
</if>
<if test="creator != null" >
creator,
</if>
<if test="createDate != null" >
create_date,
</if>
<if test="lastModifier != null" >
last_modifier,
</if>
<if test="lastModdate != null" >
last_modDate,
</if>
<if test="status != null" >
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="stuId != null" >
#{stuId,jdbcType=VARCHAR},
</if>
<if test="unionId != null" >
#{unionId,jdbcType=VARCHAR},
</if>
<if test="relationCode != null" >
#{relationCode,jdbcType=INTEGER},
</if>
<if test="creator != null" >
#{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
#{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
#{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucStuentRelExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_stuent_rel mucsr
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_stuent_rel mucsr
<set >
<if test="record.id != null" >
mucsr.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.stuId != null" >
mucsr.stu_id = #{record.stuId,jdbcType=VARCHAR},
</if>
<if test="record.unionId != null" >
mucsr.union_id = #{record.unionId,jdbcType=VARCHAR},
</if>
<if test="record.relationCode != null" >
mucsr.relation_code = #{record.relationCode,jdbcType=INTEGER},
</if>
<if test="record.creator != null" >
mucsr.creator = #{record.creator,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null" >
mucsr.create_date = #{record.createDate,jdbcType=BIGINT},
</if>
<if test="record.lastModifier != null" >
mucsr.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
</if>
<if test="record.lastModdate != null" >
mucsr.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
</if>
<if test="record.status != null" >
mucsr.status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_stuent_rel mucsr
set mucsr.id = #{record.id,jdbcType=BIGINT},
mucsr.stu_id = #{record.stuId,jdbcType=VARCHAR},
mucsr.union_id = #{record.unionId,jdbcType=VARCHAR},
mucsr.relation_code = #{record.relationCode,jdbcType=INTEGER},
mucsr.creator = #{record.creator,jdbcType=VARCHAR},
mucsr.create_date = #{record.createDate,jdbcType=BIGINT},
mucsr.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
mucsr.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
mucsr.status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucStuentRel" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_stuent_rel
<set >
<if test="stuId != null" >
stu_id = #{stuId,jdbcType=VARCHAR},
</if>
<if test="unionId != null" >
union_id = #{unionId,jdbcType=VARCHAR},
</if>
<if test="relationCode != null" >
relation_code = #{relationCode,jdbcType=INTEGER},
</if>
<if test="creator != null" >
creator = #{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
create_date = #{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
last_modifier = #{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
last_modDate = #{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucStuentRel" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_stuent_rel
set stu_id = #{stuId,jdbcType=VARCHAR},
union_id = #{unionId,jdbcType=VARCHAR},
relation_code = #{relationCode,jdbcType=INTEGER},
creator = #{creator,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=BIGINT},
last_modifier = #{lastModifier,jdbcType=VARCHAR},
last_modDate = #{lastModdate,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucUserMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucUser" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucm_id" property="id" jdbcType="BIGINT" />
<result column="mucm_union_id" property="unionId" jdbcType="VARCHAR" />
<result column="mucm_phone" property="phone" jdbcType="VARCHAR" />
<result column="mucm_name" property="name" jdbcType="VARCHAR" />
<result column="mucm_gender" property="gender" jdbcType="INTEGER" />
<result column="mucm_img_icon" property="imgIcon" jdbcType="VARCHAR" />
<result column="mucm_global_type" property="globalType" jdbcType="INTEGER" />
<result column="mucm_create_date" property="createDate" jdbcType="BIGINT" />
<result column="mucm_last_modifier" property="lastModifier" jdbcType="VARCHAR" />
<result column="mucm_last_modDate" property="lastModdate" jdbcType="BIGINT" />
<result column="mucm_status" property="status" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucm.id as mucm_id, mucm.union_id as mucm_union_id, mucm.phone as mucm_phone, mucm.name as mucm_name,
mucm.gender as mucm_gender, mucm.img_icon as mucm_img_icon, mucm.global_type as mucm_global_type,
mucm.create_date as mucm_create_date, mucm.last_modifier as mucm_last_modifier, mucm.last_modDate as mucm_last_modDate,
mucm.status as mucm_status
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_user mucm
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_user mucm
where mucm.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user mucm
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucUser" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user (id, union_id, phone,
name, gender, img_icon,
global_type, create_date, last_modifier,
last_modDate, status)
values (#{id,jdbcType=BIGINT}, #{unionId,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, #{imgIcon,jdbcType=VARCHAR},
#{globalType,jdbcType=INTEGER}, #{createDate,jdbcType=BIGINT}, #{lastModifier,jdbcType=VARCHAR},
#{lastModdate,jdbcType=BIGINT}, #{status,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUser" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="unionId != null" >
union_id,
</if>
<if test="phone != null" >
phone,
</if>
<if test="name != null" >
name,
</if>
<if test="gender != null" >
gender,
</if>
<if test="imgIcon != null" >
img_icon,
</if>
<if test="globalType != null" >
global_type,
</if>
<if test="createDate != null" >
create_date,
</if>
<if test="lastModifier != null" >
last_modifier,
</if>
<if test="lastModdate != null" >
last_modDate,
</if>
<if test="status != null" >
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="unionId != null" >
#{unionId,jdbcType=VARCHAR},
</if>
<if test="phone != null" >
#{phone,jdbcType=VARCHAR},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="gender != null" >
#{gender,jdbcType=INTEGER},
</if>
<if test="imgIcon != null" >
#{imgIcon,jdbcType=VARCHAR},
</if>
<if test="globalType != null" >
#{globalType,jdbcType=INTEGER},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
#{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
#{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_user mucm
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user mucm
<set >
<if test="record.id != null" >
mucm.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unionId != null" >
mucm.union_id = #{record.unionId,jdbcType=VARCHAR},
</if>
<if test="record.phone != null" >
mucm.phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.name != null" >
mucm.name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.gender != null" >
mucm.gender = #{record.gender,jdbcType=INTEGER},
</if>
<if test="record.imgIcon != null" >
mucm.img_icon = #{record.imgIcon,jdbcType=VARCHAR},
</if>
<if test="record.globalType != null" >
mucm.global_type = #{record.globalType,jdbcType=INTEGER},
</if>
<if test="record.createDate != null" >
mucm.create_date = #{record.createDate,jdbcType=BIGINT},
</if>
<if test="record.lastModifier != null" >
mucm.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
</if>
<if test="record.lastModdate != null" >
mucm.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
</if>
<if test="record.status != null" >
mucm.status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user mucm
set mucm.id = #{record.id,jdbcType=BIGINT},
mucm.union_id = #{record.unionId,jdbcType=VARCHAR},
mucm.phone = #{record.phone,jdbcType=VARCHAR},
mucm.name = #{record.name,jdbcType=VARCHAR},
mucm.gender = #{record.gender,jdbcType=INTEGER},
mucm.img_icon = #{record.imgIcon,jdbcType=VARCHAR},
mucm.global_type = #{record.globalType,jdbcType=INTEGER},
mucm.create_date = #{record.createDate,jdbcType=BIGINT},
mucm.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
mucm.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
mucm.status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUser" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user
<set >
<if test="unionId != null" >
union_id = #{unionId,jdbcType=VARCHAR},
</if>
<if test="phone != null" >
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="gender != null" >
gender = #{gender,jdbcType=INTEGER},
</if>
<if test="imgIcon != null" >
img_icon = #{imgIcon,jdbcType=VARCHAR},
</if>
<if test="globalType != null" >
global_type = #{globalType,jdbcType=INTEGER},
</if>
<if test="createDate != null" >
create_date = #{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
last_modifier = #{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
last_modDate = #{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucUser" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user
set union_id = #{unionId,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
gender = #{gender,jdbcType=INTEGER},
img_icon = #{imgIcon,jdbcType=VARCHAR},
global_type = #{globalType,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=BIGINT},
last_modifier = #{lastModifier,jdbcType=VARCHAR},
last_modDate = #{lastModdate,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucUserOpenIdMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucUserOpenId" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucuo_id" property="id" jdbcType="BIGINT" />
<result column="mucuo_union_id" property="unionId" jdbcType="VARCHAR" />
<result column="mucuo_app_id" property="appId" jdbcType="VARCHAR" />
<result column="mucuo_open_id" property="openId" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucuo.id as mucuo_id, mucuo.union_id as mucuo_union_id, mucuo.app_id as mucuo_app_id,
mucuo.open_id as mucuo_open_id
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserOpenIdExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_user_openId mucuo
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_user_openId mucuo
where mucuo.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_openId
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserOpenIdExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_openId mucuo
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserOpenId" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_openId (id, union_id, app_id,
open_id)
values (#{id,jdbcType=BIGINT}, #{unionId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
#{openId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserOpenId" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_openId
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="unionId != null" >
union_id,
</if>
<if test="appId != null" >
app_id,
</if>
<if test="openId != null" >
open_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="unionId != null" >
#{unionId,jdbcType=VARCHAR},
</if>
<if test="appId != null" >
#{appId,jdbcType=VARCHAR},
</if>
<if test="openId != null" >
#{openId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserOpenIdExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_user_openId mucuo
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_openId mucuo
<set >
<if test="record.id != null" >
mucuo.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unionId != null" >
mucuo.union_id = #{record.unionId,jdbcType=VARCHAR},
</if>
<if test="record.appId != null" >
mucuo.app_id = #{record.appId,jdbcType=VARCHAR},
</if>
<if test="record.openId != null" >
mucuo.open_id = #{record.openId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_openId mucuo
set mucuo.id = #{record.id,jdbcType=BIGINT},
mucuo.union_id = #{record.unionId,jdbcType=VARCHAR},
mucuo.app_id = #{record.appId,jdbcType=VARCHAR},
mucuo.open_id = #{record.openId,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserOpenId" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_openId
<set >
<if test="unionId != null" >
union_id = #{unionId,jdbcType=VARCHAR},
</if>
<if test="appId != null" >
app_id = #{appId,jdbcType=VARCHAR},
</if>
<if test="openId != null" >
open_id = #{openId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserOpenId" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_openId
set union_id = #{unionId,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
open_id = #{openId,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucUserRoleMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucUserRole" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucur_id" property="id" jdbcType="BIGINT" />
<result column="mucur_union_id" property="unionId" jdbcType="VARCHAR" />
<result column="mucur_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="mucur_userRole" property="userrole" jdbcType="INTEGER" />
<result column="mucur_creator" property="creator" jdbcType="VARCHAR" />
<result column="mucur_create_date" property="createDate" jdbcType="BIGINT" />
<result column="mucur_last_modifier" property="lastModifier" jdbcType="VARCHAR" />
<result column="mucur_last_modDate" property="lastModdate" jdbcType="BIGINT" />
<result column="mucur_status" property="status" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucur.id as mucur_id, mucur.union_id as mucur_union_id, mucur.class_code as mucur_class_code,
mucur.userRole as mucur_userRole, mucur.creator as mucur_creator, mucur.create_date as mucur_create_date,
mucur.last_modifier as mucur_last_modifier, mucur.last_modDate as mucur_last_modDate,
mucur.status as mucur_status
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserRoleExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_user_role mucur
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_user_role mucur
where mucur.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_role
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserRoleExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_role mucur
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserRole" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_role (id, union_id, class_code,
userRole, creator, create_date,
last_modifier, last_modDate, status
)
values (#{id,jdbcType=BIGINT}, #{unionId,jdbcType=VARCHAR}, #{classCode,jdbcType=VARCHAR},
#{userrole,jdbcType=INTEGER}, #{creator,jdbcType=VARCHAR}, #{createDate,jdbcType=BIGINT},
#{lastModifier,jdbcType=VARCHAR}, #{lastModdate,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserRole" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_role
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="unionId != null" >
union_id,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="userrole != null" >
userRole,
</if>
<if test="creator != null" >
creator,
</if>
<if test="createDate != null" >
create_date,
</if>
<if test="lastModifier != null" >
last_modifier,
</if>
<if test="lastModdate != null" >
last_modDate,
</if>
<if test="status != null" >
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="unionId != null" >
#{unionId,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="userrole != null" >
#{userrole,jdbcType=INTEGER},
</if>
<if test="creator != null" >
#{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
#{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
#{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserRoleExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_user_role mucur
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_role mucur
<set >
<if test="record.id != null" >
mucur.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unionId != null" >
mucur.union_id = #{record.unionId,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
mucur.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.userrole != null" >
mucur.userRole = #{record.userrole,jdbcType=INTEGER},
</if>
<if test="record.creator != null" >
mucur.creator = #{record.creator,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null" >
mucur.create_date = #{record.createDate,jdbcType=BIGINT},
</if>
<if test="record.lastModifier != null" >
mucur.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
</if>
<if test="record.lastModdate != null" >
mucur.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
</if>
<if test="record.status != null" >
mucur.status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_role mucur
set mucur.id = #{record.id,jdbcType=BIGINT},
mucur.union_id = #{record.unionId,jdbcType=VARCHAR},
mucur.class_code = #{record.classCode,jdbcType=VARCHAR},
mucur.userRole = #{record.userrole,jdbcType=INTEGER},
mucur.creator = #{record.creator,jdbcType=VARCHAR},
mucur.create_date = #{record.createDate,jdbcType=BIGINT},
mucur.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
mucur.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
mucur.status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserRole" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_role
<set >
<if test="unionId != null" >
union_id = #{unionId,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="userrole != null" >
userRole = #{userrole,jdbcType=INTEGER},
</if>
<if test="creator != null" >
creator = #{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
create_date = #{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
last_modifier = #{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
last_modDate = #{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserRole" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_role
set union_id = #{unionId,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
userRole = #{userrole,jdbcType=INTEGER},
creator = #{creator,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=BIGINT},
last_modifier = #{lastModifier,jdbcType=VARCHAR},
last_modDate = #{lastModdate,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucUserTraceMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucUserTrace" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucut_id" property="id" jdbcType="BIGINT" />
<result column="mucut_union_id" property="unionId" jdbcType="VARCHAR" />
<result column="mucut_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="mucut_group_id" property="groupId" jdbcType="VARCHAR" />
<result column="mucut_create_date" property="createDate" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucut.id as mucut_id, mucut.union_id as mucut_union_id, mucut.class_code as mucut_class_code,
mucut.group_id as mucut_group_id, mucut.create_date as mucut_create_date
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTraceExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_user_trace mucut
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_user_trace mucut
where mucut.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_trace
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTraceExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_trace mucut
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTrace" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_trace (id, union_id, class_code,
group_id, create_date)
values (#{id,jdbcType=BIGINT}, #{unionId,jdbcType=VARCHAR}, #{classCode,jdbcType=VARCHAR},
#{groupId,jdbcType=VARCHAR}, #{createDate,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTrace" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_trace
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="unionId != null" >
union_id,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="groupId != null" >
group_id,
</if>
<if test="createDate != null" >
create_date,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="unionId != null" >
#{unionId,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="groupId != null" >
#{groupId,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTraceExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_user_trace mucut
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_trace mucut
<set >
<if test="record.id != null" >
mucut.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unionId != null" >
mucut.union_id = #{record.unionId,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
mucut.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.groupId != null" >
mucut.group_id = #{record.groupId,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null" >
mucut.create_date = #{record.createDate,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_trace mucut
set mucut.id = #{record.id,jdbcType=BIGINT},
mucut.union_id = #{record.unionId,jdbcType=VARCHAR},
mucut.class_code = #{record.classCode,jdbcType=VARCHAR},
mucut.group_id = #{record.groupId,jdbcType=VARCHAR},
mucut.create_date = #{record.createDate,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTrace" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_trace
<set >
<if test="unionId != null" >
union_id = #{unionId,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="groupId != null" >
group_id = #{groupId,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
create_date = #{createDate,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTrace" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_trace
set union_id = #{unionId,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
group_id = #{groupId,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.muc.repository.MucUserTypeMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.muc.model.MucUserType" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<id column="mucutp_id" property="id" jdbcType="BIGINT" />
<result column="mucutp_union_id" property="unionId" jdbcType="VARCHAR" />
<result column="mucutp_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="mucutp_user_type" property="userType" jdbcType="INTEGER" />
<result column="mucutp_creator" property="creator" jdbcType="VARCHAR" />
<result column="mucutp_create_date" property="createDate" jdbcType="BIGINT" />
<result column="mucutp_last_modifier" property="lastModifier" jdbcType="VARCHAR" />
<result column="mucutp_last_modDate" property="lastModdate" jdbcType="BIGINT" />
<result column="mucutp_status" property="status" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
mucutp.id as mucutp_id, mucutp.union_id as mucutp_union_id, mucutp.class_code as mucutp_class_code,
mucutp.user_type as mucutp_user_type, mucutp.creator as mucutp_creator, mucutp.create_date as mucutp_create_date,
mucutp.last_modifier as mucutp_last_modifier, mucutp.last_modDate as mucutp_last_modDate,
mucutp.status as mucutp_status
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTypeExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from muc_user_type mucutp
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select
<include refid="Base_Column_List" />
from muc_user_type mucutp
where mucutp.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_type
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTypeExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
delete from muc_user_type mucutp
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserType" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_type (id, union_id, class_code,
user_type, creator, create_date,
last_modifier, last_modDate, status
)
values (#{id,jdbcType=BIGINT}, #{unionId,jdbcType=VARCHAR}, #{classCode,jdbcType=VARCHAR},
#{userType,jdbcType=INTEGER}, #{creator,jdbcType=VARCHAR}, #{createDate,jdbcType=BIGINT},
#{lastModifier,jdbcType=VARCHAR}, #{lastModdate,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserType" useGeneratedKeys="true" keyColumn="id" keyProperty="id" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
insert into muc_user_type
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="unionId != null" >
union_id,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="userType != null" >
user_type,
</if>
<if test="creator != null" >
creator,
</if>
<if test="createDate != null" >
create_date,
</if>
<if test="lastModifier != null" >
last_modifier,
</if>
<if test="lastModdate != null" >
last_modDate,
</if>
<if test="status != null" >
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="unionId != null" >
#{unionId,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="userType != null" >
#{userType,jdbcType=INTEGER},
</if>
<if test="creator != null" >
#{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
#{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
#{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserTypeExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
select count(*) from muc_user_type mucutp
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_type mucutp
<set >
<if test="record.id != null" >
mucutp.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unionId != null" >
mucutp.union_id = #{record.unionId,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
mucutp.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.userType != null" >
mucutp.user_type = #{record.userType,jdbcType=INTEGER},
</if>
<if test="record.creator != null" >
mucutp.creator = #{record.creator,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null" >
mucutp.create_date = #{record.createDate,jdbcType=BIGINT},
</if>
<if test="record.lastModifier != null" >
mucutp.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
</if>
<if test="record.lastModdate != null" >
mucutp.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
</if>
<if test="record.status != null" >
mucutp.status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_type mucutp
set mucutp.id = #{record.id,jdbcType=BIGINT},
mucutp.union_id = #{record.unionId,jdbcType=VARCHAR},
mucutp.class_code = #{record.classCode,jdbcType=VARCHAR},
mucutp.user_type = #{record.userType,jdbcType=INTEGER},
mucutp.creator = #{record.creator,jdbcType=VARCHAR},
mucutp.create_date = #{record.createDate,jdbcType=BIGINT},
mucutp.last_modifier = #{record.lastModifier,jdbcType=VARCHAR},
mucutp.last_modDate = #{record.lastModdate,jdbcType=BIGINT},
mucutp.status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserType" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_type
<set >
<if test="unionId != null" >
union_id = #{unionId,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="userType != null" >
user_type = #{userType,jdbcType=INTEGER},
</if>
<if test="creator != null" >
creator = #{creator,jdbcType=VARCHAR},
</if>
<if test="createDate != null" >
create_date = #{createDate,jdbcType=BIGINT},
</if>
<if test="lastModifier != null" >
last_modifier = #{lastModifier,jdbcType=VARCHAR},
</if>
<if test="lastModdate != null" >
last_modDate = #{lastModdate,jdbcType=BIGINT},
</if>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.muc.model.MucUserType" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 26 17:47:11 CST 2018.
-->
update muc_user_type
set union_id = #{unionId,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
user_type = #{userType,jdbcType=INTEGER},
creator = #{creator,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=BIGINT},
last_modifier = #{lastModifier,jdbcType=VARCHAR},
last_modDate = #{lastModdate,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<!--<settings>-->
<!--<setting name="logImpl" value="STDOUT_LOGGING" />-->
<!--</settings>-->
<typeAliases>
<package name="com.zhzf.fpj.xcx.muc.model"/>
</typeAliases>
<mappers>
<mapper resource="META-INF/mappers/MucClassMapper.xml"/>
<mapper resource="META-INF/mappers/MucStudentMapper.xml"/>
<mapper resource="META-INF/mappers/MucStuentRelMapper.xml"/>
<mapper resource="META-INF/mappers/MucUserMapper.xml"/>
<mapper resource="META-INF/mappers/MucUserOpenIdMapper.xml"/>
<mapper resource="META-INF/mappers/MucUserRoleMapper.xml"/>
<mapper resource="META-INF/mappers/MucUserTraceMapper.xml"/>
<mapper resource="META-INF/mappers/MucUserTypeMapper.xml"/>
</mappers>
</configuration>
sharding.jdbc.datasource.names=muc_0,muc_1
sharding.jdbc.datasource.muc_0.type=org.apache.commons.dbcp.BasicDataSource
sharding.jdbc.datasource.muc_0.driver-class-name=com.mysql.jdbc.Driver
sharding.jdbc.datasource.muc_0.url=jdbc:mysql://10.136.55.211:3306/wbyb_muc_0
sharding.jdbc.datasource.muc_0.username=weixiao
sharding.jdbc.datasource.muc_0.password=Weixiao@123
sharding.jdbc.datasource.muc_1.type=org.apache.commons.dbcp.BasicDataSource
sharding.jdbc.datasource.muc_1.driver-class-name=com.mysql.jdbc.Driver
sharding.jdbc.datasource.muc_1.url=jdbc:mysql://10.136.55.211:3306/wbyb_muc_1
sharding.jdbc.datasource.muc_1.username=weixiao
sharding.jdbc.datasource.muc_1.password=Weixiao@123
sharding.jdbc.config.sharding.default-database-strategy.inline.sharding-column=union_id
sharding.jdbc.config.sharding.default-database-strategy.inline.algorithm-expression=muc_${union_id % 2}
sharding.jdbc.config.sharding.tables.muc_user.database-strategy.standard.sharding-column=union_id
sharding.jdbc.config.sharding.tables.muc_user.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user.actual-data-nodes=muc_${0..1}.muc_user_${0..1}
sharding.jdbc.config.sharding.tables.muc_user.table-strategy.standard.sharding-column=union_id
sharding.jdbc.config.sharding.tables.muc_user.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user.key-generator-column-name=id
sharding.jdbc.config.sharding.tables.muc_user_openId.database-strategy.standard.sharding-column=union_id
sharding.jdbc.config.sharding.tables.muc_user_openId.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_openId.actual-data-nodes=muc_${0..1}.muc_user_openId_${0..1}
sharding.jdbc.config.sharding.tables.muc_user_openId.table-strategy.standard.sharding-column=union_id
sharding.jdbc.config.sharding.tables.muc_user_openId.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_openId.key-generator-column-name=id
sharding.jdbc.config.sharding.tables.muc_stuent_rel.database-strategy.standard.sharding-column=union_id
sharding.jdbc.config.sharding.tables.muc_stuent_rel.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_stuent_rel.actual-data-nodes=muc_${0..1}.muc_stuent_rel_${0..1}
sharding.jdbc.config.sharding.tables.muc_stuent_rel.table-strategy.standard.sharding-column=union_id
sharding.jdbc.config.sharding.tables.muc_stuent_rel.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_stuent_rel.key-generator-column-name=id
##业务分库规则不一样###
sharding.jdbc.config.sharding.tables.muc_class.database-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_class.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_class.actual-data-nodes=muc_${0..1}.muc_class_${0..1}
sharding.jdbc.config.sharding.tables.muc_class.table-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_class.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_class.key-generator-column-name=id
sharding.jdbc.config.sharding.tables.muc_student.database-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_student.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_student.actual-data-nodes=muc_${0..1}.muc_student_${0..1}
sharding.jdbc.config.sharding.tables.muc_student.table-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_student.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_student.key-generator-column-name=id
sharding.jdbc.config.sharding.tables.muc_user_type.database-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_user_type.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_type.actual-data-nodes=muc_${0..1}.muc_user_type_${0..1}
sharding.jdbc.config.sharding.tables.muc_user_type.table-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_user_type.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_type.key-generator-column-name=id
sharding.jdbc.config.sharding.tables.muc_user_role.database-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_user_role.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_role.actual-data-nodes=muc_${0..1}.muc_user_role_${0..1}
sharding.jdbc.config.sharding.tables.muc_user_role.table-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_user_role.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_role.key-generator-column-name=id
sharding.jdbc.config.sharding.tables.muc_user_trace.database-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_user_trace.database-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.ds.PreciseModuloDatabaseShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_trace.actual-data-nodes=muc_${0..1}.muc_user_trace_${0..1}
sharding.jdbc.config.sharding.tables.muc_user_trace.table-strategy.standard.sharding-column=class_code
sharding.jdbc.config.sharding.tables.muc_user_trace.table-strategy.standard.preciseAlgorithmClassName=com.zhzf.fpj.xcx.sharding.strategy.table.PreciseModuloTableShardingAlgorithm
sharding.jdbc.config.sharding.tables.muc_user_trace.key-generator-column-name=id
sharding.jdbc.config.sharding.props.sql.show=false
sharding.jdbc.config.orchestration.name=muc_sharding
sharding.jdbc.config.orchestration.type=sharding
sharding.jdbc.config.orchestration.overwrite=false
sharding.jdbc.config.orchestration.zookeeper.namespace=orchestration-wbyb
sharding.jdbc.config.orchestration.zookeeper.server-lists=localhost:2181
spring.jpa.properties.hibernate.hbm2ddl.auto=create
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
#spring.jpa.properties.hibernate.show_sql=true
mybatis.config-location=classpath:META-INF/mybatis-config.xml
spring.profiles.active=sharding
#spring.profiles.active=sharding-db
#spring.profiles.active=sharding-tbl
#spring.profiles.active=masterslave
#spring.profiles.active=sharding-masterslave
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<classPathEntry
location="/Users/ethanlam/Documents/base_env/apache-maven-repo/mysql/mysql-connector-java/5.1.35/mysql-connector-java-5.1.35.jar" />
<context id="notice-check" targetRuntime="MyBatis3">
<plugin type="org.mybatis.generator.maven.ext.UseGeneratedKeysPlugin"/>
<commentGenerator>
<property name="suppressAllComments" value="false" />
<property name="suppressDate" value="false"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://10.136.55.211/wbyb_muc?useUnicode=true"
userId="weixiao"
password="Weixiao@123">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="com.zhzf.fpj.xcx.muc.model"
targetProject="src/main/java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
<property name="rootClass" value="com.zhzf.fpj.xcx.model.EntityBean"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="META-INF.mappers" targetProject="src/main/resources">
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.zhzf.fpj.xcx.muc.repository" targetProject="src/main/java">
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!-- 配置需要生成的表对象逻辑 -->
<table schema="wbyb_muc" tableName="muc_class" domainObjectName="MucClass" alias="mucc">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<!--property name="my.isgen.usekeys" value="true"/-->
</table>
<table schema="wbyb_muc" tableName="muc_user" domainObjectName="MucUser" alias="mucm">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="muc_student" domainObjectName="MucStudent" alias="mucs">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="muc_stuent_rel" domainObjectName="MucStuentRel" alias="mucsr">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="muc_user_openId" domainObjectName="MucUserOpenId" alias="mucuo">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="muc_user_role" domainObjectName="MucUserRole" alias="mucur">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="muc_user_trace" domainObjectName="MucUserTrace" alias="mucut">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_muc" tableName="muc_user_type" domainObjectName="MucUserType" alias="mucutp">
<!--generatedKey column="id" sqlStatement="SELECT LAST_INSERT_ID()" identity="true"/-->
<property name="my.isgen.usekeys" value="true"/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="log.context.name" value="sharding-jdbc-spring-namespace-jpa-example" />
<property name="log.charset" value="UTF-8" />
<property name="log.pattern" value="[%-5level] %date --%thread-- [%logger] %msg %n" />
<contextName>${log.context.name}</contextName>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="${log.charset}">
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="com.zaxxer.hikari" level="WARN" />
<root>
<level value="DEBUG" />
<appender-ref ref="STDOUT" />
</root>
</configuration>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-business</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>core-business-notice</artifactId>
<name>core-business-notice</name>
<description>core-business-notice</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>io.shardingjdbc</groupId>
<artifactId>sharding-jdbc-orchestration-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2.1</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
/*
* Copyright 1999-2015 dangdang.com.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* </p>
*/
package com.zhzf.fpj.xcx.notice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
@SpringBootApplication
public class SpringBootDataMybatisMain {
// CHECKSTYLE:OFF
public static void main(final String[] args) {
// CHECKSTYLE:ON
Object[] starts = new Object[1];
starts[0] = SpringBootDataMybatisMain.class;
SpringApplication app = new SpringApplication(starts);
//app.addListeners(new ApplicationEnvironmentPreparedEventListener());
//app.addListeners(new ApplicationListener2());
ApplicationContext applicationContext = app.run(args);
//applicationContext.getBean(DemoService.class).demo("local_dao-demo-sec");
//OrchestrationDataSourceCloseableUtil.closeQuietly(applicationContext.getBean(OrchestrationShardingDataSource.class));
}
}
package com.zhzf.fpj.xcx.notice.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class Notice extends EntityBean {
/**
* id,所属表字段为 notice.id
*/
private Long id;
/**
* 通知唯一码,所属表字段为 notice.unique_code
*/
private String uniqueCode;
/**
* 班级唯一码,所属表字段为 notice.class_code
*/
private String classCode;
/**
* 创建者unionId,所属表字段为 notice.creator_user_id
*/
private String creatorUserId;
/**
* 创建者姓名,所属表字段为 notice.creator_name
*/
private String creatorName;
/**
* 通知类型, 1班级通知 / 2班级作业 / 3放假通知 / 4家长须知 / 5活动通知 / 99其他,所属表字段为 notice.type
*/
private Integer type;
/**
* 通知标题,所属表字段为 notice.title
*/
private String title;
/**
* 通知内容,所属表字段为 notice.content
*/
private String content;
/**
* 通知未处理学生人数,所属表字段为 notice.stu_undeal_num
*/
private Integer stuUndealNum;
/**
* 通知操作类型, 1阅读类型 / 2确认类型,所属表字段为 notice.deal_type
*/
private Integer dealType;
/**
* 创建时间,所属表字段为 notice.create_time
*/
private Long createTime;
/**
* 删除标志, 0未删除 / 1已删除,所属表字段为 notice.is_delete
*/
private Integer isDelete;
/**
notice.id
*
* @return the value of notice.id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Long getId() {
return id;
}
/**
notice.id
*
* @param id the value for notice.id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
notice.unique_code
*
* @return the value of notice.unique_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getUniqueCode() {
return uniqueCode;
}
/**
notice.unique_code
*
* @param uniqueCode the value for notice.unique_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setUniqueCode(String uniqueCode) {
this.uniqueCode = uniqueCode == null ? null : uniqueCode.trim();
}
/**
notice.class_code
*
* @return the value of notice.class_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
notice.class_code
*
* @param classCode the value for notice.class_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
notice.creator_user_id
*
* @return the value of notice.creator_user_id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getCreatorUserId() {
return creatorUserId;
}
/**
notice.creator_user_id
*
* @param creatorUserId the value for notice.creator_user_id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setCreatorUserId(String creatorUserId) {
this.creatorUserId = creatorUserId == null ? null : creatorUserId.trim();
}
/**
notice.creator_name
*
* @return the value of notice.creator_name
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getCreatorName() {
return creatorName;
}
/**
notice.creator_name
*
* @param creatorName the value for notice.creator_name
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setCreatorName(String creatorName) {
this.creatorName = creatorName == null ? null : creatorName.trim();
}
/**
notice.type
*
* @return the value of notice.type
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Integer getType() {
return type;
}
/**
notice.type
*
* @param type the value for notice.type
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setType(Integer type) {
this.type = type;
}
/**
notice.title
*
* @return the value of notice.title
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getTitle() {
return title;
}
/**
notice.title
*
* @param title the value for notice.title
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setTitle(String title) {
this.title = title == null ? null : title.trim();
}
/**
notice.content
*
* @return the value of notice.content
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getContent() {
return content;
}
/**
notice.content
*
* @param content the value for notice.content
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
/**
notice.stu_undeal_num
*
* @return the value of notice.stu_undeal_num
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Integer getStuUndealNum() {
return stuUndealNum;
}
/**
notice.stu_undeal_num
*
* @param stuUndealNum the value for notice.stu_undeal_num
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setStuUndealNum(Integer stuUndealNum) {
this.stuUndealNum = stuUndealNum;
}
/**
notice.deal_type
*
* @return the value of notice.deal_type
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Integer getDealType() {
return dealType;
}
/**
notice.deal_type
*
* @param dealType the value for notice.deal_type
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setDealType(Integer dealType) {
this.dealType = dealType;
}
/**
notice.create_time
*
* @return the value of notice.create_time
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Long getCreateTime() {
return createTime;
}
/**
notice.create_time
*
* @param createTime the value for notice.create_time
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
/**
notice.is_delete
*
* @return the value of notice.is_delete
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Integer getIsDelete() {
return isDelete;
}
/**
notice.is_delete
*
* @param isDelete the value for notice.is_delete
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class NoticeAttachment extends EntityBean {
/**
* id,所属表字段为 notice_attachment.id
*/
private Long id;
/**
* 通知附件唯一码,所属表字段为 notice_attachment.unique_code
*/
private String uniqueCode;
/**
* 班级唯一码,所属表字段为 notice_attachment.class_code
*/
private String classCode;
/**
* 通知唯一码,所属表字段为 notice_attachment.notice_unique
*/
private String noticeUnique;
/**
* 通知附件类型, 1图片 / 2文件,所属表字段为 notice_attachment.type
*/
private Integer type;
/**
* 通知附件链接,所属表字段为 notice_attachment.url
*/
private String url;
/**
* 创建时间,所属表字段为 notice_attachment.create_time
*/
private Long createTime;
/**
notice_attachment.id
*
* @return the value of notice_attachment.id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Long getId() {
return id;
}
/**
notice_attachment.id
*
* @param id the value for notice_attachment.id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
notice_attachment.unique_code
*
* @return the value of notice_attachment.unique_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getUniqueCode() {
return uniqueCode;
}
/**
notice_attachment.unique_code
*
* @param uniqueCode the value for notice_attachment.unique_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setUniqueCode(String uniqueCode) {
this.uniqueCode = uniqueCode == null ? null : uniqueCode.trim();
}
/**
notice_attachment.class_code
*
* @return the value of notice_attachment.class_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
notice_attachment.class_code
*
* @param classCode the value for notice_attachment.class_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
notice_attachment.notice_unique
*
* @return the value of notice_attachment.notice_unique
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getNoticeUnique() {
return noticeUnique;
}
/**
notice_attachment.notice_unique
*
* @param noticeUnique the value for notice_attachment.notice_unique
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setNoticeUnique(String noticeUnique) {
this.noticeUnique = noticeUnique == null ? null : noticeUnique.trim();
}
/**
notice_attachment.type
*
* @return the value of notice_attachment.type
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Integer getType() {
return type;
}
/**
notice_attachment.type
*
* @param type the value for notice_attachment.type
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setType(Integer type) {
this.type = type;
}
/**
notice_attachment.url
*
* @return the value of notice_attachment.url
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getUrl() {
return url;
}
/**
notice_attachment.url
*
* @param url the value for notice_attachment.url
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
/**
notice_attachment.create_time
*
* @return the value of notice_attachment.create_time
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Long getCreateTime() {
return createTime;
}
/**
notice_attachment.create_time
*
* @param createTime the value for notice_attachment.create_time
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.model;
import java.util.ArrayList;
import java.util.List;
public class NoticeAttachmentExample {
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected String orderByClause;
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected boolean distinct;
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public NoticeAttachmentExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 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("wna.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("wna.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("wna.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("wna.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("wna.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("wna.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("wna.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("wna.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("wna.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("wna.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("wna.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("wna.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNull() {
addCriterion("wna.unique_code is null");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNotNull() {
addCriterion("wna.unique_code is not null");
return (Criteria) this;
}
public Criteria andUniqueCodeEqualTo(String value) {
addCriterion("wna.unique_code =", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotEqualTo(String value) {
addCriterion("wna.unique_code <>", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThan(String value) {
addCriterion("wna.unique_code >", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThanOrEqualTo(String value) {
addCriterion("wna.unique_code >=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThan(String value) {
addCriterion("wna.unique_code <", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThanOrEqualTo(String value) {
addCriterion("wna.unique_code <=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLike(String value) {
addCriterion("wna.unique_code like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotLike(String value) {
addCriterion("wna.unique_code not like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeIn(List<String> values) {
addCriterion("wna.unique_code in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotIn(List<String> values) {
addCriterion("wna.unique_code not in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeBetween(String value1, String value2) {
addCriterion("wna.unique_code between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotBetween(String value1, String value2) {
addCriterion("wna.unique_code not between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("wna.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("wna.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("wna.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("wna.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("wna.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("wna.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("wna.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("wna.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("wna.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("wna.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("wna.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("wna.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("wna.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("wna.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andNoticeUniqueIsNull() {
addCriterion("wna.notice_unique is null");
return (Criteria) this;
}
public Criteria andNoticeUniqueIsNotNull() {
addCriterion("wna.notice_unique is not null");
return (Criteria) this;
}
public Criteria andNoticeUniqueEqualTo(String value) {
addCriterion("wna.notice_unique =", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotEqualTo(String value) {
addCriterion("wna.notice_unique <>", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueGreaterThan(String value) {
addCriterion("wna.notice_unique >", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueGreaterThanOrEqualTo(String value) {
addCriterion("wna.notice_unique >=", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueLessThan(String value) {
addCriterion("wna.notice_unique <", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueLessThanOrEqualTo(String value) {
addCriterion("wna.notice_unique <=", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueLike(String value) {
addCriterion("wna.notice_unique like", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotLike(String value) {
addCriterion("wna.notice_unique not like", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueIn(List<String> values) {
addCriterion("wna.notice_unique in", values, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotIn(List<String> values) {
addCriterion("wna.notice_unique not in", values, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueBetween(String value1, String value2) {
addCriterion("wna.notice_unique between", value1, value2, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotBetween(String value1, String value2) {
addCriterion("wna.notice_unique not between", value1, value2, "noticeUnique");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("wna.type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("wna.type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("wna.type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("wna.type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("wna.type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("wna.type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("wna.type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("wna.type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("wna.type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("wna.type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("wna.type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("wna.type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("wna.url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("wna.url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("wna.url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("wna.url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("wna.url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("wna.url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("wna.url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("wna.url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("wna.url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("wna.url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("wna.url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("wna.url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("wna.url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("wna.url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("wna.create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("wna.create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("wna.create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("wna.create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("wna.create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("wna.create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("wna.create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("wna.create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("wna.create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("wna.create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("wna.create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("wna.create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
此实体关联 表是:notice_attachmentnotice_attachment
*
* @mbggenerated do_not_delete_during_merge Fri Apr 27 10:50:34 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.model;
import java.util.ArrayList;
import java.util.List;
public class NoticeExample {
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected String orderByClause;
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected boolean distinct;
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public NoticeExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 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("wnm.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("wnm.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("wnm.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("wnm.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("wnm.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("wnm.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("wnm.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("wnm.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("wnm.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("wnm.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("wnm.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("wnm.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNull() {
addCriterion("wnm.unique_code is null");
return (Criteria) this;
}
public Criteria andUniqueCodeIsNotNull() {
addCriterion("wnm.unique_code is not null");
return (Criteria) this;
}
public Criteria andUniqueCodeEqualTo(String value) {
addCriterion("wnm.unique_code =", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotEqualTo(String value) {
addCriterion("wnm.unique_code <>", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThan(String value) {
addCriterion("wnm.unique_code >", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeGreaterThanOrEqualTo(String value) {
addCriterion("wnm.unique_code >=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThan(String value) {
addCriterion("wnm.unique_code <", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLessThanOrEqualTo(String value) {
addCriterion("wnm.unique_code <=", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeLike(String value) {
addCriterion("wnm.unique_code like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotLike(String value) {
addCriterion("wnm.unique_code not like", value, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeIn(List<String> values) {
addCriterion("wnm.unique_code in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotIn(List<String> values) {
addCriterion("wnm.unique_code not in", values, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeBetween(String value1, String value2) {
addCriterion("wnm.unique_code between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andUniqueCodeNotBetween(String value1, String value2) {
addCriterion("wnm.unique_code not between", value1, value2, "uniqueCode");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("wnm.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("wnm.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("wnm.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("wnm.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("wnm.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("wnm.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("wnm.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("wnm.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("wnm.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("wnm.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("wnm.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("wnm.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("wnm.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("wnm.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNull() {
addCriterion("wnm.creator_user_id is null");
return (Criteria) this;
}
public Criteria andCreatorUserIdIsNotNull() {
addCriterion("wnm.creator_user_id is not null");
return (Criteria) this;
}
public Criteria andCreatorUserIdEqualTo(String value) {
addCriterion("wnm.creator_user_id =", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotEqualTo(String value) {
addCriterion("wnm.creator_user_id <>", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThan(String value) {
addCriterion("wnm.creator_user_id >", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdGreaterThanOrEqualTo(String value) {
addCriterion("wnm.creator_user_id >=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThan(String value) {
addCriterion("wnm.creator_user_id <", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLessThanOrEqualTo(String value) {
addCriterion("wnm.creator_user_id <=", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdLike(String value) {
addCriterion("wnm.creator_user_id like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotLike(String value) {
addCriterion("wnm.creator_user_id not like", value, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdIn(List<String> values) {
addCriterion("wnm.creator_user_id in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotIn(List<String> values) {
addCriterion("wnm.creator_user_id not in", values, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdBetween(String value1, String value2) {
addCriterion("wnm.creator_user_id between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorUserIdNotBetween(String value1, String value2) {
addCriterion("wnm.creator_user_id not between", value1, value2, "creatorUserId");
return (Criteria) this;
}
public Criteria andCreatorNameIsNull() {
addCriterion("wnm.creator_name is null");
return (Criteria) this;
}
public Criteria andCreatorNameIsNotNull() {
addCriterion("wnm.creator_name is not null");
return (Criteria) this;
}
public Criteria andCreatorNameEqualTo(String value) {
addCriterion("wnm.creator_name =", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameNotEqualTo(String value) {
addCriterion("wnm.creator_name <>", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameGreaterThan(String value) {
addCriterion("wnm.creator_name >", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameGreaterThanOrEqualTo(String value) {
addCriterion("wnm.creator_name >=", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameLessThan(String value) {
addCriterion("wnm.creator_name <", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameLessThanOrEqualTo(String value) {
addCriterion("wnm.creator_name <=", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameLike(String value) {
addCriterion("wnm.creator_name like", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameNotLike(String value) {
addCriterion("wnm.creator_name not like", value, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameIn(List<String> values) {
addCriterion("wnm.creator_name in", values, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameNotIn(List<String> values) {
addCriterion("wnm.creator_name not in", values, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameBetween(String value1, String value2) {
addCriterion("wnm.creator_name between", value1, value2, "creatorName");
return (Criteria) this;
}
public Criteria andCreatorNameNotBetween(String value1, String value2) {
addCriterion("wnm.creator_name not between", value1, value2, "creatorName");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("wnm.type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("wnm.type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("wnm.type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("wnm.type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("wnm.type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("wnm.type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("wnm.type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("wnm.type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("wnm.type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("wnm.type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("wnm.type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("wnm.type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTitleIsNull() {
addCriterion("wnm.title is null");
return (Criteria) this;
}
public Criteria andTitleIsNotNull() {
addCriterion("wnm.title is not null");
return (Criteria) this;
}
public Criteria andTitleEqualTo(String value) {
addCriterion("wnm.title =", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotEqualTo(String value) {
addCriterion("wnm.title <>", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThan(String value) {
addCriterion("wnm.title >", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("wnm.title >=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThan(String value) {
addCriterion("wnm.title <", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("wnm.title <=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLike(String value) {
addCriterion("wnm.title like", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotLike(String value) {
addCriterion("wnm.title not like", value, "title");
return (Criteria) this;
}
public Criteria andTitleIn(List<String> values) {
addCriterion("wnm.title in", values, "title");
return (Criteria) this;
}
public Criteria andTitleNotIn(List<String> values) {
addCriterion("wnm.title not in", values, "title");
return (Criteria) this;
}
public Criteria andTitleBetween(String value1, String value2) {
addCriterion("wnm.title between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("wnm.title not between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andContentIsNull() {
addCriterion("wnm.content is null");
return (Criteria) this;
}
public Criteria andContentIsNotNull() {
addCriterion("wnm.content is not null");
return (Criteria) this;
}
public Criteria andContentEqualTo(String value) {
addCriterion("wnm.content =", value, "content");
return (Criteria) this;
}
public Criteria andContentNotEqualTo(String value) {
addCriterion("wnm.content <>", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThan(String value) {
addCriterion("wnm.content >", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThanOrEqualTo(String value) {
addCriterion("wnm.content >=", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThan(String value) {
addCriterion("wnm.content <", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThanOrEqualTo(String value) {
addCriterion("wnm.content <=", value, "content");
return (Criteria) this;
}
public Criteria andContentLike(String value) {
addCriterion("wnm.content like", value, "content");
return (Criteria) this;
}
public Criteria andContentNotLike(String value) {
addCriterion("wnm.content not like", value, "content");
return (Criteria) this;
}
public Criteria andContentIn(List<String> values) {
addCriterion("wnm.content in", values, "content");
return (Criteria) this;
}
public Criteria andContentNotIn(List<String> values) {
addCriterion("wnm.content not in", values, "content");
return (Criteria) this;
}
public Criteria andContentBetween(String value1, String value2) {
addCriterion("wnm.content between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andContentNotBetween(String value1, String value2) {
addCriterion("wnm.content not between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andStuUndealNumIsNull() {
addCriterion("wnm.stu_undeal_num is null");
return (Criteria) this;
}
public Criteria andStuUndealNumIsNotNull() {
addCriterion("wnm.stu_undeal_num is not null");
return (Criteria) this;
}
public Criteria andStuUndealNumEqualTo(Integer value) {
addCriterion("wnm.stu_undeal_num =", value, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumNotEqualTo(Integer value) {
addCriterion("wnm.stu_undeal_num <>", value, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumGreaterThan(Integer value) {
addCriterion("wnm.stu_undeal_num >", value, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumGreaterThanOrEqualTo(Integer value) {
addCriterion("wnm.stu_undeal_num >=", value, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumLessThan(Integer value) {
addCriterion("wnm.stu_undeal_num <", value, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumLessThanOrEqualTo(Integer value) {
addCriterion("wnm.stu_undeal_num <=", value, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumIn(List<Integer> values) {
addCriterion("wnm.stu_undeal_num in", values, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumNotIn(List<Integer> values) {
addCriterion("wnm.stu_undeal_num not in", values, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumBetween(Integer value1, Integer value2) {
addCriterion("wnm.stu_undeal_num between", value1, value2, "stuUndealNum");
return (Criteria) this;
}
public Criteria andStuUndealNumNotBetween(Integer value1, Integer value2) {
addCriterion("wnm.stu_undeal_num not between", value1, value2, "stuUndealNum");
return (Criteria) this;
}
public Criteria andDealTypeIsNull() {
addCriterion("wnm.deal_type is null");
return (Criteria) this;
}
public Criteria andDealTypeIsNotNull() {
addCriterion("wnm.deal_type is not null");
return (Criteria) this;
}
public Criteria andDealTypeEqualTo(Integer value) {
addCriterion("wnm.deal_type =", value, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeNotEqualTo(Integer value) {
addCriterion("wnm.deal_type <>", value, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeGreaterThan(Integer value) {
addCriterion("wnm.deal_type >", value, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("wnm.deal_type >=", value, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeLessThan(Integer value) {
addCriterion("wnm.deal_type <", value, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeLessThanOrEqualTo(Integer value) {
addCriterion("wnm.deal_type <=", value, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeIn(List<Integer> values) {
addCriterion("wnm.deal_type in", values, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeNotIn(List<Integer> values) {
addCriterion("wnm.deal_type not in", values, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeBetween(Integer value1, Integer value2) {
addCriterion("wnm.deal_type between", value1, value2, "dealType");
return (Criteria) this;
}
public Criteria andDealTypeNotBetween(Integer value1, Integer value2) {
addCriterion("wnm.deal_type not between", value1, value2, "dealType");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("wnm.create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("wnm.create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("wnm.create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("wnm.create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("wnm.create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("wnm.create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("wnm.create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("wnm.create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("wnm.create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("wnm.create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("wnm.create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("wnm.create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andIsDeleteIsNull() {
addCriterion("wnm.is_delete is null");
return (Criteria) this;
}
public Criteria andIsDeleteIsNotNull() {
addCriterion("wnm.is_delete is not null");
return (Criteria) this;
}
public Criteria andIsDeleteEqualTo(Integer value) {
addCriterion("wnm.is_delete =", value, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteNotEqualTo(Integer value) {
addCriterion("wnm.is_delete <>", value, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteGreaterThan(Integer value) {
addCriterion("wnm.is_delete >", value, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
addCriterion("wnm.is_delete >=", value, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteLessThan(Integer value) {
addCriterion("wnm.is_delete <", value, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
addCriterion("wnm.is_delete <=", value, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteIn(List<Integer> values) {
addCriterion("wnm.is_delete in", values, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteNotIn(List<Integer> values) {
addCriterion("wnm.is_delete not in", values, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
addCriterion("wnm.is_delete between", value1, value2, "isDelete");
return (Criteria) this;
}
public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
addCriterion("wnm.is_delete not between", value1, value2, "isDelete");
return (Criteria) this;
}
}
/**
此实体关联 表是:noticenotice
*
* @mbggenerated do_not_delete_during_merge Fri Apr 27 10:50:34 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.model;
import com.zhzf.fpj.xcx.model.EntityBean;
public class NoticeUndealMember extends EntityBean {
/**
* id,所属表字段为 notice_undeal_member.id
*/
private Long id;
/**
* 班级唯一码,所属表字段为 notice_undeal_member.class_code
*/
private String classCode;
/**
* 通知唯一码,所属表字段为 notice_undeal_member.notice_unique
*/
private String noticeUnique;
/**
* 未处理学生id,所属表字段为 notice_undeal_member.stu_id
*/
private String stuId;
/**
* 未处理学生姓名,所属表字段为 notice_undeal_member.stu_name
*/
private String stuName;
/**
* 创建时间,所属表字段为 notice_undeal_member.create_time
*/
private Long createTime;
/**
notice_undeal_member.id
*
* @return the value of notice_undeal_member.id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Long getId() {
return id;
}
/**
notice_undeal_member.id
*
* @param id the value for notice_undeal_member.id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setId(Long id) {
this.id = id;
}
/**
notice_undeal_member.class_code
*
* @return the value of notice_undeal_member.class_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getClassCode() {
return classCode;
}
/**
notice_undeal_member.class_code
*
* @param classCode the value for notice_undeal_member.class_code
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setClassCode(String classCode) {
this.classCode = classCode == null ? null : classCode.trim();
}
/**
notice_undeal_member.notice_unique
*
* @return the value of notice_undeal_member.notice_unique
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getNoticeUnique() {
return noticeUnique;
}
/**
notice_undeal_member.notice_unique
*
* @param noticeUnique the value for notice_undeal_member.notice_unique
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setNoticeUnique(String noticeUnique) {
this.noticeUnique = noticeUnique == null ? null : noticeUnique.trim();
}
/**
notice_undeal_member.stu_id
*
* @return the value of notice_undeal_member.stu_id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getStuId() {
return stuId;
}
/**
notice_undeal_member.stu_id
*
* @param stuId the value for notice_undeal_member.stu_id
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setStuId(String stuId) {
this.stuId = stuId == null ? null : stuId.trim();
}
/**
notice_undeal_member.stu_name
*
* @return the value of notice_undeal_member.stu_name
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getStuName() {
return stuName;
}
/**
notice_undeal_member.stu_name
*
* @param stuName the value for notice_undeal_member.stu_name
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setStuName(String stuName) {
this.stuName = stuName == null ? null : stuName.trim();
}
/**
notice_undeal_member.create_time
*
* @return the value of notice_undeal_member.create_time
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Long getCreateTime() {
return createTime;
}
/**
notice_undeal_member.create_time
*
* @param createTime the value for notice_undeal_member.create_time
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.model;
import java.util.ArrayList;
import java.util.List;
public class NoticeUndealMemberExample {
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected String orderByClause;
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected boolean distinct;
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected List<Criteria> oredCriteria;
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public NoticeUndealMemberExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public String getOrderByClause() {
return orderByClause;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public boolean isDistinct() {
return distinct;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 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("wnum.id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("wnum.id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("wnum.id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("wnum.id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("wnum.id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("wnum.id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("wnum.id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("wnum.id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("wnum.id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("wnum.id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("wnum.id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("wnum.id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andClassCodeIsNull() {
addCriterion("wnum.class_code is null");
return (Criteria) this;
}
public Criteria andClassCodeIsNotNull() {
addCriterion("wnum.class_code is not null");
return (Criteria) this;
}
public Criteria andClassCodeEqualTo(String value) {
addCriterion("wnum.class_code =", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotEqualTo(String value) {
addCriterion("wnum.class_code <>", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThan(String value) {
addCriterion("wnum.class_code >", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeGreaterThanOrEqualTo(String value) {
addCriterion("wnum.class_code >=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThan(String value) {
addCriterion("wnum.class_code <", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLessThanOrEqualTo(String value) {
addCriterion("wnum.class_code <=", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeLike(String value) {
addCriterion("wnum.class_code like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotLike(String value) {
addCriterion("wnum.class_code not like", value, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeIn(List<String> values) {
addCriterion("wnum.class_code in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotIn(List<String> values) {
addCriterion("wnum.class_code not in", values, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeBetween(String value1, String value2) {
addCriterion("wnum.class_code between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andClassCodeNotBetween(String value1, String value2) {
addCriterion("wnum.class_code not between", value1, value2, "classCode");
return (Criteria) this;
}
public Criteria andNoticeUniqueIsNull() {
addCriterion("wnum.notice_unique is null");
return (Criteria) this;
}
public Criteria andNoticeUniqueIsNotNull() {
addCriterion("wnum.notice_unique is not null");
return (Criteria) this;
}
public Criteria andNoticeUniqueEqualTo(String value) {
addCriterion("wnum.notice_unique =", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotEqualTo(String value) {
addCriterion("wnum.notice_unique <>", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueGreaterThan(String value) {
addCriterion("wnum.notice_unique >", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueGreaterThanOrEqualTo(String value) {
addCriterion("wnum.notice_unique >=", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueLessThan(String value) {
addCriterion("wnum.notice_unique <", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueLessThanOrEqualTo(String value) {
addCriterion("wnum.notice_unique <=", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueLike(String value) {
addCriterion("wnum.notice_unique like", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotLike(String value) {
addCriterion("wnum.notice_unique not like", value, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueIn(List<String> values) {
addCriterion("wnum.notice_unique in", values, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotIn(List<String> values) {
addCriterion("wnum.notice_unique not in", values, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueBetween(String value1, String value2) {
addCriterion("wnum.notice_unique between", value1, value2, "noticeUnique");
return (Criteria) this;
}
public Criteria andNoticeUniqueNotBetween(String value1, String value2) {
addCriterion("wnum.notice_unique not between", value1, value2, "noticeUnique");
return (Criteria) this;
}
public Criteria andStuIdIsNull() {
addCriterion("wnum.stu_id is null");
return (Criteria) this;
}
public Criteria andStuIdIsNotNull() {
addCriterion("wnum.stu_id is not null");
return (Criteria) this;
}
public Criteria andStuIdEqualTo(String value) {
addCriterion("wnum.stu_id =", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotEqualTo(String value) {
addCriterion("wnum.stu_id <>", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdGreaterThan(String value) {
addCriterion("wnum.stu_id >", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdGreaterThanOrEqualTo(String value) {
addCriterion("wnum.stu_id >=", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLessThan(String value) {
addCriterion("wnum.stu_id <", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLessThanOrEqualTo(String value) {
addCriterion("wnum.stu_id <=", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdLike(String value) {
addCriterion("wnum.stu_id like", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotLike(String value) {
addCriterion("wnum.stu_id not like", value, "stuId");
return (Criteria) this;
}
public Criteria andStuIdIn(List<String> values) {
addCriterion("wnum.stu_id in", values, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotIn(List<String> values) {
addCriterion("wnum.stu_id not in", values, "stuId");
return (Criteria) this;
}
public Criteria andStuIdBetween(String value1, String value2) {
addCriterion("wnum.stu_id between", value1, value2, "stuId");
return (Criteria) this;
}
public Criteria andStuIdNotBetween(String value1, String value2) {
addCriterion("wnum.stu_id not between", value1, value2, "stuId");
return (Criteria) this;
}
public Criteria andStuNameIsNull() {
addCriterion("wnum.stu_name is null");
return (Criteria) this;
}
public Criteria andStuNameIsNotNull() {
addCriterion("wnum.stu_name is not null");
return (Criteria) this;
}
public Criteria andStuNameEqualTo(String value) {
addCriterion("wnum.stu_name =", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotEqualTo(String value) {
addCriterion("wnum.stu_name <>", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameGreaterThan(String value) {
addCriterion("wnum.stu_name >", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameGreaterThanOrEqualTo(String value) {
addCriterion("wnum.stu_name >=", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameLessThan(String value) {
addCriterion("wnum.stu_name <", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameLessThanOrEqualTo(String value) {
addCriterion("wnum.stu_name <=", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameLike(String value) {
addCriterion("wnum.stu_name like", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotLike(String value) {
addCriterion("wnum.stu_name not like", value, "stuName");
return (Criteria) this;
}
public Criteria andStuNameIn(List<String> values) {
addCriterion("wnum.stu_name in", values, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotIn(List<String> values) {
addCriterion("wnum.stu_name not in", values, "stuName");
return (Criteria) this;
}
public Criteria andStuNameBetween(String value1, String value2) {
addCriterion("wnum.stu_name between", value1, value2, "stuName");
return (Criteria) this;
}
public Criteria andStuNameNotBetween(String value1, String value2) {
addCriterion("wnum.stu_name not between", value1, value2, "stuName");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("wnum.create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("wnum.create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("wnum.create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("wnum.create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("wnum.create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("wnum.create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("wnum.create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("wnum.create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("wnum.create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("wnum.create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("wnum.create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("wnum.create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
此实体关联 表是:notice_undeal_membernotice_undeal_member
*
* @mbggenerated do_not_delete_during_merge Fri Apr 27 10:50:34 CST 2018
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.repository;
import com.zhzf.fpj.xcx.notice.model.NoticeAttachment;
import com.zhzf.fpj.xcx.notice.model.NoticeAttachmentExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NoticeAttachmentMapper {
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int countByExample(NoticeAttachmentExample example);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int deleteByExample(NoticeAttachmentExample example);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int insert(NoticeAttachment record);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int insertSelective(NoticeAttachment record);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
List<NoticeAttachment> selectByExample(NoticeAttachmentExample example);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
NoticeAttachment selectByPrimaryKey(Long id);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByExampleSelective(@Param("record") NoticeAttachment record, @Param("example") NoticeAttachmentExample example);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByExample(@Param("record") NoticeAttachment record, @Param("example") NoticeAttachmentExample example);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByPrimaryKeySelective(NoticeAttachment record);
/**
notice_attachment
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByPrimaryKey(NoticeAttachment record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.repository;
import com.zhzf.fpj.xcx.notice.model.Notice;
import com.zhzf.fpj.xcx.notice.model.NoticeExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NoticeMapper {
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int countByExample(NoticeExample example);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int deleteByExample(NoticeExample example);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int insert(Notice record);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int insertSelective(Notice record);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
List<Notice> selectByExample(NoticeExample example);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
Notice selectByPrimaryKey(Long id);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByExampleSelective(@Param("record") Notice record, @Param("example") NoticeExample example);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByExample(@Param("record") Notice record, @Param("example") NoticeExample example);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByPrimaryKeySelective(Notice record);
/**
notice
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByPrimaryKey(Notice record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.repository;
import com.zhzf.fpj.xcx.notice.model.NoticeUndealMember;
import com.zhzf.fpj.xcx.notice.model.NoticeUndealMemberExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NoticeUndealMemberMapper {
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int countByExample(NoticeUndealMemberExample example);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int deleteByExample(NoticeUndealMemberExample example);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int deleteByPrimaryKey(Long id);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int insert(NoticeUndealMember record);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int insertSelective(NoticeUndealMember record);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
List<NoticeUndealMember> selectByExample(NoticeUndealMemberExample example);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
NoticeUndealMember selectByPrimaryKey(Long id);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByExampleSelective(@Param("record") NoticeUndealMember record, @Param("example") NoticeUndealMemberExample example);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByExample(@Param("record") NoticeUndealMember record, @Param("example") NoticeUndealMemberExample example);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByPrimaryKeySelective(NoticeUndealMember record);
/**
notice_undeal_member
*
* @mbggenerated Fri Apr 27 10:50:34 CST 2018
*/
int updateByPrimaryKey(NoticeUndealMember record);
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.notice.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.notice.model.NoticeAttachment;
import com.zhzf.fpj.xcx.notice.model.NoticeAttachmentExample;
import java.util.List;
public interface INoticeAttachmentService {
/**
* 创建对应事例
* @param newNoticeAttachmentEntry
* @return
* @throws ServiceException
*/
public long create(NoticeAttachment newNoticeAttachmentEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newNoticeAttachmentEntry
* @return
* @throws ServiceException
*/
public boolean update(NoticeAttachment newNoticeAttachmentEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public NoticeAttachment get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<NoticeAttachment> loadByPages(NoticeAttachmentExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.notice.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.notice.model.Notice;
import com.zhzf.fpj.xcx.notice.model.NoticeExample;
import java.util.List;
public interface INoticeService {
/**
* 创建对应事例
* @param newNoticeEntry
* @return
* @throws ServiceException
*/
public long create(Notice newNoticeEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newNoticeEntry
* @return
* @throws ServiceException
*/
public boolean update(Notice newNoticeEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public Notice get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<Notice> loadByPages(NoticeExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.notice.service;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.notice.model.NoticeUndealMember;
import com.zhzf.fpj.xcx.notice.model.NoticeUndealMemberExample;
import java.util.List;
public interface INoticeUndealMemberService {
/**
* 创建对应事例
* @param newNoticeUndealMemberEntry
* @return
* @throws ServiceException
*/
public long create(NoticeUndealMember newNoticeUndealMemberEntry) throws ServiceException;
/**
* 更新对应的实体信息
* @param newNoticeUndealMemberEntry
* @return
* @throws ServiceException
*/
public boolean update(NoticeUndealMember newNoticeUndealMemberEntry) throws ServiceException;
/**
*
* 根据主键找到对应的实体信息
* @param primaryKeyId
* @return
* @throws ServiceException
*/
public NoticeUndealMember get(long primaryKeyId) throws ServiceException;
/**
* 分页查询对应的数据
* @param example 查询条件<注意需要存入对应的分库规则条件,否则查询很慢>
* @param page 当前页
* @param pageSize 页面大小
* @return
* @throws ServiceException
*/
public List<NoticeUndealMember> loadByPages(NoticeUndealMemberExample example, int page, int pageSize) throws ServiceException;
}
package com.zhzf.fpj.xcx.notice.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.notice.model.NoticeAttachment;
import com.zhzf.fpj.xcx.notice.model.NoticeAttachmentExample;
import com.zhzf.fpj.xcx.notice.repository.NoticeAttachmentMapper;
import com.zhzf.fpj.xcx.notice.service.INoticeAttachmentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class NoticeAttachmentService implements INoticeAttachmentService {
final static Logger logger = LoggerFactory.getLogger(NoticeAttachmentService.class);
@Resource
private NoticeAttachmentMapper noticeAttachmentMapper;
@Override
public long create(NoticeAttachment newNoticeAttachmentEntry) throws ServiceException {
try{
noticeAttachmentMapper.insert(newNoticeAttachmentEntry);
long primaryKeyId = newNoticeAttachmentEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(NoticeAttachment newNoticeAttachmentEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
noticeAttachmentMapper.updateByPrimaryKey(newNoticeAttachmentEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public NoticeAttachment get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return noticeAttachmentMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<NoticeAttachment> loadByPages(NoticeAttachmentExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return noticeAttachmentMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.notice.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.notice.model.Notice;
import com.zhzf.fpj.xcx.notice.model.NoticeExample;
import com.zhzf.fpj.xcx.notice.repository.NoticeMapper;
import com.zhzf.fpj.xcx.notice.service.INoticeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class NoticeService implements INoticeService {
final static Logger logger = LoggerFactory.getLogger(NoticeService.class);
@Resource
private NoticeMapper noticeMapper;
@Override
public long create(Notice newNoticeEntry) throws ServiceException {
try{
noticeMapper.insert(newNoticeEntry);
long primaryKeyId = newNoticeEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(Notice newNoticeEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
noticeMapper.updateByPrimaryKey(newNoticeEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public Notice get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return noticeMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<Notice> loadByPages(NoticeExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return noticeMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
package com.zhzf.fpj.xcx.notice.service.impl;
import com.zhzf.fpj.xcx.envir.exceptions.ServiceException;
import com.zhzf.fpj.xcx.notice.model.NoticeUndealMember;
import com.zhzf.fpj.xcx.notice.model.NoticeUndealMemberExample;
import com.zhzf.fpj.xcx.notice.repository.NoticeUndealMemberMapper;
import com.zhzf.fpj.xcx.notice.service.INoticeUndealMemberService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import javax.annotation.Resource;
import java.util.List;
@Service
public class NoticeUndealMemberService implements INoticeUndealMemberService {
final static Logger logger = LoggerFactory.getLogger(NoticeUndealMemberService.class);
@Resource
private NoticeUndealMemberMapper noticeUndealMemberMapper;
@Override
public long create(NoticeUndealMember newNoticeUndealMemberEntry) throws ServiceException {
try{
noticeUndealMemberMapper.insert(newNoticeUndealMemberEntry);
long primaryKeyId = newNoticeUndealMemberEntry.getId();
return primaryKeyId;
}catch(Exception e){
logger.error("MucClassService.create has error ",e);
throw new ServiceException(e);
}
}
@Override
public boolean update(NoticeUndealMember newNoticeUndealMemberEntry) throws ServiceException {
// TODO Auto-generated method stub
try{
noticeUndealMemberMapper.updateByPrimaryKey(newNoticeUndealMemberEntry);
return true;
}catch(Exception e){
logger.error("MucClassService.update has error ",e);
throw new ServiceException(e);
}
}
@Override
public NoticeUndealMember get(long primaryKeyId) throws ServiceException {
// TODO Auto-generated method stub
try{
return noticeUndealMemberMapper.selectByPrimaryKey(primaryKeyId);
}catch(Exception e){
logger.error("MucClassService.get has error ",e);
throw new ServiceException(e);
}
}
@Override
public List<NoticeUndealMember> loadByPages(NoticeUndealMemberExample example, int page, int pageSize) throws ServiceException {
// TODO Auto-generated method stub
try{
PageHelper.startPage(page,pageSize);
return noticeUndealMemberMapper.selectByExample(example);
}catch(Exception e){
logger.error("MucClassService.loadByPages has error ",e);
throw new ServiceException(e);
}
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.notice.repository.NoticeAttachmentMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.notice.model.NoticeAttachment" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<id column="wna_id" property="id" jdbcType="BIGINT" />
<result column="wna_unique_code" property="uniqueCode" jdbcType="VARCHAR" />
<result column="wna_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="wna_notice_unique" property="noticeUnique" jdbcType="VARCHAR" />
<result column="wna_type" property="type" jdbcType="INTEGER" />
<result column="wna_url" property="url" jdbcType="VARCHAR" />
<result column="wna_create_time" property="createTime" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
wna.id as wna_id, wna.unique_code as wna_unique_code, wna.class_code as wna_class_code,
wna.notice_unique as wna_notice_unique, wna.type as wna_type, wna.url as wna_url,
wna.create_time as wna_create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeAttachmentExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from notice_attachment wna
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select
<include refid="Base_Column_List" />
from notice_attachment wna
where wna.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
delete from notice_attachment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeAttachmentExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
delete from notice_attachment wna
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeAttachment" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
insert into notice_attachment (id, unique_code, class_code,
notice_unique, type, url,
create_time)
values (#{id,jdbcType=BIGINT}, #{uniqueCode,jdbcType=VARCHAR}, #{classCode,jdbcType=VARCHAR},
#{noticeUnique,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR},
#{createTime,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeAttachment" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
insert into notice_attachment
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uniqueCode != null" >
unique_code,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="noticeUnique != null" >
notice_unique,
</if>
<if test="type != null" >
type,
</if>
<if test="url != null" >
url,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="uniqueCode != null" >
#{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="noticeUnique != null" >
#{noticeUnique,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="url != null" >
#{url,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeAttachmentExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select count(*) from notice_attachment wna
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_attachment wna
<set >
<if test="record.id != null" >
wna.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.uniqueCode != null" >
wna.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
wna.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.noticeUnique != null" >
wna.notice_unique = #{record.noticeUnique,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
wna.type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.url != null" >
wna.url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
wna.create_time = #{record.createTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_attachment wna
set wna.id = #{record.id,jdbcType=BIGINT},
wna.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
wna.class_code = #{record.classCode,jdbcType=VARCHAR},
wna.notice_unique = #{record.noticeUnique,jdbcType=VARCHAR},
wna.type = #{record.type,jdbcType=INTEGER},
wna.url = #{record.url,jdbcType=VARCHAR},
wna.create_time = #{record.createTime,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeAttachment" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_attachment
<set >
<if test="uniqueCode != null" >
unique_code = #{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="noticeUnique != null" >
notice_unique = #{noticeUnique,jdbcType=VARCHAR},
</if>
<if test="type != null" >
type = #{type,jdbcType=INTEGER},
</if>
<if test="url != null" >
url = #{url,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeAttachment" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_attachment
set unique_code = #{uniqueCode,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
notice_unique = #{noticeUnique,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
url = #{url,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.notice.repository.NoticeMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.notice.model.Notice" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<id column="wnm_id" property="id" jdbcType="BIGINT" />
<result column="wnm_unique_code" property="uniqueCode" jdbcType="VARCHAR" />
<result column="wnm_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="wnm_creator_user_id" property="creatorUserId" jdbcType="VARCHAR" />
<result column="wnm_creator_name" property="creatorName" jdbcType="VARCHAR" />
<result column="wnm_type" property="type" jdbcType="INTEGER" />
<result column="wnm_title" property="title" jdbcType="VARCHAR" />
<result column="wnm_content" property="content" jdbcType="VARCHAR" />
<result column="wnm_stu_undeal_num" property="stuUndealNum" jdbcType="INTEGER" />
<result column="wnm_deal_type" property="dealType" jdbcType="INTEGER" />
<result column="wnm_create_time" property="createTime" jdbcType="BIGINT" />
<result column="wnm_is_delete" property="isDelete" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
wnm.id as wnm_id, wnm.unique_code as wnm_unique_code, wnm.class_code as wnm_class_code,
wnm.creator_user_id as wnm_creator_user_id, wnm.creator_name as wnm_creator_name,
wnm.type as wnm_type, wnm.title as wnm_title, wnm.content as wnm_content, wnm.stu_undeal_num as wnm_stu_undeal_num,
wnm.deal_type as wnm_deal_type, wnm.create_time as wnm_create_time, wnm.is_delete as wnm_is_delete
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from notice wnm
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select
<include refid="Base_Column_List" />
from notice wnm
where wnm.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
delete from notice
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
delete from notice wnm
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.notice.model.Notice" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
insert into notice (id, unique_code, class_code,
creator_user_id, creator_name, type,
title, content, stu_undeal_num,
deal_type, create_time, is_delete
)
values (#{id,jdbcType=BIGINT}, #{uniqueCode,jdbcType=VARCHAR}, #{classCode,jdbcType=VARCHAR},
#{creatorUserId,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{stuUndealNum,jdbcType=INTEGER},
#{dealType,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, #{isDelete,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.notice.model.Notice" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
insert into notice
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uniqueCode != null" >
unique_code,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="creatorUserId != null" >
creator_user_id,
</if>
<if test="creatorName != null" >
creator_name,
</if>
<if test="type != null" >
type,
</if>
<if test="title != null" >
title,
</if>
<if test="content != null" >
content,
</if>
<if test="stuUndealNum != null" >
stu_undeal_num,
</if>
<if test="dealType != null" >
deal_type,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="isDelete != null" >
is_delete,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="uniqueCode != null" >
#{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
#{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="creatorName != null" >
#{creatorName,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="title != null" >
#{title,jdbcType=VARCHAR},
</if>
<if test="content != null" >
#{content,jdbcType=VARCHAR},
</if>
<if test="stuUndealNum != null" >
#{stuUndealNum,jdbcType=INTEGER},
</if>
<if test="dealType != null" >
#{dealType,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=BIGINT},
</if>
<if test="isDelete != null" >
#{isDelete,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select count(*) from notice wnm
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice wnm
<set >
<if test="record.id != null" >
wnm.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.uniqueCode != null" >
wnm.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
</if>
<if test="record.classCode != null" >
wnm.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.creatorUserId != null" >
wnm.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
</if>
<if test="record.creatorName != null" >
wnm.creator_name = #{record.creatorName,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
wnm.type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.title != null" >
wnm.title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.content != null" >
wnm.content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.stuUndealNum != null" >
wnm.stu_undeal_num = #{record.stuUndealNum,jdbcType=INTEGER},
</if>
<if test="record.dealType != null" >
wnm.deal_type = #{record.dealType,jdbcType=INTEGER},
</if>
<if test="record.createTime != null" >
wnm.create_time = #{record.createTime,jdbcType=BIGINT},
</if>
<if test="record.isDelete != null" >
wnm.is_delete = #{record.isDelete,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice wnm
set wnm.id = #{record.id,jdbcType=BIGINT},
wnm.unique_code = #{record.uniqueCode,jdbcType=VARCHAR},
wnm.class_code = #{record.classCode,jdbcType=VARCHAR},
wnm.creator_user_id = #{record.creatorUserId,jdbcType=VARCHAR},
wnm.creator_name = #{record.creatorName,jdbcType=VARCHAR},
wnm.type = #{record.type,jdbcType=INTEGER},
wnm.title = #{record.title,jdbcType=VARCHAR},
wnm.content = #{record.content,jdbcType=VARCHAR},
wnm.stu_undeal_num = #{record.stuUndealNum,jdbcType=INTEGER},
wnm.deal_type = #{record.dealType,jdbcType=INTEGER},
wnm.create_time = #{record.createTime,jdbcType=BIGINT},
wnm.is_delete = #{record.isDelete,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.notice.model.Notice" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice
<set >
<if test="uniqueCode != null" >
unique_code = #{uniqueCode,jdbcType=VARCHAR},
</if>
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="creatorUserId != null" >
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
</if>
<if test="creatorName != null" >
creator_name = #{creatorName,jdbcType=VARCHAR},
</if>
<if test="type != null" >
type = #{type,jdbcType=INTEGER},
</if>
<if test="title != null" >
title = #{title,jdbcType=VARCHAR},
</if>
<if test="content != null" >
content = #{content,jdbcType=VARCHAR},
</if>
<if test="stuUndealNum != null" >
stu_undeal_num = #{stuUndealNum,jdbcType=INTEGER},
</if>
<if test="dealType != null" >
deal_type = #{dealType,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=BIGINT},
</if>
<if test="isDelete != null" >
is_delete = #{isDelete,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.notice.model.Notice" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice
set unique_code = #{uniqueCode,jdbcType=VARCHAR},
class_code = #{classCode,jdbcType=VARCHAR},
creator_user_id = #{creatorUserId,jdbcType=VARCHAR},
creator_name = #{creatorName,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
title = #{title,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
stu_undeal_num = #{stuUndealNum,jdbcType=INTEGER},
deal_type = #{dealType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=BIGINT},
is_delete = #{isDelete,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.zhzf.fpj.xcx.notice.repository.NoticeUndealMemberMapper" >
<resultMap id="BaseResultMap" type="com.zhzf.fpj.xcx.notice.model.NoticeUndealMember" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<id column="wnum_id" property="id" jdbcType="BIGINT" />
<result column="wnum_class_code" property="classCode" jdbcType="VARCHAR" />
<result column="wnum_notice_unique" property="noticeUnique" jdbcType="VARCHAR" />
<result column="wnum_stu_id" property="stuId" jdbcType="VARCHAR" />
<result column="wnum_stu_name" property="stuName" jdbcType="VARCHAR" />
<result column="wnum_create_time" property="createTime" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
wnum.id as wnum_id, wnum.class_code as wnum_class_code, wnum.notice_unique as wnum_notice_unique,
wnum.stu_id as wnum_stu_id, wnum.stu_name as wnum_stu_name, wnum.create_time as wnum_create_time
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeUndealMemberExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from notice_undeal_member wnum
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select
<include refid="Base_Column_List" />
from notice_undeal_member wnum
where wnum.id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
delete from notice_undeal_member
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeUndealMemberExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
delete from notice_undeal_member wnum
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeUndealMember" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
insert into notice_undeal_member (id, class_code, notice_unique,
stu_id, stu_name, create_time
)
values (#{id,jdbcType=BIGINT}, #{classCode,jdbcType=VARCHAR}, #{noticeUnique,jdbcType=VARCHAR},
#{stuId,jdbcType=VARCHAR}, #{stuName,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeUndealMember" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
insert into notice_undeal_member
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="classCode != null" >
class_code,
</if>
<if test="noticeUnique != null" >
notice_unique,
</if>
<if test="stuId != null" >
stu_id,
</if>
<if test="stuName != null" >
stu_name,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="classCode != null" >
#{classCode,jdbcType=VARCHAR},
</if>
<if test="noticeUnique != null" >
#{noticeUnique,jdbcType=VARCHAR},
</if>
<if test="stuId != null" >
#{stuId,jdbcType=VARCHAR},
</if>
<if test="stuName != null" >
#{stuName,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeUndealMemberExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
select count(*) from notice_undeal_member wnum
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_undeal_member wnum
<set >
<if test="record.id != null" >
wnum.id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.classCode != null" >
wnum.class_code = #{record.classCode,jdbcType=VARCHAR},
</if>
<if test="record.noticeUnique != null" >
wnum.notice_unique = #{record.noticeUnique,jdbcType=VARCHAR},
</if>
<if test="record.stuId != null" >
wnum.stu_id = #{record.stuId,jdbcType=VARCHAR},
</if>
<if test="record.stuName != null" >
wnum.stu_name = #{record.stuName,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
wnum.create_time = #{record.createTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_undeal_member wnum
set wnum.id = #{record.id,jdbcType=BIGINT},
wnum.class_code = #{record.classCode,jdbcType=VARCHAR},
wnum.notice_unique = #{record.noticeUnique,jdbcType=VARCHAR},
wnum.stu_id = #{record.stuId,jdbcType=VARCHAR},
wnum.stu_name = #{record.stuName,jdbcType=VARCHAR},
wnum.create_time = #{record.createTime,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeUndealMember" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_undeal_member
<set >
<if test="classCode != null" >
class_code = #{classCode,jdbcType=VARCHAR},
</if>
<if test="noticeUnique != null" >
notice_unique = #{noticeUnique,jdbcType=VARCHAR},
</if>
<if test="stuId != null" >
stu_id = #{stuId,jdbcType=VARCHAR},
</if>
<if test="stuName != null" >
stu_name = #{stuName,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.zhzf.fpj.xcx.notice.model.NoticeUndealMember" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Apr 27 10:50:34 CST 2018.
-->
update notice_undeal_member
set class_code = #{classCode,jdbcType=VARCHAR},
notice_unique = #{noticeUnique,jdbcType=VARCHAR},
stu_id = #{stuId,jdbcType=VARCHAR},
stu_name = #{stuName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<!--<settings>-->
<!--<setting name="logImpl" value="STDOUT_LOGGING" />-->
<!--</settings>-->
<typeAliases>
<package name="com.zhzf.fpj.xcx.notice.model"/>
</typeAliases>
<mappers>
<mapper resource="META-INF/mappers/OrderMapper.xml"/>
<mapper resource="META-INF/mappers/OrderItemMapper.xml"/>
</mappers>
</configuration>
sharding.jdbc.datasource.names=ds_0,ds_1
sharding.jdbc.datasource.ds_0.type=org.apache.commons.dbcp.BasicDataSource
sharding.jdbc.datasource.ds_0.driver-class-name=com.mysql.jdbc.Driver
sharding.jdbc.datasource.ds_0.url=jdbc:mysql://115.28.171.4:3306/demo_ds_0
sharding.jdbc.datasource.ds_0.username=root
sharding.jdbc.datasource.ds_0.password=123456
sharding.jdbc.datasource.ds_1.type=org.apache.commons.dbcp.BasicDataSource
sharding.jdbc.datasource.ds_1.driver-class-name=com.mysql.jdbc.Driver
sharding.jdbc.datasource.ds_1.url=jdbc:mysql://115.28.171.4:3306/demo_ds_1
sharding.jdbc.datasource.ds_1.username=root
sharding.jdbc.datasource.ds_1.password=123456
sharding.jdbc.config.sharding.default-database-strategy.inline.sharding-column=user_id
sharding.jdbc.config.sharding.default-database-strategy.inline.algorithm-expression=ds_${user_id % 2}
sharding.jdbc.config.sharding.tables.t_order.actual-data-nodes=ds_${0..1}.t_order_${0..1}
sharding.jdbc.config.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
sharding.jdbc.config.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order_${order_id % 2}
sharding.jdbc.config.sharding.tables.t_order.key-generator-column-name=order_id
sharding.jdbc.config.sharding.tables.t_order_item.actual-data-nodes=ds_${0..1}.t_order_item_${0..1}
sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item_${order_id % 2}
sharding.jdbc.config.sharding.tables.t_order_item.key-generator-column-name=order_item_id
sharding.jdbc.config.sharding.props.sql.show=false
sharding.jdbc.config.orchestration.name=demo_spring_boot_ds_sharding
sharding.jdbc.config.orchestration.type=sharding
sharding.jdbc.config.orchestration.overwrite=false
sharding.jdbc.config.orchestration.zookeeper.namespace=orchestration-spring-boot-demo
sharding.jdbc.config.orchestration.zookeeper.server-lists=localhost:2181
spring.jpa.properties.hibernate.hbm2ddl.auto=create
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
#spring.jpa.properties.hibernate.show_sql=true
mybatis.config-location=classpath:META-INF/mybatis-config.xml
spring.profiles.active=sharding
#spring.profiles.active=sharding-db
#spring.profiles.active=sharding-tbl
#spring.profiles.active=masterslave
#spring.profiles.active=sharding-masterslave
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<classPathEntry
location="/Users/ethanlam/Documents/base_env/apache-maven-repo/mysql/mysql-connector-java/5.1.35/mysql-connector-java-5.1.35.jar" />
<context id="notice-check" targetRuntime="MyBatis3">
<commentGenerator>
<property name="suppressAllComments" value="false" />
<property name="suppressDate" value="false"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://10.136.55.211:3306/wbyb_notice?useUnicode=true"
userId="weixiao"
password="Weixiao@123">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="com.zhzf.fpj.xcx.notice.model"
targetProject="src/main/java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
<property name="rootClass" value="com.zhzf.fpj.xcx.model.EntityBean"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="META-INF.mappers" targetProject="src/main/resources">
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.zhzf.fpj.xcx.notice.repository" targetProject="src/main/java">
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!-- 配置需要生成的表对象逻辑 -->
<table schema="wbyb_notice" tableName="notice" domainObjectName="Notice" alias="wnm">
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_notice" tableName="notice_attachment" domainObjectName="NoticeAttachment" alias="wna">
<property name="my.isgen.usekeys" value="true"/>
</table>
<table schema="wbyb_notice" tableName="notice_undeal_member" domainObjectName="NoticeUndealMember" alias="wnum">
<property name="my.isgen.usekeys" value="true"/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="log.context.name" value="sharding-jdbc-spring-namespace-jpa-example" />
<property name="log.charset" value="UTF-8" />
<property name="log.pattern" value="[%-5level] %date --%thread-- [%logger] %msg %n" />
<contextName>${log.context.name}</contextName>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="${log.charset}">
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="com.zaxxer.hikari" level="WARN" />
<root>
<level value="DEBUG" />
<appender-ref ref="STDOUT" />
</root>
</configuration>
...@@ -6,14 +6,18 @@ ...@@ -6,14 +6,18 @@
<artifactId>fpj-xcx</artifactId> <artifactId>fpj-xcx</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<artifactId>core-buiness</artifactId> <artifactId>core-business</artifactId>
<name>core-buiness</name> <name>core-business</name>
<description>core-buiness 业务代码的输出</description> <description>core-business 业务代码的输出</description>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
<module>core-buiness-demo</module> <module>business-sharding-strategy</module>
<module>core-buiness-demo-sec</module> <module>core-business-demo</module>
<module>core-business-demo-sec</module>
<module>core-business-muc</module>
<module>core-business-notice</module>
<module>core-business-clazzalbum</module>
</modules> </modules>
...@@ -48,6 +52,11 @@ ...@@ -48,6 +52,11 @@
<version>1.4</version> <version>1.4</version>
</dependency> </dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.zhzf.fpj.xcx</groupId> <groupId>com.zhzf.fpj.xcx</groupId>
...@@ -61,6 +70,12 @@ ...@@ -61,6 +70,12 @@
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-common-beans</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies> </dependencies>
......
package com.zhzf.fpj.xcx.model;
public abstract class EntityBean {
}
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-services</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>core-service-clazzalbum</artifactId>
<name>core-service-clazzalbum</name>
<description>core-service-clazzalbum</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-business-clazzalbum</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.bootstart;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;
import java.util.ArrayList;
import java.util.List;
@Configuration
public class ApplicationConfigurer {
static Logger logger = LoggerFactory.getLogger(ApplicationConfigurer.class);
public static final String SPRING_CONFIG_LOCATION = "spring.config.location";
/**
* 自定义配置加载,方法定义为static的,保证优先加载
* @return
*/
@Bean
public static PropertyPlaceholderConfigurer properties() {
final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer();
ppc.setIgnoreResourceNotFound(true);
final List<Resource> resourceLst = new ArrayList<Resource>();
logger.info("ApplicationConfigurer.............");
if(System.getProperty(SPRING_CONFIG_LOCATION) != null){
String configFilePath = System.getProperty(SPRING_CONFIG_LOCATION);
String[] configFiles = configFilePath.split(",|;");
FileSystemResource res =null;
for (String configFile : configFiles) {
if (configFile.startsWith("file:")){
resourceLst.add(new FileSystemResource(configFile));
}else {
resourceLst.add( new ClassPathResource(configFile));
}
}
}else {
//resourceLst.add(new ClassPathResource("config/application.properties"));
//resourceLst.add(new ClassPathResource("config/kafka.properties"));
}
ppc.setLocations(resourceLst.toArray(new Resource[]{}));
return ppc;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.bootstart;
import com.zhzf.fpj.xcx.clazzalbum.SpringBootDataMybatisMain;
import com.zhzf.fpj.xcx.envir.ApplicationEnvironmentPreparedEventListener;
import com.zhzf.fpj.xcx.envir.ApplicationListener2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ServiceBootStartApplication {
public static void main(String[] args) {
Object[] starts = new Object[2];
starts[0] = SpringBootDataMybatisMain.class;
starts[1] = ServiceBootStartApplication.class;
SpringApplication app = new SpringApplication(starts);
app.addListeners(new ApplicationEnvironmentPreparedEventListener());
app.addListeners(new ApplicationListener2());
app.run(args);
try {
System.in.read();
} catch (Exception e) {
e.printStackTrace();
}
}
}
package com.zhzf.fpj.xcx.service;
import com.alibaba.dubbo.config.annotation.Service;
import com.zhzf.fpj.xcx.api.demo.DemoProviderOther;
import com.zhzf.fpj.xcx.clazzalbum.model.ClazzAlbums;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@Service(
version = "1.0.0",
application = "${dubbo.application.id}",
protocol = "${dubbo.protocol.id}",
registry = "${dubbo.registry.id}"
)
public class TestDemoProvider implements DemoProviderOther {
static final Logger logger = LoggerFactory.getLogger(TestDemoProvider.class);
@Autowired(required = false)
private ClazzAlbums clazzAlbums;
public String sayHelloOther(String name) {
return "Hello, " + name + " (from Spring Boot)";
}
}
\ No newline at end of file \ No newline at end of file
# Spring boot application
spring.application.name = dubbo-provider-demo
server.port = 9090
management.port = 9091
# Base packages to scan Dubbo Components (e.g., @Service, @Reference)
dubbo.scan.basePackages = com.zhzf.fpj.xcx.service
# Dubbo Config properties
## ApplicationConfig Bean
dubbo.application.id = dubbo-provider-demo
dubbo.application.name = dubbo-provider-demo
## ProtocolConfig Bean
dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345
## RegistryConfig Bean
dubbo.registry.id = my-registry
dubbo.registry.address = N/A
spring:
application:
name: dubbo-provider-notice
dubbo:
scan:
basePackages: com.zhzf.fpj.xcx.service
application:
id: dubbo-provider-notice
name: dubbo-provider-notice
protocol:
id: dubbo
name: dubbo
port: 20881
#registry:
# id: my-registry
# address: N/A
registry:
id: wbyb
address: zookeeper://localhost:2181
provider:
timeout: 60000
consumer:
timeout: 60000
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<dependency> <dependency>
<groupId>com.zhzf.fpj.xcx</groupId> <groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-buiness-demo</artifactId> <artifactId>core-business-demo</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
......
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-services</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>core-service-muc</artifactId>
<name>core-service-muc</name>
<description>core-service-muc</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-business-muc</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.bootstart;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;
import java.util.ArrayList;
import java.util.List;
@Configuration
public class ApplicationConfigurer {
static Logger logger = LoggerFactory.getLogger(ApplicationConfigurer.class);
public static final String SPRING_CONFIG_LOCATION = "spring.config.location";
/**
* 自定义配置加载,方法定义为static的,保证优先加载
* @return
*/
@Bean
public static PropertyPlaceholderConfigurer properties() {
final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer();
ppc.setIgnoreResourceNotFound(true);
final List<Resource> resourceLst = new ArrayList<Resource>();
logger.info("ApplicationConfigurer.............");
if(System.getProperty(SPRING_CONFIG_LOCATION) != null){
String configFilePath = System.getProperty(SPRING_CONFIG_LOCATION);
String[] configFiles = configFilePath.split(",|;");
FileSystemResource res =null;
for (String configFile : configFiles) {
if (configFile.startsWith("file:")){
resourceLst.add(new FileSystemResource(configFile));
}else {
resourceLst.add( new ClassPathResource(configFile));
}
}
}else {
//resourceLst.add(new ClassPathResource("config/application.properties"));
//resourceLst.add(new ClassPathResource("config/kafka.properties"));
}
ppc.setLocations(resourceLst.toArray(new Resource[]{}));
return ppc;
}
}
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.bootstart;
import com.zhzf.fpj.xcx.envir.ApplicationEnvironmentPreparedEventListener;
import com.zhzf.fpj.xcx.envir.ApplicationListener2;
import com.zhzf.fpj.xcx.muc.SpringBootDataMybatisMain;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ServiceBootStartApplication {
public static void main(String[] args) {
Object[] starts = new Object[2];
starts[0] = SpringBootDataMybatisMain.class;
starts[1] = ServiceBootStartApplication.class;
SpringApplication app = new SpringApplication(starts);
app.addListeners(new ApplicationEnvironmentPreparedEventListener());
app.addListeners(new ApplicationListener2());
app.run(args);
try {
System.in.read();
} catch (Exception e) {
e.printStackTrace();
}
}
}
package com.zhzf.fpj.xcx.service;
import com.alibaba.dubbo.config.annotation.Service;
import com.zhzf.fpj.xcx.api.demo.DemoProvider;
import com.zhzf.fpj.xcx.api.demo.DemoProviderOther;
import com.zhzf.fpj.xcx.muc.model.MucClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@Service(
version = "1.0.0",
application = "${dubbo.application.id}",
protocol = "${dubbo.protocol.id}",
registry = "${dubbo.registry.id}"
)
public class TestDemoProvider implements DemoProviderOther {
static final Logger logger = LoggerFactory.getLogger(TestDemoProvider.class);
@Autowired(required = false)
private MucClass mucClass;
public String sayHelloOther(String name) {
return "Hello, " + name + " (from Spring Boot)";
}
}
\ No newline at end of file \ No newline at end of file
# Spring boot application
spring.application.name = dubbo-provider-demo
server.port = 9090
management.port = 9091
# Base packages to scan Dubbo Components (e.g., @Service, @Reference)
dubbo.scan.basePackages = com.zhzf.fpj.xcx.service
# Dubbo Config properties
## ApplicationConfig Bean
dubbo.application.id = dubbo-provider-demo
dubbo.application.name = dubbo-provider-demo
## ProtocolConfig Bean
dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345
## RegistryConfig Bean
dubbo.registry.id = my-registry
dubbo.registry.address = N/A
spring:
application:
name: dubbo-provider-notice
dubbo:
scan:
basePackages: com.zhzf.fpj.xcx.service
application:
id: dubbo-provider-notice
name: dubbo-provider-notice
protocol:
id: dubbo
name: dubbo
port: 20881
#registry:
# id: my-registry
# address: N/A
registry:
id: wbyb
address: zookeeper://localhost:2181
provider:
timeout: 60000
consumer:
timeout: 60000
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<dependency> <dependency>
<groupId>com.zhzf.fpj.xcx</groupId> <groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-buiness-demo-sec</artifactId> <artifactId>core-business-notice</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
......
package com.zhzf.fpj.xcx.bootstart; package com.zhzf.fpj.xcx.bootstart;
import com.zhzf.fpj.xcx.demo.mybatis.SpringBootDataMybatisMain;
import com.zhzf.fpj.xcx.envir.ApplicationEnvironmentPreparedEventListener; import com.zhzf.fpj.xcx.envir.ApplicationEnvironmentPreparedEventListener;
import com.zhzf.fpj.xcx.envir.ApplicationListener2; import com.zhzf.fpj.xcx.envir.ApplicationListener2;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer; import com.zhzf.fpj.xcx.notice.SpringBootDataMybatisMain;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
@SpringBootApplication @SpringBootApplication
public class ServiceBootStartApplication { public class ServiceBootStartApplication {
......
package com.zhzf.fpj.xcx.service; package com.zhzf.fpj.xcx.service;
import com.alibaba.dubbo.config.annotation.Service; import com.alibaba.dubbo.config.annotation.Service;
import com.zhzf.fpj.xcx.api.demo.DemoProvider;
import com.zhzf.fpj.xcx.api.demo.DemoProviderOther; import com.zhzf.fpj.xcx.api.demo.DemoProviderOther;
import com.zhzf.fpj.xcx.demo.mybatis.service.DemoService; import com.zhzf.fpj.xcx.notice.model.Notice;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@Service( @Service(
...@@ -14,11 +15,12 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -14,11 +15,12 @@ import org.springframework.beans.factory.annotation.Autowired;
) )
public class TestDemoProvider implements DemoProviderOther { public class TestDemoProvider implements DemoProviderOther {
static final Logger logger = LoggerFactory.getLogger(TestDemoProvider.class);
@Autowired(required = false) @Autowired(required = false)
private DemoService demoService; private Notice notice;
public String sayHelloOther(String name) { public String sayHelloOther(String name) {
demoService.demo("notice");
return "Hello, " + name + " (from Spring Boot)"; return "Hello, " + name + " (from Spring Boot)";
} }
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
<modules> <modules>
<module>core-service-demo</module> <module>core-service-demo</module>
<module>core-service-notice</module> <module>core-service-notice</module>
<module>core-service-muc</module>
<module>core-service-clazzalbum</module>
</modules> </modules>
<dependencies> <dependencies>
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
<modules> <modules>
<module>web-demo</module> <module>web-demo</module>
<module>web-upload</module>
<module>web-base</module>
</modules> </modules>
<dependencies> <dependencies>
......
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-webs</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>web-base</artifactId>
<name>web-demo</name>
<description>core-web-base</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.bootstart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.zhzf.fpj.xcx.web.controller")
public class WebBootStartApplication {
public static void main(String[] args) {
SpringApplication.run(WebBootStartApplication.class, args);
}
}
package com.zhzf.fpj.xcx.web.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.zhzf.fpj.xcx.api.demo.DemoProvider;
import com.zhzf.fpj.xcx.api.demo.DemoProviderOther;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class DemoConsumerController {
@Reference(version = "1.0.0",
application = "${dubbo.application.id}",
registry = "${dubbo.registry.id}",
check = false )
private DemoProvider demoService;
@Reference(version = "1.0.0",
application = "${dubbo.application.id}",
registry = "${dubbo.registry.id}",
check = false )
private DemoProviderOther demoServiceOther;
@RequestMapping("/sayHello")
public String sayHello(@RequestParam String name) {
return demoService.sayHello(name);
}
@RequestMapping("/sayHello2")
public String sayHello2(@RequestParam String name) {
return demoServiceOther.sayHelloOther(name);
}
}
# Spring boot application
spring.application.name = dubbo-consumer-demo
server.port = 8080
management.port = 8081
# Dubbo Config properties
## ApplicationConfig Bean
dubbo.application.id = dubbo-consumer-demo
dubbo.application.name = dubbo-consumer-demo
## ProtocolConfig Bean
dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345
spring:
application:
name: web-demo
server:
port: 8080
management:
port: 8081
dubbo:
application:
id: dubbo-consumer-demo
name: dubbo-consumer-demo
registry:
id: wbyb
address: zookeeper://localhost:2181
consumer:
timeout: 60000
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-webs</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>web-upload</artifactId>
<name>web-upload</name>
<description>core-web-upload</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.zhzf.fpj.xcx</groupId>
<artifactId>core-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file \ No newline at end of file
package com.zhzf.fpj.xcx.bootstart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.zhzf.fpj.xcx.web.controller")
public class WebBootStartApplication {
public static void main(String[] args) {
SpringApplication.run(WebBootStartApplication.class, args);
}
}
package com.zhzf.fpj.xcx.web.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.zhzf.fpj.xcx.api.demo.DemoProvider;
import com.zhzf.fpj.xcx.api.demo.DemoProviderOther;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class DemoConsumerController {
@Reference(version = "1.0.0",
application = "${dubbo.application.id}",
registry = "${dubbo.registry.id}",
check = false )
private DemoProvider demoService;
@Reference(version = "1.0.0",
application = "${dubbo.application.id}",
registry = "${dubbo.registry.id}",
check = false )
private DemoProviderOther demoServiceOther;
@RequestMapping("/sayHello")
public String sayHello(@RequestParam String name) {
return demoService.sayHello(name);
}
@RequestMapping("/sayHello2")
public String sayHello2(@RequestParam String name) {
return demoServiceOther.sayHelloOther(name);
}
}
# Spring boot application
spring.application.name = dubbo-consumer-demo
server.port = 8080
management.port = 8081
# Dubbo Config properties
## ApplicationConfig Bean
dubbo.application.id = dubbo-consumer-demo
dubbo.application.name = dubbo-consumer-demo
## ProtocolConfig Bean
dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345
spring:
application:
name: web-demo
server:
port: 8080
management:
port: 8081
dubbo:
application:
id: dubbo-consumer-demo
name: dubbo-consumer-demo
registry:
id: wbyb
address: zookeeper://localhost:2181
consumer:
timeout: 60000
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
<mysql-connector-java.version>5.1.30</mysql-connector-java.version> <mysql-connector-java.version>5.1.30</mysql-connector-java.version>
<mybatis-spring.version>1.3.0</mybatis-spring.version> <mybatis-spring.version>1.3.0</mybatis-spring.version>
<druid_version>1.0.12</druid_version> <druid_version>1.0.12</druid_version>
<pagehelper.version>1.2.0</pagehelper.version>
<!--LOG--> <!--LOG-->
<slf4j_version>1.7.22</slf4j_version> <slf4j_version>1.7.22</slf4j_version>
...@@ -127,6 +128,13 @@ ...@@ -127,6 +128,13 @@
</dependency> </dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper.version}</version>
</dependency>
<!-- Log libs --> <!-- Log libs -->
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!