Commit 599a87cf by ethanlamzs

业务模块初始配置

1 parent efe4ba98
Showing 170 changed files with 4793 additions and 8 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 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 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.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 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 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 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 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 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 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 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 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.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;
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!