Commit 5234de95 by xmh

1

0 parents
Showing 165 changed files with 25808 additions and 0 deletions
**/**/logs/
**/**/target/
*.iml
**/**/.idea/
.mvn
mvnw*
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<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.viontech</groupId>
<artifactId>label</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>label-core</artifactId>
<version>${project.parent.version}</version>
<dependencies>
<dependency>
<groupId>com.viontech.keliu</groupId>
<artifactId>keliu-util</artifactId>
<version>6.0.10-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.viontech.label.core.base;
import java.io.Serializable;
/**
*
* @author suman
* model类的基类 所有的model都要继承自该类
*/
public abstract class BaseModel implements Serializable{
private Long count;
private Long id;
public BaseModel() {
super();
}
public Long getCount() {
return count;
}
public void setCount(Long count) {
this.count = count;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}
package com.viontech.label.core.base;
import java.io.IOException;
/**
* .
*
* @author 谢明辉
* @date 2021/5/31
*/
public interface BaseStorage {
byte[] get(String path) throws IOException;
void set(String path, byte[] data)throws IOException;
boolean delete(String path)throws IOException;
}
package com.viontech.label.core.base;
import org.springframework.core.convert.converter.Converter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @author xmh
* @date 2021-06-17
*/
public class DateConverter implements Converter<String, Date> {
/**
* 可格式化 的日期 字串
*/
private static final List<String> formarts = new ArrayList<>();
static {
formarts.add("yyyy-MM");
formarts.add("yyyy-MM-dd");
formarts.add("yyyy-MM-dd HH:mm");
formarts.add("yyyy-MM-dd HH:mm:ss");
formarts.add("HH:mm:ss");
formarts.add("HH:mm");
formarts.add("yyyy-MM-dd'T'HH:mm:ss");
}
@Override
public Date convert(String source) {
String value = source.trim();
if ("".equals(value)) {
return null;
}
if (source.matches("^\\d{4}-\\d{1,2}$")) {
return parseDate(source, formarts.get(0));
} else if (source.matches("^\\d{4}-\\d{1,2}-\\d{1,2}$")) {
return parseDate(source, formarts.get(1));
} else if (source.matches("^\\d{4}-\\d{1,2}-\\d{1,2} {1}\\d{1,2}:\\d{1,2}$")) {
return parseDate(source, formarts.get(2));
} else if (source.matches("^\\d{4}-\\d{1,2}-\\d{1,2} {1}\\d{1,2}:\\d{1,2}:\\d{1,2}$")) {
return parseDate(source, formarts.get(3));
} else if (source.matches("([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]")) {
return parseDate(source, formarts.get(4));
} else if (source.matches("([01][0-9]|2[0-3]):[0-5][0-9]")) {
return parseDate(source, formarts.get(5));
} else if (source.matches("^\\d{4}-\\d{1,2}-\\d{1,2}T\\d{1,2}:\\d{1,2}:\\d{1,2}[-,+]\\d{1,2}:\\d{1,2}$")) {
return parseDate(source, formarts.get(6));
} else {
throw new IllegalArgumentException("Invalid boolean value '" + source + "'");
}
}
/**
* 功能描述:格式化日期
*
* @param dateStr String 字符型日期
* @param format String 格式
*
* @return Date 日期
*/
public Date parseDate(String dateStr, String format) {
Date date = null;
try {
DateFormat dateFormat = new SimpleDateFormat(format);
date = (Date) dateFormat.parse(dateStr);
} catch (Exception e) {
}
return date;
}
}
\ No newline at end of file
package com.viontech.label.core.base;
import java.lang.annotation.*;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@SuppressWarnings("ALL")
public @interface RedisCache {
String key() default "";
long expired() default -1L;
MethodType methodType() default MethodType.GET;
public static enum MethodType {
GET,
ADD,
UPDATE,
DELETE;
}
}
package com.viontech.label.core.constant;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
public class Constants {
public static final String REDIS_KEY_USER_MAP = "userMap";
public static final String REDIS_KEY_STORAGE_MAP = "storageMap";
public static final String REDIS_KEY_PACK_MAP = "packMap";
public static final String REDIS_KEY_DATASOURCE = "datasourceMap";
public static final Integer USER_TYPE_ANNOTATOR = 5;
public static final Integer USER_TYPE_OUT_INSPECTOR = 4;
public static final Integer USER_TYPE_IN_INSPECTOR = 3;
private static final String REDIS_KEY_PIC_PREFIX = "pic";
public static String getRedisKeyPic(Long picId) {
return REDIS_KEY_PIC_PREFIX + ":" + picId;
}
public static String getReidPoolName(Long packId) {
return "reid_pool_" + packId;
}
}
package com.viontech.label.core.constant;
/**
* .
*
* @author 谢明辉
* @date 2021/6/24
*/
public enum LogOperateType {
/** 合并图片作为新人 */
REID_MERGE_AS_NEW_PERSON(1),
/** 合并多个人作为同一个人 */
REID_MERGE_PERSON(2),
/** 将图片与人合并 */
REID_MERGE_TO(3),
/** 删除图片 */
REID_DELETE(4),
/** 标记为纯净 */
REID_LABEL_FINISHED(5),
;
public int val;
LogOperateType(int val) {
this.val = val;
}
}
package com.viontech.label.core.constant;
/**
* .
*
* @author 谢明辉
* @date 2021/6/23
*/
public enum PicStatus {
/** 待标注 */
TO_BE_LABELED(1),
/** 标注中 */
LABELING(2),
/** 完成标注 */
FINISH_LABELING(3),
;
public int val;
PicStatus(int val) {
this.val = val;
}
}
package com.viontech.label.core.model;
import com.viontech.label.core.base.BaseStorage;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
/**
* .
*
* @author 谢明辉
* @date 2021/5/31
*/
public class LocalStorage implements BaseStorage {
private final String basePath;
public LocalStorage(String basePath) {
this.basePath = basePath;
}
@Override
public byte[] get(String path) throws IOException {
return FileUtils.readFileToByteArray(new File(basePath, path));
}
@Override
public void set(String path, byte[] data) throws IOException {
FileUtils.writeByteArrayToFile(new File(basePath, path), data);
}
@Override
public boolean delete(String path) throws IOException {
return FileUtils.deleteQuietly(new File(basePath, path));
}
}
<?xml version="1.0" encoding="UTF-8"?>
<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.viontech</groupId>
<artifactId>label</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>label-platform</artifactId>
<version>${project.parent.version}</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.viontech</groupId>
<artifactId>label-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.4</version>
<exclusions>
<exclusion>
<artifactId>mybatis</artifactId>
<groupId>org.mybatis</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
<exclusions>
<exclusion>
<artifactId>mybatis-spring-boot-starter</artifactId>
<groupId>org.mybatis.spring.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.2</version>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.19.0</version>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-dao-redis-jackson</artifactId>
<version>1.19.0</version>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
<version>3.11.2</version>
</dependency>
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>2.57</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.0.7.Final</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.viontech.keliu</groupId>
<artifactId>AlgApiClient</artifactId>
<version>6.0.6-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>tomcat-websocket</artifactId>
<groupId>org.apache.tomcat</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
</dependencies>
<build>
<finalName>label-platform</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>application-*.properties</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.yml</include>
<include>**/*.html</include>
<include>**/*.jpg</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>
\ No newline at end of file
package com.viontech.label.platform;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
/**
* @author 谢明辉
*/
@SpringBootApplication
@MapperScan(basePackages = "com.viontech.label.platform.mapper")
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableScheduling
public class LabelPlatformApp {
public static void main(String[] args) {
SpringApplication.run(LabelPlatformApp.class, args);
}
}
package com.viontech.label.platform.aop;
import com.viontech.label.core.constant.Constants;
import com.viontech.label.core.base.RedisCache;
import com.viontech.label.platform.service.impl.PackServiceImpl;
import com.viontech.label.platform.service.impl.StorageServiceImpl;
import com.viontech.label.platform.service.impl.UserServiceImpl;
import com.viontech.label.platform.utils.StorageUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Component
@Aspect
public class CacheAspect {
@Resource
private RedisTemplate redisTemplate;
@Resource
private StorageUtils storageUtils;
@After("@annotation(redisCache)")
public void after(JoinPoint point, RedisCache redisCache) {
Object aThis = point.getThis();
Object target = point.getTarget();
RedisCache.MethodType methodType = redisCache.methodType();
Object[] args = point.getArgs();
String redisKey = null;
if (aThis instanceof UserServiceImpl) {
redisKey = Constants.REDIS_KEY_USER_MAP;
} else if (aThis instanceof PackServiceImpl && !methodType.equals(RedisCache.MethodType.GET)) {
storageUtils.refreshPack();
} else if (aThis instanceof StorageServiceImpl && !methodType.equals(RedisCache.MethodType.GET)) {
storageUtils.refreshStorage();
}
if (!methodType.equals(RedisCache.MethodType.GET) && redisKey != null) {
redisTemplate.delete(redisKey);
}
}
}
package com.viontech.label.platform.base;
import com.github.pagehelper.PageInfo;
import com.viontech.keliu.util.FileUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import static com.viontech.keliu.util.JsonMessageUtil.getErrorJsonMsg;
import static com.viontech.keliu.util.JsonMessageUtil.getSuccessJsonMsg;
/**
* Controller基类<br>
* 所有Controller都需要继承自该类
*
* @param <T>
*
* @author suman 2016年8月15日 下午1:59:19
*/
public abstract class BaseController<O extends BaseModel, T extends VoInterface<O>> {
/**
* 通用message
*/
public static final String MESSAGE_ADD_SUCCESS = "addSuccess";
public static final String MESSAGE_ADD_ERROR = "addError";
public static final String MESSAGE_UPDATE_SUCCESS = "updateSuccess";
public static final String MESSAGE_UPDATE_ERROR = "updateError";
public static final String MESSAGE_DELETE_SUCCESS = "delSuccess";
public static final String MESSAGE_DELETE_ERROR = "delError";
public static final String MESSAGE_COUNT_SUCCESS = "countSuccess";
public static final String MESSAGE_COUNT_ERROR = "countError";
public static final String MESSAGE_SELECT_SUCCESS = "selSuccess";
public static final String MESSAGE_SELECT_ERROR = "selError";
public static final String MESSAGE_LIST_SUCCESS = "listSuccess";
public static final String MESSAGE_LIST_ERROR = "listError";
public static final String MESSAGE_PAGE_SUCCESS = "pageSuccess";
public static final String MESSAGE_PAGE_ERROR = "pageError";
public static final String MESSAGE_WEBROOT_NOTFOUND_ERROR = "webRootNotFoundError";
public static final String MESSAGE_FILE_UPLOAD_SUCCESS = "fileUploadSuccess";
public static final String MESSAGE_FILE_UPLOAD_ERROR = "fileUploadError";
public static final String MESSAGE_FILE_DOWNLOAD_ERROR = "fileDownloadError";
public static final String MESSAGE_FILE_NOTFOUND_ERROR = "fileNotFoundError";
public static final String MESSAGE_ID_NOT_EMPTY = "idNotEmpty";
public static final String MESSAGE_MODE_NOT_EXISTENCE = "modleNotExistence";
public static final int EXAMPLE_TYPE_SIMPLE = 0;
public static final int EXAMPLE_TYPE_NORMAL = 1;
public static final int EXAMPLE_TYPE_COUNT = 3;
public static final int EXAMPLE_TYPE_PAGE = 4;
/**
* slf4j 日志对象 用来记录log
*/
protected final Logger logger = LoggerFactory.getLogger(getClass());
/*@InitBinder
public void initBinder(WebDataBinder binder) {
binder.registerCustomEditor(Date.class, new CustomDateEditor(true,
"yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd", "yyyy-MM", "HH:mm:ss"));
}*/
public static boolean isNotNull(Object object) {
if (object == null) {
return false;
}
if (object.toString().trim().isEmpty()) {
return false;
}
return true;
}
/**
* 通用添加方法
*
* @param t 需要插入数据库的对象
*
* @return
*/
@RequestMapping(value = "", method = RequestMethod.POST)
@ResponseBody
public Object add(@RequestBody T t) {
getService().insertSelective(t.getModel());
return getSuccessJsonMsg(MESSAGE_ADD_SUCCESS, t);
}
/**
* 通用数量方法
*
* @param t 需要插入数据库的对象的条件
*
* @return
*/
@RequestMapping(value = "/count", method = RequestMethod.GET)
@ResponseBody
public Object count(T t) {
int result = getService().countByExample(getExample(t, EXAMPLE_TYPE_COUNT));
return getSuccessJsonMsg(MESSAGE_COUNT_SUCCESS, result);
}
/**
* 通用更新方法
*
* @param t 需要更新的对象及内容
*
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.POST)
@ResponseBody
public Object update(@PathVariable(value = "id") Long id, @RequestBody T t) {
t.getModel().setId(id);
getService().updateByPrimaryKeySelective(t.getModel());
return getSuccessJsonMsg(MESSAGE_UPDATE_SUCCESS, t);
}
/**
* 通用删除方法
*
* @param id 需要删除的数据id
*
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseBody
public Object del(@PathVariable(value = "id") Long id) {
if (id == null) {
return getErrorJsonMsg(MESSAGE_ID_NOT_EMPTY);
}
int result = getService().deleteByPrimaryKey(id);
if (result == 0) {
return getErrorJsonMsg(MESSAGE_MODE_NOT_EXISTENCE);
}
return getSuccessJsonMsg(MESSAGE_DELETE_SUCCESS, null);
}
/**
* 通用列表查询方法,将数据从数据库中全部查出
* saveFile
*
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public Object selOne(@PathVariable(value = "id") Long id) {
BaseModel t = getService().selectByPrimaryKey(id);
return getSuccessJsonMsg(MESSAGE_LIST_SUCCESS, t);
}
/**
* 通用分页查询方法,从数据库中查出一页数据
*
* @return
*/
@RequestMapping(value = "", method = RequestMethod.GET)
@ResponseBody
public Object page(T t, @RequestParam(value = "page", defaultValue = "-1") int page, @RequestParam(value = "pageSize", defaultValue = "100") int pageSize, String sortName, String sortOrder) {
BaseExample baseExample = getExample(t, EXAMPLE_TYPE_PAGE);
if (isNotNull(sortOrder) && isNotNull(sortName)) {
baseExample.setOrderByClause(baseExample.getTableAlias() + "." + sortName + " " + sortOrder);
} else if (isNotNull(sortName) && !isNotNull(sortOrder)) {
baseExample.setOrderByClause(sortName);
}
if (page <= 0) {
List result = getService().selectByExample(baseExample);
return getSuccessJsonMsg(MESSAGE_SELECT_SUCCESS, result);
} else {
PageInfo pageInfo = getService().pagedQuery(baseExample, page, pageSize);
return getSuccessJsonMsg(MESSAGE_PAGE_SUCCESS, pageInfo);
}
}
/**
* 根据参数获取图片,对前后获取图片的不同参数方式进行兼容
*/
@RequestMapping(value = "/img/{location}/{picture:.+}")
public void getIMG(@PathVariable("picture") String picture, @PathVariable("location") String location, HttpServletResponse response) {
if (picture.contains("svg")) {
response.setContentType("image/svg+xml;charset=UTF-8");
response.addHeader("Accept-Ranges", "bytes");
} else {
response.setContentType("image/jpeg");
}
FileInputStream fis = null;
OutputStream out = null;
try {
String basePath = FileUtil.getBasePath();
File file = new File(basePath + "/" + location, picture);
if (!file.exists()) {
System.out.println(file.getAbsolutePath());
return;
}
out = response.getOutputStream();
fis = new FileInputStream(file);
byte[] b = new byte[fis.available()];
response.setContentLength(b.length);
fis.read(b);
out.write(b);
out.flush();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (fis != null) {
fis.close();
}
} catch (Exception e) {
e.printStackTrace();
}
try {
if (out != null) {
out.close();
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
/**
* 获取到执行各项操作需要的service
*
* @return
*/
protected abstract BaseService<O> getService();
/**
* 得到执行查询操作需要的查询条件
*
* @param t 查询条件存储对象
*
* @return 查询条件对象
*/
protected abstract BaseExample getExample(T t, int type);
}
package com.viontech.label.platform.base;
import java.util.*;
/**
* 所有Example都需要继承自该类<br>
* 该类自动生成不需要修改
* @author suman
* 2016年8月15日 下午1:58:40
*/
public abstract class BaseExample {
protected String orderByClause;
protected String groupByClause;
protected boolean distinct;
protected boolean ignoreCase;
protected String tableName;
protected String tableAlias;
protected List<GeneratedCriteria> oredCriteria;
protected Map<String, ColumnContainerBase> columnContainerMap;
protected Set<String> leftJoinTableSet;
public BaseExample() {
oredCriteria = new ArrayList<GeneratedCriteria>();
columnContainerMap = new HashMap<String,ColumnContainerBase>();
leftJoinTableSet = new HashSet<String>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
if(orderByClause == null){
return getTableAlias()+".id";
}
return orderByClause;
}
public void setGroupByClause(String groupByClause) {
this.groupByClause = groupByClause;
}
public String getGroupByClause() {
return groupByClause;
}
public String getTableName() {
return tableName;
}
public String getTableAlias() {
return "\""+tableAlias+"\"";
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public boolean isIgnoreCase() {
return ignoreCase;
}
public void setIgnoreCase(boolean ignoreCase) {
this.ignoreCase = ignoreCase;
oredCriteria.forEach(item ->{
item.setIgnoreCase(this.ignoreCase);
});
}
public List<GeneratedCriteria> getOredCriteria() {
return oredCriteria;
}
public Set<ColumnContainerBase> getColumnContainerSet() {
if(columnContainerMap.size()==0){
columnContainerMap.put(getTableName(), createColumns());
}
return new HashSet(columnContainerMap.values());
}
public Set<String> getLeftJoinTableSet() {
return leftJoinTableSet;
}
public void or(GeneratedCriteria criteria) {
oredCriteria.add(criteria);
if(!criteria.getTableName().equals(getTableName())){
leftJoinTableSet.add(criteria.getTableName());
}
}
public GeneratedCriteria and(GeneratedCriteria criteria) {
GeneratedCriteria oldCriteria = criteria;
if(oredCriteria.size()<=0){
oredCriteria.add(criteria);
}else{
oldCriteria = oredCriteria.get(oredCriteria.size()-1);
oldCriteria.getCriteria().addAll(criteria.getCriteria());
}
if(!criteria.getTableName().equals(getTableName())){
leftJoinTableSet.add(criteria.getTableName());
}
return oldCriteria;
}
public abstract GeneratedCriteria createCriteria();
protected abstract GeneratedCriteria createCriteriaInternal();
protected abstract ColumnContainerBase createColumns();
public void clear() {
oredCriteria.clear();
columnContainerMap.clear();
leftJoinTableSet.clear();
orderByClause = null;
groupByClause = null;
distinct = false;
ignoreCase = false;
}
public abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected boolean ignoreCase = false;
private String tableName;
public boolean isIgnoreCase() {
return ignoreCase;
}
public void setIgnoreCase(boolean ignoreCase) {
this.ignoreCase = ignoreCase;
this.criteria.forEach(item->{
item.setIgnoreCase(ignoreCase);
});
}
protected GeneratedCriteria(String tableName) {
super();
this.criteria = new ArrayList<Criterion>();
this.tableName = tableName;
}
protected GeneratedCriteria(String tableName,boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public List<Criterion> getCriteria() {
return criteria;
}
public void setCriteria(List<Criterion> criteria){
this.criteria = criteria;
}
public String getTableName() {
return tableName;
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
private boolean ignoreCase;
public String getCondition() {
return condition;
}
public void setCondition(String condition){
this.condition = condition;
}
public Object getValue() {
return value;
}
public void setValue(Object value){
this.value = value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public void setNoValue(boolean noValue) {
this.noValue = noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public void setSingleValue(boolean singleValue){
this.singleValue = singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public void setListValue(boolean listValue){
this.listValue = listValue;
}
public String getTypeHandler() {
return typeHandler;
}
public boolean isIgnoreCase() {
return ignoreCase;
}
public void setIgnoreCase(boolean ignoreCase) {
this.ignoreCase = ignoreCase;
if(ignoreCase && value instanceof String){
String[] conditions = condition.split(" ");
this.condition = "\"upper\"("+conditions[0]+") " + conditions[1];
this.value = String.valueOf(value).toUpperCase();
}
}
public Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
public Criterion(String condition, Object value, String typeHandler) {
this(condition,value,typeHandler,false);
}
public Criterion(String condition, Object value, String typeHandler,boolean ignoreCase) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
if(ignoreCase && value instanceof String){
String[] conditions = condition.split(" ");
this.condition = "\"upper\"("+conditions[0]+") " + conditions[1];
this.value = String.valueOf(value).toUpperCase();
}
}
public Criterion(String condition, Object value) {
this(condition,value,false);
}
public Criterion(String condition, Object value,boolean ignoreCase) {
this(condition, value, null,ignoreCase);
}
public Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
public Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
protected static class ColumnContainerBase {
private StringBuffer columnContainerStr;
private String tableName;
protected ColumnContainerBase(String tableName) {
super();
columnContainerStr = new StringBuffer();
this.tableName = tableName;
}
public boolean isValid() {
return columnContainerStr.length() > 0;
}
public StringBuffer getAllColumn() {
return columnContainerStr;
}
public StringBuffer getColumnContainerStr() {
return columnContainerStr;
}
public void addColumnStr(String column) {
if(columnContainerStr.toString().indexOf(column)!=-1){
return;
}
if (columnContainerStr.length() > 0) {
columnContainerStr.append(",");
}
columnContainerStr.append(column);
}
public String getTableName() {
return tableName;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.base;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
*
* @author suman
* 2016年8月15日 下午1:52:06
* @param <T>
*/
public interface BaseMapper<T extends BaseModel> {
/**
* 通过查询条件获取满足条件的数据数量
* @param example 查询条件
* @return 满足条件的数据数量
*/
public int countByExample(BaseExample example);
/**
* 通过条件删除数据
* @param example 条件
* @return 删除数量
*/
public int deleteByExample(BaseExample example);
/**
* 通过主键删除数据
* @param key 主键
* @return 删除数量
*/
public int deleteByPrimaryKey(Object id);
/**
* 将数据插入数据库<br>
* 所有字段都插入数据库不管是不是null
* @param record 需要插入数据库的对象
* @return
*/
public int insert(T record);
/**
* 将数据插入数据库<br>
* 将所有非null字段都插入数据库
* @param record
* @return
*/
public int insertSelective(T record);
/**
* 通过查询条件查询数据
* @param example 查询条件
* @return 数据对象列表
*/
public List<T> selectByExample(BaseExample example);
/**
* 通过主键查询数据
* @param key 主键
* @return 数据对象
*/
public T selectByPrimaryKey(Object id);
/**
* 通过条件更新数据<br>
* 更新所有字段
* @param record 需要更新的内容
* @param example 更新的条件
* @return 更新的数据数量
*/
public int updateByExampleSelective(@Param("record") T record, @Param("example") BaseExample example);
/**
* 通过条件更新数据<br>
* 更新所有字段
* @param record 需要更新的内容
* @param example 更新的条件
* @return 更新的数据数量
*/
public int updateByExample(@Param("record") T record, @Param("example") BaseExample example);
/**
* 通过主键更新对象<br>
* 只更新非null字段
* @param record 需要更新的内容及主键 主键不可为空
* @return 更新的数量
*/
public int updateByPrimaryKeySelective(T record);
/**
* 通过主键更新对象<br>
* 更新所有字段
* @param record 需要更新的内容及主键 主键不可为空
* @return 更新的数量
*/
public int updateByPrimaryKey(T record);
}
package com.viontech.label.platform.base;
import java.io.Serializable;
/**
*
* @author suman
* model类的基类 所有的model都要继承自该类
*/
public abstract class BaseModel implements Serializable{
private Long count;
private Long id;
public BaseModel() {
super();
}
public Long getCount() {
return count;
}
public void setCount(Long count) {
this.count = count;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}
package com.viontech.label.platform.base;
import com.github.pagehelper.PageInfo;
import java.util.List;
/**
* Service接口的基本接口,所有Service接口必须继承
* @author suman
*
* @param <T> 操作对应的model
*/
public interface BaseService<T extends BaseModel>{
/**
* 获取service对应的Mapper来进行操作
* @return
*/
public abstract BaseMapper<T> getMapper();
/**
* 通过查询条件获取满足条件的数据数量
* @param example 查询条件
* @return 满足条件的数据数量
*/
int countByExample(BaseExample example);
/**
* 通过条件删除数据
* @param example 条件
* @return 删除数量
*/
int deleteByExample(BaseExample example);
/**
* 通过主键删除数据
* @param key 主键
* @return 删除数量
*/
int deleteByPrimaryKey(Object key);
/**
* 将数据插入数据库<br>
* 所有字段都插入数据库不管是不是null
* @param record 需要插入数据库的对象
* @return
*/
T insert(T record);
/**
* 将数据插入数据库<br>
* 将所有非null字段都插入数据库
* @param record
* @return
*/
T insertSelective(T record);
/**
* 通过查询条件查询数据
* @param example 查询条件
* @return 数据对象列表
*/
List<T> selectByExample(BaseExample example);
/**
* 通过主键查询数据
* @param key 主键
* @return 数据对象
*/
T selectByPrimaryKey(Object key);
/**
* 通过条件更新数据<br>
* 只更新非null字段
* @param record 需要更新的内容
* @param example 更新的条件
* @return 更新的数据数量
*/
int updateByExampleSelective(T record, BaseExample example);
/**
* 通过条件更新数据<br>
* 更新所有字段
* @param record 需要更新的内容
* @param example 更新的条件
* @return 更新的数据数量
*/
int updateByExample(T record,BaseExample example);
/**
* 通过主键更新对象<br>
* 只更新非null字段
* @param record 需要更新的内容及主键 主键不可为空
* @return 更新的数量
*/
int updateByPrimaryKeySelective(T record);
/**
* 通过主键更新对象<br>
* 更新所有字段
* @param record 需要更新的内容及主键 主键不可为空
* @return 更新的数量
*/
int updateByPrimaryKey(T record);
/**
* 通过查询条件和分页条件查询出一页数据
* @param example 查询条件
* @param page 页数
* @param limit 每页数据数量
* @return 一页数据
*/
PageInfo pagedQuery(BaseExample example, int page, int pageSize);
Object getPKByModel(BaseModel baseModel);
List getIdsByByExample(BaseExample example);
/**
* 根据实体属性名称获取对应表字段名称
* @param property
* @return
*/
String getColumnNameByProperty(String property);
}
package com.viontech.label.platform.base;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.viontech.label.core.base.RedisCache;
import org.apache.ibatis.mapping.ResultMap;
import org.apache.ibatis.mapping.ResultMapping;
import org.apache.ibatis.session.SqlSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Field;
import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public abstract class BaseServiceImpl<T extends BaseModel> implements BaseService<T> {
/**
* slf4j 日志对象 用来记录log
*/
protected Logger logger = LoggerFactory.getLogger(getClass());
private Map<String, String> columnNamePropertyMap = null;
@RedisCache(methodType = RedisCache.MethodType.GET)
public T selectByPrimaryKey(Object id) {
return getMapper().selectByPrimaryKey(id);
}
@RedisCache(methodType = RedisCache.MethodType.ADD)
public T insert(T record) {
getMapper().insert(record);
return record;
}
@Override
@RedisCache(methodType = RedisCache.MethodType.ADD)
public T insertSelective(T record) {
getMapper().insertSelective(record);
return record;
}
@Override
@RedisCache(methodType = RedisCache.MethodType.DELETE)
public int deleteByPrimaryKey(Object b) {
return getMapper().deleteByPrimaryKey(b);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.UPDATE)
public int updateByPrimaryKey(T record) {
return getMapper().updateByPrimaryKey(record);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.UPDATE)
public int updateByPrimaryKeySelective(T record) {
return getMapper().updateByPrimaryKeySelective(record);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.GET)
public PageInfo<T> pagedQuery(BaseExample example, int pageNum, int pageSize) {
if (pageSize > 0) {
PageHelper.startPage(pageNum, pageSize);
Page<T> result = (Page<T>) getMapper().selectByExample(example);
PageInfo<T> pageInfo = new PageInfo<T>(result);
return pageInfo;
} else {
List<T> result = (List<T>) getMapper().selectByExample(example);
Page<T> p = new Page<T>();
p.addAll(result);
PageInfo<T> pageInfo = new PageInfo<T>(p);
return pageInfo;
}
}
@Override
public int countByExample(BaseExample example) {
return getMapper().countByExample(example);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.DELETE)
public int deleteByExample(BaseExample example) {
return getMapper().deleteByExample(example);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.GET)
public List<T> selectByExample(BaseExample example) {
return getMapper().selectByExample(example);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.UPDATE)
public int updateByExampleSelective(T record, BaseExample example) {
return getMapper().updateByExampleSelective(record, example);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.UPDATE)
public int updateByExample(T record, BaseExample example) {
return getMapper().updateByExample(record, example);
}
@Override
public List<Object> getIdsByByExample(BaseExample example) {
List<T> list = selectByExample(example);
List<Object> result = new ArrayList<Object>();
for (T t : list) {
Object pk = getPKByModel(t);
if (pk != null) {
result.add(pk);
}
}
return result;
}
@Override
public Object getPKByModel(BaseModel baseModel) {
throw new UnsupportedOperationException();
}
public String getColumnNameByProperty(String property) {
if (columnNamePropertyMap == null) {
columnNamePropertyMap = getColumnNamePropertyMap();
}
return columnNamePropertyMap.get(property);
}
public Map getColumnNamePropertyMap() {
Map<String, String> result = new HashMap<String, String>();
try {
SqlSession sqlSession = getSqlSessionByMapper(getMapper());
ResultMap resultMap = sqlSession.getConfiguration().getResultMap(getMapperClassByMapper(getMapper()).getName() + ".BaseResultMapRoot");
List<ResultMapping> propertyResultMappings = resultMap.getPropertyResultMappings();
for (ResultMapping resultMapping : propertyResultMappings) {
result.put(resultMapping.getProperty(), resultMapping.getColumn());
}
} catch (Exception e) {
e.printStackTrace();
}
return result;
}
private SqlSession getSqlSessionByMapper(BaseMapper mapper) throws Exception {
Object mapperProxy = ((Proxy) mapper).getInvocationHandler(mapper);
Field sqlSession = mapperProxy.getClass().getDeclaredField("sqlSession");
sqlSession.setAccessible(true);
return (SqlSession) sqlSession.get(mapperProxy);
}
private Class getMapperClassByMapper(BaseMapper mapper) throws Exception {
Object mapperProxy = ((Proxy) mapper).getInvocationHandler(mapper);
Field mapperInterface = mapperProxy.getClass().getDeclaredField("mapperInterface");
mapperInterface.setAccessible(true);
return (Class) mapperInterface.get(mapperProxy);
}
}
package com.viontech.label.platform.base;
import cn.dev33.satoken.exception.NotLoginException;
import com.viontech.keliu.util.JsonMessageUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
/**
* .
*
* @author 谢明辉
* @date 2020/6/4
*/
@RestControllerAdvice
public class GlobalExceptionHandler {
private static final Logger log = LoggerFactory.getLogger(GlobalExceptionHandler.class);
@ExceptionHandler
public Object exceptionHandler(Exception e) {
if (!(e instanceof NotLoginException)) {
log.error("接口调用出错", e);
}
return JsonMessageUtil.getErrorJsonMsg(e.getMessage());
}
}
package com.viontech.label.platform.base;
public interface VoInterface<T> {
public T getModel();
public void setModel(T t);
}
package com.viontech.label.platform.config;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
/**
* 不通过注入的方式取得bean
*
* @author 谢明辉
* @date 2019-5-20
*/
@Component
public class ApplicationContextProvider implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
ApplicationContextProvider.applicationContext = applicationContext;
}
/**
* 获取applicationContext
*/
public static ApplicationContext getApplicationContext() {
return applicationContext;
}
/**
* 通过name获取 Bean.
*
* @param name
*/
public static Object getBean(String name) {
return getApplicationContext().getBean(name);
}
/**
* 通过class获取Bean.
*
* @param clazz
* @param <T>
*/
public static <T> T getBean(Class<T> clazz) {
return getApplicationContext().getBean(clazz);
}
/**
* 通过name,以及Clazz返回指定的Bean
*
* @param name
* @param clazz
* @param <T>
*/
public static <T> T getBean(String name, Class<T> clazz) {
return getApplicationContext().getBean(name, clazz);
}
}
package com.viontech.label.platform.config;
import org.nustaq.serialization.FSTConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Configuration
@AutoConfigureAfter(RedisAutoConfiguration.class)
public class RedisConfig extends CachingConfigurerSupport {
@Bean
public RedisTemplate redisTemplate(RedisConnectionFactory redisConnectionFactory) {
RedisTemplate redisTemplate = new RedisTemplate();
//给redis模板先设置连接工厂,在设置序列化规则
redisTemplate.setConnectionFactory(redisConnectionFactory);
//设置序列化规则
FSTSerializer fstSerializer = new FSTSerializer();
redisTemplate.setKeySerializer(new StringRedisSerializer());
redisTemplate.setValueSerializer(fstSerializer);
redisTemplate.setHashKeySerializer(fstSerializer);
redisTemplate.setHashValueSerializer(fstSerializer);
redisTemplate.afterPropertiesSet();
return redisTemplate;
}
private static class FSTSerializer implements RedisSerializer<Object> {
private final static ThreadLocal<FSTConfiguration> FST_CONFIG = ThreadLocal.withInitial(FSTConfiguration::createDefaultConfiguration);
@Override
public byte[] serialize(Object obj) {
if (null == obj) {
return null;
}
return FST_CONFIG.get().asByteArray(obj);
}
@Override
public Object deserialize(byte[] bytes) {
if (null == bytes || bytes.length == 0) {
return null;
}
return FST_CONFIG.get().asObject(bytes);
}
}
}
package com.viontech.label.platform.config;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.codec.FstCodec;
import org.redisson.config.Config;
import org.redisson.config.SingleServerConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.TimeUnit;
/**
* .
*
* @author 谢明辉
* @date 2019-8-7 9:30
*/
@Configuration
public class RedissonConfig {
@Value("${spring.redis.host:127.0.0.1}")
private String host;
@Value("${spring.redis.port:6379}")
private Integer port;
@Value("${spring.redis.password:vionredis}")
private String password;
@Value("${spring.redis.database:0}")
private Integer database;
@Bean(name = "redissonClient", destroyMethod = "shutdown")
@ConditionalOnProperty(name = "spring.redis.host")
public RedissonClient redissonClient() {
Config config = new Config();
SingleServerConfig singleServerConfig = config.useSingleServer();
singleServerConfig.setAddress("redis://" + host + ":" + port);
singleServerConfig.setPassword(password);
singleServerConfig.setDatabase(database);
singleServerConfig.setConnectionMinimumIdleSize(10);
singleServerConfig.setConnectionPoolSize(20);
singleServerConfig.setDnsMonitoringInterval(5000);
config.setCodec(new FstCodec());
return Redisson.create(config);
}
@Bean(name = "redissonClient", destroyMethod = "shutdown")
@ConditionalOnProperty(name = "spring.redis.cluster.nodes")
@ConditionalOnMissingBean(RedissonClient.class)
public RedissonClient redissonClientCluster(@Value("${spring.redis.cluster.nodes}") String nodesStr) {
String[] split = nodesStr.split(",");
for (int i = 0; i < split.length; i++) {
split[i] = "redis://" + split[i];
}
Config config = new Config();
config.useClusterServers()
// 集群状态扫描间隔时间,单位是毫秒
.setScanInterval(2000)
//可以用"rediss://"来启用SSL连接
.addNodeAddress(split)
.setPassword(password)
.setSlaveConnectionPoolSize(10)
.setSlaveConnectionMinimumIdleSize(5)
.setTimeout((int) TimeUnit.MINUTES.toMillis(5));
config.setCodec(new FstCodec());
return Redisson.create(config);
}
@Bean(name = "redissonClient", destroyMethod = "shutdown")
@ConditionalOnProperty(name = "spring.redis.sentinel.nodes")
@ConditionalOnMissingBean(RedissonClient.class)
public RedissonClient redissonClientSentinel(@Value("${spring.redis.sentinel.nodes}") String nodesStr, @Value("${spring.redis.sentinel.master}") String master) {
String[] split = nodesStr.split(",");
for (int i = 0; i < split.length; i++) {
split[i] = "redis://" + split[i];
}
Config config = new Config();
config.useSentinelServers()
.setMasterName(master)
.addSentinelAddress(split)
.setPassword(password)
.setSlaveConnectionPoolSize(10)
.setSlaveConnectionMinimumIdleSize(5)
.setTimeout((int) TimeUnit.MINUTES.toMillis(5));
config.setCodec(new FstCodec());
return Redisson.create(config);
}
}
package com.viontech.label.platform.config;
import com.viontech.keliu.websocket.AlgApiClient;
import com.viontech.label.core.base.DateConverter;
import com.viontech.label.platform.interceptor.AuthInterceptor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
import javax.annotation.Resource;
import java.util.Date;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Resource
private AuthInterceptor authInterceptor;
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(authInterceptor).addPathPatterns("/**").excludePathPatterns("/users/login", "/reid/upload","/**/websocket/**");
}
@Bean
public Converter<String, Date> addNewConvert() {
return new DateConverter();
}
@Bean
public ServerEndpointExporter serverEndpointExporter() {
return new ServerEndpointExporter();
}
@Bean
public CorsFilter corsFilter() {
CorsConfiguration config = new CorsConfiguration();
config.addAllowedOrigin("*");
config.setAllowCredentials(true);
config.addAllowedMethod("*");
config.addAllowedHeader("*");
config.setMaxAge(3600L);
UrlBasedCorsConfigurationSource configSource = new UrlBasedCorsConfigurationSource();
configSource.registerCorsConfiguration("/**", config);
return new CorsFilter(configSource);
}
@Bean("matchClient")
@ConditionalOnProperty(value = "vion.match-url")
public AlgApiClient algApiClient(@Value("${vion.match-url}") String matchUrl) {
return new AlgApiClient(matchUrl);
}
}
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Account;
import com.viontech.label.platform.model.AccountExample;
import com.viontech.label.platform.service.adapter.AccountService;
import com.viontech.label.platform.vo.AccountVo;
import javax.annotation.Resource;
public abstract class AccountBaseController extends BaseController<Account, AccountVo> {
@Resource
protected AccountService accountService;
@Override
protected BaseExample getExample(AccountVo accountVo, int type) {
AccountExample accountExample = new AccountExample();
AccountExample.Criteria criteria = accountExample.createCriteria();
if(accountVo.getId() != null) {
criteria.andIdEqualTo(accountVo.getId());
}
if(accountVo.getId_arr() != null) {
criteria.andIdIn(accountVo.getId_arr());
}
if(accountVo.getId_gt() != null) {
criteria.andIdGreaterThan(accountVo.getId_gt());
}
if(accountVo.getId_lt() != null) {
criteria.andIdLessThan(accountVo.getId_lt());
}
if(accountVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(accountVo.getId_gte());
}
if(accountVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(accountVo.getId_lte());
}
if(accountVo.getUnid() != null) {
criteria.andUnidEqualTo(accountVo.getUnid());
}
if(accountVo.getUnid_arr() != null) {
criteria.andUnidIn(accountVo.getUnid_arr());
}
if(accountVo.getUnid_like() != null) {
criteria.andUnidLike(accountVo.getUnid_like());
}
if(accountVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(accountVo.getCreateTime());
}
if(accountVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(accountVo.getCreateTime_arr());
}
if(accountVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(accountVo.getCreateTime_gt());
}
if(accountVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(accountVo.getCreateTime_lt());
}
if(accountVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(accountVo.getCreateTime_gte());
}
if(accountVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(accountVo.getCreateTime_lte());
}
if(accountVo.getCreateUser() != null) {
criteria.andCreateUserEqualTo(accountVo.getCreateUser());
}
if(accountVo.getCreateUser_null() != null) {
if(accountVo.getCreateUser_null().booleanValue()) {
criteria.andCreateUserIsNull();
} else {
criteria.andCreateUserIsNotNull();
}
}
if(accountVo.getCreateUser_arr() != null) {
criteria.andCreateUserIn(accountVo.getCreateUser_arr());
}
if(accountVo.getCreateUser_gt() != null) {
criteria.andCreateUserGreaterThan(accountVo.getCreateUser_gt());
}
if(accountVo.getCreateUser_lt() != null) {
criteria.andCreateUserLessThan(accountVo.getCreateUser_lt());
}
if(accountVo.getCreateUser_gte() != null) {
criteria.andCreateUserGreaterThanOrEqualTo(accountVo.getCreateUser_gte());
}
if(accountVo.getCreateUser_lte() != null) {
criteria.andCreateUserLessThanOrEqualTo(accountVo.getCreateUser_lte());
}
if(accountVo.getName() != null) {
criteria.andNameEqualTo(accountVo.getName());
}
if(accountVo.getName_arr() != null) {
criteria.andNameIn(accountVo.getName_arr());
}
if(accountVo.getName_like() != null) {
criteria.andNameLike(accountVo.getName_like());
}
if(accountVo.getManagerId() != null) {
criteria.andManagerIdEqualTo(accountVo.getManagerId());
}
if(accountVo.getManagerId_null() != null) {
if(accountVo.getManagerId_null().booleanValue()) {
criteria.andManagerIdIsNull();
} else {
criteria.andManagerIdIsNotNull();
}
}
if(accountVo.getManagerId_arr() != null) {
criteria.andManagerIdIn(accountVo.getManagerId_arr());
}
if(accountVo.getManagerId_gt() != null) {
criteria.andManagerIdGreaterThan(accountVo.getManagerId_gt());
}
if(accountVo.getManagerId_lt() != null) {
criteria.andManagerIdLessThan(accountVo.getManagerId_lt());
}
if(accountVo.getManagerId_gte() != null) {
criteria.andManagerIdGreaterThanOrEqualTo(accountVo.getManagerId_gte());
}
if(accountVo.getManagerId_lte() != null) {
criteria.andManagerIdLessThanOrEqualTo(accountVo.getManagerId_lte());
}
if(accountVo.getDescription() != null) {
criteria.andDescriptionEqualTo(accountVo.getDescription());
}
if(accountVo.getDescription_null() != null) {
if(accountVo.getDescription_null().booleanValue()) {
criteria.andDescriptionIsNull();
} else {
criteria.andDescriptionIsNotNull();
}
}
if(accountVo.getDescription_arr() != null) {
criteria.andDescriptionIn(accountVo.getDescription_arr());
}
if(accountVo.getDescription_like() != null) {
criteria.andDescriptionLike(accountVo.getDescription_like());
}
return accountExample;
}
@Override
protected BaseService<Account> getService() {
return accountService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Dict;
import com.viontech.label.platform.model.DictExample;
import com.viontech.label.platform.service.adapter.DictService;
import com.viontech.label.platform.vo.DictVo;
import javax.annotation.Resource;
public abstract class DictBaseController extends BaseController<Dict, DictVo> {
@Resource
protected DictService dictService;
@Override
protected BaseExample getExample(DictVo dictVo, int type) {
DictExample dictExample = new DictExample();
DictExample.Criteria criteria = dictExample.createCriteria();
if(dictVo.getId() != null) {
criteria.andIdEqualTo(dictVo.getId());
}
if(dictVo.getId_arr() != null) {
criteria.andIdIn(dictVo.getId_arr());
}
if(dictVo.getId_gt() != null) {
criteria.andIdGreaterThan(dictVo.getId_gt());
}
if(dictVo.getId_lt() != null) {
criteria.andIdLessThan(dictVo.getId_lt());
}
if(dictVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(dictVo.getId_gte());
}
if(dictVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(dictVo.getId_lte());
}
if(dictVo.getUnid() != null) {
criteria.andUnidEqualTo(dictVo.getUnid());
}
if(dictVo.getUnid_arr() != null) {
criteria.andUnidIn(dictVo.getUnid_arr());
}
if(dictVo.getUnid_like() != null) {
criteria.andUnidLike(dictVo.getUnid_like());
}
if(dictVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(dictVo.getCreateTime());
}
if(dictVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(dictVo.getCreateTime_arr());
}
if(dictVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(dictVo.getCreateTime_gt());
}
if(dictVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(dictVo.getCreateTime_lt());
}
if(dictVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(dictVo.getCreateTime_gte());
}
if(dictVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(dictVo.getCreateTime_lte());
}
if(dictVo.getCreateUser() != null) {
criteria.andCreateUserEqualTo(dictVo.getCreateUser());
}
if(dictVo.getCreateUser_null() != null) {
if(dictVo.getCreateUser_null().booleanValue()) {
criteria.andCreateUserIsNull();
} else {
criteria.andCreateUserIsNotNull();
}
}
if(dictVo.getCreateUser_arr() != null) {
criteria.andCreateUserIn(dictVo.getCreateUser_arr());
}
if(dictVo.getCreateUser_gt() != null) {
criteria.andCreateUserGreaterThan(dictVo.getCreateUser_gt());
}
if(dictVo.getCreateUser_lt() != null) {
criteria.andCreateUserLessThan(dictVo.getCreateUser_lt());
}
if(dictVo.getCreateUser_gte() != null) {
criteria.andCreateUserGreaterThanOrEqualTo(dictVo.getCreateUser_gte());
}
if(dictVo.getCreateUser_lte() != null) {
criteria.andCreateUserLessThanOrEqualTo(dictVo.getCreateUser_lte());
}
if(dictVo.getKey() != null) {
criteria.andKeyEqualTo(dictVo.getKey());
}
if(dictVo.getKey_arr() != null) {
criteria.andKeyIn(dictVo.getKey_arr());
}
if(dictVo.getKey_like() != null) {
criteria.andKeyLike(dictVo.getKey_like());
}
if(dictVo.getValue() != null) {
criteria.andValueEqualTo(dictVo.getValue());
}
if(dictVo.getValue_arr() != null) {
criteria.andValueIn(dictVo.getValue_arr());
}
if(dictVo.getValue_gt() != null) {
criteria.andValueGreaterThan(dictVo.getValue_gt());
}
if(dictVo.getValue_lt() != null) {
criteria.andValueLessThan(dictVo.getValue_lt());
}
if(dictVo.getValue_gte() != null) {
criteria.andValueGreaterThanOrEqualTo(dictVo.getValue_gte());
}
if(dictVo.getValue_lte() != null) {
criteria.andValueLessThanOrEqualTo(dictVo.getValue_lte());
}
if(dictVo.getDescription() != null) {
criteria.andDescriptionEqualTo(dictVo.getDescription());
}
if(dictVo.getDescription_null() != null) {
if(dictVo.getDescription_null().booleanValue()) {
criteria.andDescriptionIsNull();
} else {
criteria.andDescriptionIsNotNull();
}
}
if(dictVo.getDescription_arr() != null) {
criteria.andDescriptionIn(dictVo.getDescription_arr());
}
if(dictVo.getDescription_like() != null) {
criteria.andDescriptionLike(dictVo.getDescription_like());
}
return dictExample;
}
@Override
protected BaseService<Dict> getService() {
return dictService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.mapper.LogMapper;
import com.viontech.label.platform.model.Log;
import com.viontech.label.platform.model.LogExample;
import com.viontech.label.platform.service.adapter.LogService;
import com.viontech.label.platform.vo.LogVo;
import javax.annotation.Resource;
public abstract class LogBaseController extends BaseController<Log, LogVo> {
@Resource
protected LogService logService;
@Override
protected BaseExample getExample(LogVo logVo, int type) {
LogExample logExample = new LogExample();
LogExample.Criteria criteria = logExample.createCriteria();
if(logVo.getId() != null) {
criteria.andIdEqualTo(logVo.getId());
}
if(logVo.getId_arr() != null) {
criteria.andIdIn(logVo.getId_arr());
}
if(logVo.getId_gt() != null) {
criteria.andIdGreaterThan(logVo.getId_gt());
}
if(logVo.getId_lt() != null) {
criteria.andIdLessThan(logVo.getId_lt());
}
if(logVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(logVo.getId_gte());
}
if(logVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(logVo.getId_lte());
}
if(logVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(logVo.getCreateTime());
}
if(logVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(logVo.getCreateTime_arr());
}
if(logVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(logVo.getCreateTime_gt());
}
if(logVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(logVo.getCreateTime_lt());
}
if(logVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(logVo.getCreateTime_gte());
}
if(logVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(logVo.getCreateTime_lte());
}
if(logVo.getOperateUser() != null) {
criteria.andOperateUserEqualTo(logVo.getOperateUser());
}
if(logVo.getOperateUser_arr() != null) {
criteria.andOperateUserIn(logVo.getOperateUser_arr());
}
if(logVo.getOperateUser_gt() != null) {
criteria.andOperateUserGreaterThan(logVo.getOperateUser_gt());
}
if(logVo.getOperateUser_lt() != null) {
criteria.andOperateUserLessThan(logVo.getOperateUser_lt());
}
if(logVo.getOperateUser_gte() != null) {
criteria.andOperateUserGreaterThanOrEqualTo(logVo.getOperateUser_gte());
}
if(logVo.getOperateUser_lte() != null) {
criteria.andOperateUserLessThanOrEqualTo(logVo.getOperateUser_lte());
}
if(logVo.getOperateDate() != null) {
criteria.andOperateDateEqualTo(logVo.getOperateDate());
}
if(logVo.getOperateDate_arr() != null) {
criteria.andOperateDateIn(logVo.getOperateDate_arr());
}
if(logVo.getOperateDate_gt() != null) {
criteria.andOperateDateGreaterThan(logVo.getOperateDate_gt());
}
if(logVo.getOperateDate_lt() != null) {
criteria.andOperateDateLessThan(logVo.getOperateDate_lt());
}
if(logVo.getOperateDate_gte() != null) {
criteria.andOperateDateGreaterThanOrEqualTo(logVo.getOperateDate_gte());
}
if(logVo.getOperateDate_lte() != null) {
criteria.andOperateDateLessThanOrEqualTo(logVo.getOperateDate_lte());
}
if(logVo.getOperateType() != null) {
criteria.andOperateTypeEqualTo(logVo.getOperateType());
}
if(logVo.getOperateType_null() != null) {
if(logVo.getOperateType_null().booleanValue()) {
criteria.andOperateTypeIsNull();
} else {
criteria.andOperateTypeIsNotNull();
}
}
if(logVo.getOperateType_arr() != null) {
criteria.andOperateTypeIn(logVo.getOperateType_arr());
}
if(logVo.getOperateType_gt() != null) {
criteria.andOperateTypeGreaterThan(logVo.getOperateType_gt());
}
if(logVo.getOperateType_lt() != null) {
criteria.andOperateTypeLessThan(logVo.getOperateType_lt());
}
if(logVo.getOperateType_gte() != null) {
criteria.andOperateTypeGreaterThanOrEqualTo(logVo.getOperateType_gte());
}
if(logVo.getOperateType_lte() != null) {
criteria.andOperateTypeLessThanOrEqualTo(logVo.getOperateType_lte());
}
if(logVo.getOperate() != null) {
criteria.andOperateEqualTo(logVo.getOperate());
}
if(logVo.getOperate_null() != null) {
if(logVo.getOperate_null().booleanValue()) {
criteria.andOperateIsNull();
} else {
criteria.andOperateIsNotNull();
}
}
if(logVo.getOperate_arr() != null) {
criteria.andOperateIn(logVo.getOperate_arr());
}
if(logVo.getOperate_like() != null) {
criteria.andOperateLike(logVo.getOperate_like());
}
return logExample;
}
@Override
protected BaseService<Log> getService() {
return logService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.mapper.PackMapper;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.model.PackExample;
import com.viontech.label.platform.service.adapter.PackService;
import com.viontech.label.platform.vo.PackVo;
import javax.annotation.Resource;
public abstract class PackBaseController extends BaseController<Pack, PackVo> {
@Resource
protected PackService packService;
@Override
protected BaseExample getExample(PackVo packVo, int type) {
PackExample packExample = new PackExample();
PackExample.Criteria criteria = packExample.createCriteria();
if(packVo.getId() != null) {
criteria.andIdEqualTo(packVo.getId());
}
if(packVo.getId_arr() != null) {
criteria.andIdIn(packVo.getId_arr());
}
if(packVo.getId_gt() != null) {
criteria.andIdGreaterThan(packVo.getId_gt());
}
if(packVo.getId_lt() != null) {
criteria.andIdLessThan(packVo.getId_lt());
}
if(packVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(packVo.getId_gte());
}
if(packVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(packVo.getId_lte());
}
if(packVo.getUnid() != null) {
criteria.andUnidEqualTo(packVo.getUnid());
}
if(packVo.getUnid_arr() != null) {
criteria.andUnidIn(packVo.getUnid_arr());
}
if(packVo.getUnid_like() != null) {
criteria.andUnidLike(packVo.getUnid_like());
}
if(packVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(packVo.getCreateTime());
}
if(packVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(packVo.getCreateTime_arr());
}
if(packVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(packVo.getCreateTime_gt());
}
if(packVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(packVo.getCreateTime_lt());
}
if(packVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(packVo.getCreateTime_gte());
}
if(packVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(packVo.getCreateTime_lte());
}
if(packVo.getCreateUser() != null) {
criteria.andCreateUserEqualTo(packVo.getCreateUser());
}
if(packVo.getCreateUser_null() != null) {
if(packVo.getCreateUser_null().booleanValue()) {
criteria.andCreateUserIsNull();
} else {
criteria.andCreateUserIsNotNull();
}
}
if(packVo.getCreateUser_arr() != null) {
criteria.andCreateUserIn(packVo.getCreateUser_arr());
}
if(packVo.getCreateUser_gt() != null) {
criteria.andCreateUserGreaterThan(packVo.getCreateUser_gt());
}
if(packVo.getCreateUser_lt() != null) {
criteria.andCreateUserLessThan(packVo.getCreateUser_lt());
}
if(packVo.getCreateUser_gte() != null) {
criteria.andCreateUserGreaterThanOrEqualTo(packVo.getCreateUser_gte());
}
if(packVo.getCreateUser_lte() != null) {
criteria.andCreateUserLessThanOrEqualTo(packVo.getCreateUser_lte());
}
if(packVo.getStorageId() != null) {
criteria.andStorageIdEqualTo(packVo.getStorageId());
}
if(packVo.getStorageId_arr() != null) {
criteria.andStorageIdIn(packVo.getStorageId_arr());
}
if(packVo.getStorageId_gt() != null) {
criteria.andStorageIdGreaterThan(packVo.getStorageId_gt());
}
if(packVo.getStorageId_lt() != null) {
criteria.andStorageIdLessThan(packVo.getStorageId_lt());
}
if(packVo.getStorageId_gte() != null) {
criteria.andStorageIdGreaterThanOrEqualTo(packVo.getStorageId_gte());
}
if(packVo.getStorageId_lte() != null) {
criteria.andStorageIdLessThanOrEqualTo(packVo.getStorageId_lte());
}
if(packVo.getName() != null) {
criteria.andNameEqualTo(packVo.getName());
}
if(packVo.getName_arr() != null) {
criteria.andNameIn(packVo.getName_arr());
}
if(packVo.getName_like() != null) {
criteria.andNameLike(packVo.getName_like());
}
if(packVo.getStatus() != null) {
criteria.andStatusEqualTo(packVo.getStatus());
}
if(packVo.getStatus_arr() != null) {
criteria.andStatusIn(packVo.getStatus_arr());
}
if(packVo.getStatus_gt() != null) {
criteria.andStatusGreaterThan(packVo.getStatus_gt());
}
if(packVo.getStatus_lt() != null) {
criteria.andStatusLessThan(packVo.getStatus_lt());
}
if(packVo.getStatus_gte() != null) {
criteria.andStatusGreaterThanOrEqualTo(packVo.getStatus_gte());
}
if(packVo.getStatus_lte() != null) {
criteria.andStatusLessThanOrEqualTo(packVo.getStatus_lte());
}
if(packVo.getType() != null) {
criteria.andTypeEqualTo(packVo.getType());
}
if(packVo.getType_arr() != null) {
criteria.andTypeIn(packVo.getType_arr());
}
if(packVo.getType_gt() != null) {
criteria.andTypeGreaterThan(packVo.getType_gt());
}
if(packVo.getType_lt() != null) {
criteria.andTypeLessThan(packVo.getType_lt());
}
if(packVo.getType_gte() != null) {
criteria.andTypeGreaterThanOrEqualTo(packVo.getType_gte());
}
if(packVo.getType_lte() != null) {
criteria.andTypeLessThanOrEqualTo(packVo.getType_lte());
}
return packExample;
}
@Override
protected BaseService<Pack> getService() {
return packService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.PackTag;
import com.viontech.label.platform.model.PackTagExample;
import com.viontech.label.platform.service.adapter.PackTagService;
import com.viontech.label.platform.vo.PackTagVo;
import javax.annotation.Resource;
public abstract class PackTagBaseController extends BaseController<PackTag, PackTagVo> {
@Resource
protected PackTagService packTagService;
@Override
protected BaseExample getExample(PackTagVo packTagVo, int type) {
PackTagExample packTagExample = new PackTagExample();
PackTagExample.Criteria criteria = packTagExample.createCriteria();
if(packTagVo.getId() != null) {
criteria.andIdEqualTo(packTagVo.getId());
}
if(packTagVo.getId_arr() != null) {
criteria.andIdIn(packTagVo.getId_arr());
}
if(packTagVo.getId_gt() != null) {
criteria.andIdGreaterThan(packTagVo.getId_gt());
}
if(packTagVo.getId_lt() != null) {
criteria.andIdLessThan(packTagVo.getId_lt());
}
if(packTagVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(packTagVo.getId_gte());
}
if(packTagVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(packTagVo.getId_lte());
}
if(packTagVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(packTagVo.getCreateTime());
}
if(packTagVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(packTagVo.getCreateTime_arr());
}
if(packTagVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(packTagVo.getCreateTime_gt());
}
if(packTagVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(packTagVo.getCreateTime_lt());
}
if(packTagVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(packTagVo.getCreateTime_gte());
}
if(packTagVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(packTagVo.getCreateTime_lte());
}
if(packTagVo.getPackId() != null) {
criteria.andPackIdEqualTo(packTagVo.getPackId());
}
if(packTagVo.getPackId_arr() != null) {
criteria.andPackIdIn(packTagVo.getPackId_arr());
}
if(packTagVo.getPackId_gt() != null) {
criteria.andPackIdGreaterThan(packTagVo.getPackId_gt());
}
if(packTagVo.getPackId_lt() != null) {
criteria.andPackIdLessThan(packTagVo.getPackId_lt());
}
if(packTagVo.getPackId_gte() != null) {
criteria.andPackIdGreaterThanOrEqualTo(packTagVo.getPackId_gte());
}
if(packTagVo.getPackId_lte() != null) {
criteria.andPackIdLessThanOrEqualTo(packTagVo.getPackId_lte());
}
if(packTagVo.getTag() != null) {
criteria.andTagEqualTo(packTagVo.getTag());
}
if(packTagVo.getTag_arr() != null) {
criteria.andTagIn(packTagVo.getTag_arr());
}
if(packTagVo.getTag_gt() != null) {
criteria.andTagGreaterThan(packTagVo.getTag_gt());
}
if(packTagVo.getTag_lt() != null) {
criteria.andTagLessThan(packTagVo.getTag_lt());
}
if(packTagVo.getTag_gte() != null) {
criteria.andTagGreaterThanOrEqualTo(packTagVo.getTag_gte());
}
if(packTagVo.getTag_lte() != null) {
criteria.andTagLessThanOrEqualTo(packTagVo.getTag_lte());
}
return packTagExample;
}
@Override
protected BaseService<PackTag> getService() {
return packTagService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.model.PicExample;
import com.viontech.label.platform.service.adapter.PicService;
import com.viontech.label.platform.vo.PicVo;
import javax.annotation.Resource;
public abstract class PicBaseController extends BaseController<Pic, PicVo> {
@Resource
protected PicService picService;
@Override
protected BaseExample getExample(PicVo picVo, int type) {
PicExample picExample = new PicExample();
PicExample.Criteria criteria = picExample.createCriteria();
if (picVo.getId() != null) {
criteria.andIdEqualTo(picVo.getId());
}
if (picVo.getId_arr() != null) {
criteria.andIdIn(picVo.getId_arr());
}
if (picVo.getId_gt() != null) {
criteria.andIdGreaterThan(picVo.getId_gt());
}
if (picVo.getId_lt() != null) {
criteria.andIdLessThan(picVo.getId_lt());
}
if (picVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(picVo.getId_gte());
}
if (picVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(picVo.getId_lte());
}
if (picVo.getUnid() != null) {
criteria.andUnidEqualTo(picVo.getUnid());
}
if (picVo.getUnid_arr() != null) {
criteria.andUnidIn(picVo.getUnid_arr());
}
if (picVo.getUnid_like() != null) {
criteria.andUnidLike(picVo.getUnid_like());
}
if (picVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(picVo.getCreateTime());
}
if (picVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(picVo.getCreateTime_arr());
}
if (picVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(picVo.getCreateTime_gt());
}
if (picVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(picVo.getCreateTime_lt());
}
if (picVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(picVo.getCreateTime_gte());
}
if (picVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(picVo.getCreateTime_lte());
}
if (picVo.getName() != null) {
criteria.andNameEqualTo(picVo.getName());
}
if (picVo.getName_arr() != null) {
criteria.andNameIn(picVo.getName_arr());
}
if (picVo.getName_like() != null) {
criteria.andNameLike(picVo.getName_like());
}
if (picVo.getStorageId() != null) {
criteria.andStorageIdEqualTo(picVo.getStorageId());
}
if (picVo.getStorageId_arr() != null) {
criteria.andStorageIdIn(picVo.getStorageId_arr());
}
if (picVo.getStorageId_gt() != null) {
criteria.andStorageIdGreaterThan(picVo.getStorageId_gt());
}
if (picVo.getStorageId_lt() != null) {
criteria.andStorageIdLessThan(picVo.getStorageId_lt());
}
if (picVo.getStorageId_gte() != null) {
criteria.andStorageIdGreaterThanOrEqualTo(picVo.getStorageId_gte());
}
if (picVo.getStorageId_lte() != null) {
criteria.andStorageIdLessThanOrEqualTo(picVo.getStorageId_lte());
}
if (picVo.getPackId() != null) {
criteria.andPackIdEqualTo(picVo.getPackId());
}
if (picVo.getPackId_arr() != null) {
criteria.andPackIdIn(picVo.getPackId_arr());
}
if (picVo.getPackId_gt() != null) {
criteria.andPackIdGreaterThan(picVo.getPackId_gt());
}
if (picVo.getPackId_lt() != null) {
criteria.andPackIdLessThan(picVo.getPackId_lt());
}
if (picVo.getPackId_gte() != null) {
criteria.andPackIdGreaterThanOrEqualTo(picVo.getPackId_gte());
}
if (picVo.getPackId_lte() != null) {
criteria.andPackIdLessThanOrEqualTo(picVo.getPackId_lte());
}
if (picVo.getPersonUnid() != null) {
criteria.andPersonUnidEqualTo(picVo.getPersonUnid());
}
if (picVo.getPersonUnid_null() != null) {
if (picVo.getPersonUnid_null().booleanValue()) {
criteria.andPersonUnidIsNull();
} else {
criteria.andPersonUnidIsNotNull();
}
}
if (picVo.getPersonUnid_arr() != null) {
criteria.andPersonUnidIn(picVo.getPersonUnid_arr());
}
if (picVo.getPersonUnid_like() != null) {
criteria.andPersonUnidLike(picVo.getPersonUnid_like());
}
if (picVo.getStatus() != null) {
criteria.andStatusEqualTo(picVo.getStatus());
}
if (picVo.getStatus_arr() != null) {
criteria.andStatusIn(picVo.getStatus_arr());
}
if (picVo.getStatus_gt() != null) {
criteria.andStatusGreaterThan(picVo.getStatus_gt());
}
if (picVo.getStatus_lt() != null) {
criteria.andStatusLessThan(picVo.getStatus_lt());
}
if (picVo.getStatus_gte() != null) {
criteria.andStatusGreaterThanOrEqualTo(picVo.getStatus_gte());
}
if (picVo.getStatus_lte() != null) {
criteria.andStatusLessThanOrEqualTo(picVo.getStatus_lte());
}
return picExample;
}
@Override
protected BaseService<Pic> getService() {
return picService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Storage;
import com.viontech.label.platform.model.StorageExample;
import com.viontech.label.platform.service.adapter.StorageService;
import com.viontech.label.platform.vo.StorageVo;
import javax.annotation.Resource;
public abstract class StorageBaseController extends BaseController<Storage, StorageVo> {
@Resource
protected StorageService storageService;
@Override
protected BaseExample getExample(StorageVo storageVo, int type) {
StorageExample storageExample = new StorageExample();
StorageExample.Criteria criteria = storageExample.createCriteria();
if(storageVo.getId() != null) {
criteria.andIdEqualTo(storageVo.getId());
}
if(storageVo.getId_arr() != null) {
criteria.andIdIn(storageVo.getId_arr());
}
if(storageVo.getId_gt() != null) {
criteria.andIdGreaterThan(storageVo.getId_gt());
}
if(storageVo.getId_lt() != null) {
criteria.andIdLessThan(storageVo.getId_lt());
}
if(storageVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(storageVo.getId_gte());
}
if(storageVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(storageVo.getId_lte());
}
if(storageVo.getUnid() != null) {
criteria.andUnidEqualTo(storageVo.getUnid());
}
if(storageVo.getUnid_arr() != null) {
criteria.andUnidIn(storageVo.getUnid_arr());
}
if(storageVo.getUnid_like() != null) {
criteria.andUnidLike(storageVo.getUnid_like());
}
if(storageVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(storageVo.getCreateTime());
}
if(storageVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(storageVo.getCreateTime_arr());
}
if(storageVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(storageVo.getCreateTime_gt());
}
if(storageVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(storageVo.getCreateTime_lt());
}
if(storageVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(storageVo.getCreateTime_gte());
}
if(storageVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(storageVo.getCreateTime_lte());
}
if(storageVo.getCreateUser() != null) {
criteria.andCreateUserEqualTo(storageVo.getCreateUser());
}
if(storageVo.getCreateUser_null() != null) {
if(storageVo.getCreateUser_null().booleanValue()) {
criteria.andCreateUserIsNull();
} else {
criteria.andCreateUserIsNotNull();
}
}
if(storageVo.getCreateUser_arr() != null) {
criteria.andCreateUserIn(storageVo.getCreateUser_arr());
}
if(storageVo.getCreateUser_gt() != null) {
criteria.andCreateUserGreaterThan(storageVo.getCreateUser_gt());
}
if(storageVo.getCreateUser_lt() != null) {
criteria.andCreateUserLessThan(storageVo.getCreateUser_lt());
}
if(storageVo.getCreateUser_gte() != null) {
criteria.andCreateUserGreaterThanOrEqualTo(storageVo.getCreateUser_gte());
}
if(storageVo.getCreateUser_lte() != null) {
criteria.andCreateUserLessThanOrEqualTo(storageVo.getCreateUser_lte());
}
if(storageVo.getName() != null) {
criteria.andNameEqualTo(storageVo.getName());
}
if(storageVo.getName_arr() != null) {
criteria.andNameIn(storageVo.getName_arr());
}
if(storageVo.getName_like() != null) {
criteria.andNameLike(storageVo.getName_like());
}
if(storageVo.getType() != null) {
criteria.andTypeEqualTo(storageVo.getType());
}
if(storageVo.getType_arr() != null) {
criteria.andTypeIn(storageVo.getType_arr());
}
if(storageVo.getType_gt() != null) {
criteria.andTypeGreaterThan(storageVo.getType_gt());
}
if(storageVo.getType_lt() != null) {
criteria.andTypeLessThan(storageVo.getType_lt());
}
if(storageVo.getType_gte() != null) {
criteria.andTypeGreaterThanOrEqualTo(storageVo.getType_gte());
}
if(storageVo.getType_lte() != null) {
criteria.andTypeLessThanOrEqualTo(storageVo.getType_lte());
}
if(storageVo.getPath() != null) {
criteria.andPathEqualTo(storageVo.getPath());
}
if(storageVo.getPath_arr() != null) {
criteria.andPathIn(storageVo.getPath_arr());
}
if(storageVo.getPath_like() != null) {
criteria.andPathLike(storageVo.getPath_like());
}
return storageExample;
}
@Override
protected BaseService<Storage> getService() {
return storageService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.SubTask;
import com.viontech.label.platform.model.SubTaskExample;
import com.viontech.label.platform.service.adapter.SubTaskService;
import com.viontech.label.platform.vo.SubTaskVo;
import javax.annotation.Resource;
public abstract class SubTaskBaseController extends BaseController<SubTask, SubTaskVo> {
@Resource
protected SubTaskService subTaskService;
@Override
protected BaseExample getExample(SubTaskVo subTaskVo, int type) {
SubTaskExample subTaskExample = new SubTaskExample();
SubTaskExample.Criteria criteria = subTaskExample.createCriteria();
if(subTaskVo.getId() != null) {
criteria.andIdEqualTo(subTaskVo.getId());
}
if(subTaskVo.getId_arr() != null) {
criteria.andIdIn(subTaskVo.getId_arr());
}
if(subTaskVo.getId_gt() != null) {
criteria.andIdGreaterThan(subTaskVo.getId_gt());
}
if(subTaskVo.getId_lt() != null) {
criteria.andIdLessThan(subTaskVo.getId_lt());
}
if(subTaskVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(subTaskVo.getId_gte());
}
if(subTaskVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(subTaskVo.getId_lte());
}
if(subTaskVo.getUnid() != null) {
criteria.andUnidEqualTo(subTaskVo.getUnid());
}
if(subTaskVo.getUnid_arr() != null) {
criteria.andUnidIn(subTaskVo.getUnid_arr());
}
if(subTaskVo.getUnid_like() != null) {
criteria.andUnidLike(subTaskVo.getUnid_like());
}
if(subTaskVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(subTaskVo.getCreateTime());
}
if(subTaskVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(subTaskVo.getCreateTime_arr());
}
if(subTaskVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(subTaskVo.getCreateTime_gt());
}
if(subTaskVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(subTaskVo.getCreateTime_lt());
}
if(subTaskVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(subTaskVo.getCreateTime_gte());
}
if(subTaskVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(subTaskVo.getCreateTime_lte());
}
if(subTaskVo.getCreateUser() != null) {
criteria.andCreateUserEqualTo(subTaskVo.getCreateUser());
}
if(subTaskVo.getCreateUser_null() != null) {
if(subTaskVo.getCreateUser_null().booleanValue()) {
criteria.andCreateUserIsNull();
} else {
criteria.andCreateUserIsNotNull();
}
}
if(subTaskVo.getCreateUser_arr() != null) {
criteria.andCreateUserIn(subTaskVo.getCreateUser_arr());
}
if(subTaskVo.getCreateUser_gt() != null) {
criteria.andCreateUserGreaterThan(subTaskVo.getCreateUser_gt());
}
if(subTaskVo.getCreateUser_lt() != null) {
criteria.andCreateUserLessThan(subTaskVo.getCreateUser_lt());
}
if(subTaskVo.getCreateUser_gte() != null) {
criteria.andCreateUserGreaterThanOrEqualTo(subTaskVo.getCreateUser_gte());
}
if(subTaskVo.getCreateUser_lte() != null) {
criteria.andCreateUserLessThanOrEqualTo(subTaskVo.getCreateUser_lte());
}
if(subTaskVo.getPicId() != null) {
criteria.andPicIdEqualTo(subTaskVo.getPicId());
}
if(subTaskVo.getPicId_arr() != null) {
criteria.andPicIdIn(subTaskVo.getPicId_arr());
}
if(subTaskVo.getPicId_gt() != null) {
criteria.andPicIdGreaterThan(subTaskVo.getPicId_gt());
}
if(subTaskVo.getPicId_lt() != null) {
criteria.andPicIdLessThan(subTaskVo.getPicId_lt());
}
if(subTaskVo.getPicId_gte() != null) {
criteria.andPicIdGreaterThanOrEqualTo(subTaskVo.getPicId_gte());
}
if(subTaskVo.getPicId_lte() != null) {
criteria.andPicIdLessThanOrEqualTo(subTaskVo.getPicId_lte());
}
if(subTaskVo.getTaskId() != null) {
criteria.andTaskIdEqualTo(subTaskVo.getTaskId());
}
if(subTaskVo.getTaskId_arr() != null) {
criteria.andTaskIdIn(subTaskVo.getTaskId_arr());
}
if(subTaskVo.getTaskId_gt() != null) {
criteria.andTaskIdGreaterThan(subTaskVo.getTaskId_gt());
}
if(subTaskVo.getTaskId_lt() != null) {
criteria.andTaskIdLessThan(subTaskVo.getTaskId_lt());
}
if(subTaskVo.getTaskId_gte() != null) {
criteria.andTaskIdGreaterThanOrEqualTo(subTaskVo.getTaskId_gte());
}
if(subTaskVo.getTaskId_lte() != null) {
criteria.andTaskIdLessThanOrEqualTo(subTaskVo.getTaskId_lte());
}
if(subTaskVo.getInInspectorId() != null) {
criteria.andInInspectorIdEqualTo(subTaskVo.getInInspectorId());
}
if(subTaskVo.getInInspectorId_null() != null) {
if(subTaskVo.getInInspectorId_null().booleanValue()) {
criteria.andInInspectorIdIsNull();
} else {
criteria.andInInspectorIdIsNotNull();
}
}
if(subTaskVo.getInInspectorId_arr() != null) {
criteria.andInInspectorIdIn(subTaskVo.getInInspectorId_arr());
}
if(subTaskVo.getInInspectorId_gt() != null) {
criteria.andInInspectorIdGreaterThan(subTaskVo.getInInspectorId_gt());
}
if(subTaskVo.getInInspectorId_lt() != null) {
criteria.andInInspectorIdLessThan(subTaskVo.getInInspectorId_lt());
}
if(subTaskVo.getInInspectorId_gte() != null) {
criteria.andInInspectorIdGreaterThanOrEqualTo(subTaskVo.getInInspectorId_gte());
}
if(subTaskVo.getInInspectorId_lte() != null) {
criteria.andInInspectorIdLessThanOrEqualTo(subTaskVo.getInInspectorId_lte());
}
if(subTaskVo.getOutInspectorId() != null) {
criteria.andOutInspectorIdEqualTo(subTaskVo.getOutInspectorId());
}
if(subTaskVo.getOutInspectorId_null() != null) {
if(subTaskVo.getOutInspectorId_null().booleanValue()) {
criteria.andOutInspectorIdIsNull();
} else {
criteria.andOutInspectorIdIsNotNull();
}
}
if(subTaskVo.getOutInspectorId_arr() != null) {
criteria.andOutInspectorIdIn(subTaskVo.getOutInspectorId_arr());
}
if(subTaskVo.getOutInspectorId_gt() != null) {
criteria.andOutInspectorIdGreaterThan(subTaskVo.getOutInspectorId_gt());
}
if(subTaskVo.getOutInspectorId_lt() != null) {
criteria.andOutInspectorIdLessThan(subTaskVo.getOutInspectorId_lt());
}
if(subTaskVo.getOutInspectorId_gte() != null) {
criteria.andOutInspectorIdGreaterThanOrEqualTo(subTaskVo.getOutInspectorId_gte());
}
if(subTaskVo.getOutInspectorId_lte() != null) {
criteria.andOutInspectorIdLessThanOrEqualTo(subTaskVo.getOutInspectorId_lte());
}
if(subTaskVo.getAnnotatorId() != null) {
criteria.andAnnotatorIdEqualTo(subTaskVo.getAnnotatorId());
}
if(subTaskVo.getAnnotatorId_null() != null) {
if(subTaskVo.getAnnotatorId_null().booleanValue()) {
criteria.andAnnotatorIdIsNull();
} else {
criteria.andAnnotatorIdIsNotNull();
}
}
if(subTaskVo.getAnnotatorId_arr() != null) {
criteria.andAnnotatorIdIn(subTaskVo.getAnnotatorId_arr());
}
if(subTaskVo.getAnnotatorId_gt() != null) {
criteria.andAnnotatorIdGreaterThan(subTaskVo.getAnnotatorId_gt());
}
if(subTaskVo.getAnnotatorId_lt() != null) {
criteria.andAnnotatorIdLessThan(subTaskVo.getAnnotatorId_lt());
}
if(subTaskVo.getAnnotatorId_gte() != null) {
criteria.andAnnotatorIdGreaterThanOrEqualTo(subTaskVo.getAnnotatorId_gte());
}
if(subTaskVo.getAnnotatorId_lte() != null) {
criteria.andAnnotatorIdLessThanOrEqualTo(subTaskVo.getAnnotatorId_lte());
}
if(subTaskVo.getLabelResult() != null) {
criteria.andLabelResultEqualTo(subTaskVo.getLabelResult());
}
if(subTaskVo.getLabelResult_null() != null) {
if(subTaskVo.getLabelResult_null().booleanValue()) {
criteria.andLabelResultIsNull();
} else {
criteria.andLabelResultIsNotNull();
}
}
if(subTaskVo.getLabelResult_arr() != null) {
criteria.andLabelResultIn(subTaskVo.getLabelResult_arr());
}
if(subTaskVo.getLabelResult_like() != null) {
criteria.andLabelResultLike(subTaskVo.getLabelResult_like());
}
if(subTaskVo.getInStatus() != null) {
criteria.andInStatusEqualTo(subTaskVo.getInStatus());
}
if(subTaskVo.getInStatus_arr() != null) {
criteria.andInStatusIn(subTaskVo.getInStatus_arr());
}
if(subTaskVo.getInStatus_gt() != null) {
criteria.andInStatusGreaterThan(subTaskVo.getInStatus_gt());
}
if(subTaskVo.getInStatus_lt() != null) {
criteria.andInStatusLessThan(subTaskVo.getInStatus_lt());
}
if(subTaskVo.getInStatus_gte() != null) {
criteria.andInStatusGreaterThanOrEqualTo(subTaskVo.getInStatus_gte());
}
if(subTaskVo.getInStatus_lte() != null) {
criteria.andInStatusLessThanOrEqualTo(subTaskVo.getInStatus_lte());
}
if(subTaskVo.getOutStatus() != null) {
criteria.andOutStatusEqualTo(subTaskVo.getOutStatus());
}
if(subTaskVo.getOutStatus_arr() != null) {
criteria.andOutStatusIn(subTaskVo.getOutStatus_arr());
}
if(subTaskVo.getOutStatus_gt() != null) {
criteria.andOutStatusGreaterThan(subTaskVo.getOutStatus_gt());
}
if(subTaskVo.getOutStatus_lt() != null) {
criteria.andOutStatusLessThan(subTaskVo.getOutStatus_lt());
}
if(subTaskVo.getOutStatus_gte() != null) {
criteria.andOutStatusGreaterThanOrEqualTo(subTaskVo.getOutStatus_gte());
}
if(subTaskVo.getOutStatus_lte() != null) {
criteria.andOutStatusLessThanOrEqualTo(subTaskVo.getOutStatus_lte());
}
if(subTaskVo.getStatus() != null) {
criteria.andStatusEqualTo(subTaskVo.getStatus());
}
if(subTaskVo.getStatus_arr() != null) {
criteria.andStatusIn(subTaskVo.getStatus_arr());
}
if(subTaskVo.getStatus_gt() != null) {
criteria.andStatusGreaterThan(subTaskVo.getStatus_gt());
}
if(subTaskVo.getStatus_lt() != null) {
criteria.andStatusLessThan(subTaskVo.getStatus_lt());
}
if(subTaskVo.getStatus_gte() != null) {
criteria.andStatusGreaterThanOrEqualTo(subTaskVo.getStatus_gte());
}
if(subTaskVo.getStatus_lte() != null) {
criteria.andStatusLessThanOrEqualTo(subTaskVo.getStatus_lte());
}
return subTaskExample;
}
@Override
protected BaseService<SubTask> getService() {
return subTaskService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Task;
import com.viontech.label.platform.model.TaskExample;
import com.viontech.label.platform.service.adapter.TaskService;
import com.viontech.label.platform.vo.TaskVo;
import javax.annotation.Resource;
public abstract class TaskBaseController extends BaseController<Task, TaskVo> {
@Resource
protected TaskService taskService;
@Override
protected BaseExample getExample(TaskVo taskVo, int type) {
TaskExample taskExample = new TaskExample();
TaskExample.Criteria criteria = taskExample.createCriteria();
if(taskVo.getId() != null) {
criteria.andIdEqualTo(taskVo.getId());
}
if(taskVo.getId_arr() != null) {
criteria.andIdIn(taskVo.getId_arr());
}
if(taskVo.getId_gt() != null) {
criteria.andIdGreaterThan(taskVo.getId_gt());
}
if(taskVo.getId_lt() != null) {
criteria.andIdLessThan(taskVo.getId_lt());
}
if(taskVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(taskVo.getId_gte());
}
if(taskVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(taskVo.getId_lte());
}
if(taskVo.getUnid() != null) {
criteria.andUnidEqualTo(taskVo.getUnid());
}
if(taskVo.getUnid_arr() != null) {
criteria.andUnidIn(taskVo.getUnid_arr());
}
if(taskVo.getUnid_like() != null) {
criteria.andUnidLike(taskVo.getUnid_like());
}
if(taskVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(taskVo.getCreateTime());
}
if(taskVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(taskVo.getCreateTime_arr());
}
if(taskVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(taskVo.getCreateTime_gt());
}
if(taskVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(taskVo.getCreateTime_lt());
}
if(taskVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(taskVo.getCreateTime_gte());
}
if(taskVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(taskVo.getCreateTime_lte());
}
if(taskVo.getCreateUser() != null) {
criteria.andCreateUserEqualTo(taskVo.getCreateUser());
}
if(taskVo.getCreateUser_null() != null) {
if(taskVo.getCreateUser_null().booleanValue()) {
criteria.andCreateUserIsNull();
} else {
criteria.andCreateUserIsNotNull();
}
}
if(taskVo.getCreateUser_arr() != null) {
criteria.andCreateUserIn(taskVo.getCreateUser_arr());
}
if(taskVo.getCreateUser_gt() != null) {
criteria.andCreateUserGreaterThan(taskVo.getCreateUser_gt());
}
if(taskVo.getCreateUser_lt() != null) {
criteria.andCreateUserLessThan(taskVo.getCreateUser_lt());
}
if(taskVo.getCreateUser_gte() != null) {
criteria.andCreateUserGreaterThanOrEqualTo(taskVo.getCreateUser_gte());
}
if(taskVo.getCreateUser_lte() != null) {
criteria.andCreateUserLessThanOrEqualTo(taskVo.getCreateUser_lte());
}
if(taskVo.getName() != null) {
criteria.andNameEqualTo(taskVo.getName());
}
if(taskVo.getName_arr() != null) {
criteria.andNameIn(taskVo.getName_arr());
}
if(taskVo.getName_like() != null) {
criteria.andNameLike(taskVo.getName_like());
}
if(taskVo.getType() != null) {
criteria.andTypeEqualTo(taskVo.getType());
}
if(taskVo.getType_arr() != null) {
criteria.andTypeIn(taskVo.getType_arr());
}
if(taskVo.getType_gt() != null) {
criteria.andTypeGreaterThan(taskVo.getType_gt());
}
if(taskVo.getType_lt() != null) {
criteria.andTypeLessThan(taskVo.getType_lt());
}
if(taskVo.getType_gte() != null) {
criteria.andTypeGreaterThanOrEqualTo(taskVo.getType_gte());
}
if(taskVo.getType_lte() != null) {
criteria.andTypeLessThanOrEqualTo(taskVo.getType_lte());
}
if(taskVo.getLabelType() != null) {
criteria.andLabelTypeEqualTo(taskVo.getLabelType());
}
if(taskVo.getLabelType_arr() != null) {
criteria.andLabelTypeIn(taskVo.getLabelType_arr());
}
if(taskVo.getLabelType_gt() != null) {
criteria.andLabelTypeGreaterThan(taskVo.getLabelType_gt());
}
if(taskVo.getLabelType_lt() != null) {
criteria.andLabelTypeLessThan(taskVo.getLabelType_lt());
}
if(taskVo.getLabelType_gte() != null) {
criteria.andLabelTypeGreaterThanOrEqualTo(taskVo.getLabelType_gte());
}
if(taskVo.getLabelType_lte() != null) {
criteria.andLabelTypeLessThanOrEqualTo(taskVo.getLabelType_lte());
}
if(taskVo.getAccountId() != null) {
criteria.andAccountIdEqualTo(taskVo.getAccountId());
}
if(taskVo.getAccountId_arr() != null) {
criteria.andAccountIdIn(taskVo.getAccountId_arr());
}
if(taskVo.getAccountId_gt() != null) {
criteria.andAccountIdGreaterThan(taskVo.getAccountId_gt());
}
if(taskVo.getAccountId_lt() != null) {
criteria.andAccountIdLessThan(taskVo.getAccountId_lt());
}
if(taskVo.getAccountId_gte() != null) {
criteria.andAccountIdGreaterThanOrEqualTo(taskVo.getAccountId_gte());
}
if(taskVo.getAccountId_lte() != null) {
criteria.andAccountIdLessThanOrEqualTo(taskVo.getAccountId_lte());
}
if(taskVo.getContractorManagerId() != null) {
criteria.andContractorManagerIdEqualTo(taskVo.getContractorManagerId());
}
if(taskVo.getContractorManagerId_null() != null) {
if(taskVo.getContractorManagerId_null().booleanValue()) {
criteria.andContractorManagerIdIsNull();
} else {
criteria.andContractorManagerIdIsNotNull();
}
}
if(taskVo.getContractorManagerId_arr() != null) {
criteria.andContractorManagerIdIn(taskVo.getContractorManagerId_arr());
}
if(taskVo.getContractorManagerId_gt() != null) {
criteria.andContractorManagerIdGreaterThan(taskVo.getContractorManagerId_gt());
}
if(taskVo.getContractorManagerId_lt() != null) {
criteria.andContractorManagerIdLessThan(taskVo.getContractorManagerId_lt());
}
if(taskVo.getContractorManagerId_gte() != null) {
criteria.andContractorManagerIdGreaterThanOrEqualTo(taskVo.getContractorManagerId_gte());
}
if(taskVo.getContractorManagerId_lte() != null) {
criteria.andContractorManagerIdLessThanOrEqualTo(taskVo.getContractorManagerId_lte());
}
if(taskVo.getManagerId() != null) {
criteria.andManagerIdEqualTo(taskVo.getManagerId());
}
if(taskVo.getManagerId_null() != null) {
if(taskVo.getManagerId_null().booleanValue()) {
criteria.andManagerIdIsNull();
} else {
criteria.andManagerIdIsNotNull();
}
}
if(taskVo.getManagerId_arr() != null) {
criteria.andManagerIdIn(taskVo.getManagerId_arr());
}
if(taskVo.getManagerId_gt() != null) {
criteria.andManagerIdGreaterThan(taskVo.getManagerId_gt());
}
if(taskVo.getManagerId_lt() != null) {
criteria.andManagerIdLessThan(taskVo.getManagerId_lt());
}
if(taskVo.getManagerId_gte() != null) {
criteria.andManagerIdGreaterThanOrEqualTo(taskVo.getManagerId_gte());
}
if(taskVo.getManagerId_lte() != null) {
criteria.andManagerIdLessThanOrEqualTo(taskVo.getManagerId_lte());
}
if(taskVo.getInInspectorId() != null) {
criteria.andInInspectorIdEqualTo(taskVo.getInInspectorId());
}
if(taskVo.getInInspectorId_arr() != null) {
criteria.andInInspectorIdIn(taskVo.getInInspectorId_arr());
}
if(taskVo.getInInspectorId_gt() != null) {
criteria.andInInspectorIdGreaterThan(taskVo.getInInspectorId_gt());
}
if(taskVo.getInInspectorId_lt() != null) {
criteria.andInInspectorIdLessThan(taskVo.getInInspectorId_lt());
}
if(taskVo.getInInspectorId_gte() != null) {
criteria.andInInspectorIdGreaterThanOrEqualTo(taskVo.getInInspectorId_gte());
}
if(taskVo.getInInspectorId_lte() != null) {
criteria.andInInspectorIdLessThanOrEqualTo(taskVo.getInInspectorId_lte());
}
if(taskVo.getDescription() != null) {
criteria.andDescriptionEqualTo(taskVo.getDescription());
}
if(taskVo.getDescription_null() != null) {
if(taskVo.getDescription_null().booleanValue()) {
criteria.andDescriptionIsNull();
} else {
criteria.andDescriptionIsNotNull();
}
}
if(taskVo.getDescription_arr() != null) {
criteria.andDescriptionIn(taskVo.getDescription_arr());
}
if(taskVo.getDescription_like() != null) {
criteria.andDescriptionLike(taskVo.getDescription_like());
}
if(taskVo.getStatus() != null) {
criteria.andStatusEqualTo(taskVo.getStatus());
}
if(taskVo.getStatus_arr() != null) {
criteria.andStatusIn(taskVo.getStatus_arr());
}
if(taskVo.getStatus_gt() != null) {
criteria.andStatusGreaterThan(taskVo.getStatus_gt());
}
if(taskVo.getStatus_lt() != null) {
criteria.andStatusLessThan(taskVo.getStatus_lt());
}
if(taskVo.getStatus_gte() != null) {
criteria.andStatusGreaterThanOrEqualTo(taskVo.getStatus_gte());
}
if(taskVo.getStatus_lte() != null) {
criteria.andStatusLessThanOrEqualTo(taskVo.getStatus_lte());
}
return taskExample;
}
@Override
protected BaseService<Task> getService() {
return taskService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.TaskPack;
import com.viontech.label.platform.model.TaskPackExample;
import com.viontech.label.platform.service.adapter.TaskPackService;
import com.viontech.label.platform.vo.TaskPackVo;
import javax.annotation.Resource;
public abstract class TaskPackBaseController extends BaseController<TaskPack, TaskPackVo> {
@Resource
protected TaskPackService taskPackService;
@Override
protected BaseExample getExample(TaskPackVo taskPackVo, int type) {
TaskPackExample taskPackExample = new TaskPackExample();
TaskPackExample.Criteria criteria = taskPackExample.createCriteria();
if(taskPackVo.getId() != null) {
criteria.andIdEqualTo(taskPackVo.getId());
}
if(taskPackVo.getId_arr() != null) {
criteria.andIdIn(taskPackVo.getId_arr());
}
if(taskPackVo.getId_gt() != null) {
criteria.andIdGreaterThan(taskPackVo.getId_gt());
}
if(taskPackVo.getId_lt() != null) {
criteria.andIdLessThan(taskPackVo.getId_lt());
}
if(taskPackVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(taskPackVo.getId_gte());
}
if(taskPackVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(taskPackVo.getId_lte());
}
if(taskPackVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(taskPackVo.getCreateTime());
}
if(taskPackVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(taskPackVo.getCreateTime_arr());
}
if(taskPackVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(taskPackVo.getCreateTime_gt());
}
if(taskPackVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(taskPackVo.getCreateTime_lt());
}
if(taskPackVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(taskPackVo.getCreateTime_gte());
}
if(taskPackVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(taskPackVo.getCreateTime_lte());
}
if(taskPackVo.getTaskId() != null) {
criteria.andTaskIdEqualTo(taskPackVo.getTaskId());
}
if(taskPackVo.getTaskId_arr() != null) {
criteria.andTaskIdIn(taskPackVo.getTaskId_arr());
}
if(taskPackVo.getTaskId_gt() != null) {
criteria.andTaskIdGreaterThan(taskPackVo.getTaskId_gt());
}
if(taskPackVo.getTaskId_lt() != null) {
criteria.andTaskIdLessThan(taskPackVo.getTaskId_lt());
}
if(taskPackVo.getTaskId_gte() != null) {
criteria.andTaskIdGreaterThanOrEqualTo(taskPackVo.getTaskId_gte());
}
if(taskPackVo.getTaskId_lte() != null) {
criteria.andTaskIdLessThanOrEqualTo(taskPackVo.getTaskId_lte());
}
if(taskPackVo.getPackId() != null) {
criteria.andPackIdEqualTo(taskPackVo.getPackId());
}
if(taskPackVo.getPackId_arr() != null) {
criteria.andPackIdIn(taskPackVo.getPackId_arr());
}
if(taskPackVo.getPackId_gt() != null) {
criteria.andPackIdGreaterThan(taskPackVo.getPackId_gt());
}
if(taskPackVo.getPackId_lt() != null) {
criteria.andPackIdLessThan(taskPackVo.getPackId_lt());
}
if(taskPackVo.getPackId_gte() != null) {
criteria.andPackIdGreaterThanOrEqualTo(taskPackVo.getPackId_gte());
}
if(taskPackVo.getPackId_lte() != null) {
criteria.andPackIdLessThanOrEqualTo(taskPackVo.getPackId_lte());
}
return taskPackExample;
}
@Override
protected BaseService<TaskPack> getService() {
return taskPackService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.base;
import com.viontech.label.platform.base.BaseController;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.User;
import com.viontech.label.platform.model.UserExample;
import com.viontech.label.platform.service.adapter.UserService;
import com.viontech.label.platform.vo.UserVo;
import javax.annotation.Resource;
public abstract class UserBaseController extends BaseController<User, UserVo> {
@Resource
protected UserService userService;
@Override
protected BaseExample getExample(UserVo userVo, int type) {
UserExample userExample = new UserExample();
UserExample.Criteria criteria = userExample.createCriteria();
if(userVo.getId() != null) {
criteria.andIdEqualTo(userVo.getId());
}
if(userVo.getId_arr() != null) {
criteria.andIdIn(userVo.getId_arr());
}
if(userVo.getId_gt() != null) {
criteria.andIdGreaterThan(userVo.getId_gt());
}
if(userVo.getId_lt() != null) {
criteria.andIdLessThan(userVo.getId_lt());
}
if(userVo.getId_gte() != null) {
criteria.andIdGreaterThanOrEqualTo(userVo.getId_gte());
}
if(userVo.getId_lte() != null) {
criteria.andIdLessThanOrEqualTo(userVo.getId_lte());
}
if(userVo.getUnid() != null) {
criteria.andUnidEqualTo(userVo.getUnid());
}
if(userVo.getUnid_arr() != null) {
criteria.andUnidIn(userVo.getUnid_arr());
}
if(userVo.getUnid_like() != null) {
criteria.andUnidLike(userVo.getUnid_like());
}
if(userVo.getCreateTime() != null) {
criteria.andCreateTimeEqualTo(userVo.getCreateTime());
}
if(userVo.getCreateTime_arr() != null) {
criteria.andCreateTimeIn(userVo.getCreateTime_arr());
}
if(userVo.getCreateTime_gt() != null) {
criteria.andCreateTimeGreaterThan(userVo.getCreateTime_gt());
}
if(userVo.getCreateTime_lt() != null) {
criteria.andCreateTimeLessThan(userVo.getCreateTime_lt());
}
if(userVo.getCreateTime_gte() != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(userVo.getCreateTime_gte());
}
if(userVo.getCreateTime_lte() != null) {
criteria.andCreateTimeLessThanOrEqualTo(userVo.getCreateTime_lte());
}
if(userVo.getCreateUser() != null) {
criteria.andCreateUserEqualTo(userVo.getCreateUser());
}
if(userVo.getCreateUser_null() != null) {
if(userVo.getCreateUser_null().booleanValue()) {
criteria.andCreateUserIsNull();
} else {
criteria.andCreateUserIsNotNull();
}
}
if(userVo.getCreateUser_arr() != null) {
criteria.andCreateUserIn(userVo.getCreateUser_arr());
}
if(userVo.getCreateUser_gt() != null) {
criteria.andCreateUserGreaterThan(userVo.getCreateUser_gt());
}
if(userVo.getCreateUser_lt() != null) {
criteria.andCreateUserLessThan(userVo.getCreateUser_lt());
}
if(userVo.getCreateUser_gte() != null) {
criteria.andCreateUserGreaterThanOrEqualTo(userVo.getCreateUser_gte());
}
if(userVo.getCreateUser_lte() != null) {
criteria.andCreateUserLessThanOrEqualTo(userVo.getCreateUser_lte());
}
if(userVo.getUsername() != null) {
criteria.andUsernameEqualTo(userVo.getUsername());
}
if(userVo.getUsername_arr() != null) {
criteria.andUsernameIn(userVo.getUsername_arr());
}
if(userVo.getUsername_like() != null) {
criteria.andUsernameLike(userVo.getUsername_like());
}
if(userVo.getPassword() != null) {
criteria.andPasswordEqualTo(userVo.getPassword());
}
if(userVo.getPassword_arr() != null) {
criteria.andPasswordIn(userVo.getPassword_arr());
}
if(userVo.getPassword_like() != null) {
criteria.andPasswordLike(userVo.getPassword_like());
}
if(userVo.getType() != null) {
criteria.andTypeEqualTo(userVo.getType());
}
if(userVo.getType_arr() != null) {
criteria.andTypeIn(userVo.getType_arr());
}
if(userVo.getType_gt() != null) {
criteria.andTypeGreaterThan(userVo.getType_gt());
}
if(userVo.getType_lt() != null) {
criteria.andTypeLessThan(userVo.getType_lt());
}
if(userVo.getType_gte() != null) {
criteria.andTypeGreaterThanOrEqualTo(userVo.getType_gte());
}
if(userVo.getType_lte() != null) {
criteria.andTypeLessThanOrEqualTo(userVo.getType_lte());
}
if(userVo.getName() != null) {
criteria.andNameEqualTo(userVo.getName());
}
if(userVo.getName_null() != null) {
if(userVo.getName_null().booleanValue()) {
criteria.andNameIsNull();
} else {
criteria.andNameIsNotNull();
}
}
if(userVo.getName_arr() != null) {
criteria.andNameIn(userVo.getName_arr());
}
if(userVo.getName_like() != null) {
criteria.andNameLike(userVo.getName_like());
}
if(userVo.getMail() != null) {
criteria.andMailEqualTo(userVo.getMail());
}
if(userVo.getMail_null() != null) {
if(userVo.getMail_null().booleanValue()) {
criteria.andMailIsNull();
} else {
criteria.andMailIsNotNull();
}
}
if(userVo.getMail_arr() != null) {
criteria.andMailIn(userVo.getMail_arr());
}
if(userVo.getMail_like() != null) {
criteria.andMailLike(userVo.getMail_like());
}
if(userVo.getTel() != null) {
criteria.andTelEqualTo(userVo.getTel());
}
if(userVo.getTel_null() != null) {
if(userVo.getTel_null().booleanValue()) {
criteria.andTelIsNull();
} else {
criteria.andTelIsNotNull();
}
}
if(userVo.getTel_arr() != null) {
criteria.andTelIn(userVo.getTel_arr());
}
if(userVo.getTel_like() != null) {
criteria.andTelLike(userVo.getTel_like());
}
if(userVo.getAccountId() != null) {
criteria.andAccountIdEqualTo(userVo.getAccountId());
}
if(userVo.getAccountId_null() != null) {
if(userVo.getAccountId_null().booleanValue()) {
criteria.andAccountIdIsNull();
} else {
criteria.andAccountIdIsNotNull();
}
}
if(userVo.getAccountId_arr() != null) {
criteria.andAccountIdIn(userVo.getAccountId_arr());
}
if(userVo.getAccountId_gt() != null) {
criteria.andAccountIdGreaterThan(userVo.getAccountId_gt());
}
if(userVo.getAccountId_lt() != null) {
criteria.andAccountIdLessThan(userVo.getAccountId_lt());
}
if(userVo.getAccountId_gte() != null) {
criteria.andAccountIdGreaterThanOrEqualTo(userVo.getAccountId_gte());
}
if(userVo.getAccountId_lte() != null) {
criteria.andAccountIdLessThanOrEqualTo(userVo.getAccountId_lte());
}
if(userVo.getLastLoginTime() != null) {
criteria.andLastLoginTimeEqualTo(userVo.getLastLoginTime());
}
if(userVo.getLastLoginTime_null() != null) {
if(userVo.getLastLoginTime_null().booleanValue()) {
criteria.andLastLoginTimeIsNull();
} else {
criteria.andLastLoginTimeIsNotNull();
}
}
if(userVo.getLastLoginTime_arr() != null) {
criteria.andLastLoginTimeIn(userVo.getLastLoginTime_arr());
}
if(userVo.getLastLoginTime_gt() != null) {
criteria.andLastLoginTimeGreaterThan(userVo.getLastLoginTime_gt());
}
if(userVo.getLastLoginTime_lt() != null) {
criteria.andLastLoginTimeLessThan(userVo.getLastLoginTime_lt());
}
if(userVo.getLastLoginTime_gte() != null) {
criteria.andLastLoginTimeGreaterThanOrEqualTo(userVo.getLastLoginTime_gte());
}
if(userVo.getLastLoginTime_lte() != null) {
criteria.andLastLoginTimeLessThanOrEqualTo(userVo.getLastLoginTime_lte());
}
return userExample;
}
@Override
protected BaseService<User> getService() {
return userService;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.AccountBaseController;
import com.viontech.label.platform.model.AccountExample;
import com.viontech.label.platform.vo.AccountVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/accounts")
public class AccountController extends AccountBaseController {
@Override
protected BaseExample getExample(AccountVo accountVo, int type) {
AccountExample accountExample = (AccountExample)super.getExample(accountVo,type);
return accountExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.DictBaseController;
import com.viontech.label.platform.model.DictExample;
import com.viontech.label.platform.vo.DictVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/dicts")
public class DictController extends DictBaseController {
@Override
protected BaseExample getExample(DictVo dictVo, int type) {
DictExample dictExample = (DictExample)super.getExample(dictVo,type);
return dictExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.LogBaseController;
import com.viontech.label.platform.model.LogExample;
import com.viontech.label.platform.vo.LogVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/logs")
public class LogController extends LogBaseController {
@Override
protected BaseExample getExample(LogVo logVo, int type) {
LogExample logExample = (LogExample)super.getExample(logVo,type);
return logExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.PackBaseController;
import com.viontech.label.platform.model.PackExample;
import com.viontech.label.platform.vo.PackVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/packs")
public class PackController extends PackBaseController {
@Override
protected BaseExample getExample(PackVo packVo, int type) {
PackExample packExample = (PackExample)super.getExample(packVo,type);
packExample.createColumns();
packExample.createStorageColumns();
return packExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.PackTagBaseController;
import com.viontech.label.platform.model.PackTagExample;
import com.viontech.label.platform.vo.PackTagVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/packTags")
public class PackTagController extends PackTagBaseController {
@Override
protected BaseExample getExample(PackTagVo packTagVo, int type) {
PackTagExample packTagExample = (PackTagExample)super.getExample(packTagVo,type);
return packTagExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.keliu.util.JsonMessageUtil;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.PicBaseController;
import com.viontech.label.platform.model.PicExample;
import com.viontech.label.platform.utils.StorageUtils;
import com.viontech.label.platform.vo.PicVo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.IOUtils;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayInputStream;
import java.io.IOException;
@Controller
@RequestMapping("/pics")
@Slf4j
public class PicController extends PicBaseController {
@Resource
private StorageUtils storageUtils;
@Override
protected BaseExample getExample(PicVo picVo, int type) {
PicExample picExample = (PicExample) super.getExample(picVo, type);
picExample.createColumns();
picExample.createPackColumns();
picExample.createStorageColumns();
return picExample;
}
@Override
@RequestMapping(value = "", method = RequestMethod.POST)
@ResponseBody
public Object add(PicVo picVo) {
MultipartFile file = picVo.getFile();
String originalFilename = file.getOriginalFilename();
picVo.setName(originalFilename);
try {
byte[] bytes = file.getBytes();
storageUtils.setPic(picVo, bytes);
} catch (Exception e) {
log.info("", e);
return JsonMessageUtil.getErrorJsonMsg(e.getMessage());
}
return super.add(picVo);
}
@GetMapping("/image/{picId}")
@ResponseBody
public void getImage(@PathVariable("picId") Long picId, HttpServletResponse response) throws Exception {
PicVo pic = storageUtils.getPic(picId);
if (pic == null) {
return;
}
String contentType;
String suffix = pic.getName().substring(pic.getName().lastIndexOf(".") + 1).toLowerCase();
switch (suffix) {
case "jpg":
case "jpeg":
default:
contentType = MediaType.IMAGE_JPEG_VALUE;
break;
case "png":
contentType = MediaType.IMAGE_PNG_VALUE;
break;
case "gif":
contentType = MediaType.IMAGE_GIF_VALUE;
break;
}
response.setContentType(contentType);
IOUtils.copy(new ByteArrayInputStream(pic.getImage()), response.getOutputStream());
}
@Override
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseBody
public Object del(@PathVariable(value = "id") Long id) {
try {
storageUtils.deletePic(id);
} catch (Exception e) {
return JsonMessageUtil.getErrorJsonMsg(e.getMessage());
}
return super.del(id);
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.github.pagehelper.PageInfo;
import com.viontech.keliu.util.JsonMessageUtil;
import com.viontech.label.platform.mapper.PicMapper;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.service.adapter.PicService;
import com.viontech.label.platform.service.main.ReidService;
import com.viontech.label.platform.vo.ReidUploadData;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.*;
/**
* .
*
* @author 谢明辉
* @date 2021/6/18
*/
@RestController
@RequestMapping("/reid")
public class ReidController {
@Resource
private PicService picService;
@Resource
private ReidService reidService;
@PostMapping("/upload")
public Object upload(ReidUploadData uploadData) throws Exception {
reidService.savePicAndFeature(uploadData);
return JsonMessageUtil.getSuccessJsonMsg("success");
}
/**
* 获取人员列表
*
* @param packId 图包Id
*/
@GetMapping("/getPeople")
public Object getPeople(@RequestParam Long packId, @RequestParam(required = false) Integer status
, @RequestParam(required = false) Long page, @RequestParam(required = false) Long size) {
PicMapper mapper = (PicMapper) picService.getMapper();
List<Pic> people = mapper.getPeople(packId, status, page == null ? null : (page - 1) * size, size);
LinkedHashMap<String, List<Pic>> temp = new LinkedHashMap<>();
for (Pic pic : people) {
List<Pic> list = temp.computeIfAbsent(pic.getPersonUnid(), x -> new LinkedList<>());
list.add(pic);
}
if (page != null) {
PageInfo<Object> pageInfo = new PageInfo<>(new ArrayList<>(temp.entrySet()), page.intValue());
pageInfo.setTotal(mapper.countPeople(packId, status));
return JsonMessageUtil.getSuccessJsonMsg(pageInfo);
} else {
return JsonMessageUtil.getSuccessJsonMsg(temp);
}
}
@GetMapping("/getOtherPeople")
public Object getNextPeoPle(@RequestParam String personUnid, @RequestParam Long packId, @RequestParam(required = false) Integer status, @RequestParam Integer type) {
PicMapper mapper = (PicMapper) picService.getMapper();
List<Pic> pics = mapper.getOtherPeople(packId, status, personUnid, type == 0 ? ">" : "<", type == 0 ? "" : "desc");
if (pics.size() == 0) {
return JsonMessageUtil.getSuccessJsonMsg("没有数据了");
}
String pun = pics.get(0).getPersonUnid();
HashMap<String, List<Pic>> result = new HashMap<>(1);
result.put(pun, pics);
return JsonMessageUtil.getSuccessJsonMsg(result);
}
/**
* 合并多张图片为同一个人
*
* @param picIdArr 待合并的图片id集合
* @param packId 图包id
*/
@GetMapping("/mergeAsNewPerson")
public Object mergeAsNewPerson(@RequestParam Long[] picIdArr, @RequestParam Long packId) {
try {
reidService.mergeAsNewPerson(picIdArr, packId);
return JsonMessageUtil.getSuccessJsonMsg("success");
} catch (Exception e) {
return JsonMessageUtil.getErrorJsonMsg(e.getMessage());
}
}
/**
* 将图片合并到某个人下
*
* @param picIdArr 待合并的图片id集合
* @param personUnid 目标人员的personUnid
* @param packId 图包id
*/
@GetMapping("/mergeTo")
public Object mergeTo(@RequestParam Long[] picIdArr, @RequestParam String personUnid, @RequestParam String currentPerson, @RequestParam Long packId) {
if (picIdArr.length <= 0 || personUnid == null) {
return JsonMessageUtil.getErrorJsonMsg("参数错误");
}
try {
reidService.mergeTo(picIdArr, personUnid, currentPerson, packId);
return JsonMessageUtil.getSuccessJsonMsg("success");
} catch (Exception e) {
return JsonMessageUtil.getErrorJsonMsg(e.getMessage());
}
}
/**
* 合并多个人为同一个人
*
* @param personUnidArr 多个人的personUnid集合
* @param packId 图包id
*/
@GetMapping("/mergePerson")
public Object mergePerson(@RequestParam String[] personUnidArr, @RequestParam String currentPerson, @RequestParam Long packId) {
if (personUnidArr.length <= 1) {
return JsonMessageUtil.getSuccessJsonMsg("所选项过少");
}
try {
reidService.mergePerson(personUnidArr, currentPerson, packId);
return JsonMessageUtil.getSuccessJsonMsg("success");
} catch (Exception e) {
return JsonMessageUtil.getErrorJsonMsg(e.getMessage());
}
}
/**
* 标记某个人已经被清理干净了
*
* @param personUnid 人的personUnid
* @param packId 图包id
*/
@GetMapping("/setPure")
public Object setPackPure(@RequestParam String personUnid, @RequestParam Long packId) {
reidService.setPackPure(personUnid, packId);
return JsonMessageUtil.getSuccessJsonMsg("success");
}
/**
* 根据图片查找相似的人
*
* @param picIdArr 图片Id数组
* @param packId 图包id
* @param size 获取相似的人的数量
*/
@GetMapping("/getSimilarPerson")
public Object getSimilarPerson(@RequestParam Long[] picIdArr, @RequestParam Long packId, @RequestParam Long size, @RequestParam Integer timeInterval) {
Map<String, List<Pic>> similarPerson = reidService.getSimilarPerson(picIdArr, packId, size,timeInterval);
return JsonMessageUtil.getSuccessJsonMsg("success", similarPerson);
}
/**
* 完全删除图片
*
* @param picIdArr 需要删除的图片的id集合
* @param packId 图包id
*/
@DeleteMapping("/deletePic")
public Object deletePic(@RequestParam Long[] picIdArr, @RequestParam Long packId) {
reidService.deletePic(picIdArr, packId);
return JsonMessageUtil.getSuccessJsonMsg("success");
}
/**
* 标记为标注中
*/
@GetMapping("/labeling")
public Object labeling(@RequestParam String personUnid, @RequestParam Long packId) {
boolean success = reidService.labeling(personUnid, packId);
if (success) {
return JsonMessageUtil.getSuccessJsonMsg("success");
} else {
return JsonMessageUtil.getErrorJsonMsg("正在被其他人标注");
}
}
/**
* 退出标注
*/
@GetMapping("exitLabeling")
public Object exitLabeling(@RequestParam String personUnid, @RequestParam Long packId) {
reidService.exitLabeling(personUnid, packId);
return JsonMessageUtil.getSuccessJsonMsg("success");
}
}
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.StorageBaseController;
import com.viontech.label.platform.model.StorageExample;
import com.viontech.label.platform.vo.StorageVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/storages")
public class StorageController extends StorageBaseController {
@Override
protected BaseExample getExample(StorageVo storageVo, int type) {
StorageExample storageExample = (StorageExample)super.getExample(storageVo,type);
return storageExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.SubTaskBaseController;
import com.viontech.label.platform.model.SubTaskExample;
import com.viontech.label.platform.vo.SubTaskVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/subTasks")
public class SubTaskController extends SubTaskBaseController {
@Override
protected BaseExample getExample(SubTaskVo subTaskVo, int type) {
SubTaskExample subTaskExample = (SubTaskExample) super.getExample(subTaskVo, type);
return subTaskExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import cn.dev33.satoken.stp.StpUtil;
import com.github.pagehelper.PageInfo;
import com.viontech.keliu.util.JsonMessageUtil;
import com.viontech.label.core.constant.Constants;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.TaskBaseController;
import com.viontech.label.platform.mapper.SubTaskMapper;
import com.viontech.label.platform.model.*;
import com.viontech.label.platform.service.adapter.*;
import com.viontech.label.platform.vo.TaskVo;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static com.viontech.keliu.util.JsonMessageUtil.getSuccessJsonMsg;
@Controller
@RequestMapping("/tasks")
public class TaskController extends TaskBaseController {
@Resource
private SubTaskService subTaskService;
@Resource
private UserService userService;
@Resource
private TaskPackService taskPackService;
@Resource
private PackService packService;
@Override
protected BaseExample getExample(TaskVo taskVo, int type) {
TaskExample taskExample = (TaskExample) super.getExample(taskVo, type);
taskExample.createAccountColumns();
taskExample.createColumns();
return taskExample;
}
@Override
@RequestMapping(value = "", method = RequestMethod.POST)
@ResponseBody
public Object add(@RequestBody TaskVo taskVo) {
long loginId = StpUtil.getLoginIdAsLong();
taskVo.setCreateUser(loginId);
List<Long> packIds = taskVo.getPackIds();
TaskService service = (TaskService) getService();
Task task = service.addTaskWithPack(taskVo, packIds);
return JsonMessageUtil.getSuccessJsonMsg(task);
}
@Override
@RequestMapping(value = "", method = RequestMethod.GET)
@ResponseBody
public Object page(TaskVo taskVo, @RequestParam(value = "page", defaultValue = "-1") int page, @RequestParam(value = "pageSize", defaultValue = "100") int pageSize, String sortName, String sortOrder) {
BaseExample baseExample = getExample(taskVo, EXAMPLE_TYPE_PAGE);
if (isNotNull(sortOrder) && isNotNull(sortName)) {
baseExample.setOrderByClause(baseExample.getTableAlias() + "." + sortName + " " + sortOrder);
} else if (isNotNull(sortName) && !isNotNull(sortOrder)) {
baseExample.setOrderByClause(sortName);
}
List<Task> result;
PageInfo<Task> pageInfo = null;
if (page <= 0) {
result = taskService.selectByExample(baseExample);
} else {
pageInfo = taskService.pagedQuery(baseExample, page, pageSize);
result = pageInfo.getList();
}
List<Long> taskIds = result.stream().map(Task::getId).collect(Collectors.toList());
TaskPackExample taskPackExample = new TaskPackExample();
taskPackExample.createPackColumns();
taskPackExample.createColumns();
taskPackExample.createCriteria().andTaskIdIn(taskIds);
List<TaskPack> taskPacks = taskPackService.selectByExample(taskPackExample);
Map<Long, List<Pack>> task_packs_map = taskPacks.stream().collect(Collectors.groupingBy(TaskPack::getTaskId, Collectors.mapping(TaskPack::getPack, Collectors.toList())));
for (Task task : result) {
List<Pack> packs = task_packs_map.get(task.getId());
task.setPacks(packs);
}
if (page <= 0) {
return getSuccessJsonMsg(MESSAGE_SELECT_SUCCESS, result);
} else {
return getSuccessJsonMsg(MESSAGE_PAGE_SUCCESS, pageInfo);
}
}
@GetMapping("/equallyAssign")
@ResponseBody
@Transactional(rollbackFor = Exception.class)
public Object equallyAssign(TaskVo taskVo) {
Long taskId = taskVo.getId();
Long accountId = taskVo.getAccountId();
UserExample userExample = new UserExample();
userExample.createCriteria().andAccountIdEqualTo(accountId);
List<User> users = userService.selectByExample(userExample);
Map<Integer, List<Long>> userType2IdListMap = users.stream().collect(Collectors.groupingBy(User::getType, Collectors.mapping(User::getId, Collectors.toList())));
List<Long> annotatorUserIds = userType2IdListMap.get(Constants.USER_TYPE_ANNOTATOR);
int annotatorNum = annotatorUserIds.size();
if (annotatorNum > 0) {
int total = subTaskService.countSubtasksOfUnassignedAnnotators(taskId);
int count = total / annotatorNum;
int remainder = total % annotatorNum;
for (Long annotatorUserId : annotatorUserIds) {
// 如果有余数并且大于0说明没分配完,此时需要多分一个
int countTemp = remainder-- > 0 ? ++count : count;
if (countTemp == 0) {
break;
}
subTaskService.assignAnnotators(taskId, annotatorUserId, countTemp);
}
}
List<Long> outInspectorIds = userType2IdListMap.get(Constants.USER_TYPE_OUT_INSPECTOR);
int outInspectorNum = outInspectorIds.size();
if (outInspectorNum > 0) {
int total = subTaskService.countSubtasksOfUnassignedOutInspectors(taskId);
int count = total / outInspectorNum;
int remainder = total % outInspectorNum;
for (Long outInspectorId : outInspectorIds) {
// 如果有余数并且大于0说明没分配完,此时需要多分一个
int countTemp = remainder-- > 0 ? ++count : count;
if (countTemp == 0) {
break;
}
subTaskService.assignOutInspector(taskId, outInspectorId, countTemp);
}
}
return JsonMessageUtil.getSuccessJsonMsg("success");
}
@GetMapping("/assign")
@ResponseBody
@Transactional(rollbackFor = Exception.class)
public Object assign(@RequestParam Long annotatorId, @RequestParam Long outInspectorId, @RequestParam("id") Long taskId, @RequestParam Long count) {
SubTaskMapper mapper = (SubTaskMapper) subTaskService.getMapper();
mapper.assignAnnotatorAndOutInspector(taskId, annotatorId, outInspectorId, count);
return JsonMessageUtil.getSuccessJsonMsg("success");
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.TaskPackBaseController;
import com.viontech.label.platform.model.TaskPackExample;
import com.viontech.label.platform.vo.TaskPackVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/taskPacks")
public class TaskPackController extends TaskPackBaseController {
@Override
protected BaseExample getExample(TaskPackVo taskPackVo, int type) {
TaskPackExample taskPackExample = (TaskPackExample)super.getExample(taskPackVo,type);
return taskPackExample;
}
}
\ No newline at end of file
package com.viontech.label.platform.controller.web;
import cn.dev33.satoken.stp.SaTokenInfo;
import cn.dev33.satoken.stp.StpUtil;
import com.viontech.keliu.util.JsonMessageUtil;
import com.viontech.keliu.util.JsonMessageUtil.JsonMessage;
import com.viontech.label.platform.base.BaseExample;
import com.viontech.label.platform.controller.base.UserBaseController;
import com.viontech.label.platform.model.User;
import com.viontech.label.platform.model.UserExample;
import com.viontech.label.platform.vo.UserVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.Date;
import java.util.List;
import static com.viontech.keliu.util.JsonMessageUtil.getSuccessJsonMsg;
@Controller
@RequestMapping("/users")
public class UserController extends UserBaseController {
@Override
protected BaseExample getExample(UserVo userVo, int type) {
UserExample example = (UserExample) super.getExample(userVo, type);
example.createColumns().hasCreateTimeColumn().hasCreateUserColumn().hasIdColumn().hasAccountIdColumn().hasLastLoginTimeColumn().hasNameColumn()
.hasUsernameColumn().hasTelColumn().hasMailColumn().hasTypeColumn().hasUnidColumn();
return example;
}
@PostMapping("/login")
@ResponseBody
public JsonMessage<User> login(@RequestBody UserVo loginUser) {
String username = loginUser.getUsername();
String password = loginUser.getPassword();
UserExample userExample = new UserExample();
userExample.createCriteria().andUsernameEqualTo(username);
List<User> users = getService().selectByExample(userExample);
if (users.size() > 0) {
User user = users.get(0);
String passwordInDb = user.getPassword();
user.setPassword(null);
if (password.equals(passwordInDb)) {
StpUtil.setLoginId(user.getId());
UserVo userVo = new UserVo();
userVo.setLastLoginTime(new Date());
SaTokenInfo tokenInfo = StpUtil.getTokenInfo();
update(user.getId(), userVo);
userVo.setModel(user);
userVo.setTokenInfo(tokenInfo);
return JsonMessageUtil.getSuccessJsonMsg("success", userVo);
} else {
return JsonMessageUtil.getErrorJsonMsg("error password");
}
} else {
return JsonMessageUtil.getErrorJsonMsg("no such user");
}
}
@RequestMapping(value = "", method = RequestMethod.POST)
@ResponseBody
@Override
public Object add(@RequestBody UserVo userVo) {
try {
long loginId = StpUtil.getLoginIdAsLong();
if (loginId != userVo.getCreateUser()) {
userVo.setCreateUser(loginId);
}
return JsonMessageUtil.getSuccessJsonMsg(userService.addUser(userVo));
} catch (Exception e) {
return JsonMessageUtil.getErrorJsonMsg(e.getMessage());
}
}
@Override
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public Object selOne(@PathVariable(value = "id") Long id) {
User user = userService.selectByPrimaryKey(id);
user.setPassword(null);
return getSuccessJsonMsg(MESSAGE_LIST_SUCCESS, user);
}
}
\ No newline at end of file
package com.viontech.label.platform.interceptor;
import cn.dev33.satoken.exception.NotLoginException;
import cn.dev33.satoken.stp.StpUtil;
import com.viontech.label.platform.model.User;
import com.viontech.label.platform.service.adapter.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Component
@Slf4j
public class AuthInterceptor extends HandlerInterceptorAdapter {
@Resource
private UserService userService;
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {
request.setAttribute("request_start", System.currentTimeMillis());
if (!StpUtil.isLogin()) {
throw NotLoginException.newInstance("", null);
}
StpUtil.checkLogin();
long loginId = StpUtil.getLoginIdAsLong();
User user = userService.selectByPrimaryKey(loginId);
request.setAttribute("user", user);
request.setAttribute("userId", user.getId());
request.setAttribute("accountId", user.getAccountId());
return true;
}
@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
Object o = request.getAttribute("request_start");
if (o != null) {
Long requestStart = (Long) o;
String queryString = request.getQueryString();
String uri = request.getRequestURL().toString();
String path = queryString == null ? uri : uri + "?" + queryString;
User user = (User) request.getAttribute("user");
log.info("\n用户名:[{}]\n请求信息:[{}]\n请求方式:[{}]\n处理时长:[{}]\n", user.getUsername(), path, request.getMethod(), System.currentTimeMillis() - requestStart);
}
super.afterCompletion(request, response, handler, ex);
}
}
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.Account;
import com.viontech.label.platform.model.AccountExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface AccountMapper extends BaseMapper {
int countByExample(AccountExample example);
int deleteByExample(AccountExample example);
int deleteByPrimaryKey(Long id);
int insert(Account record);
int insertSelective(Account record);
List<Account> selectByExample(AccountExample example);
Account selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Account record, @Param("example") AccountExample example);
int updateByExample(@Param("record") Account record, @Param("example") AccountExample example);
int updateByPrimaryKeySelective(Account record);
int updateByPrimaryKey(Account record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.Dict;
import com.viontech.label.platform.model.DictExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface DictMapper extends BaseMapper {
int countByExample(DictExample example);
int deleteByExample(DictExample example);
int deleteByPrimaryKey(Long id);
int insert(Dict record);
int insertSelective(Dict record);
List<Dict> selectByExample(DictExample example);
Dict selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Dict record, @Param("example") DictExample example);
int updateByExample(@Param("record") Dict record, @Param("example") DictExample example);
int updateByPrimaryKeySelective(Dict record);
int updateByPrimaryKey(Dict record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.Log;
import com.viontech.label.platform.model.LogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LogMapper extends BaseMapper {
int countByExample(LogExample example);
int deleteByExample(LogExample example);
int deleteByPrimaryKey(Long id);
int insert(Log record);
int insertSelective(Log record);
List<Log> selectByExample(LogExample example);
Log selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Log record, @Param("example") LogExample example);
int updateByExample(@Param("record") Log record, @Param("example") LogExample example);
int updateByPrimaryKeySelective(Log record);
int updateByPrimaryKey(Log record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.model.PackExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PackMapper extends BaseMapper {
int countByExample(PackExample example);
int deleteByExample(PackExample example);
int deleteByPrimaryKey(Long id);
int insert(Pack record);
int insertSelective(Pack record);
List<Pack> selectByExample(PackExample example);
Pack selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Pack record, @Param("example") PackExample example);
int updateByExample(@Param("record") Pack record, @Param("example") PackExample example);
int updateByPrimaryKeySelective(Pack record);
int updateByPrimaryKey(Pack record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.PackTag;
import com.viontech.label.platform.model.PackTagExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PackTagMapper extends BaseMapper {
int countByExample(PackTagExample example);
int deleteByExample(PackTagExample example);
int deleteByPrimaryKey(Long id);
int insert(PackTag record);
int insertSelective(PackTag record);
List<PackTag> selectByExample(PackTagExample example);
PackTag selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PackTag record, @Param("example") PackTagExample example);
int updateByExample(@Param("record") PackTag record, @Param("example") PackTagExample example);
int updateByPrimaryKeySelective(PackTag record);
int updateByPrimaryKey(PackTag record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.model.PicExample;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
public interface PicMapper extends BaseMapper {
int countByExample(PicExample example);
int deleteByExample(PicExample example);
int deleteByPrimaryKey(Long id);
int insert(Pic record);
int insertSelective(Pic record);
List<Pic> selectByExample(PicExample example);
Pic selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Pic record, @Param("example") PicExample example);
int updateByExample(@Param("record") Pic record, @Param("example") PicExample example);
int updateByPrimaryKeySelective(Pic record);
int updateByPrimaryKey(Pic record);
@Insert("insert into d_sub_task(create_user,pic_id,task_id,in_inspector_id) select #{createUserId},id,#{taskId},#{inInspectorId} from d_pic where pack_id=#{packId}")
void createTasks(Long createUserId, Long taskId, Long packId, Long inInspectorId);
@Update("update d_pic set person_unid = #{personUnid},status=(select status from d_pic where person_unid = #{personUnid} limit 1) where id = #{id}")
void mergeTo(Long id, String personUnid);
@Select("<script>" +
"select id,unid,create_time as createTime,name,storage_id as storageId,pack_id as packId,person_unid as personUnid,status from d_pic where pack_id=#{packId} and person_unid in " +
"(select person_unid from d_pic where pack_id=#{packId}" +
" <if test = 'status != null'> and status=#{status}</if> group by person_unid having count(*) > 1 order by person_unid <if test='offset != null'> offset #{offset} limit #{limit}</if>) " +
" order by person_unid </script>")
List<Pic> getPeople(Long packId, Integer status, Long offset, Long limit);
@Select("<script>" +
"select count(*) from " +
"(select person_unid from d_pic where pack_id=#{packId}" +
" <if test = 'status != null'> and status=#{status}</if> group by person_unid having count(*) > 1) as t " +
"</script>")
int countPeople(Long packId, Integer status);
@Select("<script>" +
"select id,unid,create_time as createTime,name,storage_id as storageId,pack_id as packId,person_unid as personUnid,status from d_pic where pack_id=#{packId} and person_unid=" +
"(select person_unid from d_pic where pack_id=#{packId} <if test = 'status != null'> and status=#{status}</if> and person_unid ${type} #{personUnid} group by person_unid having count(*) > 1 order by person_unid ${sort} limit 1) order by id" +
"</script>")
List<Pic> getOtherPeople(Long packId, Integer status, String personUnid, String type,String sort);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.Storage;
import com.viontech.label.platform.model.StorageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StorageMapper extends BaseMapper {
int countByExample(StorageExample example);
int deleteByExample(StorageExample example);
int deleteByPrimaryKey(Long id);
int insert(Storage record);
int insertSelective(Storage record);
List<Storage> selectByExample(StorageExample example);
Storage selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Storage record, @Param("example") StorageExample example);
int updateByExample(@Param("record") Storage record, @Param("example") StorageExample example);
int updateByPrimaryKeySelective(Storage record);
int updateByPrimaryKey(Storage record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.SubTask;
import com.viontech.label.platform.model.SubTaskExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import java.util.List;
public interface SubTaskMapper extends BaseMapper {
int countByExample(SubTaskExample example);
int deleteByExample(SubTaskExample example);
int deleteByPrimaryKey(Long id);
int insert(SubTask record);
int insertSelective(SubTask record);
List<SubTask> selectByExample(SubTaskExample example);
SubTask selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SubTask record, @Param("example") SubTaskExample example);
int updateByExample(@Param("record") SubTask record, @Param("example") SubTaskExample example);
int updateByPrimaryKeySelective(SubTask record);
int updateByPrimaryKey(SubTask record);
@Update("update d_sub_task set annotator_id = #{annotatorId} where id in (select id from d_sub_task where task_id= #{taskId} and annotator_id is null order by id OFFSET 0 limit #{count} )")
void assignAnnotators(long taskId, long annotatorId, long count);
@Update("update d_sub_task set out_inspector_id = #{outInspectorId} where id in (select id from d_sub_task where task_id= #{taskId} and out_inspector_id is null order by id OFFSET 0 limit #{count} )")
void assignOutInspector(long taskId, long outInspectorId, long count);
@Update("update d_sub_task set out_inspector_id = #{outInspectorId},annotator_id = #{annotatorId} where id in (select id from d_sub_task where task_id= #{taskId} and out_inspector_id is null and annotator_id is null order by id OFFSET 0 limit #{count} )")
void assignAnnotatorAndOutInspector(long taskId, long annotatorId, long outInspectorId, long count);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.Task;
import com.viontech.label.platform.model.TaskExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TaskMapper extends BaseMapper {
int countByExample(TaskExample example);
int deleteByExample(TaskExample example);
int deleteByPrimaryKey(Long id);
int insert(Task record);
int insertSelective(Task record);
List<Task> selectByExample(TaskExample example);
Task selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Task record, @Param("example") TaskExample example);
int updateByExample(@Param("record") Task record, @Param("example") TaskExample example);
int updateByPrimaryKeySelective(Task record);
int updateByPrimaryKey(Task record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.TaskPack;
import com.viontech.label.platform.model.TaskPackExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TaskPackMapper extends BaseMapper {
int countByExample(TaskPackExample example);
int deleteByExample(TaskPackExample example);
int deleteByPrimaryKey(Long id);
int insert(TaskPack record);
int insertSelective(TaskPack record);
List<TaskPack> selectByExample(TaskPackExample example);
TaskPack selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") TaskPack record, @Param("example") TaskPackExample example);
int updateByExample(@Param("record") TaskPack record, @Param("example") TaskPackExample example);
int updateByPrimaryKeySelective(TaskPack record);
int updateByPrimaryKey(TaskPack record);
}
\ No newline at end of file
package com.viontech.label.platform.mapper;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.model.User;
import com.viontech.label.platform.model.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UserMapper extends BaseMapper {
int countByExample(UserExample example);
int deleteByExample(UserExample example);
int deleteByPrimaryKey(Long id);
int insert(User record);
int insertSelective(User record);
List<User> selectByExample(UserExample example);
User selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
int updateByExample(@Param("record") User record, @Param("example") UserExample example);
int updateByPrimaryKeySelective(User record);
int updateByPrimaryKey(User record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.AccountMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.Account" >
<id column="account_id" property="id" />
<result column="account_unid" property="unid" />
<result column="account_create_time" property="createTime" />
<result column="account_create_user" property="createUser" />
<result column="account_name" property="name" />
<result column="account_manager_id" property="managerId" />
<result column="account_description" property="description" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.Account" extends="BaseResultMapRoot" />
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"account".id as account_id, "account".unid as account_unid, "account".create_time as account_create_time,
"account".create_user as account_create_user, "account"."name" as "account_name",
"account".manager_id as account_manager_id, "account".description as account_description
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'AccountExample')" >
<include refid="com.viontech.label.platform.mapper.AccountMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'AccountExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 's_account'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.AccountMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.AccountExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "s_account" "account"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "s_account" "account"
where "account".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "s_account" "account"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.AccountExample" >
delete from "s_account" "account"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.Account" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_account" (unid, create_time, create_user,
"name", manager_id, description
)
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR}, #{managerId,jdbcType=BIGINT}, #{description,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.Account" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_account"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="createUser != null" >
create_user,
</if>
<if test="name != null" >
"name",
</if>
<if test="managerId != null" >
manager_id,
</if>
<if test="description != null" >
description,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
#{createUser,jdbcType=BIGINT},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="managerId != null" >
#{managerId,jdbcType=BIGINT},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.AccountExample" resultType="java.lang.Integer" >
select count(*) from "s_account" "account"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "s_account" "account"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null" >
create_user = #{record.createUser,jdbcType=BIGINT},
</if>
<if test="record.name != null" >
"name" = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.managerId != null" >
manager_id = #{record.managerId,jdbcType=BIGINT},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "s_account" "account"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=BIGINT},
"name" = #{record.name,jdbcType=VARCHAR},
manager_id = #{record.managerId,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.Account" >
update "s_account"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
create_user = #{createUser,jdbcType=BIGINT},
</if>
<if test="name != null" >
"name" = #{name,jdbcType=VARCHAR},
</if>
<if test="managerId != null" >
manager_id = #{managerId,jdbcType=BIGINT},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.Account" >
update "s_account"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=BIGINT},
"name" = #{name,jdbcType=VARCHAR},
manager_id = #{managerId,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.DictMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.Dict" >
<id column="dict_id" property="id" />
<result column="dict_unid" property="unid" />
<result column="dict_create_time" property="createTime" />
<result column="dict_create_user" property="createUser" />
<result column="dict_key" property="key" />
<result column="dict_value" property="value" />
<result column="dict_description" property="description" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.Dict" extends="BaseResultMapRoot" />
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"dict".id as dict_id, "dict".unid as dict_unid, "dict".create_time as dict_create_time,
"dict".create_user as dict_create_user, "dict"."key" as "dict_key", "dict"."value" as "dict_value",
"dict".description as dict_description
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'DictExample')" >
<include refid="com.viontech.label.platform.mapper.DictMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'DictExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 's_dict'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.DictMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.DictExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "s_dict" "dict"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "s_dict" "dict"
where "dict".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "s_dict" "dict"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.DictExample" >
delete from "s_dict" "dict"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.Dict" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_dict" (unid, create_time, create_user,
"key", "value", description
)
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=BIGINT},
#{key,jdbcType=VARCHAR}, #{value,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.Dict" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_dict"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="createUser != null" >
create_user,
</if>
<if test="key != null" >
"key",
</if>
<if test="value != null" >
"value",
</if>
<if test="description != null" >
description,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
#{createUser,jdbcType=BIGINT},
</if>
<if test="key != null" >
#{key,jdbcType=VARCHAR},
</if>
<if test="value != null" >
#{value,jdbcType=INTEGER},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.DictExample" resultType="java.lang.Integer" >
select count(*) from "s_dict" "dict"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "s_dict" "dict"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null" >
create_user = #{record.createUser,jdbcType=BIGINT},
</if>
<if test="record.key != null" >
"key" = #{record.key,jdbcType=VARCHAR},
</if>
<if test="record.value != null" >
"value" = #{record.value,jdbcType=INTEGER},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "s_dict" "dict"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=BIGINT},
"key" = #{record.key,jdbcType=VARCHAR},
"value" = #{record.value,jdbcType=INTEGER},
description = #{record.description,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.Dict" >
update "s_dict"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
create_user = #{createUser,jdbcType=BIGINT},
</if>
<if test="key != null" >
"key" = #{key,jdbcType=VARCHAR},
</if>
<if test="value != null" >
"value" = #{value,jdbcType=INTEGER},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.Dict" >
update "s_dict"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=BIGINT},
"key" = #{key,jdbcType=VARCHAR},
"value" = #{value,jdbcType=INTEGER},
description = #{description,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.LogMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.Log" >
<id column="log_id" property="id" />
<result column="log_create_time" property="createTime" />
<result column="log_operate_user" property="operateUser" />
<result column="log_operate_date" property="operateDate" />
<result column="log_operate_type" property="operateType" />
<result column="log_operate" property="operate" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.Log" extends="BaseResultMapRoot" />
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"log".id as log_id, "log".create_time as log_create_time, "log".operate_user as log_operate_user,
"log".operate_date as log_operate_date, "log".operate_type as log_operate_type, "log".operate as log_operate
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'LogExample')" >
<include refid="com.viontech.label.platform.mapper.LogMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'LogExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 's_log'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.LogMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.LogExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "s_log" "log"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "s_log" "log"
where "log".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "s_log" "log"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.LogExample" >
delete from "s_log" "log"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.Log" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_log" (create_time, operate_user, operate_date,
operate_type, operate)
values (#{createTime,jdbcType=TIMESTAMP}, #{operateUser,jdbcType=BIGINT}, #{operateDate,jdbcType=DATE},
#{operateType,jdbcType=INTEGER}, #{operate,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.Log" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_log"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="createTime != null" >
create_time,
</if>
<if test="operateUser != null" >
operate_user,
</if>
<if test="operateDate != null" >
operate_date,
</if>
<if test="operateType != null" >
operate_type,
</if>
<if test="operate != null" >
operate,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="operateUser != null" >
#{operateUser,jdbcType=BIGINT},
</if>
<if test="operateDate != null" >
#{operateDate,jdbcType=DATE},
</if>
<if test="operateType != null" >
#{operateType,jdbcType=INTEGER},
</if>
<if test="operate != null" >
#{operate,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.LogExample" resultType="java.lang.Integer" >
select count(*) from "s_log" "log"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "s_log" "log"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.operateUser != null" >
operate_user = #{record.operateUser,jdbcType=BIGINT},
</if>
<if test="record.operateDate != null" >
operate_date = #{record.operateDate,jdbcType=DATE},
</if>
<if test="record.operateType != null" >
operate_type = #{record.operateType,jdbcType=INTEGER},
</if>
<if test="record.operate != null" >
operate = #{record.operate,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "s_log" "log"
set id = #{record.id,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
operate_user = #{record.operateUser,jdbcType=BIGINT},
operate_date = #{record.operateDate,jdbcType=DATE},
operate_type = #{record.operateType,jdbcType=INTEGER},
operate = #{record.operate,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.Log" >
update "s_log"
<set >
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="operateUser != null" >
operate_user = #{operateUser,jdbcType=BIGINT},
</if>
<if test="operateDate != null" >
operate_date = #{operateDate,jdbcType=DATE},
</if>
<if test="operateType != null" >
operate_type = #{operateType,jdbcType=INTEGER},
</if>
<if test="operate != null" >
operate = #{operate,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.Log" >
update "s_log"
set create_time = #{createTime,jdbcType=TIMESTAMP},
operate_user = #{operateUser,jdbcType=BIGINT},
operate_date = #{operateDate,jdbcType=DATE},
operate_type = #{operateType,jdbcType=INTEGER},
operate = #{operate,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.PackMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.Pack" >
<id column="pack_id" property="id" />
<result column="pack_unid" property="unid" />
<result column="pack_create_time" property="createTime" />
<result column="pack_create_user" property="createUser" />
<result column="pack_storage_id" property="storageId" />
<result column="pack_name" property="name" />
<result column="pack_status" property="status" />
<result column="pack_type" property="type" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.Pack" extends="BaseResultMapRoot" >
<result column="storage_id" property="storage.id" />
<result column="storage_unid" property="storage.unid" />
<result column="storage_create_time" property="storage.createTime" />
<result column="storage_create_user" property="storage.createUser" />
<result column="storage_name" property="storage.name" />
<result column="storage_type" property="storage.type" />
<result column="storage_path" property="storage.path" />
</resultMap>
<sql id="Left_Join_List" >
<foreach collection="leftJoinTableSet" item="leftJoinTable" >
<choose >
<when test="leftJoinTable == 'd_storage'.toString()" >
left join "d_storage" "storage" on "storage".id = "pack".storage_id
</when>
</choose>
</foreach>
</sql>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"pack".id as pack_id, "pack".unid as pack_unid, "pack".create_time as pack_create_time,
"pack".create_user as pack_create_user, "pack".storage_id as pack_storage_id, "pack"."name" as "pack_name",
"pack"."status" as "pack_status", "pack"."type" as "pack_type"
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'PackExample')" >
<include refid="com.viontech.label.platform.mapper.PackMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'PackExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 'd_pack'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.PackMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_storage'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.StorageMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.PackExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "d_pack" "pack"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "d_pack" "pack"
where "pack".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "d_pack" "pack"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.PackExample" >
delete from "d_pack" "pack"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.Pack" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_pack" (unid, create_time, create_user,
storage_id, "name", "status",
"type")
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=BIGINT},
#{storageId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.Pack" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_pack"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="createUser != null" >
create_user,
</if>
<if test="storageId != null" >
storage_id,
</if>
<if test="name != null" >
"name",
</if>
<if test="status != null" >
"status",
</if>
<if test="type != null" >
"type",
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
#{createUser,jdbcType=BIGINT},
</if>
<if test="storageId != null" >
#{storageId,jdbcType=BIGINT},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.PackExample" resultType="java.lang.Integer" >
select count(*) from "d_pack" "pack"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "d_pack" "pack"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null" >
create_user = #{record.createUser,jdbcType=BIGINT},
</if>
<if test="record.storageId != null" >
storage_id = #{record.storageId,jdbcType=BIGINT},
</if>
<if test="record.name != null" >
"name" = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
"status" = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.type != null" >
"type" = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "d_pack" "pack"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=BIGINT},
storage_id = #{record.storageId,jdbcType=BIGINT},
"name" = #{record.name,jdbcType=VARCHAR},
"status" = #{record.status,jdbcType=INTEGER},
"type" = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.Pack" >
update "d_pack"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
create_user = #{createUser,jdbcType=BIGINT},
</if>
<if test="storageId != null" >
storage_id = #{storageId,jdbcType=BIGINT},
</if>
<if test="name != null" >
"name" = #{name,jdbcType=VARCHAR},
</if>
<if test="status != null" >
"status" = #{status,jdbcType=INTEGER},
</if>
<if test="type != null" >
"type" = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.Pack" >
update "d_pack"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=BIGINT},
storage_id = #{storageId,jdbcType=BIGINT},
"name" = #{name,jdbcType=VARCHAR},
"status" = #{status,jdbcType=INTEGER},
"type" = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.PackTagMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.PackTag" >
<id column="packTag_id" property="id" />
<result column="packTag_create_time" property="createTime" />
<result column="packTag_pack_id" property="packId" />
<result column="packTag_tag" property="tag" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.PackTag" extends="BaseResultMapRoot" >
<result column="pack_id" property="pack.id" />
<result column="pack_unid" property="pack.unid" />
<result column="pack_create_time" property="pack.createTime" />
<result column="pack_create_user" property="pack.createUser" />
<result column="pack_storage_id" property="pack.storageId" />
<result column="pack_name" property="pack.name" />
<result column="pack_status" property="pack.status" />
</resultMap>
<sql id="Left_Join_List" >
<foreach collection="leftJoinTableSet" item="leftJoinTable" >
<choose >
<when test="leftJoinTable == 'd_pack'.toString()" >
left join "d_pack" "pack" on "pack".id = "packTag".pack_id
</when>
</choose>
</foreach>
</sql>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"packTag".id as packTag_id, "packTag".create_time as packTag_create_time, "packTag".pack_id as packTag_pack_id,
"packTag".tag as packTag_tag
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'PackTagExample')" >
<include refid="com.viontech.label.platform.mapper.PackTagMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'PackTagExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 'r_pack_tag'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.PackTagMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_pack'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.PackMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.PackTagExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "r_pack_tag" "packTag"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "r_pack_tag" "packTag"
where "packTag".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "r_pack_tag" "packTag"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.PackTagExample" >
delete from "r_pack_tag" "packTag"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.PackTag" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "r_pack_tag" (create_time, pack_id, tag
)
values (#{createTime,jdbcType=TIMESTAMP}, #{packId,jdbcType=BIGINT}, #{tag,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.PackTag" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "r_pack_tag"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="createTime != null" >
create_time,
</if>
<if test="packId != null" >
pack_id,
</if>
<if test="tag != null" >
tag,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="packId != null" >
#{packId,jdbcType=BIGINT},
</if>
<if test="tag != null" >
#{tag,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.PackTagExample" resultType="java.lang.Integer" >
select count(*) from "r_pack_tag" "packTag"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "r_pack_tag" "packTag"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.packId != null" >
pack_id = #{record.packId,jdbcType=BIGINT},
</if>
<if test="record.tag != null" >
tag = #{record.tag,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "r_pack_tag" "packTag"
set id = #{record.id,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
pack_id = #{record.packId,jdbcType=BIGINT},
tag = #{record.tag,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.PackTag" >
update "r_pack_tag"
<set >
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="packId != null" >
pack_id = #{packId,jdbcType=BIGINT},
</if>
<if test="tag != null" >
tag = #{tag,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.PackTag" >
update "r_pack_tag"
set create_time = #{createTime,jdbcType=TIMESTAMP},
pack_id = #{packId,jdbcType=BIGINT},
tag = #{tag,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.PicMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.Pic" >
<id column="pic_id" property="id" />
<result column="pic_unid" property="unid" />
<result column="pic_create_time" property="createTime" />
<result column="pic_name" property="name" />
<result column="pic_storage_id" property="storageId" />
<result column="pic_pack_id" property="packId" />
<result column="pic_person_unid" property="personUnid" />
<result column="pic_status" property="status" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.Pic" extends="BaseResultMapRoot" >
<result column="storage_id" property="storage.id" />
<result column="storage_unid" property="storage.unid" />
<result column="storage_create_time" property="storage.createTime" />
<result column="storage_create_user" property="storage.createUser" />
<result column="storage_name" property="storage.name" />
<result column="storage_type" property="storage.type" />
<result column="storage_path" property="storage.path" />
<result column="pack_id" property="pack.id" />
<result column="pack_unid" property="pack.unid" />
<result column="pack_create_time" property="pack.createTime" />
<result column="pack_create_user" property="pack.createUser" />
<result column="pack_storage_id" property="pack.storageId" />
<result column="pack_name" property="pack.name" />
<result column="pack_status" property="pack.status" />
<result column="pack_type" property="pack.type" />
</resultMap>
<sql id="Left_Join_List" >
<foreach collection="leftJoinTableSet" item="leftJoinTable" >
<choose >
<when test="leftJoinTable == 'd_storage'.toString()" >
left join "d_storage" "storage" on "storage".id = "pic".storage_id
</when>
<when test="leftJoinTable == 'd_pack'.toString()" >
left join "d_pack" "pack" on "pack".id = "pic".pack_id
</when>
</choose>
</foreach>
</sql>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"pic".id as pic_id, "pic".unid as pic_unid, "pic".create_time as pic_create_time,
"pic"."name" as "pic_name", "pic".storage_id as pic_storage_id, "pic".pack_id as pic_pack_id,
"pic".person_unid as pic_person_unid, "pic"."status" as "pic_status"
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'PicExample')" >
<include refid="com.viontech.label.platform.mapper.PicMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'PicExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 'd_pic'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.PicMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_storage'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.StorageMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_pack'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.PackMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.PicExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "d_pic" "pic"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "d_pic" "pic"
where "pic".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "d_pic" "pic"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.PicExample" >
delete from "d_pic" "pic"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.Pic" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_pic" (unid, create_time, "name",
storage_id, pack_id, person_unid,
"status")
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{name,jdbcType=VARCHAR},
#{storageId,jdbcType=BIGINT}, #{packId,jdbcType=BIGINT}, #{personUnid,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.Pic" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_pic"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="name != null" >
"name",
</if>
<if test="storageId != null" >
storage_id,
</if>
<if test="packId != null" >
pack_id,
</if>
<if test="personUnid != null" >
person_unid,
</if>
<if test="status != null" >
"status",
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="storageId != null" >
#{storageId,jdbcType=BIGINT},
</if>
<if test="packId != null" >
#{packId,jdbcType=BIGINT},
</if>
<if test="personUnid != null" >
#{personUnid,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.PicExample" resultType="java.lang.Integer" >
select count(*) from "d_pic" "pic"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "d_pic" "pic"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.name != null" >
"name" = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.storageId != null" >
storage_id = #{record.storageId,jdbcType=BIGINT},
</if>
<if test="record.packId != null" >
pack_id = #{record.packId,jdbcType=BIGINT},
</if>
<if test="record.personUnid != null" >
person_unid = #{record.personUnid,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
"status" = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "d_pic" "pic"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
"name" = #{record.name,jdbcType=VARCHAR},
storage_id = #{record.storageId,jdbcType=BIGINT},
pack_id = #{record.packId,jdbcType=BIGINT},
person_unid = #{record.personUnid,jdbcType=VARCHAR},
"status" = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.Pic" >
update "d_pic"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="name != null" >
"name" = #{name,jdbcType=VARCHAR},
</if>
<if test="storageId != null" >
storage_id = #{storageId,jdbcType=BIGINT},
</if>
<if test="packId != null" >
pack_id = #{packId,jdbcType=BIGINT},
</if>
<if test="personUnid != null" >
person_unid = #{personUnid,jdbcType=VARCHAR},
</if>
<if test="status != null" >
"status" = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.Pic" >
update "d_pic"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
"name" = #{name,jdbcType=VARCHAR},
storage_id = #{storageId,jdbcType=BIGINT},
pack_id = #{packId,jdbcType=BIGINT},
person_unid = #{personUnid,jdbcType=VARCHAR},
"status" = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.StorageMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.Storage" >
<id column="storage_id" property="id" />
<result column="storage_unid" property="unid" />
<result column="storage_create_time" property="createTime" />
<result column="storage_create_user" property="createUser" />
<result column="storage_name" property="name" />
<result column="storage_type" property="type" />
<result column="storage_path" property="path" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.Storage" extends="BaseResultMapRoot" />
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"storage".id as storage_id, "storage".unid as storage_unid, "storage".create_time as storage_create_time,
"storage".create_user as storage_create_user, "storage"."name" as "storage_name",
"storage"."type" as "storage_type", "storage"."path" as "storage_path"
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'StorageExample')" >
<include refid="com.viontech.label.platform.mapper.StorageMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'StorageExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 'd_storage'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.StorageMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.StorageExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "d_storage" "storage"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "d_storage" "storage"
where "storage".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "d_storage" "storage"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.StorageExample" >
delete from "d_storage" "storage"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.Storage" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_storage" (unid, create_time, create_user,
"name", "type", "path")
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{path,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.Storage" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_storage"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="createUser != null" >
create_user,
</if>
<if test="name != null" >
"name",
</if>
<if test="type != null" >
"type",
</if>
<if test="path != null" >
"path",
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
#{createUser,jdbcType=BIGINT},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="path != null" >
#{path,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.StorageExample" resultType="java.lang.Integer" >
select count(*) from "d_storage" "storage"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "d_storage" "storage"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null" >
create_user = #{record.createUser,jdbcType=BIGINT},
</if>
<if test="record.name != null" >
"name" = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
"type" = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.path != null" >
"path" = #{record.path,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "d_storage" "storage"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=BIGINT},
"name" = #{record.name,jdbcType=VARCHAR},
"type" = #{record.type,jdbcType=INTEGER},
"path" = #{record.path,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.Storage" >
update "d_storage"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
create_user = #{createUser,jdbcType=BIGINT},
</if>
<if test="name != null" >
"name" = #{name,jdbcType=VARCHAR},
</if>
<if test="type != null" >
"type" = #{type,jdbcType=INTEGER},
</if>
<if test="path != null" >
"path" = #{path,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.Storage" >
update "d_storage"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=BIGINT},
"name" = #{name,jdbcType=VARCHAR},
"type" = #{type,jdbcType=INTEGER},
"path" = #{path,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.SubTaskMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.SubTask" >
<id column="subTask_id" property="id" />
<result column="subTask_unid" property="unid" />
<result column="subTask_create_time" property="createTime" />
<result column="subTask_create_user" property="createUser" />
<result column="subTask_pic_id" property="picId" />
<result column="subTask_task_id" property="taskId" />
<result column="subTask_in_inspector_id" property="inInspectorId" />
<result column="subTask_out_inspector_id" property="outInspectorId" />
<result column="subTask_annotator_id" property="annotatorId" />
<result column="subTask_label_result" property="labelResult" />
<result column="subTask_in_status" property="inStatus" />
<result column="subTask_out_status" property="outStatus" />
<result column="subTask_status" property="status" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.SubTask" extends="BaseResultMapRoot" >
<result column="pic_id" property="pic.id" />
<result column="pic_unid" property="pic.unid" />
<result column="pic_create_time" property="pic.createTime" />
<result column="pic_name" property="pic.name" />
<result column="pic_storage_id" property="pic.storageId" />
<result column="pic_pack_id" property="pic.packId" />
<result column="task_id" property="task.id" />
<result column="task_unid" property="task.unid" />
<result column="task_create_time" property="task.createTime" />
<result column="task_create_user" property="task.createUser" />
<result column="task_name" property="task.name" />
<result column="task_type" property="task.type" />
<result column="task_label_type" property="task.labelType" />
<result column="task_account_id" property="task.accountId" />
<result column="task_contractor_manager_id" property="task.contractorManagerId" />
<result column="task_manager_id" property="task.managerId" />
<result column="task_in_inspector_id" property="task.inInspectorId" />
<result column="task_description" property="task.description" />
<result column="task_status" property="task.status" />
</resultMap>
<sql id="Left_Join_List" >
<foreach collection="leftJoinTableSet" item="leftJoinTable" >
<choose >
<when test="leftJoinTable == 'd_pic'.toString()" >
left join "d_pic" "pic" on "pic".id = "subTask".pic_id
</when>
<when test="leftJoinTable == 'd_task'.toString()" >
left join "d_task" "task" on "task".id = "subTask".task_id
</when>
</choose>
</foreach>
</sql>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"subTask".id as subTask_id, "subTask".unid as subTask_unid, "subTask".create_time as subTask_create_time,
"subTask".create_user as subTask_create_user, "subTask".pic_id as subTask_pic_id,
"subTask".task_id as subTask_task_id, "subTask".in_inspector_id as subTask_in_inspector_id,
"subTask".out_inspector_id as subTask_out_inspector_id, "subTask".annotator_id as subTask_annotator_id,
"subTask".label_result as subTask_label_result, "subTask".in_status as subTask_in_status,
"subTask".out_status as subTask_out_status, "subTask"."status" as "subTask_status"
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'SubTaskExample')" >
<include refid="com.viontech.label.platform.mapper.SubTaskMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'SubTaskExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 'd_sub_task'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.SubTaskMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_pic'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.PicMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_task'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.TaskMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.SubTaskExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "d_sub_task" "subTask"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "d_sub_task" "subTask"
where "subTask".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "d_sub_task" "subTask"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.SubTaskExample" >
delete from "d_sub_task" "subTask"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.SubTask" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_sub_task" (unid, create_time, create_user,
pic_id, task_id, in_inspector_id,
out_inspector_id, annotator_id, label_result,
in_status, out_status, "status"
)
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=BIGINT},
#{picId,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, #{inInspectorId,jdbcType=BIGINT},
#{outInspectorId,jdbcType=BIGINT}, #{annotatorId,jdbcType=BIGINT}, #{labelResult,jdbcType=VARCHAR},
#{inStatus,jdbcType=INTEGER}, #{outStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.SubTask" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_sub_task"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="createUser != null" >
create_user,
</if>
<if test="picId != null" >
pic_id,
</if>
<if test="taskId != null" >
task_id,
</if>
<if test="inInspectorId != null" >
in_inspector_id,
</if>
<if test="outInspectorId != null" >
out_inspector_id,
</if>
<if test="annotatorId != null" >
annotator_id,
</if>
<if test="labelResult != null" >
label_result,
</if>
<if test="inStatus != null" >
in_status,
</if>
<if test="outStatus != null" >
out_status,
</if>
<if test="status != null" >
"status",
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
#{createUser,jdbcType=BIGINT},
</if>
<if test="picId != null" >
#{picId,jdbcType=BIGINT},
</if>
<if test="taskId != null" >
#{taskId,jdbcType=BIGINT},
</if>
<if test="inInspectorId != null" >
#{inInspectorId,jdbcType=BIGINT},
</if>
<if test="outInspectorId != null" >
#{outInspectorId,jdbcType=BIGINT},
</if>
<if test="annotatorId != null" >
#{annotatorId,jdbcType=BIGINT},
</if>
<if test="labelResult != null" >
#{labelResult,jdbcType=VARCHAR},
</if>
<if test="inStatus != null" >
#{inStatus,jdbcType=INTEGER},
</if>
<if test="outStatus != null" >
#{outStatus,jdbcType=INTEGER},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.SubTaskExample" resultType="java.lang.Integer" >
select count(*) from "d_sub_task" "subTask"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "d_sub_task" "subTask"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null" >
create_user = #{record.createUser,jdbcType=BIGINT},
</if>
<if test="record.picId != null" >
pic_id = #{record.picId,jdbcType=BIGINT},
</if>
<if test="record.taskId != null" >
task_id = #{record.taskId,jdbcType=BIGINT},
</if>
<if test="record.inInspectorId != null" >
in_inspector_id = #{record.inInspectorId,jdbcType=BIGINT},
</if>
<if test="record.outInspectorId != null" >
out_inspector_id = #{record.outInspectorId,jdbcType=BIGINT},
</if>
<if test="record.annotatorId != null" >
annotator_id = #{record.annotatorId,jdbcType=BIGINT},
</if>
<if test="record.labelResult != null" >
label_result = #{record.labelResult,jdbcType=VARCHAR},
</if>
<if test="record.inStatus != null" >
in_status = #{record.inStatus,jdbcType=INTEGER},
</if>
<if test="record.outStatus != null" >
out_status = #{record.outStatus,jdbcType=INTEGER},
</if>
<if test="record.status != null" >
"status" = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "d_sub_task" "subTask"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=BIGINT},
pic_id = #{record.picId,jdbcType=BIGINT},
task_id = #{record.taskId,jdbcType=BIGINT},
in_inspector_id = #{record.inInspectorId,jdbcType=BIGINT},
out_inspector_id = #{record.outInspectorId,jdbcType=BIGINT},
annotator_id = #{record.annotatorId,jdbcType=BIGINT},
label_result = #{record.labelResult,jdbcType=VARCHAR},
in_status = #{record.inStatus,jdbcType=INTEGER},
out_status = #{record.outStatus,jdbcType=INTEGER},
"status" = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.SubTask" >
update "d_sub_task"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
create_user = #{createUser,jdbcType=BIGINT},
</if>
<if test="picId != null" >
pic_id = #{picId,jdbcType=BIGINT},
</if>
<if test="taskId != null" >
task_id = #{taskId,jdbcType=BIGINT},
</if>
<if test="inInspectorId != null" >
in_inspector_id = #{inInspectorId,jdbcType=BIGINT},
</if>
<if test="outInspectorId != null" >
out_inspector_id = #{outInspectorId,jdbcType=BIGINT},
</if>
<if test="annotatorId != null" >
annotator_id = #{annotatorId,jdbcType=BIGINT},
</if>
<if test="labelResult != null" >
label_result = #{labelResult,jdbcType=VARCHAR},
</if>
<if test="inStatus != null" >
in_status = #{inStatus,jdbcType=INTEGER},
</if>
<if test="outStatus != null" >
out_status = #{outStatus,jdbcType=INTEGER},
</if>
<if test="status != null" >
"status" = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.SubTask" >
update "d_sub_task"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=BIGINT},
pic_id = #{picId,jdbcType=BIGINT},
task_id = #{taskId,jdbcType=BIGINT},
in_inspector_id = #{inInspectorId,jdbcType=BIGINT},
out_inspector_id = #{outInspectorId,jdbcType=BIGINT},
annotator_id = #{annotatorId,jdbcType=BIGINT},
label_result = #{labelResult,jdbcType=VARCHAR},
in_status = #{inStatus,jdbcType=INTEGER},
out_status = #{outStatus,jdbcType=INTEGER},
"status" = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.TaskMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.Task" >
<id column="task_id" property="id" />
<result column="task_unid" property="unid" />
<result column="task_create_time" property="createTime" />
<result column="task_create_user" property="createUser" />
<result column="task_name" property="name" />
<result column="task_type" property="type" />
<result column="task_label_type" property="labelType" />
<result column="task_account_id" property="accountId" />
<result column="task_contractor_manager_id" property="contractorManagerId" />
<result column="task_manager_id" property="managerId" />
<result column="task_in_inspector_id" property="inInspectorId" />
<result column="task_description" property="description" />
<result column="task_status" property="status" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.Task" extends="BaseResultMapRoot" >
<result column="account_id" property="account.id" />
<result column="account_unid" property="account.unid" />
<result column="account_create_time" property="account.createTime" />
<result column="account_create_user" property="account.createUser" />
<result column="account_name" property="account.name" />
<result column="account_manager_id" property="account.managerId" />
<result column="account_description" property="account.description" />
</resultMap>
<sql id="Left_Join_List" >
<foreach collection="leftJoinTableSet" item="leftJoinTable" >
<choose >
<when test="leftJoinTable == 's_account'.toString()" >
left join "s_account" "account" on "account".id = "task".account_id
</when>
</choose>
</foreach>
</sql>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"task".id as task_id, "task".unid as task_unid, "task".create_time as task_create_time,
"task".create_user as task_create_user, "task"."name" as "task_name", "task"."type" as "task_type",
"task".label_type as task_label_type, "task".account_id as task_account_id, "task".contractor_manager_id as task_contractor_manager_id,
"task".manager_id as task_manager_id, "task".in_inspector_id as task_in_inspector_id,
"task".description as task_description, "task"."status" as "task_status"
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'TaskExample')" >
<include refid="com.viontech.label.platform.mapper.TaskMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'TaskExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 'd_task'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.TaskMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 's_account'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.AccountMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.TaskExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "d_task" "task"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "d_task" "task"
where "task".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "d_task" "task"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.TaskExample" >
delete from "d_task" "task"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.Task" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_task" (unid, create_time, create_user,
"name", "type", label_type,
account_id, contractor_manager_id, manager_id,
in_inspector_id, description, "status"
)
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{labelType,jdbcType=INTEGER},
#{accountId,jdbcType=BIGINT}, #{contractorManagerId,jdbcType=BIGINT}, #{managerId,jdbcType=BIGINT},
#{inInspectorId,jdbcType=BIGINT}, #{description,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.Task" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "d_task"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="createUser != null" >
create_user,
</if>
<if test="name != null" >
"name",
</if>
<if test="type != null" >
"type",
</if>
<if test="labelType != null" >
label_type,
</if>
<if test="accountId != null" >
account_id,
</if>
<if test="contractorManagerId != null" >
contractor_manager_id,
</if>
<if test="managerId != null" >
manager_id,
</if>
<if test="inInspectorId != null" >
in_inspector_id,
</if>
<if test="description != null" >
description,
</if>
<if test="status != null" >
"status",
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
#{createUser,jdbcType=BIGINT},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="labelType != null" >
#{labelType,jdbcType=INTEGER},
</if>
<if test="accountId != null" >
#{accountId,jdbcType=BIGINT},
</if>
<if test="contractorManagerId != null" >
#{contractorManagerId,jdbcType=BIGINT},
</if>
<if test="managerId != null" >
#{managerId,jdbcType=BIGINT},
</if>
<if test="inInspectorId != null" >
#{inInspectorId,jdbcType=BIGINT},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.TaskExample" resultType="java.lang.Integer" >
select count(*) from "d_task" "task"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "d_task" "task"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null" >
create_user = #{record.createUser,jdbcType=BIGINT},
</if>
<if test="record.name != null" >
"name" = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
"type" = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.labelType != null" >
label_type = #{record.labelType,jdbcType=INTEGER},
</if>
<if test="record.accountId != null" >
account_id = #{record.accountId,jdbcType=BIGINT},
</if>
<if test="record.contractorManagerId != null" >
contractor_manager_id = #{record.contractorManagerId,jdbcType=BIGINT},
</if>
<if test="record.managerId != null" >
manager_id = #{record.managerId,jdbcType=BIGINT},
</if>
<if test="record.inInspectorId != null" >
in_inspector_id = #{record.inInspectorId,jdbcType=BIGINT},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
"status" = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "d_task" "task"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=BIGINT},
"name" = #{record.name,jdbcType=VARCHAR},
"type" = #{record.type,jdbcType=INTEGER},
label_type = #{record.labelType,jdbcType=INTEGER},
account_id = #{record.accountId,jdbcType=BIGINT},
contractor_manager_id = #{record.contractorManagerId,jdbcType=BIGINT},
manager_id = #{record.managerId,jdbcType=BIGINT},
in_inspector_id = #{record.inInspectorId,jdbcType=BIGINT},
description = #{record.description,jdbcType=VARCHAR},
"status" = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.Task" >
update "d_task"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
create_user = #{createUser,jdbcType=BIGINT},
</if>
<if test="name != null" >
"name" = #{name,jdbcType=VARCHAR},
</if>
<if test="type != null" >
"type" = #{type,jdbcType=INTEGER},
</if>
<if test="labelType != null" >
label_type = #{labelType,jdbcType=INTEGER},
</if>
<if test="accountId != null" >
account_id = #{accountId,jdbcType=BIGINT},
</if>
<if test="contractorManagerId != null" >
contractor_manager_id = #{contractorManagerId,jdbcType=BIGINT},
</if>
<if test="managerId != null" >
manager_id = #{managerId,jdbcType=BIGINT},
</if>
<if test="inInspectorId != null" >
in_inspector_id = #{inInspectorId,jdbcType=BIGINT},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
<if test="status != null" >
"status" = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.Task" >
update "d_task"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=BIGINT},
"name" = #{name,jdbcType=VARCHAR},
"type" = #{type,jdbcType=INTEGER},
label_type = #{labelType,jdbcType=INTEGER},
account_id = #{accountId,jdbcType=BIGINT},
contractor_manager_id = #{contractorManagerId,jdbcType=BIGINT},
manager_id = #{managerId,jdbcType=BIGINT},
in_inspector_id = #{inInspectorId,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
"status" = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.TaskPackMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.TaskPack" >
<id column="taskPack_id" property="id" />
<result column="taskPack_create_time" property="createTime" />
<result column="taskPack_task_id" property="taskId" />
<result column="taskPack_pack_id" property="packId" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.TaskPack" extends="BaseResultMapRoot" >
<result column="task_id" property="task.id" />
<result column="task_unid" property="task.unid" />
<result column="task_create_time" property="task.createTime" />
<result column="task_create_user" property="task.createUser" />
<result column="task_name" property="task.name" />
<result column="task_type" property="task.type" />
<result column="task_label_type" property="task.labelType" />
<result column="task_account_id" property="task.accountId" />
<result column="task_contractor_manager_id" property="task.contractorManagerId" />
<result column="task_manager_id" property="task.managerId" />
<result column="task_in_inspector_id" property="task.inInspectorId" />
<result column="task_description" property="task.description" />
<result column="task_status" property="task.status" />
<result column="pack_id" property="pack.id" />
<result column="pack_unid" property="pack.unid" />
<result column="pack_create_time" property="pack.createTime" />
<result column="pack_create_user" property="pack.createUser" />
<result column="pack_storage_id" property="pack.storageId" />
<result column="pack_name" property="pack.name" />
<result column="pack_status" property="pack.status" />
</resultMap>
<sql id="Left_Join_List" >
<foreach collection="leftJoinTableSet" item="leftJoinTable" >
<choose >
<when test="leftJoinTable == 'd_task'.toString()" >
left join "d_task" "task" on "task".id = "taskPack".task_id
</when>
<when test="leftJoinTable == 'd_pack'.toString()" >
left join "d_pack" "pack" on "pack".id = "taskPack".pack_id
</when>
</choose>
</foreach>
</sql>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"taskPack".id as taskPack_id, "taskPack".create_time as taskPack_create_time, "taskPack".task_id as taskPack_task_id,
"taskPack".pack_id as taskPack_pack_id
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'TaskPackExample')" >
<include refid="com.viontech.label.platform.mapper.TaskPackMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'TaskPackExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 'r_task_pack'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.TaskPackMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_task'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.TaskMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 'd_pack'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.PackMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.TaskPackExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "r_task_pack" "taskPack"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "r_task_pack" "taskPack"
where "taskPack".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "r_task_pack" "taskPack"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.TaskPackExample" >
delete from "r_task_pack" "taskPack"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.TaskPack" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "r_task_pack" (create_time, task_id, pack_id
)
values (#{createTime,jdbcType=TIMESTAMP}, #{taskId,jdbcType=BIGINT}, #{packId,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.TaskPack" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "r_task_pack"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="createTime != null" >
create_time,
</if>
<if test="taskId != null" >
task_id,
</if>
<if test="packId != null" >
pack_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="taskId != null" >
#{taskId,jdbcType=BIGINT},
</if>
<if test="packId != null" >
#{packId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.TaskPackExample" resultType="java.lang.Integer" >
select count(*) from "r_task_pack" "taskPack"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "r_task_pack" "taskPack"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.taskId != null" >
task_id = #{record.taskId,jdbcType=BIGINT},
</if>
<if test="record.packId != null" >
pack_id = #{record.packId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "r_task_pack" "taskPack"
set id = #{record.id,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
task_id = #{record.taskId,jdbcType=BIGINT},
pack_id = #{record.packId,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.TaskPack" >
update "r_task_pack"
<set >
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="taskId != null" >
task_id = #{taskId,jdbcType=BIGINT},
</if>
<if test="packId != null" >
pack_id = #{packId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.TaskPack" >
update "r_task_pack"
set create_time = #{createTime,jdbcType=TIMESTAMP},
task_id = #{taskId,jdbcType=BIGINT},
pack_id = #{packId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.viontech.label.platform.mapper.UserMapper" >
<resultMap id="BaseResultMapRoot" type="com.viontech.label.platform.model.User" >
<id column="s_user_id" property="id" />
<result column="s_user_unid" property="unid" />
<result column="s_user_create_time" property="createTime" />
<result column="s_user_create_user" property="createUser" />
<result column="s_user_username" property="username" />
<result column="s_user_password" property="password" />
<result column="s_user_type" property="type" />
<result column="s_user_name" property="name" />
<result column="s_user_mail" property="mail" />
<result column="s_user_tel" property="tel" />
<result column="s_user_account_id" property="accountId" />
<result column="s_user_last_login_time" property="lastLoginTime" />
</resultMap>
<resultMap id="BaseResultMap" type="com.viontech.label.platform.model.User" extends="BaseResultMapRoot" >
<result column="account_id" property="account.id" />
<result column="account_unid" property="account.unid" />
<result column="account_create_time" property="account.createTime" />
<result column="account_create_user" property="account.createUser" />
<result column="account_name" property="account.name" />
<result column="account_manager_id" property="account.managerId" />
<result column="account_description" property="account.description" />
</resultMap>
<sql id="Left_Join_List" >
<foreach collection="leftJoinTableSet" item="leftJoinTable" >
<choose >
<when test="leftJoinTable == 's_account'.toString()" >
left join "s_account" "account" on "account".id = "s_user".account_id
</when>
</choose>
</foreach>
</sql>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List_Root" >
"s_user".id as s_user_id, "s_user".unid as s_user_unid, "s_user".create_time as s_user_create_time,
"s_user".create_user as s_user_create_user, "s_user".username as s_user_username,
"s_user"."password" as "s_user_password", "s_user"."type" as "s_user_type", "s_user"."name" as "s_user_name",
"s_user".mail as s_user_mail, "s_user".tel as s_user_tel, "s_user".account_id as s_user_account_id,
"s_user".last_login_time as s_user_last_login_time
</sql>
<sql id="Base_Column_List" >
<if test="!(_parameter.getClass().getSimpleName() == 'UserExample')" >
<include refid="com.viontech.label.platform.mapper.UserMapper.Base_Column_List_Root" />
</if>
<if test="_parameter.getClass().getSimpleName() == 'UserExample'" >
<foreach collection="columnContainerSet" item="columns" separator="," >
<choose >
<when test="columns.tableName == 's_user'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.UserMapper.Base_Column_List_Root" />
</if>
</when>
<when test="columns.tableName == 's_account'.toString()" >
<if test="columns.valid" >
${columns.columnContainerStr}
</if>
<if test="!columns.valid" >
<include refid="com.viontech.label.platform.mapper.AccountMapper.Base_Column_List_Root" />
</if>
</when>
</choose>
</foreach>
</if>
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.viontech.label.platform.model.UserExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from "s_user" "s_user"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="groupByClause != null" >
group by ${groupByClause}
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from "s_user" "s_user"
where "s_user".id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
delete from "s_user" "s_user"
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.viontech.label.platform.model.UserExample" >
delete from "s_user" "s_user"
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.viontech.label.platform.model.User" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_user" (unid, create_time, create_user,
username, "password", "type",
"name", mail, tel, account_id,
last_login_time)
values (#{unid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=BIGINT},
#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR}, #{mail,jdbcType=VARCHAR}, #{tel,jdbcType=VARCHAR}, #{accountId,jdbcType=BIGINT},
#{lastLoginTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.viontech.label.platform.model.User" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
insert into "s_user"
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="unid != null" >
unid,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="createUser != null" >
create_user,
</if>
<if test="username != null" >
username,
</if>
<if test="password != null" >
"password",
</if>
<if test="type != null" >
"type",
</if>
<if test="name != null" >
"name",
</if>
<if test="mail != null" >
mail,
</if>
<if test="tel != null" >
tel,
</if>
<if test="accountId != null" >
account_id,
</if>
<if test="lastLoginTime != null" >
last_login_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="unid != null" >
#{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
#{createUser,jdbcType=BIGINT},
</if>
<if test="username != null" >
#{username,jdbcType=VARCHAR},
</if>
<if test="password != null" >
#{password,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=INTEGER},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="mail != null" >
#{mail,jdbcType=VARCHAR},
</if>
<if test="tel != null" >
#{tel,jdbcType=VARCHAR},
</if>
<if test="accountId != null" >
#{accountId,jdbcType=BIGINT},
</if>
<if test="lastLoginTime != null" >
#{lastLoginTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.viontech.label.platform.model.UserExample" resultType="java.lang.Integer" >
select count(*) from "s_user" "s_user"
<include refid="Left_Join_List" />
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update "s_user" "s_user"
<set >
<if test="record.id != null" >
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.unid != null" >
unid = #{record.unid,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null" >
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null" >
create_user = #{record.createUser,jdbcType=BIGINT},
</if>
<if test="record.username != null" >
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null" >
"password" = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
"type" = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.name != null" >
"name" = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.mail != null" >
mail = #{record.mail,jdbcType=VARCHAR},
</if>
<if test="record.tel != null" >
tel = #{record.tel,jdbcType=VARCHAR},
</if>
<if test="record.accountId != null" >
account_id = #{record.accountId,jdbcType=BIGINT},
</if>
<if test="record.lastLoginTime != null" >
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update "s_user" "s_user"
set id = #{record.id,jdbcType=BIGINT},
unid = #{record.unid,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
"password" = #{record.password,jdbcType=VARCHAR},
"type" = #{record.type,jdbcType=INTEGER},
"name" = #{record.name,jdbcType=VARCHAR},
mail = #{record.mail,jdbcType=VARCHAR},
tel = #{record.tel,jdbcType=VARCHAR},
account_id = #{record.accountId,jdbcType=BIGINT},
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.viontech.label.platform.model.User" >
update "s_user"
<set >
<if test="unid != null" >
unid = #{unid,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null" >
create_user = #{createUser,jdbcType=BIGINT},
</if>
<if test="username != null" >
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password != null" >
"password" = #{password,jdbcType=VARCHAR},
</if>
<if test="type != null" >
"type" = #{type,jdbcType=INTEGER},
</if>
<if test="name != null" >
"name" = #{name,jdbcType=VARCHAR},
</if>
<if test="mail != null" >
mail = #{mail,jdbcType=VARCHAR},
</if>
<if test="tel != null" >
tel = #{tel,jdbcType=VARCHAR},
</if>
<if test="accountId != null" >
account_id = #{accountId,jdbcType=BIGINT},
</if>
<if test="lastLoginTime != null" >
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.viontech.label.platform.model.User" >
update "s_user"
set unid = #{unid,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=BIGINT},
username = #{username,jdbcType=VARCHAR},
"password" = #{password,jdbcType=VARCHAR},
"type" = #{type,jdbcType=INTEGER},
"name" = #{name,jdbcType=VARCHAR},
mail = #{mail,jdbcType=VARCHAR},
tel = #{tel,jdbcType=VARCHAR},
account_id = #{accountId,jdbcType=BIGINT},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class Account extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private Long createUser;
private String name;
private Long managerId;
private String description;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Long getManagerId() {
return managerId;
}
public void setManagerId(Long managerId) {
this.managerId = managerId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class AccountExample extends BaseExample {
public AccountExample() {
super();
tableName = "s_account";
tableAlias = "account";
ignoreCase = false;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "s_account";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"account\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"account\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"account\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"account\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"account\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"account\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"account\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"account\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"account\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"account\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"account\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"account\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"account\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"account\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"account\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"account\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"account\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"account\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"account\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"account\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"account\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"account\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"account\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"account\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"account\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"account\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"account\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"account\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"account\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"account\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"account\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"account\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"account\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"account\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"account\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"account\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"account\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"account\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateUserIsNull() {
addCriterion("\"account\".create_user is null");
return (Criteria) this;
}
public Criteria andCreateUserIsNotNull() {
addCriterion("\"account\".create_user is not null");
return (Criteria) this;
}
public Criteria andCreateUserEqualTo(Long value) {
addCriterion("\"account\".create_user =", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotEqualTo(Long value) {
addCriterion("\"account\".create_user <>", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThan(Long value) {
addCriterion("\"account\".create_user >", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"account\".create_user >=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThan(Long value) {
addCriterion("\"account\".create_user <", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThanOrEqualTo(Long value) {
addCriterion("\"account\".create_user <=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserIn(List<Long> values) {
addCriterion("\"account\".create_user in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotIn(List<Long> values) {
addCriterion("\"account\".create_user not in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserBetween(Long value1, Long value2) {
addCriterion("\"account\".create_user between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotBetween(Long value1, Long value2) {
addCriterion("\"account\".create_user not between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("\"account\".\"name\" is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("\"account\".\"name\" is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("\"account\".\"name\" =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("\"account\".\"name\" <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("\"account\".\"name\" >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("\"account\".\"name\" >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("\"account\".\"name\" <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("\"account\".\"name\" <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("\"account\".\"name\" like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("\"account\".\"name\" not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("\"account\".\"name\" in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("\"account\".\"name\" not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("\"account\".\"name\" between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("\"account\".\"name\" not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andManagerIdIsNull() {
addCriterion("\"account\".manager_id is null");
return (Criteria) this;
}
public Criteria andManagerIdIsNotNull() {
addCriterion("\"account\".manager_id is not null");
return (Criteria) this;
}
public Criteria andManagerIdEqualTo(Long value) {
addCriterion("\"account\".manager_id =", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdNotEqualTo(Long value) {
addCriterion("\"account\".manager_id <>", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdGreaterThan(Long value) {
addCriterion("\"account\".manager_id >", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"account\".manager_id >=", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdLessThan(Long value) {
addCriterion("\"account\".manager_id <", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdLessThanOrEqualTo(Long value) {
addCriterion("\"account\".manager_id <=", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdIn(List<Long> values) {
addCriterion("\"account\".manager_id in", values, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdNotIn(List<Long> values) {
addCriterion("\"account\".manager_id not in", values, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdBetween(Long value1, Long value2) {
addCriterion("\"account\".manager_id between", value1, value2, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdNotBetween(Long value1, Long value2) {
addCriterion("\"account\".manager_id not between", value1, value2, "managerId");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("\"account\".description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("\"account\".description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("\"account\".description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("\"account\".description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("\"account\".description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("\"account\".description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("\"account\".description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("\"account\".description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("\"account\".description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("\"account\".description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("\"account\".description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("\"account\".description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("\"account\".description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("\"account\".description not between", value1, value2, "description");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"account\".id as account_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"account\".unid as account_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"account\".create_time as account_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateUserColumn() {
addColumnStr("\"account\".create_user as account_create_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasNameColumn() {
addColumnStr("\"account\".\"name\" as \"account_name\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasManagerIdColumn() {
addColumnStr("\"account\".manager_id as account_manager_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasDescriptionColumn() {
addColumnStr("\"account\".description as account_description ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class Dict extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private Long createUser;
private String key;
private Integer value;
private String description;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key == null ? null : key.trim();
}
public Integer getValue() {
return value;
}
public void setValue(Integer value) {
this.value = value;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class DictExample extends BaseExample {
public DictExample() {
super();
tableName = "s_dict";
tableAlias = "dict";
ignoreCase = false;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "s_dict";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"dict\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"dict\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"dict\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"dict\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"dict\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"dict\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"dict\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"dict\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"dict\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"dict\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"dict\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"dict\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"dict\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"dict\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"dict\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"dict\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"dict\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"dict\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"dict\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"dict\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"dict\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"dict\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"dict\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"dict\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"dict\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"dict\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"dict\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"dict\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"dict\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"dict\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"dict\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"dict\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"dict\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"dict\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"dict\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"dict\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"dict\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"dict\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateUserIsNull() {
addCriterion("\"dict\".create_user is null");
return (Criteria) this;
}
public Criteria andCreateUserIsNotNull() {
addCriterion("\"dict\".create_user is not null");
return (Criteria) this;
}
public Criteria andCreateUserEqualTo(Long value) {
addCriterion("\"dict\".create_user =", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotEqualTo(Long value) {
addCriterion("\"dict\".create_user <>", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThan(Long value) {
addCriterion("\"dict\".create_user >", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"dict\".create_user >=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThan(Long value) {
addCriterion("\"dict\".create_user <", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThanOrEqualTo(Long value) {
addCriterion("\"dict\".create_user <=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserIn(List<Long> values) {
addCriterion("\"dict\".create_user in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotIn(List<Long> values) {
addCriterion("\"dict\".create_user not in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserBetween(Long value1, Long value2) {
addCriterion("\"dict\".create_user between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotBetween(Long value1, Long value2) {
addCriterion("\"dict\".create_user not between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andKeyIsNull() {
addCriterion("\"dict\".\"key\" is null");
return (Criteria) this;
}
public Criteria andKeyIsNotNull() {
addCriterion("\"dict\".\"key\" is not null");
return (Criteria) this;
}
public Criteria andKeyEqualTo(String value) {
addCriterion("\"dict\".\"key\" =", value, "key");
return (Criteria) this;
}
public Criteria andKeyNotEqualTo(String value) {
addCriterion("\"dict\".\"key\" <>", value, "key");
return (Criteria) this;
}
public Criteria andKeyGreaterThan(String value) {
addCriterion("\"dict\".\"key\" >", value, "key");
return (Criteria) this;
}
public Criteria andKeyGreaterThanOrEqualTo(String value) {
addCriterion("\"dict\".\"key\" >=", value, "key");
return (Criteria) this;
}
public Criteria andKeyLessThan(String value) {
addCriterion("\"dict\".\"key\" <", value, "key");
return (Criteria) this;
}
public Criteria andKeyLessThanOrEqualTo(String value) {
addCriterion("\"dict\".\"key\" <=", value, "key");
return (Criteria) this;
}
public Criteria andKeyLike(String value) {
addCriterion("\"dict\".\"key\" like", value, "key");
return (Criteria) this;
}
public Criteria andKeyNotLike(String value) {
addCriterion("\"dict\".\"key\" not like", value, "key");
return (Criteria) this;
}
public Criteria andKeyIn(List<String> values) {
addCriterion("\"dict\".\"key\" in", values, "key");
return (Criteria) this;
}
public Criteria andKeyNotIn(List<String> values) {
addCriterion("\"dict\".\"key\" not in", values, "key");
return (Criteria) this;
}
public Criteria andKeyBetween(String value1, String value2) {
addCriterion("\"dict\".\"key\" between", value1, value2, "key");
return (Criteria) this;
}
public Criteria andKeyNotBetween(String value1, String value2) {
addCriterion("\"dict\".\"key\" not between", value1, value2, "key");
return (Criteria) this;
}
public Criteria andValueIsNull() {
addCriterion("\"dict\".\"value\" is null");
return (Criteria) this;
}
public Criteria andValueIsNotNull() {
addCriterion("\"dict\".\"value\" is not null");
return (Criteria) this;
}
public Criteria andValueEqualTo(Integer value) {
addCriterion("\"dict\".\"value\" =", value, "value");
return (Criteria) this;
}
public Criteria andValueNotEqualTo(Integer value) {
addCriterion("\"dict\".\"value\" <>", value, "value");
return (Criteria) this;
}
public Criteria andValueGreaterThan(Integer value) {
addCriterion("\"dict\".\"value\" >", value, "value");
return (Criteria) this;
}
public Criteria andValueGreaterThanOrEqualTo(Integer value) {
addCriterion("\"dict\".\"value\" >=", value, "value");
return (Criteria) this;
}
public Criteria andValueLessThan(Integer value) {
addCriterion("\"dict\".\"value\" <", value, "value");
return (Criteria) this;
}
public Criteria andValueLessThanOrEqualTo(Integer value) {
addCriterion("\"dict\".\"value\" <=", value, "value");
return (Criteria) this;
}
public Criteria andValueIn(List<Integer> values) {
addCriterion("\"dict\".\"value\" in", values, "value");
return (Criteria) this;
}
public Criteria andValueNotIn(List<Integer> values) {
addCriterion("\"dict\".\"value\" not in", values, "value");
return (Criteria) this;
}
public Criteria andValueBetween(Integer value1, Integer value2) {
addCriterion("\"dict\".\"value\" between", value1, value2, "value");
return (Criteria) this;
}
public Criteria andValueNotBetween(Integer value1, Integer value2) {
addCriterion("\"dict\".\"value\" not between", value1, value2, "value");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("\"dict\".description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("\"dict\".description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("\"dict\".description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("\"dict\".description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("\"dict\".description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("\"dict\".description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("\"dict\".description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("\"dict\".description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("\"dict\".description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("\"dict\".description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("\"dict\".description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("\"dict\".description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("\"dict\".description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("\"dict\".description not between", value1, value2, "description");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"dict\".id as dict_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"dict\".unid as dict_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"dict\".create_time as dict_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateUserColumn() {
addColumnStr("\"dict\".create_user as dict_create_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasKeyColumn() {
addColumnStr("\"dict\".\"key\" as \"dict_key\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasValueColumn() {
addColumnStr("\"dict\".\"value\" as \"dict_value\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasDescriptionColumn() {
addColumnStr("\"dict\".description as dict_description ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class Log extends BaseModel {
private Long id;
private Date createTime;
private Long operateUser;
private Date operateDate;
private Integer operateType;
private String operate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getOperateUser() {
return operateUser;
}
public void setOperateUser(Long operateUser) {
this.operateUser = operateUser;
}
public Date getOperateDate() {
return operateDate;
}
public void setOperateDate(Date operateDate) {
this.operateDate = operateDate;
}
public Integer getOperateType() {
return operateType;
}
public void setOperateType(Integer operateType) {
this.operateType = operateType;
}
public String getOperate() {
return operate;
}
public void setOperate(String operate) {
this.operate = operate == null ? null : operate.trim();
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
public class LogExample extends BaseExample {
public LogExample() {
super();
tableName = "s_log";
tableAlias = "log";
ignoreCase = false;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "s_log";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
protected void addCriterionForJDBCDate(String condition, Date value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value.getTime()), property);
}
protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty");
}
List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
Iterator<Date> iter = values.iterator();
while (iter.hasNext()) {
dateList.add(new java.sql.Date(iter.next().getTime()));
}
addCriterion(condition, dateList, property);
}
protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
}
public Criteria andIdIsNull() {
addCriterion("\"log\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"log\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"log\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"log\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"log\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"log\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"log\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"log\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"log\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"log\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"log\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"log\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"log\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"log\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"log\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"log\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"log\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"log\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"log\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"log\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"log\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"log\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"log\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"log\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andOperateUserIsNull() {
addCriterion("\"log\".operate_user is null");
return (Criteria) this;
}
public Criteria andOperateUserIsNotNull() {
addCriterion("\"log\".operate_user is not null");
return (Criteria) this;
}
public Criteria andOperateUserEqualTo(Long value) {
addCriterion("\"log\".operate_user =", value, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserNotEqualTo(Long value) {
addCriterion("\"log\".operate_user <>", value, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserGreaterThan(Long value) {
addCriterion("\"log\".operate_user >", value, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"log\".operate_user >=", value, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserLessThan(Long value) {
addCriterion("\"log\".operate_user <", value, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserLessThanOrEqualTo(Long value) {
addCriterion("\"log\".operate_user <=", value, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserIn(List<Long> values) {
addCriterion("\"log\".operate_user in", values, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserNotIn(List<Long> values) {
addCriterion("\"log\".operate_user not in", values, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserBetween(Long value1, Long value2) {
addCriterion("\"log\".operate_user between", value1, value2, "operateUser");
return (Criteria) this;
}
public Criteria andOperateUserNotBetween(Long value1, Long value2) {
addCriterion("\"log\".operate_user not between", value1, value2, "operateUser");
return (Criteria) this;
}
public Criteria andOperateDateIsNull() {
addCriterion("\"log\".operate_date is null");
return (Criteria) this;
}
public Criteria andOperateDateIsNotNull() {
addCriterion("\"log\".operate_date is not null");
return (Criteria) this;
}
public Criteria andOperateDateEqualTo(Date value) {
addCriterionForJDBCDate("\"log\".operate_date =", value, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateNotEqualTo(Date value) {
addCriterionForJDBCDate("\"log\".operate_date <>", value, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateGreaterThan(Date value) {
addCriterionForJDBCDate("\"log\".operate_date >", value, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("\"log\".operate_date >=", value, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateLessThan(Date value) {
addCriterionForJDBCDate("\"log\".operate_date <", value, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("\"log\".operate_date <=", value, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateIn(List<Date> values) {
addCriterionForJDBCDate("\"log\".operate_date in", values, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateNotIn(List<Date> values) {
addCriterionForJDBCDate("\"log\".operate_date not in", values, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateBetween(Date value1, Date value2) {
addCriterionForJDBCDate("\"log\".operate_date between", value1, value2, "operateDate");
return (Criteria) this;
}
public Criteria andOperateDateNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("\"log\".operate_date not between", value1, value2, "operateDate");
return (Criteria) this;
}
public Criteria andOperateTypeIsNull() {
addCriterion("\"log\".operate_type is null");
return (Criteria) this;
}
public Criteria andOperateTypeIsNotNull() {
addCriterion("\"log\".operate_type is not null");
return (Criteria) this;
}
public Criteria andOperateTypeEqualTo(Integer value) {
addCriterion("\"log\".operate_type =", value, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeNotEqualTo(Integer value) {
addCriterion("\"log\".operate_type <>", value, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeGreaterThan(Integer value) {
addCriterion("\"log\".operate_type >", value, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("\"log\".operate_type >=", value, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeLessThan(Integer value) {
addCriterion("\"log\".operate_type <", value, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeLessThanOrEqualTo(Integer value) {
addCriterion("\"log\".operate_type <=", value, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeIn(List<Integer> values) {
addCriterion("\"log\".operate_type in", values, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeNotIn(List<Integer> values) {
addCriterion("\"log\".operate_type not in", values, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeBetween(Integer value1, Integer value2) {
addCriterion("\"log\".operate_type between", value1, value2, "operateType");
return (Criteria) this;
}
public Criteria andOperateTypeNotBetween(Integer value1, Integer value2) {
addCriterion("\"log\".operate_type not between", value1, value2, "operateType");
return (Criteria) this;
}
public Criteria andOperateIsNull() {
addCriterion("\"log\".operate is null");
return (Criteria) this;
}
public Criteria andOperateIsNotNull() {
addCriterion("\"log\".operate is not null");
return (Criteria) this;
}
public Criteria andOperateEqualTo(String value) {
addCriterion("\"log\".operate =", value, "operate");
return (Criteria) this;
}
public Criteria andOperateNotEqualTo(String value) {
addCriterion("\"log\".operate <>", value, "operate");
return (Criteria) this;
}
public Criteria andOperateGreaterThan(String value) {
addCriterion("\"log\".operate >", value, "operate");
return (Criteria) this;
}
public Criteria andOperateGreaterThanOrEqualTo(String value) {
addCriterion("\"log\".operate >=", value, "operate");
return (Criteria) this;
}
public Criteria andOperateLessThan(String value) {
addCriterion("\"log\".operate <", value, "operate");
return (Criteria) this;
}
public Criteria andOperateLessThanOrEqualTo(String value) {
addCriterion("\"log\".operate <=", value, "operate");
return (Criteria) this;
}
public Criteria andOperateLike(String value) {
addCriterion("\"log\".operate like", value, "operate");
return (Criteria) this;
}
public Criteria andOperateNotLike(String value) {
addCriterion("\"log\".operate not like", value, "operate");
return (Criteria) this;
}
public Criteria andOperateIn(List<String> values) {
addCriterion("\"log\".operate in", values, "operate");
return (Criteria) this;
}
public Criteria andOperateNotIn(List<String> values) {
addCriterion("\"log\".operate not in", values, "operate");
return (Criteria) this;
}
public Criteria andOperateBetween(String value1, String value2) {
addCriterion("\"log\".operate between", value1, value2, "operate");
return (Criteria) this;
}
public Criteria andOperateNotBetween(String value1, String value2) {
addCriterion("\"log\".operate not between", value1, value2, "operate");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"log\".id as log_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"log\".create_time as log_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasOperateUserColumn() {
addColumnStr("\"log\".operate_user as log_operate_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasOperateDateColumn() {
addColumnStr("\"log\".operate_date as log_operate_date ");
return (ColumnContainer) this;
}
public ColumnContainer hasOperateTypeColumn() {
addColumnStr("\"log\".operate_type as log_operate_type ");
return (ColumnContainer) this;
}
public ColumnContainer hasOperateColumn() {
addColumnStr("\"log\".operate as log_operate ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class Pack extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private Long createUser;
private Long storageId;
private String name;
private Integer status;
private Integer type;
private Storage storage;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public Long getStorageId() {
return storageId;
}
public void setStorageId(Long storageId) {
this.storageId = storageId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Storage getStorage() {
return storage;
}
public void setStorage(Storage storage) {
this.storage = storage;
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class PackExample extends BaseExample {
public PackExample() {
super();
tableName = "d_pack";
tableAlias = "pack";
ignoreCase = false;
}
public StorageExample.ColumnContainer createStorageColumns() {
StorageExample storageExample = new StorageExample();
StorageExample.ColumnContainer columnContainer = (StorageExample.ColumnContainer) columnContainerMap.get(storageExample.getTableName());
if(columnContainer == null){
columnContainer = storageExample.createColumns();
columnContainerMap.put(storageExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public StorageExample.Criteria andStorageCriteria() {
StorageExample storageExample = new StorageExample();
StorageExample.Criteria criteria = storageExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public StorageExample.Criteria orStorageCriteria() {
StorageExample storageExample = new StorageExample();
StorageExample.Criteria criteria = storageExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public StorageExample.Criteria andStorageCriteria(Criteria criteria) {
StorageExample storageExample = new StorageExample();
StorageExample.Criteria newCriteria = storageExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "d_pack";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"pack\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"pack\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"pack\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"pack\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"pack\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"pack\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"pack\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"pack\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"pack\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"pack\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"pack\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"pack\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"pack\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"pack\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"pack\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"pack\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"pack\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"pack\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"pack\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"pack\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"pack\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"pack\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"pack\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"pack\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"pack\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"pack\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"pack\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"pack\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"pack\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"pack\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"pack\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"pack\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"pack\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"pack\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"pack\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"pack\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"pack\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"pack\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateUserIsNull() {
addCriterion("\"pack\".create_user is null");
return (Criteria) this;
}
public Criteria andCreateUserIsNotNull() {
addCriterion("\"pack\".create_user is not null");
return (Criteria) this;
}
public Criteria andCreateUserEqualTo(Long value) {
addCriterion("\"pack\".create_user =", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotEqualTo(Long value) {
addCriterion("\"pack\".create_user <>", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThan(Long value) {
addCriterion("\"pack\".create_user >", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"pack\".create_user >=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThan(Long value) {
addCriterion("\"pack\".create_user <", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThanOrEqualTo(Long value) {
addCriterion("\"pack\".create_user <=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserIn(List<Long> values) {
addCriterion("\"pack\".create_user in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotIn(List<Long> values) {
addCriterion("\"pack\".create_user not in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserBetween(Long value1, Long value2) {
addCriterion("\"pack\".create_user between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotBetween(Long value1, Long value2) {
addCriterion("\"pack\".create_user not between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andStorageIdIsNull() {
addCriterion("\"pack\".storage_id is null");
return (Criteria) this;
}
public Criteria andStorageIdIsNotNull() {
addCriterion("\"pack\".storage_id is not null");
return (Criteria) this;
}
public Criteria andStorageIdEqualTo(Long value) {
addCriterion("\"pack\".storage_id =", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdNotEqualTo(Long value) {
addCriterion("\"pack\".storage_id <>", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdGreaterThan(Long value) {
addCriterion("\"pack\".storage_id >", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"pack\".storage_id >=", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdLessThan(Long value) {
addCriterion("\"pack\".storage_id <", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdLessThanOrEqualTo(Long value) {
addCriterion("\"pack\".storage_id <=", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdIn(List<Long> values) {
addCriterion("\"pack\".storage_id in", values, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdNotIn(List<Long> values) {
addCriterion("\"pack\".storage_id not in", values, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdBetween(Long value1, Long value2) {
addCriterion("\"pack\".storage_id between", value1, value2, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdNotBetween(Long value1, Long value2) {
addCriterion("\"pack\".storage_id not between", value1, value2, "storageId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("\"pack\".\"name\" is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("\"pack\".\"name\" is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("\"pack\".\"name\" =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("\"pack\".\"name\" <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("\"pack\".\"name\" >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("\"pack\".\"name\" >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("\"pack\".\"name\" <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("\"pack\".\"name\" <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("\"pack\".\"name\" like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("\"pack\".\"name\" not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("\"pack\".\"name\" in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("\"pack\".\"name\" not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("\"pack\".\"name\" between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("\"pack\".\"name\" not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("\"pack\".\"status\" is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("\"pack\".\"status\" is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("\"pack\".\"status\" =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("\"pack\".\"status\" <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("\"pack\".\"status\" >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("\"pack\".\"status\" >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("\"pack\".\"status\" <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("\"pack\".\"status\" <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("\"pack\".\"status\" in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("\"pack\".\"status\" not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("\"pack\".\"status\" between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("\"pack\".\"status\" not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("\"pack\".\"type\" is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("\"pack\".\"type\" is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("\"pack\".\"type\" =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("\"pack\".\"type\" <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("\"pack\".\"type\" >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("\"pack\".\"type\" >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("\"pack\".\"type\" <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("\"pack\".\"type\" <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("\"pack\".\"type\" in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("\"pack\".\"type\" not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("\"pack\".\"type\" between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("\"pack\".\"type\" not between", value1, value2, "type");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"pack\".id as pack_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"pack\".unid as pack_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"pack\".create_time as pack_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateUserColumn() {
addColumnStr("\"pack\".create_user as pack_create_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasStorageIdColumn() {
addColumnStr("\"pack\".storage_id as pack_storage_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasNameColumn() {
addColumnStr("\"pack\".\"name\" as \"pack_name\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasStatusColumn() {
addColumnStr("\"pack\".\"status\" as \"pack_status\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasTypeColumn() {
addColumnStr("\"pack\".\"type\" as \"pack_type\" ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class PackTag extends BaseModel {
private Long id;
private Date createTime;
private Long packId;
private Integer tag;
private Pack pack;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getPackId() {
return packId;
}
public void setPackId(Long packId) {
this.packId = packId;
}
public Integer getTag() {
return tag;
}
public void setTag(Integer tag) {
this.tag = tag;
}
public Pack getPack() {
return pack;
}
public void setPack(Pack pack) {
this.pack = pack;
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class PackTagExample extends BaseExample {
public PackTagExample() {
super();
tableName = "r_pack_tag";
tableAlias = "packTag";
ignoreCase = false;
}
public PackExample.ColumnContainer createPackColumns() {
PackExample packExample = new PackExample();
PackExample.ColumnContainer columnContainer = (PackExample.ColumnContainer) columnContainerMap.get(packExample.getTableName());
if(columnContainer == null){
columnContainer = packExample.createColumns();
columnContainerMap.put(packExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public PackExample.Criteria andPackCriteria() {
PackExample packExample = new PackExample();
PackExample.Criteria criteria = packExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public PackExample.Criteria orPackCriteria() {
PackExample packExample = new PackExample();
PackExample.Criteria criteria = packExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public PackExample.Criteria andPackCriteria(Criteria criteria) {
PackExample packExample = new PackExample();
PackExample.Criteria newCriteria = packExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "r_pack_tag";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"packTag\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"packTag\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"packTag\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"packTag\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"packTag\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"packTag\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"packTag\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"packTag\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"packTag\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"packTag\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"packTag\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"packTag\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"packTag\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"packTag\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"packTag\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"packTag\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"packTag\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"packTag\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"packTag\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"packTag\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"packTag\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"packTag\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"packTag\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"packTag\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andPackIdIsNull() {
addCriterion("\"packTag\".pack_id is null");
return (Criteria) this;
}
public Criteria andPackIdIsNotNull() {
addCriterion("\"packTag\".pack_id is not null");
return (Criteria) this;
}
public Criteria andPackIdEqualTo(Long value) {
addCriterion("\"packTag\".pack_id =", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotEqualTo(Long value) {
addCriterion("\"packTag\".pack_id <>", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdGreaterThan(Long value) {
addCriterion("\"packTag\".pack_id >", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"packTag\".pack_id >=", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdLessThan(Long value) {
addCriterion("\"packTag\".pack_id <", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdLessThanOrEqualTo(Long value) {
addCriterion("\"packTag\".pack_id <=", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdIn(List<Long> values) {
addCriterion("\"packTag\".pack_id in", values, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotIn(List<Long> values) {
addCriterion("\"packTag\".pack_id not in", values, "packId");
return (Criteria) this;
}
public Criteria andPackIdBetween(Long value1, Long value2) {
addCriterion("\"packTag\".pack_id between", value1, value2, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotBetween(Long value1, Long value2) {
addCriterion("\"packTag\".pack_id not between", value1, value2, "packId");
return (Criteria) this;
}
public Criteria andTagIsNull() {
addCriterion("\"packTag\".tag is null");
return (Criteria) this;
}
public Criteria andTagIsNotNull() {
addCriterion("\"packTag\".tag is not null");
return (Criteria) this;
}
public Criteria andTagEqualTo(Integer value) {
addCriterion("\"packTag\".tag =", value, "tag");
return (Criteria) this;
}
public Criteria andTagNotEqualTo(Integer value) {
addCriterion("\"packTag\".tag <>", value, "tag");
return (Criteria) this;
}
public Criteria andTagGreaterThan(Integer value) {
addCriterion("\"packTag\".tag >", value, "tag");
return (Criteria) this;
}
public Criteria andTagGreaterThanOrEqualTo(Integer value) {
addCriterion("\"packTag\".tag >=", value, "tag");
return (Criteria) this;
}
public Criteria andTagLessThan(Integer value) {
addCriterion("\"packTag\".tag <", value, "tag");
return (Criteria) this;
}
public Criteria andTagLessThanOrEqualTo(Integer value) {
addCriterion("\"packTag\".tag <=", value, "tag");
return (Criteria) this;
}
public Criteria andTagIn(List<Integer> values) {
addCriterion("\"packTag\".tag in", values, "tag");
return (Criteria) this;
}
public Criteria andTagNotIn(List<Integer> values) {
addCriterion("\"packTag\".tag not in", values, "tag");
return (Criteria) this;
}
public Criteria andTagBetween(Integer value1, Integer value2) {
addCriterion("\"packTag\".tag between", value1, value2, "tag");
return (Criteria) this;
}
public Criteria andTagNotBetween(Integer value1, Integer value2) {
addCriterion("\"packTag\".tag not between", value1, value2, "tag");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"packTag\".id as packTag_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"packTag\".create_time as packTag_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasPackIdColumn() {
addColumnStr("\"packTag\".pack_id as packTag_pack_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasTagColumn() {
addColumnStr("\"packTag\".tag as packTag_tag ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class Pic extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private String name;
private Long storageId;
private Long packId;
private String personUnid;
private Integer status;
@JsonIgnore
private Storage storage;
@JsonIgnore
private Pack pack;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Long getStorageId() {
return storageId;
}
public void setStorageId(Long storageId) {
this.storageId = storageId;
}
public Long getPackId() {
return packId;
}
public void setPackId(Long packId) {
this.packId = packId;
}
public String getPersonUnid() {
return personUnid;
}
public void setPersonUnid(String personUnid) {
this.personUnid = personUnid == null ? null : personUnid.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Storage getStorage() {
return storage;
}
public void setStorage(Storage storage) {
this.storage = storage;
}
public Pack getPack() {
return pack;
}
public void setPack(Pack pack) {
this.pack = pack;
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class PicExample extends BaseExample {
public PicExample() {
super();
tableName = "d_pic";
tableAlias = "pic";
ignoreCase = false;
}
public StorageExample.ColumnContainer createStorageColumns() {
StorageExample storageExample = new StorageExample();
StorageExample.ColumnContainer columnContainer = (StorageExample.ColumnContainer) columnContainerMap.get(storageExample.getTableName());
if(columnContainer == null){
columnContainer = storageExample.createColumns();
columnContainerMap.put(storageExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public StorageExample.Criteria andStorageCriteria() {
StorageExample storageExample = new StorageExample();
StorageExample.Criteria criteria = storageExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public StorageExample.Criteria orStorageCriteria() {
StorageExample storageExample = new StorageExample();
StorageExample.Criteria criteria = storageExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public StorageExample.Criteria andStorageCriteria(Criteria criteria) {
StorageExample storageExample = new StorageExample();
StorageExample.Criteria newCriteria = storageExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public PackExample.ColumnContainer createPackColumns() {
PackExample packExample = new PackExample();
PackExample.ColumnContainer columnContainer = (PackExample.ColumnContainer) columnContainerMap.get(packExample.getTableName());
if(columnContainer == null){
columnContainer = packExample.createColumns();
columnContainerMap.put(packExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public PackExample.Criteria andPackCriteria() {
PackExample packExample = new PackExample();
PackExample.Criteria criteria = packExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public PackExample.Criteria orPackCriteria() {
PackExample packExample = new PackExample();
PackExample.Criteria criteria = packExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public PackExample.Criteria andPackCriteria(Criteria criteria) {
PackExample packExample = new PackExample();
PackExample.Criteria newCriteria = packExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "d_pic";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"pic\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"pic\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"pic\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"pic\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"pic\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"pic\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"pic\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"pic\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"pic\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"pic\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"pic\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"pic\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"pic\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"pic\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"pic\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"pic\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"pic\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"pic\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"pic\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"pic\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"pic\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"pic\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"pic\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"pic\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"pic\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"pic\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"pic\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"pic\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"pic\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"pic\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"pic\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"pic\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"pic\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"pic\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"pic\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"pic\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"pic\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"pic\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("\"pic\".\"name\" is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("\"pic\".\"name\" is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("\"pic\".\"name\" =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("\"pic\".\"name\" <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("\"pic\".\"name\" >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("\"pic\".\"name\" >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("\"pic\".\"name\" <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("\"pic\".\"name\" <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("\"pic\".\"name\" like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("\"pic\".\"name\" not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("\"pic\".\"name\" in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("\"pic\".\"name\" not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("\"pic\".\"name\" between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("\"pic\".\"name\" not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andStorageIdIsNull() {
addCriterion("\"pic\".storage_id is null");
return (Criteria) this;
}
public Criteria andStorageIdIsNotNull() {
addCriterion("\"pic\".storage_id is not null");
return (Criteria) this;
}
public Criteria andStorageIdEqualTo(Long value) {
addCriterion("\"pic\".storage_id =", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdNotEqualTo(Long value) {
addCriterion("\"pic\".storage_id <>", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdGreaterThan(Long value) {
addCriterion("\"pic\".storage_id >", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"pic\".storage_id >=", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdLessThan(Long value) {
addCriterion("\"pic\".storage_id <", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdLessThanOrEqualTo(Long value) {
addCriterion("\"pic\".storage_id <=", value, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdIn(List<Long> values) {
addCriterion("\"pic\".storage_id in", values, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdNotIn(List<Long> values) {
addCriterion("\"pic\".storage_id not in", values, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdBetween(Long value1, Long value2) {
addCriterion("\"pic\".storage_id between", value1, value2, "storageId");
return (Criteria) this;
}
public Criteria andStorageIdNotBetween(Long value1, Long value2) {
addCriterion("\"pic\".storage_id not between", value1, value2, "storageId");
return (Criteria) this;
}
public Criteria andPackIdIsNull() {
addCriterion("\"pic\".pack_id is null");
return (Criteria) this;
}
public Criteria andPackIdIsNotNull() {
addCriterion("\"pic\".pack_id is not null");
return (Criteria) this;
}
public Criteria andPackIdEqualTo(Long value) {
addCriterion("\"pic\".pack_id =", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotEqualTo(Long value) {
addCriterion("\"pic\".pack_id <>", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdGreaterThan(Long value) {
addCriterion("\"pic\".pack_id >", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"pic\".pack_id >=", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdLessThan(Long value) {
addCriterion("\"pic\".pack_id <", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdLessThanOrEqualTo(Long value) {
addCriterion("\"pic\".pack_id <=", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdIn(List<Long> values) {
addCriterion("\"pic\".pack_id in", values, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotIn(List<Long> values) {
addCriterion("\"pic\".pack_id not in", values, "packId");
return (Criteria) this;
}
public Criteria andPackIdBetween(Long value1, Long value2) {
addCriterion("\"pic\".pack_id between", value1, value2, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotBetween(Long value1, Long value2) {
addCriterion("\"pic\".pack_id not between", value1, value2, "packId");
return (Criteria) this;
}
public Criteria andPersonUnidIsNull() {
addCriterion("\"pic\".person_unid is null");
return (Criteria) this;
}
public Criteria andPersonUnidIsNotNull() {
addCriterion("\"pic\".person_unid is not null");
return (Criteria) this;
}
public Criteria andPersonUnidEqualTo(String value) {
addCriterion("\"pic\".person_unid =", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidNotEqualTo(String value) {
addCriterion("\"pic\".person_unid <>", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidGreaterThan(String value) {
addCriterion("\"pic\".person_unid >", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"pic\".person_unid >=", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidLessThan(String value) {
addCriterion("\"pic\".person_unid <", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidLessThanOrEqualTo(String value) {
addCriterion("\"pic\".person_unid <=", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidLike(String value) {
addCriterion("\"pic\".person_unid like", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidNotLike(String value) {
addCriterion("\"pic\".person_unid not like", value, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidIn(List<String> values) {
addCriterion("\"pic\".person_unid in", values, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidNotIn(List<String> values) {
addCriterion("\"pic\".person_unid not in", values, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidBetween(String value1, String value2) {
addCriterion("\"pic\".person_unid between", value1, value2, "personUnid");
return (Criteria) this;
}
public Criteria andPersonUnidNotBetween(String value1, String value2) {
addCriterion("\"pic\".person_unid not between", value1, value2, "personUnid");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("\"pic\".\"status\" is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("\"pic\".\"status\" is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("\"pic\".\"status\" =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("\"pic\".\"status\" <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("\"pic\".\"status\" >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("\"pic\".\"status\" >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("\"pic\".\"status\" <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("\"pic\".\"status\" <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("\"pic\".\"status\" in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("\"pic\".\"status\" not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("\"pic\".\"status\" between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("\"pic\".\"status\" not between", value1, value2, "status");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"pic\".id as pic_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"pic\".unid as pic_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"pic\".create_time as pic_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasNameColumn() {
addColumnStr("\"pic\".\"name\" as \"pic_name\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasStorageIdColumn() {
addColumnStr("\"pic\".storage_id as pic_storage_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasPackIdColumn() {
addColumnStr("\"pic\".pack_id as pic_pack_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasPersonUnidColumn() {
addColumnStr("\"pic\".person_unid as pic_person_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasStatusColumn() {
addColumnStr("\"pic\".\"status\" as \"pic_status\" ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.BaseModel;
import com.viontech.label.core.base.BaseStorage;
import com.viontech.label.core.model.LocalStorage;
import org.springframework.util.Assert;
import java.util.Date;
public class Storage extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private Long createUser;
private String name;
private Integer type;
private String path;
@JsonIgnore
private BaseStorage innerStorage;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path == null ? null : path.trim();
}
public BaseStorage getInnerStorage() {
if (innerStorage == null) {
Assert.notNull(type, "type can not be null!");
Assert.notNull(path, "path can not be null!");
BaseStorage temp;
switch (type) {
case 0:
temp = new LocalStorage(path);
break;
default:
throw new IllegalArgumentException("can not find type " + type);
}
innerStorage = temp;
}
return innerStorage;
}
}
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class StorageExample extends BaseExample {
public StorageExample() {
super();
tableName = "d_storage";
tableAlias = "storage";
ignoreCase = false;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "d_storage";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"storage\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"storage\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"storage\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"storage\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"storage\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"storage\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"storage\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"storage\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"storage\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"storage\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"storage\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"storage\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"storage\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"storage\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"storage\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"storage\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"storage\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"storage\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"storage\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"storage\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"storage\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"storage\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"storage\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"storage\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"storage\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"storage\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"storage\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"storage\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"storage\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"storage\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"storage\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"storage\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"storage\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"storage\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"storage\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"storage\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"storage\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"storage\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateUserIsNull() {
addCriterion("\"storage\".create_user is null");
return (Criteria) this;
}
public Criteria andCreateUserIsNotNull() {
addCriterion("\"storage\".create_user is not null");
return (Criteria) this;
}
public Criteria andCreateUserEqualTo(Long value) {
addCriterion("\"storage\".create_user =", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotEqualTo(Long value) {
addCriterion("\"storage\".create_user <>", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThan(Long value) {
addCriterion("\"storage\".create_user >", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"storage\".create_user >=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThan(Long value) {
addCriterion("\"storage\".create_user <", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThanOrEqualTo(Long value) {
addCriterion("\"storage\".create_user <=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserIn(List<Long> values) {
addCriterion("\"storage\".create_user in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotIn(List<Long> values) {
addCriterion("\"storage\".create_user not in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserBetween(Long value1, Long value2) {
addCriterion("\"storage\".create_user between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotBetween(Long value1, Long value2) {
addCriterion("\"storage\".create_user not between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("\"storage\".\"name\" is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("\"storage\".\"name\" is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("\"storage\".\"name\" =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("\"storage\".\"name\" <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("\"storage\".\"name\" >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("\"storage\".\"name\" >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("\"storage\".\"name\" <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("\"storage\".\"name\" <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("\"storage\".\"name\" like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("\"storage\".\"name\" not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("\"storage\".\"name\" in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("\"storage\".\"name\" not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("\"storage\".\"name\" between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("\"storage\".\"name\" not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("\"storage\".\"type\" is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("\"storage\".\"type\" is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("\"storage\".\"type\" =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("\"storage\".\"type\" <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("\"storage\".\"type\" >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("\"storage\".\"type\" >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("\"storage\".\"type\" <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("\"storage\".\"type\" <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("\"storage\".\"type\" in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("\"storage\".\"type\" not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("\"storage\".\"type\" between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("\"storage\".\"type\" not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andPathIsNull() {
addCriterion("\"storage\".\"path\" is null");
return (Criteria) this;
}
public Criteria andPathIsNotNull() {
addCriterion("\"storage\".\"path\" is not null");
return (Criteria) this;
}
public Criteria andPathEqualTo(String value) {
addCriterion("\"storage\".\"path\" =", value, "path");
return (Criteria) this;
}
public Criteria andPathNotEqualTo(String value) {
addCriterion("\"storage\".\"path\" <>", value, "path");
return (Criteria) this;
}
public Criteria andPathGreaterThan(String value) {
addCriterion("\"storage\".\"path\" >", value, "path");
return (Criteria) this;
}
public Criteria andPathGreaterThanOrEqualTo(String value) {
addCriterion("\"storage\".\"path\" >=", value, "path");
return (Criteria) this;
}
public Criteria andPathLessThan(String value) {
addCriterion("\"storage\".\"path\" <", value, "path");
return (Criteria) this;
}
public Criteria andPathLessThanOrEqualTo(String value) {
addCriterion("\"storage\".\"path\" <=", value, "path");
return (Criteria) this;
}
public Criteria andPathLike(String value) {
addCriterion("\"storage\".\"path\" like", value, "path");
return (Criteria) this;
}
public Criteria andPathNotLike(String value) {
addCriterion("\"storage\".\"path\" not like", value, "path");
return (Criteria) this;
}
public Criteria andPathIn(List<String> values) {
addCriterion("\"storage\".\"path\" in", values, "path");
return (Criteria) this;
}
public Criteria andPathNotIn(List<String> values) {
addCriterion("\"storage\".\"path\" not in", values, "path");
return (Criteria) this;
}
public Criteria andPathBetween(String value1, String value2) {
addCriterion("\"storage\".\"path\" between", value1, value2, "path");
return (Criteria) this;
}
public Criteria andPathNotBetween(String value1, String value2) {
addCriterion("\"storage\".\"path\" not between", value1, value2, "path");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"storage\".id as storage_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"storage\".unid as storage_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"storage\".create_time as storage_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateUserColumn() {
addColumnStr("\"storage\".create_user as storage_create_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasNameColumn() {
addColumnStr("\"storage\".\"name\" as \"storage_name\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasTypeColumn() {
addColumnStr("\"storage\".\"type\" as \"storage_type\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasPathColumn() {
addColumnStr("\"storage\".\"path\" as \"storage_path\" ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class SubTask extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private Long createUser;
private Long picId;
private Long taskId;
private Long inInspectorId;
private Long outInspectorId;
private Long annotatorId;
private String labelResult;
private Integer inStatus;
private Integer outStatus;
private Integer status;
private Pic pic;
private Task task;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public Long getPicId() {
return picId;
}
public void setPicId(Long picId) {
this.picId = picId;
}
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
public Long getInInspectorId() {
return inInspectorId;
}
public void setInInspectorId(Long inInspectorId) {
this.inInspectorId = inInspectorId;
}
public Long getOutInspectorId() {
return outInspectorId;
}
public void setOutInspectorId(Long outInspectorId) {
this.outInspectorId = outInspectorId;
}
public Long getAnnotatorId() {
return annotatorId;
}
public void setAnnotatorId(Long annotatorId) {
this.annotatorId = annotatorId;
}
public String getLabelResult() {
return labelResult;
}
public void setLabelResult(String labelResult) {
this.labelResult = labelResult == null ? null : labelResult.trim();
}
public Integer getInStatus() {
return inStatus;
}
public void setInStatus(Integer inStatus) {
this.inStatus = inStatus;
}
public Integer getOutStatus() {
return outStatus;
}
public void setOutStatus(Integer outStatus) {
this.outStatus = outStatus;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Pic getPic() {
return pic;
}
public void setPic(Pic pic) {
this.pic = pic;
}
public Task getTask() {
return task;
}
public void setTask(Task task) {
this.task = task;
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class SubTaskExample extends BaseExample {
public SubTaskExample() {
super();
tableName = "d_sub_task";
tableAlias = "subTask";
ignoreCase = false;
}
public PicExample.ColumnContainer createPicColumns() {
PicExample picExample = new PicExample();
PicExample.ColumnContainer columnContainer = (PicExample.ColumnContainer) columnContainerMap.get(picExample.getTableName());
if(columnContainer == null){
columnContainer = picExample.createColumns();
columnContainerMap.put(picExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public PicExample.Criteria andPicCriteria() {
PicExample picExample = new PicExample();
PicExample.Criteria criteria = picExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public PicExample.Criteria orPicCriteria() {
PicExample picExample = new PicExample();
PicExample.Criteria criteria = picExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public PicExample.Criteria andPicCriteria(Criteria criteria) {
PicExample picExample = new PicExample();
PicExample.Criteria newCriteria = picExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public TaskExample.ColumnContainer createTaskColumns() {
TaskExample taskExample = new TaskExample();
TaskExample.ColumnContainer columnContainer = (TaskExample.ColumnContainer) columnContainerMap.get(taskExample.getTableName());
if(columnContainer == null){
columnContainer = taskExample.createColumns();
columnContainerMap.put(taskExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public TaskExample.Criteria andTaskCriteria() {
TaskExample taskExample = new TaskExample();
TaskExample.Criteria criteria = taskExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public TaskExample.Criteria orTaskCriteria() {
TaskExample taskExample = new TaskExample();
TaskExample.Criteria criteria = taskExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public TaskExample.Criteria andTaskCriteria(Criteria criteria) {
TaskExample taskExample = new TaskExample();
TaskExample.Criteria newCriteria = taskExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "d_sub_task";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"subTask\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"subTask\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"subTask\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"subTask\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"subTask\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"subTask\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"subTask\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"subTask\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"subTask\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"subTask\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"subTask\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"subTask\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"subTask\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"subTask\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"subTask\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"subTask\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"subTask\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"subTask\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"subTask\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"subTask\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"subTask\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"subTask\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"subTask\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"subTask\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"subTask\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"subTask\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"subTask\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"subTask\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"subTask\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"subTask\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"subTask\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"subTask\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"subTask\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"subTask\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"subTask\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"subTask\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"subTask\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"subTask\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateUserIsNull() {
addCriterion("\"subTask\".create_user is null");
return (Criteria) this;
}
public Criteria andCreateUserIsNotNull() {
addCriterion("\"subTask\".create_user is not null");
return (Criteria) this;
}
public Criteria andCreateUserEqualTo(Long value) {
addCriterion("\"subTask\".create_user =", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotEqualTo(Long value) {
addCriterion("\"subTask\".create_user <>", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThan(Long value) {
addCriterion("\"subTask\".create_user >", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"subTask\".create_user >=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThan(Long value) {
addCriterion("\"subTask\".create_user <", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThanOrEqualTo(Long value) {
addCriterion("\"subTask\".create_user <=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserIn(List<Long> values) {
addCriterion("\"subTask\".create_user in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotIn(List<Long> values) {
addCriterion("\"subTask\".create_user not in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserBetween(Long value1, Long value2) {
addCriterion("\"subTask\".create_user between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotBetween(Long value1, Long value2) {
addCriterion("\"subTask\".create_user not between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andPicIdIsNull() {
addCriterion("\"subTask\".pic_id is null");
return (Criteria) this;
}
public Criteria andPicIdIsNotNull() {
addCriterion("\"subTask\".pic_id is not null");
return (Criteria) this;
}
public Criteria andPicIdEqualTo(Long value) {
addCriterion("\"subTask\".pic_id =", value, "picId");
return (Criteria) this;
}
public Criteria andPicIdNotEqualTo(Long value) {
addCriterion("\"subTask\".pic_id <>", value, "picId");
return (Criteria) this;
}
public Criteria andPicIdGreaterThan(Long value) {
addCriterion("\"subTask\".pic_id >", value, "picId");
return (Criteria) this;
}
public Criteria andPicIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"subTask\".pic_id >=", value, "picId");
return (Criteria) this;
}
public Criteria andPicIdLessThan(Long value) {
addCriterion("\"subTask\".pic_id <", value, "picId");
return (Criteria) this;
}
public Criteria andPicIdLessThanOrEqualTo(Long value) {
addCriterion("\"subTask\".pic_id <=", value, "picId");
return (Criteria) this;
}
public Criteria andPicIdIn(List<Long> values) {
addCriterion("\"subTask\".pic_id in", values, "picId");
return (Criteria) this;
}
public Criteria andPicIdNotIn(List<Long> values) {
addCriterion("\"subTask\".pic_id not in", values, "picId");
return (Criteria) this;
}
public Criteria andPicIdBetween(Long value1, Long value2) {
addCriterion("\"subTask\".pic_id between", value1, value2, "picId");
return (Criteria) this;
}
public Criteria andPicIdNotBetween(Long value1, Long value2) {
addCriterion("\"subTask\".pic_id not between", value1, value2, "picId");
return (Criteria) this;
}
public Criteria andTaskIdIsNull() {
addCriterion("\"subTask\".task_id is null");
return (Criteria) this;
}
public Criteria andTaskIdIsNotNull() {
addCriterion("\"subTask\".task_id is not null");
return (Criteria) this;
}
public Criteria andTaskIdEqualTo(Long value) {
addCriterion("\"subTask\".task_id =", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotEqualTo(Long value) {
addCriterion("\"subTask\".task_id <>", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdGreaterThan(Long value) {
addCriterion("\"subTask\".task_id >", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"subTask\".task_id >=", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdLessThan(Long value) {
addCriterion("\"subTask\".task_id <", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdLessThanOrEqualTo(Long value) {
addCriterion("\"subTask\".task_id <=", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdIn(List<Long> values) {
addCriterion("\"subTask\".task_id in", values, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotIn(List<Long> values) {
addCriterion("\"subTask\".task_id not in", values, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdBetween(Long value1, Long value2) {
addCriterion("\"subTask\".task_id between", value1, value2, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotBetween(Long value1, Long value2) {
addCriterion("\"subTask\".task_id not between", value1, value2, "taskId");
return (Criteria) this;
}
public Criteria andInInspectorIdIsNull() {
addCriterion("\"subTask\".in_inspector_id is null");
return (Criteria) this;
}
public Criteria andInInspectorIdIsNotNull() {
addCriterion("\"subTask\".in_inspector_id is not null");
return (Criteria) this;
}
public Criteria andInInspectorIdEqualTo(Long value) {
addCriterion("\"subTask\".in_inspector_id =", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdNotEqualTo(Long value) {
addCriterion("\"subTask\".in_inspector_id <>", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdGreaterThan(Long value) {
addCriterion("\"subTask\".in_inspector_id >", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"subTask\".in_inspector_id >=", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdLessThan(Long value) {
addCriterion("\"subTask\".in_inspector_id <", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdLessThanOrEqualTo(Long value) {
addCriterion("\"subTask\".in_inspector_id <=", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdIn(List<Long> values) {
addCriterion("\"subTask\".in_inspector_id in", values, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdNotIn(List<Long> values) {
addCriterion("\"subTask\".in_inspector_id not in", values, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdBetween(Long value1, Long value2) {
addCriterion("\"subTask\".in_inspector_id between", value1, value2, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdNotBetween(Long value1, Long value2) {
addCriterion("\"subTask\".in_inspector_id not between", value1, value2, "inInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdIsNull() {
addCriterion("\"subTask\".out_inspector_id is null");
return (Criteria) this;
}
public Criteria andOutInspectorIdIsNotNull() {
addCriterion("\"subTask\".out_inspector_id is not null");
return (Criteria) this;
}
public Criteria andOutInspectorIdEqualTo(Long value) {
addCriterion("\"subTask\".out_inspector_id =", value, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdNotEqualTo(Long value) {
addCriterion("\"subTask\".out_inspector_id <>", value, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdGreaterThan(Long value) {
addCriterion("\"subTask\".out_inspector_id >", value, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"subTask\".out_inspector_id >=", value, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdLessThan(Long value) {
addCriterion("\"subTask\".out_inspector_id <", value, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdLessThanOrEqualTo(Long value) {
addCriterion("\"subTask\".out_inspector_id <=", value, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdIn(List<Long> values) {
addCriterion("\"subTask\".out_inspector_id in", values, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdNotIn(List<Long> values) {
addCriterion("\"subTask\".out_inspector_id not in", values, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdBetween(Long value1, Long value2) {
addCriterion("\"subTask\".out_inspector_id between", value1, value2, "outInspectorId");
return (Criteria) this;
}
public Criteria andOutInspectorIdNotBetween(Long value1, Long value2) {
addCriterion("\"subTask\".out_inspector_id not between", value1, value2, "outInspectorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdIsNull() {
addCriterion("\"subTask\".annotator_id is null");
return (Criteria) this;
}
public Criteria andAnnotatorIdIsNotNull() {
addCriterion("\"subTask\".annotator_id is not null");
return (Criteria) this;
}
public Criteria andAnnotatorIdEqualTo(Long value) {
addCriterion("\"subTask\".annotator_id =", value, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdNotEqualTo(Long value) {
addCriterion("\"subTask\".annotator_id <>", value, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdGreaterThan(Long value) {
addCriterion("\"subTask\".annotator_id >", value, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"subTask\".annotator_id >=", value, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdLessThan(Long value) {
addCriterion("\"subTask\".annotator_id <", value, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdLessThanOrEqualTo(Long value) {
addCriterion("\"subTask\".annotator_id <=", value, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdIn(List<Long> values) {
addCriterion("\"subTask\".annotator_id in", values, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdNotIn(List<Long> values) {
addCriterion("\"subTask\".annotator_id not in", values, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdBetween(Long value1, Long value2) {
addCriterion("\"subTask\".annotator_id between", value1, value2, "annotatorId");
return (Criteria) this;
}
public Criteria andAnnotatorIdNotBetween(Long value1, Long value2) {
addCriterion("\"subTask\".annotator_id not between", value1, value2, "annotatorId");
return (Criteria) this;
}
public Criteria andLabelResultIsNull() {
addCriterion("\"subTask\".label_result is null");
return (Criteria) this;
}
public Criteria andLabelResultIsNotNull() {
addCriterion("\"subTask\".label_result is not null");
return (Criteria) this;
}
public Criteria andLabelResultEqualTo(String value) {
addCriterion("\"subTask\".label_result =", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultNotEqualTo(String value) {
addCriterion("\"subTask\".label_result <>", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultGreaterThan(String value) {
addCriterion("\"subTask\".label_result >", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultGreaterThanOrEqualTo(String value) {
addCriterion("\"subTask\".label_result >=", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultLessThan(String value) {
addCriterion("\"subTask\".label_result <", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultLessThanOrEqualTo(String value) {
addCriterion("\"subTask\".label_result <=", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultLike(String value) {
addCriterion("\"subTask\".label_result like", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultNotLike(String value) {
addCriterion("\"subTask\".label_result not like", value, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultIn(List<String> values) {
addCriterion("\"subTask\".label_result in", values, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultNotIn(List<String> values) {
addCriterion("\"subTask\".label_result not in", values, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultBetween(String value1, String value2) {
addCriterion("\"subTask\".label_result between", value1, value2, "labelResult");
return (Criteria) this;
}
public Criteria andLabelResultNotBetween(String value1, String value2) {
addCriterion("\"subTask\".label_result not between", value1, value2, "labelResult");
return (Criteria) this;
}
public Criteria andInStatusIsNull() {
addCriterion("\"subTask\".in_status is null");
return (Criteria) this;
}
public Criteria andInStatusIsNotNull() {
addCriterion("\"subTask\".in_status is not null");
return (Criteria) this;
}
public Criteria andInStatusEqualTo(Integer value) {
addCriterion("\"subTask\".in_status =", value, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusNotEqualTo(Integer value) {
addCriterion("\"subTask\".in_status <>", value, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusGreaterThan(Integer value) {
addCriterion("\"subTask\".in_status >", value, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("\"subTask\".in_status >=", value, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusLessThan(Integer value) {
addCriterion("\"subTask\".in_status <", value, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusLessThanOrEqualTo(Integer value) {
addCriterion("\"subTask\".in_status <=", value, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusIn(List<Integer> values) {
addCriterion("\"subTask\".in_status in", values, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusNotIn(List<Integer> values) {
addCriterion("\"subTask\".in_status not in", values, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusBetween(Integer value1, Integer value2) {
addCriterion("\"subTask\".in_status between", value1, value2, "inStatus");
return (Criteria) this;
}
public Criteria andInStatusNotBetween(Integer value1, Integer value2) {
addCriterion("\"subTask\".in_status not between", value1, value2, "inStatus");
return (Criteria) this;
}
public Criteria andOutStatusIsNull() {
addCriterion("\"subTask\".out_status is null");
return (Criteria) this;
}
public Criteria andOutStatusIsNotNull() {
addCriterion("\"subTask\".out_status is not null");
return (Criteria) this;
}
public Criteria andOutStatusEqualTo(Integer value) {
addCriterion("\"subTask\".out_status =", value, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusNotEqualTo(Integer value) {
addCriterion("\"subTask\".out_status <>", value, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusGreaterThan(Integer value) {
addCriterion("\"subTask\".out_status >", value, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("\"subTask\".out_status >=", value, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusLessThan(Integer value) {
addCriterion("\"subTask\".out_status <", value, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusLessThanOrEqualTo(Integer value) {
addCriterion("\"subTask\".out_status <=", value, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusIn(List<Integer> values) {
addCriterion("\"subTask\".out_status in", values, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusNotIn(List<Integer> values) {
addCriterion("\"subTask\".out_status not in", values, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusBetween(Integer value1, Integer value2) {
addCriterion("\"subTask\".out_status between", value1, value2, "outStatus");
return (Criteria) this;
}
public Criteria andOutStatusNotBetween(Integer value1, Integer value2) {
addCriterion("\"subTask\".out_status not between", value1, value2, "outStatus");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("\"subTask\".\"status\" is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("\"subTask\".\"status\" is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("\"subTask\".\"status\" =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("\"subTask\".\"status\" <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("\"subTask\".\"status\" >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("\"subTask\".\"status\" >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("\"subTask\".\"status\" <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("\"subTask\".\"status\" <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("\"subTask\".\"status\" in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("\"subTask\".\"status\" not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("\"subTask\".\"status\" between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("\"subTask\".\"status\" not between", value1, value2, "status");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"subTask\".id as subTask_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"subTask\".unid as subTask_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"subTask\".create_time as subTask_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateUserColumn() {
addColumnStr("\"subTask\".create_user as subTask_create_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasPicIdColumn() {
addColumnStr("\"subTask\".pic_id as subTask_pic_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasTaskIdColumn() {
addColumnStr("\"subTask\".task_id as subTask_task_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasInInspectorIdColumn() {
addColumnStr("\"subTask\".in_inspector_id as subTask_in_inspector_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasOutInspectorIdColumn() {
addColumnStr("\"subTask\".out_inspector_id as subTask_out_inspector_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasAnnotatorIdColumn() {
addColumnStr("\"subTask\".annotator_id as subTask_annotator_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasLabelResultColumn() {
addColumnStr("\"subTask\".label_result as subTask_label_result ");
return (ColumnContainer) this;
}
public ColumnContainer hasInStatusColumn() {
addColumnStr("\"subTask\".in_status as subTask_in_status ");
return (ColumnContainer) this;
}
public ColumnContainer hasOutStatusColumn() {
addColumnStr("\"subTask\".out_status as subTask_out_status ");
return (ColumnContainer) this;
}
public ColumnContainer hasStatusColumn() {
addColumnStr("\"subTask\".\"status\" as \"subTask_status\" ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
import java.util.List;
public class Task extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private Long createUser;
private String name;
private Integer type;
private Integer labelType;
private Long accountId;
private Long contractorManagerId;
private Long managerId;
private Long inInspectorId;
private String description;
private Integer status;
private Account account;
private List<Pack> packs;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getLabelType() {
return labelType;
}
public void setLabelType(Integer labelType) {
this.labelType = labelType;
}
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
public Long getContractorManagerId() {
return contractorManagerId;
}
public void setContractorManagerId(Long contractorManagerId) {
this.contractorManagerId = contractorManagerId;
}
public Long getManagerId() {
return managerId;
}
public void setManagerId(Long managerId) {
this.managerId = managerId;
}
public Long getInInspectorId() {
return inInspectorId;
}
public void setInInspectorId(Long inInspectorId) {
this.inInspectorId = inInspectorId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
public List<Pack> getPacks() {
return packs;
}
public void setPacks(List<Pack> packs) {
this.packs = packs;
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class TaskExample extends BaseExample {
public TaskExample() {
super();
tableName = "d_task";
tableAlias = "task";
ignoreCase = false;
}
public AccountExample.ColumnContainer createAccountColumns() {
AccountExample accountExample = new AccountExample();
AccountExample.ColumnContainer columnContainer = (AccountExample.ColumnContainer) columnContainerMap.get(accountExample.getTableName());
if(columnContainer == null){
columnContainer = accountExample.createColumns();
columnContainerMap.put(accountExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public AccountExample.Criteria andAccountCriteria() {
AccountExample accountExample = new AccountExample();
AccountExample.Criteria criteria = accountExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public AccountExample.Criteria orAccountCriteria() {
AccountExample accountExample = new AccountExample();
AccountExample.Criteria criteria = accountExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public AccountExample.Criteria andAccountCriteria(Criteria criteria) {
AccountExample accountExample = new AccountExample();
AccountExample.Criteria newCriteria = accountExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "d_task";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"task\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"task\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"task\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"task\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"task\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"task\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"task\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"task\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"task\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"task\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"task\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"task\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"task\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"task\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"task\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"task\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"task\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"task\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"task\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"task\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"task\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"task\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"task\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"task\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"task\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"task\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"task\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"task\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"task\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"task\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"task\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"task\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"task\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"task\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"task\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"task\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"task\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"task\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateUserIsNull() {
addCriterion("\"task\".create_user is null");
return (Criteria) this;
}
public Criteria andCreateUserIsNotNull() {
addCriterion("\"task\".create_user is not null");
return (Criteria) this;
}
public Criteria andCreateUserEqualTo(Long value) {
addCriterion("\"task\".create_user =", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotEqualTo(Long value) {
addCriterion("\"task\".create_user <>", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThan(Long value) {
addCriterion("\"task\".create_user >", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"task\".create_user >=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThan(Long value) {
addCriterion("\"task\".create_user <", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThanOrEqualTo(Long value) {
addCriterion("\"task\".create_user <=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserIn(List<Long> values) {
addCriterion("\"task\".create_user in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotIn(List<Long> values) {
addCriterion("\"task\".create_user not in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserBetween(Long value1, Long value2) {
addCriterion("\"task\".create_user between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotBetween(Long value1, Long value2) {
addCriterion("\"task\".create_user not between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("\"task\".\"name\" is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("\"task\".\"name\" is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("\"task\".\"name\" =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("\"task\".\"name\" <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("\"task\".\"name\" >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("\"task\".\"name\" >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("\"task\".\"name\" <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("\"task\".\"name\" <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("\"task\".\"name\" like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("\"task\".\"name\" not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("\"task\".\"name\" in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("\"task\".\"name\" not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("\"task\".\"name\" between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("\"task\".\"name\" not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("\"task\".\"type\" is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("\"task\".\"type\" is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("\"task\".\"type\" =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("\"task\".\"type\" <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("\"task\".\"type\" >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("\"task\".\"type\" >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("\"task\".\"type\" <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("\"task\".\"type\" <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("\"task\".\"type\" in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("\"task\".\"type\" not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("\"task\".\"type\" between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("\"task\".\"type\" not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andLabelTypeIsNull() {
addCriterion("\"task\".label_type is null");
return (Criteria) this;
}
public Criteria andLabelTypeIsNotNull() {
addCriterion("\"task\".label_type is not null");
return (Criteria) this;
}
public Criteria andLabelTypeEqualTo(Integer value) {
addCriterion("\"task\".label_type =", value, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeNotEqualTo(Integer value) {
addCriterion("\"task\".label_type <>", value, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeGreaterThan(Integer value) {
addCriterion("\"task\".label_type >", value, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("\"task\".label_type >=", value, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeLessThan(Integer value) {
addCriterion("\"task\".label_type <", value, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeLessThanOrEqualTo(Integer value) {
addCriterion("\"task\".label_type <=", value, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeIn(List<Integer> values) {
addCriterion("\"task\".label_type in", values, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeNotIn(List<Integer> values) {
addCriterion("\"task\".label_type not in", values, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeBetween(Integer value1, Integer value2) {
addCriterion("\"task\".label_type between", value1, value2, "labelType");
return (Criteria) this;
}
public Criteria andLabelTypeNotBetween(Integer value1, Integer value2) {
addCriterion("\"task\".label_type not between", value1, value2, "labelType");
return (Criteria) this;
}
public Criteria andAccountIdIsNull() {
addCriterion("\"task\".account_id is null");
return (Criteria) this;
}
public Criteria andAccountIdIsNotNull() {
addCriterion("\"task\".account_id is not null");
return (Criteria) this;
}
public Criteria andAccountIdEqualTo(Long value) {
addCriterion("\"task\".account_id =", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdNotEqualTo(Long value) {
addCriterion("\"task\".account_id <>", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdGreaterThan(Long value) {
addCriterion("\"task\".account_id >", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"task\".account_id >=", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdLessThan(Long value) {
addCriterion("\"task\".account_id <", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdLessThanOrEqualTo(Long value) {
addCriterion("\"task\".account_id <=", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdIn(List<Long> values) {
addCriterion("\"task\".account_id in", values, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdNotIn(List<Long> values) {
addCriterion("\"task\".account_id not in", values, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdBetween(Long value1, Long value2) {
addCriterion("\"task\".account_id between", value1, value2, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdNotBetween(Long value1, Long value2) {
addCriterion("\"task\".account_id not between", value1, value2, "accountId");
return (Criteria) this;
}
public Criteria andContractorManagerIdIsNull() {
addCriterion("\"task\".contractor_manager_id is null");
return (Criteria) this;
}
public Criteria andContractorManagerIdIsNotNull() {
addCriterion("\"task\".contractor_manager_id is not null");
return (Criteria) this;
}
public Criteria andContractorManagerIdEqualTo(Long value) {
addCriterion("\"task\".contractor_manager_id =", value, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdNotEqualTo(Long value) {
addCriterion("\"task\".contractor_manager_id <>", value, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdGreaterThan(Long value) {
addCriterion("\"task\".contractor_manager_id >", value, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"task\".contractor_manager_id >=", value, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdLessThan(Long value) {
addCriterion("\"task\".contractor_manager_id <", value, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdLessThanOrEqualTo(Long value) {
addCriterion("\"task\".contractor_manager_id <=", value, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdIn(List<Long> values) {
addCriterion("\"task\".contractor_manager_id in", values, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdNotIn(List<Long> values) {
addCriterion("\"task\".contractor_manager_id not in", values, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdBetween(Long value1, Long value2) {
addCriterion("\"task\".contractor_manager_id between", value1, value2, "contractorManagerId");
return (Criteria) this;
}
public Criteria andContractorManagerIdNotBetween(Long value1, Long value2) {
addCriterion("\"task\".contractor_manager_id not between", value1, value2, "contractorManagerId");
return (Criteria) this;
}
public Criteria andManagerIdIsNull() {
addCriterion("\"task\".manager_id is null");
return (Criteria) this;
}
public Criteria andManagerIdIsNotNull() {
addCriterion("\"task\".manager_id is not null");
return (Criteria) this;
}
public Criteria andManagerIdEqualTo(Long value) {
addCriterion("\"task\".manager_id =", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdNotEqualTo(Long value) {
addCriterion("\"task\".manager_id <>", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdGreaterThan(Long value) {
addCriterion("\"task\".manager_id >", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"task\".manager_id >=", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdLessThan(Long value) {
addCriterion("\"task\".manager_id <", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdLessThanOrEqualTo(Long value) {
addCriterion("\"task\".manager_id <=", value, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdIn(List<Long> values) {
addCriterion("\"task\".manager_id in", values, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdNotIn(List<Long> values) {
addCriterion("\"task\".manager_id not in", values, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdBetween(Long value1, Long value2) {
addCriterion("\"task\".manager_id between", value1, value2, "managerId");
return (Criteria) this;
}
public Criteria andManagerIdNotBetween(Long value1, Long value2) {
addCriterion("\"task\".manager_id not between", value1, value2, "managerId");
return (Criteria) this;
}
public Criteria andInInspectorIdIsNull() {
addCriterion("\"task\".in_inspector_id is null");
return (Criteria) this;
}
public Criteria andInInspectorIdIsNotNull() {
addCriterion("\"task\".in_inspector_id is not null");
return (Criteria) this;
}
public Criteria andInInspectorIdEqualTo(Long value) {
addCriterion("\"task\".in_inspector_id =", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdNotEqualTo(Long value) {
addCriterion("\"task\".in_inspector_id <>", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdGreaterThan(Long value) {
addCriterion("\"task\".in_inspector_id >", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"task\".in_inspector_id >=", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdLessThan(Long value) {
addCriterion("\"task\".in_inspector_id <", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdLessThanOrEqualTo(Long value) {
addCriterion("\"task\".in_inspector_id <=", value, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdIn(List<Long> values) {
addCriterion("\"task\".in_inspector_id in", values, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdNotIn(List<Long> values) {
addCriterion("\"task\".in_inspector_id not in", values, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdBetween(Long value1, Long value2) {
addCriterion("\"task\".in_inspector_id between", value1, value2, "inInspectorId");
return (Criteria) this;
}
public Criteria andInInspectorIdNotBetween(Long value1, Long value2) {
addCriterion("\"task\".in_inspector_id not between", value1, value2, "inInspectorId");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("\"task\".description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("\"task\".description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("\"task\".description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("\"task\".description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("\"task\".description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("\"task\".description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("\"task\".description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("\"task\".description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("\"task\".description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("\"task\".description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("\"task\".description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("\"task\".description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("\"task\".description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("\"task\".description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("\"task\".\"status\" is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("\"task\".\"status\" is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("\"task\".\"status\" =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("\"task\".\"status\" <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("\"task\".\"status\" >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("\"task\".\"status\" >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("\"task\".\"status\" <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("\"task\".\"status\" <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("\"task\".\"status\" in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("\"task\".\"status\" not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("\"task\".\"status\" between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("\"task\".\"status\" not between", value1, value2, "status");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"task\".id as task_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"task\".unid as task_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"task\".create_time as task_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateUserColumn() {
addColumnStr("\"task\".create_user as task_create_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasNameColumn() {
addColumnStr("\"task\".\"name\" as \"task_name\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasTypeColumn() {
addColumnStr("\"task\".\"type\" as \"task_type\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasLabelTypeColumn() {
addColumnStr("\"task\".label_type as task_label_type ");
return (ColumnContainer) this;
}
public ColumnContainer hasAccountIdColumn() {
addColumnStr("\"task\".account_id as task_account_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasContractorManagerIdColumn() {
addColumnStr("\"task\".contractor_manager_id as task_contractor_manager_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasManagerIdColumn() {
addColumnStr("\"task\".manager_id as task_manager_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasInInspectorIdColumn() {
addColumnStr("\"task\".in_inspector_id as task_in_inspector_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasDescriptionColumn() {
addColumnStr("\"task\".description as task_description ");
return (ColumnContainer) this;
}
public ColumnContainer hasStatusColumn() {
addColumnStr("\"task\".\"status\" as \"task_status\" ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class TaskPack extends BaseModel {
private Long id;
private Date createTime;
private Long taskId;
private Long packId;
private Task task;
private Pack pack;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
public Long getPackId() {
return packId;
}
public void setPackId(Long packId) {
this.packId = packId;
}
public Task getTask() {
return task;
}
public void setTask(Task task) {
this.task = task;
}
public Pack getPack() {
return pack;
}
public void setPack(Pack pack) {
this.pack = pack;
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class TaskPackExample extends BaseExample {
public TaskPackExample() {
super();
tableName = "r_task_pack";
tableAlias = "taskPack";
ignoreCase = false;
}
public TaskExample.ColumnContainer createTaskColumns() {
TaskExample taskExample = new TaskExample();
TaskExample.ColumnContainer columnContainer = (TaskExample.ColumnContainer) columnContainerMap.get(taskExample.getTableName());
if(columnContainer == null){
columnContainer = taskExample.createColumns();
columnContainerMap.put(taskExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public TaskExample.Criteria andTaskCriteria() {
TaskExample taskExample = new TaskExample();
TaskExample.Criteria criteria = taskExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public TaskExample.Criteria orTaskCriteria() {
TaskExample taskExample = new TaskExample();
TaskExample.Criteria criteria = taskExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public TaskExample.Criteria andTaskCriteria(Criteria criteria) {
TaskExample taskExample = new TaskExample();
TaskExample.Criteria newCriteria = taskExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public PackExample.ColumnContainer createPackColumns() {
PackExample packExample = new PackExample();
PackExample.ColumnContainer columnContainer = (PackExample.ColumnContainer) columnContainerMap.get(packExample.getTableName());
if(columnContainer == null){
columnContainer = packExample.createColumns();
columnContainerMap.put(packExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public PackExample.Criteria andPackCriteria() {
PackExample packExample = new PackExample();
PackExample.Criteria criteria = packExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public PackExample.Criteria orPackCriteria() {
PackExample packExample = new PackExample();
PackExample.Criteria criteria = packExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public PackExample.Criteria andPackCriteria(Criteria criteria) {
PackExample packExample = new PackExample();
PackExample.Criteria newCriteria = packExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "r_task_pack";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"taskPack\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"taskPack\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"taskPack\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"taskPack\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"taskPack\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"taskPack\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"taskPack\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"taskPack\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"taskPack\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"taskPack\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"taskPack\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"taskPack\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"taskPack\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"taskPack\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"taskPack\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"taskPack\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"taskPack\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"taskPack\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"taskPack\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"taskPack\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"taskPack\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"taskPack\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"taskPack\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"taskPack\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andTaskIdIsNull() {
addCriterion("\"taskPack\".task_id is null");
return (Criteria) this;
}
public Criteria andTaskIdIsNotNull() {
addCriterion("\"taskPack\".task_id is not null");
return (Criteria) this;
}
public Criteria andTaskIdEqualTo(Long value) {
addCriterion("\"taskPack\".task_id =", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotEqualTo(Long value) {
addCriterion("\"taskPack\".task_id <>", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdGreaterThan(Long value) {
addCriterion("\"taskPack\".task_id >", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"taskPack\".task_id >=", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdLessThan(Long value) {
addCriterion("\"taskPack\".task_id <", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdLessThanOrEqualTo(Long value) {
addCriterion("\"taskPack\".task_id <=", value, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdIn(List<Long> values) {
addCriterion("\"taskPack\".task_id in", values, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotIn(List<Long> values) {
addCriterion("\"taskPack\".task_id not in", values, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdBetween(Long value1, Long value2) {
addCriterion("\"taskPack\".task_id between", value1, value2, "taskId");
return (Criteria) this;
}
public Criteria andTaskIdNotBetween(Long value1, Long value2) {
addCriterion("\"taskPack\".task_id not between", value1, value2, "taskId");
return (Criteria) this;
}
public Criteria andPackIdIsNull() {
addCriterion("\"taskPack\".pack_id is null");
return (Criteria) this;
}
public Criteria andPackIdIsNotNull() {
addCriterion("\"taskPack\".pack_id is not null");
return (Criteria) this;
}
public Criteria andPackIdEqualTo(Long value) {
addCriterion("\"taskPack\".pack_id =", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotEqualTo(Long value) {
addCriterion("\"taskPack\".pack_id <>", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdGreaterThan(Long value) {
addCriterion("\"taskPack\".pack_id >", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"taskPack\".pack_id >=", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdLessThan(Long value) {
addCriterion("\"taskPack\".pack_id <", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdLessThanOrEqualTo(Long value) {
addCriterion("\"taskPack\".pack_id <=", value, "packId");
return (Criteria) this;
}
public Criteria andPackIdIn(List<Long> values) {
addCriterion("\"taskPack\".pack_id in", values, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotIn(List<Long> values) {
addCriterion("\"taskPack\".pack_id not in", values, "packId");
return (Criteria) this;
}
public Criteria andPackIdBetween(Long value1, Long value2) {
addCriterion("\"taskPack\".pack_id between", value1, value2, "packId");
return (Criteria) this;
}
public Criteria andPackIdNotBetween(Long value1, Long value2) {
addCriterion("\"taskPack\".pack_id not between", value1, value2, "packId");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"taskPack\".id as taskPack_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"taskPack\".create_time as taskPack_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasTaskIdColumn() {
addColumnStr("\"taskPack\".task_id as taskPack_task_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasPackIdColumn() {
addColumnStr("\"taskPack\".pack_id as taskPack_pack_id ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseModel;
import java.util.Date;
public class User extends BaseModel {
private Long id;
private String unid;
private Date createTime;
private Long createUser;
private String username;
private String password;
private Integer type;
private String name;
private String mail;
private String tel;
private Long accountId;
private Date lastLoginTime;
private Account account;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUnid() {
return unid;
}
public void setUnid(String unid) {
this.unid = unid == null ? null : unid.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUser() {
return createUser;
}
public void setCreateUser(Long createUser) {
this.createUser = createUser;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public String getMail() {
return mail;
}
public void setMail(String mail) {
this.mail = mail == null ? null : mail.trim();
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel == null ? null : tel.trim();
}
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
public Date getLastLoginTime() {
return lastLoginTime;
}
public void setLastLoginTime(Date lastLoginTime) {
this.lastLoginTime = lastLoginTime;
}
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
}
\ No newline at end of file
package com.viontech.label.platform.model;
import com.viontech.label.platform.base.BaseExample;
import java.util.Date;
import java.util.List;
public class UserExample extends BaseExample {
public UserExample() {
super();
tableName = "s_user";
tableAlias = "s_user";
ignoreCase = false;
}
public AccountExample.ColumnContainer createAccountColumns() {
AccountExample accountExample = new AccountExample();
AccountExample.ColumnContainer columnContainer = (AccountExample.ColumnContainer) columnContainerMap.get(accountExample.getTableName());
if(columnContainer == null){
columnContainer = accountExample.createColumns();
columnContainerMap.put(accountExample.getTableName(),columnContainer);
}
leftJoinTableSet.add(columnContainer.getTableName());
return columnContainer;
}
public AccountExample.Criteria andAccountCriteria() {
AccountExample accountExample = new AccountExample();
AccountExample.Criteria criteria = accountExample.createCriteria();
Criteria myCriteria = null;
if (oredCriteria.size() == 0) {
myCriteria = createCriteriaInternal();
oredCriteria.add(myCriteria);
}else{
myCriteria = (Criteria)oredCriteria.get(0);
}
leftJoinTableSet.add(criteria.getTableName());
criteria.setAllCriteria(myCriteria.getAllCriteria());
return criteria;
}
public AccountExample.Criteria orAccountCriteria() {
AccountExample accountExample = new AccountExample();
AccountExample.Criteria criteria = accountExample.createCriteria();
leftJoinTableSet.add(criteria.getTableName());
oredCriteria.add(criteria);
return criteria;
}
public AccountExample.Criteria andAccountCriteria(Criteria criteria) {
AccountExample accountExample = new AccountExample();
AccountExample.Criteria newCriteria = accountExample.createCriteria();
leftJoinTableSet.add(newCriteria.getTableName());
newCriteria.setAllCriteria(criteria.getAllCriteria());
return newCriteria;
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this.tableName,this.ignoreCase);
return criteria;
}
public ColumnContainer createColumns() {
ColumnContainer columnContainer = (ColumnContainer) columnContainerMap.get(this.tableName);
if(columnContainer == null){
columnContainer = new ColumnContainer(this.tableName);
columnContainerMap.put(this.tableName,columnContainer);
}
return (ColumnContainer)columnContainer;
}
public static class Criteria extends GeneratedCriteria {
protected Criteria(String tableName) {
super(tableName);
tableName = "s_user";
}
protected Criteria(String tableName, boolean ignoreCase) {
this(tableName);
this.ignoreCase = ignoreCase;
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public void setAllCriteria(List<Criterion> criteria) {
this.criteria = criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value,ignoreCase));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("\"s_user\".id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("\"s_user\".id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("\"s_user\".id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("\"s_user\".id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("\"s_user\".id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"s_user\".id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("\"s_user\".id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("\"s_user\".id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("\"s_user\".id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("\"s_user\".id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("\"s_user\".id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("\"s_user\".id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUnidIsNull() {
addCriterion("\"s_user\".unid is null");
return (Criteria) this;
}
public Criteria andUnidIsNotNull() {
addCriterion("\"s_user\".unid is not null");
return (Criteria) this;
}
public Criteria andUnidEqualTo(String value) {
addCriterion("\"s_user\".unid =", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotEqualTo(String value) {
addCriterion("\"s_user\".unid <>", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThan(String value) {
addCriterion("\"s_user\".unid >", value, "unid");
return (Criteria) this;
}
public Criteria andUnidGreaterThanOrEqualTo(String value) {
addCriterion("\"s_user\".unid >=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThan(String value) {
addCriterion("\"s_user\".unid <", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLessThanOrEqualTo(String value) {
addCriterion("\"s_user\".unid <=", value, "unid");
return (Criteria) this;
}
public Criteria andUnidLike(String value) {
addCriterion("\"s_user\".unid like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidNotLike(String value) {
addCriterion("\"s_user\".unid not like", value, "unid");
return (Criteria) this;
}
public Criteria andUnidIn(List<String> values) {
addCriterion("\"s_user\".unid in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidNotIn(List<String> values) {
addCriterion("\"s_user\".unid not in", values, "unid");
return (Criteria) this;
}
public Criteria andUnidBetween(String value1, String value2) {
addCriterion("\"s_user\".unid between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andUnidNotBetween(String value1, String value2) {
addCriterion("\"s_user\".unid not between", value1, value2, "unid");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("\"s_user\".create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("\"s_user\".create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("\"s_user\".create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("\"s_user\".create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("\"s_user\".create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"s_user\".create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("\"s_user\".create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("\"s_user\".create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("\"s_user\".create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("\"s_user\".create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("\"s_user\".create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("\"s_user\".create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateUserIsNull() {
addCriterion("\"s_user\".create_user is null");
return (Criteria) this;
}
public Criteria andCreateUserIsNotNull() {
addCriterion("\"s_user\".create_user is not null");
return (Criteria) this;
}
public Criteria andCreateUserEqualTo(Long value) {
addCriterion("\"s_user\".create_user =", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotEqualTo(Long value) {
addCriterion("\"s_user\".create_user <>", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThan(Long value) {
addCriterion("\"s_user\".create_user >", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
addCriterion("\"s_user\".create_user >=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThan(Long value) {
addCriterion("\"s_user\".create_user <", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserLessThanOrEqualTo(Long value) {
addCriterion("\"s_user\".create_user <=", value, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserIn(List<Long> values) {
addCriterion("\"s_user\".create_user in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotIn(List<Long> values) {
addCriterion("\"s_user\".create_user not in", values, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserBetween(Long value1, Long value2) {
addCriterion("\"s_user\".create_user between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andCreateUserNotBetween(Long value1, Long value2) {
addCriterion("\"s_user\".create_user not between", value1, value2, "createUser");
return (Criteria) this;
}
public Criteria andUsernameIsNull() {
addCriterion("\"s_user\".username is null");
return (Criteria) this;
}
public Criteria andUsernameIsNotNull() {
addCriterion("\"s_user\".username is not null");
return (Criteria) this;
}
public Criteria andUsernameEqualTo(String value) {
addCriterion("\"s_user\".username =", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotEqualTo(String value) {
addCriterion("\"s_user\".username <>", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThan(String value) {
addCriterion("\"s_user\".username >", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThanOrEqualTo(String value) {
addCriterion("\"s_user\".username >=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThan(String value) {
addCriterion("\"s_user\".username <", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThanOrEqualTo(String value) {
addCriterion("\"s_user\".username <=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLike(String value) {
addCriterion("\"s_user\".username like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotLike(String value) {
addCriterion("\"s_user\".username not like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameIn(List<String> values) {
addCriterion("\"s_user\".username in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameNotIn(List<String> values) {
addCriterion("\"s_user\".username not in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameBetween(String value1, String value2) {
addCriterion("\"s_user\".username between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andUsernameNotBetween(String value1, String value2) {
addCriterion("\"s_user\".username not between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andPasswordIsNull() {
addCriterion("\"s_user\".\"password\" is null");
return (Criteria) this;
}
public Criteria andPasswordIsNotNull() {
addCriterion("\"s_user\".\"password\" is not null");
return (Criteria) this;
}
public Criteria andPasswordEqualTo(String value) {
addCriterion("\"s_user\".\"password\" =", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotEqualTo(String value) {
addCriterion("\"s_user\".\"password\" <>", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThan(String value) {
addCriterion("\"s_user\".\"password\" >", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThanOrEqualTo(String value) {
addCriterion("\"s_user\".\"password\" >=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThan(String value) {
addCriterion("\"s_user\".\"password\" <", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThanOrEqualTo(String value) {
addCriterion("\"s_user\".\"password\" <=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLike(String value) {
addCriterion("\"s_user\".\"password\" like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotLike(String value) {
addCriterion("\"s_user\".\"password\" not like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordIn(List<String> values) {
addCriterion("\"s_user\".\"password\" in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordNotIn(List<String> values) {
addCriterion("\"s_user\".\"password\" not in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordBetween(String value1, String value2) {
addCriterion("\"s_user\".\"password\" between", value1, value2, "password");
return (Criteria) this;
}
public Criteria andPasswordNotBetween(String value1, String value2) {
addCriterion("\"s_user\".\"password\" not between", value1, value2, "password");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("\"s_user\".\"type\" is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("\"s_user\".\"type\" is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("\"s_user\".\"type\" =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("\"s_user\".\"type\" <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("\"s_user\".\"type\" >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("\"s_user\".\"type\" >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("\"s_user\".\"type\" <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("\"s_user\".\"type\" <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("\"s_user\".\"type\" in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("\"s_user\".\"type\" not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("\"s_user\".\"type\" between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("\"s_user\".\"type\" not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("\"s_user\".\"name\" is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("\"s_user\".\"name\" is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("\"s_user\".\"name\" =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("\"s_user\".\"name\" <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("\"s_user\".\"name\" >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("\"s_user\".\"name\" >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("\"s_user\".\"name\" <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("\"s_user\".\"name\" <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("\"s_user\".\"name\" like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("\"s_user\".\"name\" not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("\"s_user\".\"name\" in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("\"s_user\".\"name\" not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("\"s_user\".\"name\" between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("\"s_user\".\"name\" not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andMailIsNull() {
addCriterion("\"s_user\".mail is null");
return (Criteria) this;
}
public Criteria andMailIsNotNull() {
addCriterion("\"s_user\".mail is not null");
return (Criteria) this;
}
public Criteria andMailEqualTo(String value) {
addCriterion("\"s_user\".mail =", value, "mail");
return (Criteria) this;
}
public Criteria andMailNotEqualTo(String value) {
addCriterion("\"s_user\".mail <>", value, "mail");
return (Criteria) this;
}
public Criteria andMailGreaterThan(String value) {
addCriterion("\"s_user\".mail >", value, "mail");
return (Criteria) this;
}
public Criteria andMailGreaterThanOrEqualTo(String value) {
addCriterion("\"s_user\".mail >=", value, "mail");
return (Criteria) this;
}
public Criteria andMailLessThan(String value) {
addCriterion("\"s_user\".mail <", value, "mail");
return (Criteria) this;
}
public Criteria andMailLessThanOrEqualTo(String value) {
addCriterion("\"s_user\".mail <=", value, "mail");
return (Criteria) this;
}
public Criteria andMailLike(String value) {
addCriterion("\"s_user\".mail like", value, "mail");
return (Criteria) this;
}
public Criteria andMailNotLike(String value) {
addCriterion("\"s_user\".mail not like", value, "mail");
return (Criteria) this;
}
public Criteria andMailIn(List<String> values) {
addCriterion("\"s_user\".mail in", values, "mail");
return (Criteria) this;
}
public Criteria andMailNotIn(List<String> values) {
addCriterion("\"s_user\".mail not in", values, "mail");
return (Criteria) this;
}
public Criteria andMailBetween(String value1, String value2) {
addCriterion("\"s_user\".mail between", value1, value2, "mail");
return (Criteria) this;
}
public Criteria andMailNotBetween(String value1, String value2) {
addCriterion("\"s_user\".mail not between", value1, value2, "mail");
return (Criteria) this;
}
public Criteria andTelIsNull() {
addCriterion("\"s_user\".tel is null");
return (Criteria) this;
}
public Criteria andTelIsNotNull() {
addCriterion("\"s_user\".tel is not null");
return (Criteria) this;
}
public Criteria andTelEqualTo(String value) {
addCriterion("\"s_user\".tel =", value, "tel");
return (Criteria) this;
}
public Criteria andTelNotEqualTo(String value) {
addCriterion("\"s_user\".tel <>", value, "tel");
return (Criteria) this;
}
public Criteria andTelGreaterThan(String value) {
addCriterion("\"s_user\".tel >", value, "tel");
return (Criteria) this;
}
public Criteria andTelGreaterThanOrEqualTo(String value) {
addCriterion("\"s_user\".tel >=", value, "tel");
return (Criteria) this;
}
public Criteria andTelLessThan(String value) {
addCriterion("\"s_user\".tel <", value, "tel");
return (Criteria) this;
}
public Criteria andTelLessThanOrEqualTo(String value) {
addCriterion("\"s_user\".tel <=", value, "tel");
return (Criteria) this;
}
public Criteria andTelLike(String value) {
addCriterion("\"s_user\".tel like", value, "tel");
return (Criteria) this;
}
public Criteria andTelNotLike(String value) {
addCriterion("\"s_user\".tel not like", value, "tel");
return (Criteria) this;
}
public Criteria andTelIn(List<String> values) {
addCriterion("\"s_user\".tel in", values, "tel");
return (Criteria) this;
}
public Criteria andTelNotIn(List<String> values) {
addCriterion("\"s_user\".tel not in", values, "tel");
return (Criteria) this;
}
public Criteria andTelBetween(String value1, String value2) {
addCriterion("\"s_user\".tel between", value1, value2, "tel");
return (Criteria) this;
}
public Criteria andTelNotBetween(String value1, String value2) {
addCriterion("\"s_user\".tel not between", value1, value2, "tel");
return (Criteria) this;
}
public Criteria andAccountIdIsNull() {
addCriterion("\"s_user\".account_id is null");
return (Criteria) this;
}
public Criteria andAccountIdIsNotNull() {
addCriterion("\"s_user\".account_id is not null");
return (Criteria) this;
}
public Criteria andAccountIdEqualTo(Long value) {
addCriterion("\"s_user\".account_id =", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdNotEqualTo(Long value) {
addCriterion("\"s_user\".account_id <>", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdGreaterThan(Long value) {
addCriterion("\"s_user\".account_id >", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdGreaterThanOrEqualTo(Long value) {
addCriterion("\"s_user\".account_id >=", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdLessThan(Long value) {
addCriterion("\"s_user\".account_id <", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdLessThanOrEqualTo(Long value) {
addCriterion("\"s_user\".account_id <=", value, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdIn(List<Long> values) {
addCriterion("\"s_user\".account_id in", values, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdNotIn(List<Long> values) {
addCriterion("\"s_user\".account_id not in", values, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdBetween(Long value1, Long value2) {
addCriterion("\"s_user\".account_id between", value1, value2, "accountId");
return (Criteria) this;
}
public Criteria andAccountIdNotBetween(Long value1, Long value2) {
addCriterion("\"s_user\".account_id not between", value1, value2, "accountId");
return (Criteria) this;
}
public Criteria andLastLoginTimeIsNull() {
addCriterion("\"s_user\".last_login_time is null");
return (Criteria) this;
}
public Criteria andLastLoginTimeIsNotNull() {
addCriterion("\"s_user\".last_login_time is not null");
return (Criteria) this;
}
public Criteria andLastLoginTimeEqualTo(Date value) {
addCriterion("\"s_user\".last_login_time =", value, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeNotEqualTo(Date value) {
addCriterion("\"s_user\".last_login_time <>", value, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeGreaterThan(Date value) {
addCriterion("\"s_user\".last_login_time >", value, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeGreaterThanOrEqualTo(Date value) {
addCriterion("\"s_user\".last_login_time >=", value, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeLessThan(Date value) {
addCriterion("\"s_user\".last_login_time <", value, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeLessThanOrEqualTo(Date value) {
addCriterion("\"s_user\".last_login_time <=", value, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeIn(List<Date> values) {
addCriterion("\"s_user\".last_login_time in", values, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeNotIn(List<Date> values) {
addCriterion("\"s_user\".last_login_time not in", values, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeBetween(Date value1, Date value2) {
addCriterion("\"s_user\".last_login_time between", value1, value2, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeNotBetween(Date value1, Date value2) {
addCriterion("\"s_user\".last_login_time not between", value1, value2, "lastLoginTime");
return (Criteria) this;
}
}
public static class ColumnContainer extends ColumnContainerBase {
protected ColumnContainer(String tableName) {
super(tableName);
}
public ColumnContainer hasIdColumn() {
addColumnStr("\"s_user\".id as s_user_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasUnidColumn() {
addColumnStr("\"s_user\".unid as s_user_unid ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateTimeColumn() {
addColumnStr("\"s_user\".create_time as s_user_create_time ");
return (ColumnContainer) this;
}
public ColumnContainer hasCreateUserColumn() {
addColumnStr("\"s_user\".create_user as s_user_create_user ");
return (ColumnContainer) this;
}
public ColumnContainer hasUsernameColumn() {
addColumnStr("\"s_user\".username as s_user_username ");
return (ColumnContainer) this;
}
public ColumnContainer hasPasswordColumn() {
addColumnStr("\"s_user\".\"password\" as \"s_user_password\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasTypeColumn() {
addColumnStr("\"s_user\".\"type\" as \"s_user_type\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasNameColumn() {
addColumnStr("\"s_user\".\"name\" as \"s_user_name\" ");
return (ColumnContainer) this;
}
public ColumnContainer hasMailColumn() {
addColumnStr("\"s_user\".mail as s_user_mail ");
return (ColumnContainer) this;
}
public ColumnContainer hasTelColumn() {
addColumnStr("\"s_user\".tel as s_user_tel ");
return (ColumnContainer) this;
}
public ColumnContainer hasAccountIdColumn() {
addColumnStr("\"s_user\".account_id as s_user_account_id ");
return (ColumnContainer) this;
}
public ColumnContainer hasLastLoginTimeColumn() {
addColumnStr("\"s_user\".last_login_time as s_user_last_login_time ");
return (ColumnContainer) this;
}
}
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Account;
public interface AccountService extends BaseService<Account> {
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Dict;
public interface DictService extends BaseService<Dict> {
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Log;
public interface LogService extends BaseService<Log> {
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Pack;
public interface PackService extends BaseService<Pack> {
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.PackTag;
public interface PackTagService extends BaseService<PackTag> {
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.vo.ReidUploadData;
public interface PicService extends BaseService<Pic> {
void createTasks(Long createUserId, Long taskId, Long packId, Long inInspectorId);
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Storage;
public interface StorageService extends BaseService<Storage> {
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.SubTask;
public interface SubTaskService extends BaseService<SubTask> {
/**
* 获取对应任务下未分配标注员的子任务数量
*
* @param taskId 任务id
*
* @return 子任务数量
*/
int countSubtasksOfUnassignedAnnotators(Long taskId);
/**
* 获取对应任务下未分配外部质检员的子任务数量
*
* @param taskId 任务id
*
* @return 子任务数量
*/
int countSubtasksOfUnassignedOutInspectors(Long taskId);
/**
* 为标注员分配子任务
*
* @param taskId 任务Id
* @param annotatorId 标注员id
* @param count 子任务数量
*/
void assignAnnotators(Long taskId, long annotatorId, long count);
/**
* 为外部质检员分配子任务
*
* @param taskId 任务Id
* @param outInspectorId 外部质检员id
* @param count 子任务数量
*/
void assignOutInspector(Long taskId, long outInspectorId, long count);
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.TaskPack;
public interface TaskPackService extends BaseService<TaskPack> {
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.Task;
import java.util.List;
public interface TaskService extends BaseService<Task> {
Task addTaskWithPack(Task task, List<Long> packIds);
}
\ No newline at end of file
package com.viontech.label.platform.service.adapter;
import com.viontech.label.platform.base.BaseService;
import com.viontech.label.platform.model.User;
import com.viontech.label.platform.vo.UserVo;
public interface UserService extends BaseService<User> {
User addUser(UserVo user) throws Exception;
User getCurrentUser();
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.AccountMapper;
import com.viontech.label.platform.model.Account;
import com.viontech.label.platform.service.adapter.AccountService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class AccountServiceImpl extends BaseServiceImpl<Account> implements AccountService {
@Resource
private AccountMapper accountMapper;
@Override
public BaseMapper<Account> getMapper() {
return accountMapper;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.DictMapper;
import com.viontech.label.platform.model.Dict;
import com.viontech.label.platform.service.adapter.DictService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class DictServiceImpl extends BaseServiceImpl<Dict> implements DictService {
@Resource
private DictMapper dictMapper;
@Override
public BaseMapper<Dict> getMapper() {
return dictMapper;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.LogMapper;
import com.viontech.label.platform.model.Log;
import com.viontech.label.platform.service.adapter.LogService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class LogServiceImpl extends BaseServiceImpl<Log> implements LogService {
@Resource
private LogMapper logMapper;
@Override
public BaseMapper<Log> getMapper() {
return logMapper;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.PackMapper;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.service.adapter.PackService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class PackServiceImpl extends BaseServiceImpl<Pack> implements PackService {
@Resource
private PackMapper packMapper;
@Override
public BaseMapper<Pack> getMapper() {
return packMapper;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.PackTagMapper;
import com.viontech.label.platform.model.PackTag;
import com.viontech.label.platform.service.adapter.PackTagService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class PackTagServiceImpl extends BaseServiceImpl<PackTag> implements PackTagService {
@Resource
private PackTagMapper packTagMapper;
@Override
public BaseMapper<PackTag> getMapper() {
return packTagMapper;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.PicMapper;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.service.adapter.PicService;
import com.viontech.label.platform.utils.StorageUtils;
import com.viontech.label.platform.vo.ReidUploadData;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
@Service
public class PicServiceImpl extends BaseServiceImpl<Pic> implements PicService {
@Resource
private PicMapper picMapper;
@Resource
private StorageUtils storageUtils;
@Override
public BaseMapper<Pic> getMapper() {
return picMapper;
}
@Override
public void createTasks(Long createUserId, Long taskId, Long packId, Long inInspectorId) {
picMapper.createTasks(createUserId, taskId, packId, inInspectorId);
}
@Override
public int deleteByPrimaryKey(Object b) {
try {
storageUtils.deletePic((Long) b);
} catch (Exception e) {
logger.info("删除图片失败", e);
}
return getMapper().deleteByPrimaryKey(b);
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.StorageMapper;
import com.viontech.label.platform.model.Storage;
import com.viontech.label.platform.service.adapter.StorageService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class StorageServiceImpl extends BaseServiceImpl<Storage> implements StorageService {
@Resource
private StorageMapper storageMapper;
@Override
public BaseMapper<Storage> getMapper() {
return storageMapper;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.SubTaskMapper;
import com.viontech.label.platform.model.SubTask;
import com.viontech.label.platform.model.SubTaskExample;
import com.viontech.label.platform.service.adapter.SubTaskService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class SubTaskServiceImpl extends BaseServiceImpl<SubTask> implements SubTaskService {
@Resource
private SubTaskMapper subTaskMapper;
@Override
public BaseMapper<SubTask> getMapper() {
return subTaskMapper;
}
@Override
public int countSubtasksOfUnassignedAnnotators(Long taskId) {
SubTaskExample subTaskExample = new SubTaskExample();
subTaskExample.createCriteria().andTaskIdEqualTo(taskId).andAnnotatorIdIsNull();
return countByExample(subTaskExample);
}
@Override
public int countSubtasksOfUnassignedOutInspectors(Long taskId) {
SubTaskExample subTaskExample = new SubTaskExample();
subTaskExample.createCriteria().andTaskIdEqualTo(taskId).andOutInspectorIdIsNull();
return countByExample(subTaskExample);
}
@Override
public void assignAnnotators(Long taskId, long annotatorId, long count) {
subTaskMapper.assignAnnotators(taskId, annotatorId, count);
}
@Override
public void assignOutInspector(Long taskId, long outInspectorId, long count) {
subTaskMapper.assignOutInspector(taskId, outInspectorId, count);
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.TaskPackMapper;
import com.viontech.label.platform.model.TaskPack;
import com.viontech.label.platform.service.adapter.TaskPackService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class TaskPackServiceImpl extends BaseServiceImpl<TaskPack> implements TaskPackService {
@Resource
private TaskPackMapper taskPackMapper;
@Override
public BaseMapper<TaskPack> getMapper() {
return taskPackMapper;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.TaskMapper;
import com.viontech.label.platform.model.Task;
import com.viontech.label.platform.model.TaskPack;
import com.viontech.label.platform.service.adapter.PicService;
import com.viontech.label.platform.service.adapter.TaskPackService;
import com.viontech.label.platform.service.adapter.TaskService;
import javax.annotation.Resource;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
public class TaskServiceImpl extends BaseServiceImpl<Task> implements TaskService {
@Resource
private TaskMapper taskMapper;
@Resource
private TaskPackService taskPackService;
@Resource
private PicService picService;
@Override
public BaseMapper<Task> getMapper() {
return taskMapper;
}
@Override
@Transactional(rollbackFor = Exception.class)
public Task addTaskWithPack(Task task, List<Long> packIds) {
task = insertSelective(task);
Long taskId = task.getId();
if (CollectionUtils.isNotEmpty(packIds)) {
for (Long packId : packIds) {
TaskPack taskPack = new TaskPack();
taskPack.setTaskId(taskId);
taskPack.setPackId(packId);
taskPackService.insertSelective(taskPack);
picService.createTasks(task.getCreateUser(), task.getId(), packId, task.getInInspectorId());
}
}
return task;
}
}
\ No newline at end of file
package com.viontech.label.platform.service.impl;
import cn.dev33.satoken.stp.StpUtil;
import com.viontech.label.core.base.RedisCache;
import com.viontech.label.core.constant.Constants;
import com.viontech.label.platform.base.BaseMapper;
import com.viontech.label.platform.base.BaseServiceImpl;
import com.viontech.label.platform.mapper.UserMapper;
import com.viontech.label.platform.model.User;
import com.viontech.label.platform.model.UserExample;
import com.viontech.label.platform.service.adapter.UserService;
import com.viontech.label.platform.service.main.RedissonService;
import com.viontech.label.platform.vo.UserVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.core.BoundHashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
@Service
@Slf4j
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {
@Resource
private UserMapper userMapper;
@Resource
private RedisTemplate<String, User> redisTemplate;
@Resource
private RedissonService redissonService;
@Override
public BaseMapper<User> getMapper() {
return userMapper;
}
@Override
public User selectByPrimaryKey(Object id) {
try {
return getUserMap().get(id);
} catch (Exception e) {
log.info("", e);
}
return super.selectByPrimaryKey(id);
}
@Override
@RedisCache(methodType = RedisCache.MethodType.ADD)
public User addUser(UserVo user) throws Exception {
String username = user.getUsername();
RedissonService.Result<Boolean> result = redissonService.lockAndRun("lock:addUser", 10L, 5L, TimeUnit.SECONDS, () -> {
UserExample userExample = new UserExample();
userExample.createCriteria().andUsernameEqualTo(username);
List<User> users = selectByExample(userExample);
return users.size() > 0;
});
if (!result.isSuccess()) {
throw result.getException();
}
boolean exists = result.getData();
if (!exists) {
this.insertSelective(user.getModel());
return user;
} else {
throw new Exception(user.getUsername() + " exists");
}
}
/**
* 从缓存中获取到的用户Map
*
* @return id-user 的散列表
* @throws Exception 分布式锁任务运行期间会产生的异常
*/
public Map<Long, User> getUserMap() throws Exception {
BoundHashOperations<String, Long, User> ops = redisTemplate.boundHashOps(Constants.REDIS_KEY_USER_MAP);
Map<Long, User> userMap = ops.entries();
if (userMap == null || userMap.size() == 0) {
RedissonService.Result<Map<Long, User>> result = redissonService.lockAndRun("lock:" + Constants.REDIS_KEY_USER_MAP, 10L, 5L, TimeUnit.SECONDS, () -> {
Map<Long, User> entries = ops.entries();
if (entries == null || entries.size() == 0) {
entries = getMapper().selectByExample(new UserExample()).stream().collect(Collectors.toMap(User::getId, x -> x, (a, b) -> a));
entries.put(-1L, null);
ops.putAll(entries);
ops.expire(1, TimeUnit.DAYS);
} else {
if (-1L == ops.getExpire()) {
ops.expire(1, TimeUnit.DAYS);
}
}
return entries;
});
if (!result.isSuccess()) {
throw result.getException();
}
userMap = result.getData();
}
return userMap;
}
@Override
public User getCurrentUser() {
User user = null;
RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes();
if (requestAttributes != null) {
user = (User) requestAttributes.getAttribute("user", 0);
}
if (user == null) {
long userId = StpUtil.getLoginIdAsLong();
user = selectByPrimaryKey(userId);
}
return user;
}
}
package com.viontech.label.platform.service.main;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
/**
* .
*
* @author 谢明辉
* @date 2019-8-7 9:57
*/
@Service
public class RedissonService {
private static final Logger log = LoggerFactory.getLogger(RedissonService.class);
@Resource
private RedissonClient redissonClient;
public void lockAndRun(String lockName, Long leaseTime, Runnable runnable) {
this.lockAndRun(lockName, leaseTime, TimeUnit.SECONDS, runnable);
}
public void lockAndRun(String lockName, Long tryTime, Long leaseTime, Runnable runnable) {
this.lockAndRun(lockName, tryTime, leaseTime, TimeUnit.SECONDS, runnable);
}
public void lockAndRun(String lockName, Long leaseTime, TimeUnit timeUnit, Runnable runnable) {
this.lockAndRun(lockName, null, leaseTime, timeUnit, runnable);
}
public <T> Result<T> lockAndRun(String lockName, Long tryTime, Long leaseTime, TimeUnit timeUnit, Callable<T> callable) {
Result<T> result = new Result<>();
RLock lock = redissonClient.getLock(lockName);
boolean isLock = true;
if (tryTime != null) {
try {
isLock = lock.tryLock(tryTime, leaseTime, timeUnit);
} catch (InterruptedException e) {
result.setSuccess(false);
result.setException(e);
}
} else {
lock.lock(leaseTime, timeUnit);
}
if (isLock) {
T t;
long begin = System.currentTimeMillis();
long end;
try {
t = callable.call();
end = System.currentTimeMillis();
} catch (Exception e) {
result.setSuccess(false);
result.setException(e);
result.setRunningTime(System.currentTimeMillis() - begin);
return result;
}finally {
try {
lock.unlock();
} catch (Exception ignore) {
}
}
result.setSuccess(true);
result.setData(t);
result.setRunningTime(end - begin);
} else {
result.setSuccess(false);
result.setException(new RuntimeException("无法获取分布式锁,任务未执行"));
}
return result;
}
public static class Result<T>{
private T data;
private boolean success;
private long runningTime;
private Exception exception;
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public long getRunningTime() {
return runningTime;
}
public void setRunningTime(long runningTime) {
this.runningTime = runningTime;
}
public Exception getException() {
return exception;
}
public void setException(Exception exception) {
this.exception = exception;
}
}
public void lockAndRun(String lockName, Long tryTime, Long leaseTime, TimeUnit timeUnit, Runnable runnable){
RLock lock = redissonClient.getLock(lockName);
try {
boolean isLock = true;
if (tryTime != null) {
isLock = lock.tryLock(tryTime, leaseTime, timeUnit);
} else {
lock.lock(leaseTime, timeUnit);
}
if (isLock) {
try {
runnable.run();
} catch (Exception e) {
log.error("runnable出错", e);
} finally {
try {
lock.unlock();
} catch (Exception ignore) {
}
}
}
} catch (Exception e) {
log.error("分布式锁出错", e);
}
}
}
package com.viontech.label.platform.service.main;
import cn.dev33.satoken.stp.StpUtil;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
import com.viontech.keliu.model.*;
import com.viontech.keliu.util.DateUtil;
import com.viontech.keliu.websocket.AlgApiClient;
import com.viontech.label.core.constant.Constants;
import com.viontech.label.core.constant.LogOperateType;
import com.viontech.label.core.constant.PicStatus;
import com.viontech.label.platform.mapper.PicMapper;
import com.viontech.label.platform.model.*;
import com.viontech.label.platform.service.adapter.LogService;
import com.viontech.label.platform.service.adapter.PackService;
import com.viontech.label.platform.service.adapter.PicService;
import com.viontech.label.platform.service.adapter.UserService;
import com.viontech.label.platform.utils.StorageUtils;
import com.viontech.label.platform.vo.PicVo;
import com.viontech.label.platform.vo.ReidUploadData;
import com.viontech.label.platform.websocket.ReidWebsocket;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.RMap;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
/**
* .
*
* @author 谢明辉
* @date 2021/6/21
*/
@Service
@Slf4j
public class ReidService {
@Resource
private PicService picService;
@Resource
private LogService logService;
@Resource
private PackService packService;
@Resource
private StorageUtils storageUtils;
@Resource
private RedissonService redissonService;
@Autowired(required = false)
private AlgApiClient matchClient;
@Resource
private ObjectMapper objectMapper;
@Resource
private RedisTemplate<String, Object> redisTemplate;
@Resource
private RedissonClient redissonClient;
@Resource
private UserService userService;
/**
* 接收并存储上传工具上传的图片,特征和数据
*/
public void savePicAndFeature(ReidUploadData data) throws Exception {
Long packId = data.getPackId();
String poolName = Constants.getReidPoolName(packId);
// 存储图片文件
MultipartFile picFile = data.getPic();
Pic pic = new Pic();
pic.setPackId(packId);
pic.setName(picFile.getOriginalFilename());
storageUtils.setPic(pic, picFile.getBytes());
// 存储特征文件
MultipartFile featureFile = data.getFeature();
byte[] featureFileBytes = featureFile.getBytes();
storageUtils.setFile(packId, featureFile.getOriginalFilename(), featureFileBytes);
// 插入图片数据
Pack pack = storageUtils.getPack(packId);
pic.setStorageId(pack.getStorageId());
pic.setUnid(data.getUnid());
pic.setPersonUnid(data.getPersonUnid());
pic.setStatus(PicStatus.TO_BE_LABELED.val);
pic.setCreateTime(data.getCountTime());
picService.insertSelective(pic);
// 建立特征池,存储特征信息
Boolean hasKey = redisTemplate.hasKey(poolName);
if (hasKey != null && !hasKey) {
redissonService.lockAndRun("lock:" + poolName, 20L, 18L, TimeUnit.SECONDS, () -> {
Boolean hasKey1 = redisTemplate.hasKey(poolName);
if (hasKey1 != null && !hasKey1) {
try {
CompletableFuture<AlgResult> response = matchClient.EASY_POOL_API.queryPool(poolName);
AlgResult result = response.get(20, TimeUnit.SECONDS);
if (result.getErrCode().equals(4)) {
CompletableFuture<AlgResult> future = matchClient.EASY_POOL_API.createEmptyPool(poolName);
future.get();
}
redisTemplate.opsForValue().set(poolName, 1);
redisTemplate.expire(poolName, 10L, TimeUnit.MINUTES);
} catch (Exception e) {
log.info("", e);
}
}
});
}
Feature feature = objectMapper.readValue(featureFileBytes, Feature.class);
Person person = new Person().setPersonId(data.getPersonUnid()).setBodyFeatures(getBodyFeatures(feature)).setCounttime(data.getCountTime());
CompletableFuture<AlgResult> future = matchClient.EASY_PERSON_API.addPerson(poolName, Lists.newArrayList(person));
AlgResult result1 = future.get(20, TimeUnit.SECONDS);
log.info(result1.toString());
}
/**
* 将多个人合并
*/
public void mergePerson(String[] personUnidArr, String currentPerson, Long packId) throws Exception {
String newPersonUnid;
ArrayList<String> needMergePersonUnidList = new ArrayList<>(Arrays.asList(personUnidArr));
if (currentPerson != null && needMergePersonUnidList.contains(currentPerson)) {
newPersonUnid = currentPerson;
} else {
newPersonUnid = needMergePersonUnidList.get(0);
}
for (String personUnid : needMergePersonUnidList) {
if (!Objects.equals(personUnid, currentPerson)) {
if (isLabeling(personUnid, packId) != null) {
throw new RuntimeException("有标注中的人被选择");
}
}
}
String poolName = Constants.getReidPoolName(packId);
List<String> personUnidNeedDeleteAndUpdate = needMergePersonUnidList.subList(0, 1);
// 更新personUnid
PicExample picExample = new PicExample();
picExample.createCriteria().andPersonUnidIn(needMergePersonUnidList);
Pic pic = new Pic();
pic.setPersonUnid(newPersonUnid);
pic.setStatus(PicStatus.TO_BE_LABELED.val);
picService.updateByExampleSelective(pic, picExample);
// 删除和更新特征池
CompletableFuture<AlgResult> future = matchClient.EASY_PERSON_API.deletePerson(poolName, personUnidNeedDeleteAndUpdate);
future.get();
ArrayList<BodyFeature> bodyFeatures = new ArrayList<>();
Person person = new Person().setPersonId(newPersonUnid).setBodyFeatures(bodyFeatures);
picExample = new PicExample();
picExample.createCriteria().andPersonUnidEqualTo(newPersonUnid);
List<Pic> pics = picService.selectByExample(picExample);
ArrayList<Long> ids = new ArrayList<>();
for (Pic item : pics) {
BodyFeature bodyFeature = storageUtils.getBodyFeature(item.getId());
bodyFeatures.add(bodyFeature);
ids.add(item.getId());
}
future = matchClient.EASY_PERSON_API.updatePerson(poolName, person);
future.get();
storageUtils.removePicCache(ids.toArray(new Long[]{}));
// 删除完成标注缓存
RMap<String, User> labelingSet = redissonClient.getMap("labeling:" + packId);
labelingSet.fastRemove(personUnidArr);
// 插入记录
logMergePerson(personUnidArr);
// websocket
ReidWebsocket.sendInfo(packId, new ReidWebsocket.Message().setCommand("mergePerson").setData(needMergePersonUnidList));
}
/**
* 合并多张图作为新人
*/
public void mergeAsNewPerson(Long[] idArr, Long packId) throws Exception {
String poolName = Constants.getReidPoolName(packId);
// 获取被合并的图片对应的personUnid集合
PicExample picExample = new PicExample();
picExample.createCriteria().andIdIn(Arrays.asList(idArr));
List<Pic> pics = picService.selectByExample(picExample);
Set<String> originalPersonUnidSet = pics.stream().map(Pic::getPersonUnid).collect(Collectors.toSet());
// 更新被合并的人的personUnid,然后添加到特征池中
Pic temp = new Pic();
String newPersonUnid = UUID.randomUUID().toString();
temp.setPersonUnid(newPersonUnid);
temp.setStatus(PicStatus.TO_BE_LABELED.val);
picService.updateByExampleSelective(temp, picExample);
ArrayList<BodyFeature> bodyFeatures = new ArrayList<>();
Person person = new Person().setPersonId(newPersonUnid).setBodyFeatures(bodyFeatures);
for (Long picId : idArr) {
BodyFeature bodyFeature = storageUtils.getBodyFeature(picId);
bodyFeatures.add(bodyFeature);
}
CompletableFuture<AlgResult> future = matchClient.EASY_PERSON_API.addPerson(poolName, Collections.singletonList(person));
future.get();
// 更新被合并的人对应的person
picExample = new PicExample();
picExample.createCriteria().andPersonUnidIn(new ArrayList<>(originalPersonUnidSet));
pics = picService.selectByExample(picExample);
Map<String, List<Pic>> picMap = pics.stream().collect(Collectors.groupingBy(Pic::getPersonUnid, Collectors.toList()));
Set<String> keySet = picMap.keySet();
for (String personUnid : originalPersonUnidSet) {
if (!keySet.contains(personUnid)) {
future = matchClient.EASY_PERSON_API.deletePerson(poolName, Collections.singletonList(personUnid));
future.get();
}
}
for (Map.Entry<String, List<Pic>> entry : picMap.entrySet()) {
String personUnid = entry.getKey();
bodyFeatures = new ArrayList<>();
person = new Person().setPersonId(personUnid).setBodyFeatures(bodyFeatures);
for (Pic pic : entry.getValue()) {
BodyFeature bodyFeature = storageUtils.getBodyFeature(pic.getId());
bodyFeatures.add(bodyFeature);
}
future = matchClient.EASY_PERSON_API.updatePerson(poolName, person);
future.get();
}
storageUtils.removePicCache(idArr);
// 写入日志
logMergeAsNewPerson(idArr);
// websocket
HashMap<String, Object> message = new HashMap<>(2);
message.put("personUnid", newPersonUnid);
message.put("picIdArr", idArr);
ReidWebsocket.sendInfo(packId, new ReidWebsocket.Message().setCommand("mergeAsNewPerson").setData(message));
}
/**
* 将单张图与某个人合并
*/
public void mergeTo(Long[] picIdArr, String personUnid, String currentPerson, Long packId) throws Exception {
if (!Objects.equals(personUnid, currentPerson)) {
if (isLabeling(personUnid, packId) != null) {
throw new RuntimeException("有标注中的人被选择");
}
}
String poolName = Constants.getReidPoolName(packId);
String originalPersonUnid = null;
for (Long picId : picIdArr) {
PicVo pic = storageUtils.getPic(picId);
originalPersonUnid = pic.getPersonUnid();
// 更新pic的personUnid并加入到特征池中
PicMapper picMapper = (PicMapper) picService.getMapper();
picMapper.mergeTo(picId, personUnid);
List<BodyFeature> bodyFeatures = Collections.singletonList(storageUtils.getBodyFeature(picId));
Person person = new Person().setPersonId(personUnid).setBodyFeatures(bodyFeatures);
CompletableFuture<AlgResult> future = matchClient.EASY_PERSON_API.addPerson(poolName, Collections.singletonList(person));
future.get();
}
// 更新pic对应的原来的person
updatePoolByPersonUnid(originalPersonUnid, poolName);
// 移除缓存
for (Long picId : picIdArr) {
storageUtils.removePicCache(picId);
}
// 写入日志
logMergeTo(picIdArr, personUnid);
// websocket
HashMap<String, Object> body = new HashMap<>(2);
body.put("picIdArr", picIdArr);
body.put("personUnid", personUnid);
ReidWebsocket.sendInfo(packId, new ReidWebsocket.Message().setCommand("mergeTo").setData(body));
}
/**
* 标记人为纯净的(修改人对应的所有的图片状态)
*/
public void setPackPure(String personUnid, Long packId) {
PicExample picExample = new PicExample();
picExample.createCriteria().andPersonUnidEqualTo(personUnid);
Pic pic = new Pic();
pic.setStatus(PicStatus.FINISH_LABELING.val);
picService.updateByExampleSelective(pic, picExample);
//删除缓存
RMap<String, User> labelingSet = redissonClient.getMap("labeling:" + packId);
labelingSet.remove(personUnid);
//日志
logLabelFinished(personUnid);
//websocket
ReidWebsocket.sendInfo(packId, new ReidWebsocket.Message().setCommand("labelFinished").setData(personUnid));
}
/**
* 根据所选择的图片获取相似的人
*/
public Map<String, List<Pic>> getSimilarPerson(Long[] picIdArr, Long packId, Long size, Integer timeInterval) {
List<BodyFeature> bodyFeatures = new ArrayList<>();
String reidPoolName = Constants.getReidPoolName(packId);
Set<String> personUnidSet = new HashSet<>();
Date countTimeGTE = null;
Date countTimeLTE = null;
for (Long picId : picIdArr) {
PicVo pic = storageUtils.getPic(picId);
if (pic == null) {
continue;
}
String personUnid = pic.getPersonUnid();
personUnidSet.add(personUnid);
if (timeInterval != null) {
Date max = DateUtil.addMinutes(pic.getCreateTime(), timeInterval);
Date min = DateUtil.addMinutes(pic.getCreateTime(), -timeInterval);
countTimeLTE = countTimeLTE == null ? max : max.compareTo(countTimeLTE) > 0 ? max : countTimeLTE;
countTimeGTE = countTimeGTE == null ? min : min.compareTo(countTimeGTE) < 0 ? min : countTimeLTE;
}
BodyFeature feature = storageUtils.getBodyFeature(picId);
if (feature == null) {
continue;
}
bodyFeatures.add(feature);
}
if (bodyFeatures.size() == 0) {
return null;
}
Person person = new Person().setBodyFeatures(bodyFeatures).setCounttimeGTE(countTimeGTE).setCounttimeLTE(countTimeLTE);
try {
HashMap<String, Object> options = new HashMap<>(2);
options.put("size", size + picIdArr.length);
options.put("agg", true);
CompletableFuture<AlgResult> future = matchClient.matchPerson(2, person, reidPoolName, Collections.emptyList(), options);
AlgResult result = future.get();
List<Person> matchBodies = result.getMatchBodies();
List<String> personUnidList = matchBodies.stream().map(Person::getPersonId).filter(x -> !personUnidSet.contains(x)).collect(Collectors.toList());
PicExample picExample = new PicExample();
picExample.createCriteria().andPersonUnidIn(personUnidList);
List<Pic> pics = picService.selectByExample(picExample);
return pics.stream().collect(Collectors.groupingBy(Pic::getPersonUnid, Collectors.toList()));
} catch (Exception e) {
log.info("", e);
return null;
}
}
/**
* 完全删除一张图片
* 1.获取personUnid
* 2.删除数据库记录和缓存记录
* 3.更新或删除特征池记录
*/
public void deletePic(Long[] picIdArr, Long packId) {
String reidPoolName = Constants.getReidPoolName(packId);
Set<String> personUnidSet = new HashSet<>();
for (Long picId : picIdArr) {
PicVo pic = storageUtils.getPic(picId);
personUnidSet.add(pic.getPersonUnid());
}
for (String item : personUnidSet) {
if (isLabeling(item, packId) != null) {
throw new RuntimeException("有正在标注中的图片被选择");
}
}
for (Long picId : picIdArr) {
picService.deleteByPrimaryKey(picId);
storageUtils.removePicCache(picId);
}
try {
for (String item : personUnidSet) {
updatePoolByPersonUnid(item, reidPoolName);
}
} catch (Exception e) {
log.info("", e);
}
//写入日志
logDeletePic(picIdArr);
//websocket
ReidWebsocket.sendInfo(packId, new ReidWebsocket.Message().setCommand("deletePic").setData(picIdArr));
}
/**
* 标注中记录
*
* @param personUnid 需要被改变状态的人
* @param packId 图包Id
*/
public boolean labeling(String personUnid, Long packId) {
User currentUser = userService.getCurrentUser();
// 添加缓存
RMap<String, User> labelingSet = redissonClient.getMap("labeling:" + packId);
if (labelingSet.containsKey(personUnid)) {
return false;
}
// 数据库更新状态
Pic pic = new Pic();
pic.setStatus(PicStatus.LABELING.val);
PicExample picExample = new PicExample();
picExample.createCriteria().andPersonUnidEqualTo(personUnid);
picService.updateByExampleSelective(pic, picExample);
// redis 进行记录
labelingSet.put(personUnid, currentUser);
//websocket
HashMap<String, Object> item = new HashMap<>(2);
item.put("user", currentUser);
item.put("personUnid", personUnid);
ReidWebsocket.sendInfo(packId, new ReidWebsocket.Message().setCommand("labeling").setData(item));
return true;
}
public void exitLabeling(String personUnid, Long packId) {
// 数据库更新状态
Pic pic = new Pic();
pic.setStatus(PicStatus.TO_BE_LABELED.val);
PicExample picExample = new PicExample();
picExample.createCriteria().andPersonUnidEqualTo(personUnid).andPackIdEqualTo(packId);
List<Pic> pics = picService.selectByExample(picExample);
if (pics.size() > 0 && pics.get(0).getStatus() == (PicStatus.FINISH_LABELING.val)) {
return;
}
picService.updateByExampleSelective(pic, picExample);
// redis 删除缓存
RMap<String, User> labelingSet = redissonClient.getMap("labeling:" + packId);
labelingSet.remove(personUnid);
//websocket
ReidWebsocket.sendInfo(packId, new ReidWebsocket.Message().setCommand("exitLabeling").setData(personUnid));
}
private List<BodyFeature> getBodyFeatures(Feature feature) {
List<Data> datas = feature.getDatas();
if (datas == null || datas.size() == 0) {
return null;
}
Data data = datas.stream().filter(item -> "server".equals(item.getType())).findFirst().orElse(null);
if (data == null) {
return null;
}
Double[] featureData = data.getData();
BodyFeature bodyFeature = new BodyFeature().setFeature(featureData).setBid(feature.getFilename());
return Collections.singletonList(bodyFeature);
}
private void updatePoolByPersonUnid(String personUnid, String poolName) throws Exception {
if (personUnid == null || poolName == null) {
return;
}
PicExample picExample = new PicExample();
picExample.createCriteria().andPersonUnidEqualTo(personUnid);
List<Pic> pics = picService.selectByExample(picExample);
if (pics.size() > 0) {
ArrayList<BodyFeature> bodyFeatures = new ArrayList<>();
Person person = new Person().setPersonUnid(personUnid).setBodyFeatures(bodyFeatures);
for (Pic item : pics) {
BodyFeature bodyFeature = storageUtils.getBodyFeature(item.getId());
bodyFeatures.add(bodyFeature);
}
CompletableFuture<AlgResult> future = matchClient.EASY_PERSON_API.updatePerson(poolName, person);
future.get();
} else {
CompletableFuture<AlgResult> future = matchClient.EASY_PERSON_API.deletePerson(poolName, Collections.singletonList(personUnid));
future.get();
}
}
private void logMergePerson(String[] personUnidArr) {
Log log = new Log();
long userId = StpUtil.getLoginIdAsLong();
log.setOperateUser(userId);
log.setOperate(Arrays.toString(personUnidArr));
log.setOperateType(LogOperateType.REID_MERGE_PERSON.val);
logService.insertSelective(log);
}
private void logMergeTo(Long[] picIdArr, String personUnid) {
HashMap<String, Object> op = new HashMap<>(2);
op.put("picIdArr", picIdArr);
op.put("personUnid", personUnid);
String opStr = null;
try {
opStr = objectMapper.writeValueAsString(op);
} catch (JsonProcessingException e) {
log.error("", e);
}
Log log = new Log();
long userId = StpUtil.getLoginIdAsLong();
log.setOperateUser(userId);
log.setOperate(opStr);
log.setOperateType(LogOperateType.REID_MERGE_TO.val);
logService.insertSelective(log);
}
private void logMergeAsNewPerson(Long[] picIdArr) {
Log log = new Log();
long userId = StpUtil.getLoginIdAsLong();
log.setOperateUser(userId);
log.setOperate(Arrays.toString(picIdArr));
log.setOperateType(LogOperateType.REID_MERGE_PERSON.val);
logService.insertSelective(log);
}
private void logDeletePic(Long[] picIdArr) {
Log log = new Log();
long userId = StpUtil.getLoginIdAsLong();
log.setOperateUser(userId);
log.setOperate(Arrays.toString(picIdArr));
log.setOperateType(LogOperateType.REID_MERGE_PERSON.val);
logService.insertSelective(log);
}
private void logLabelFinished(String personUnid) {
Log log = new Log();
long userId = StpUtil.getLoginIdAsLong();
log.setOperateUser(userId);
log.setOperateType(LogOperateType.REID_LABEL_FINISHED.val);
log.setOperate(personUnid);
logService.insertSelective(log);
}
public User isLabeling(String personUnid, Long packId) {
RMap<String, User> labelingSet = redissonClient.getMap("labeling:" + packId);
return labelingSet.get(personUnid);
}
}
package com.viontech.label.platform.utils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.viontech.keliu.model.BodyFeature;
import com.viontech.keliu.model.Data;
import com.viontech.keliu.model.Feature;
import com.viontech.label.core.constant.Constants;
import com.viontech.label.platform.model.*;
import com.viontech.label.platform.service.adapter.PackService;
import com.viontech.label.platform.service.adapter.PicService;
import com.viontech.label.platform.service.adapter.StorageService;
import com.viontech.label.platform.service.main.RedissonService;
import com.viontech.label.platform.vo.PicVo;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.LocalCachedMapOptions;
import org.redisson.api.RBucket;
import org.redisson.api.RLocalCachedMap;
import org.redisson.api.RedissonClient;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.io.File;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
/**
* .
*
* @author 谢明辉
* @date 2021/5/31
*/
@Component
@Slf4j
public class StorageUtils {
@Resource
private PackService packService;
@Resource
private StorageService storageService;
@Resource
private PicService picService;
@Resource
private ObjectMapper objectMapper;
@Resource
private RedissonService redissonService;
@Resource
private RedissonClient redissonClient;
public PicVo getPic(Long picId) {
String redisKey = Constants.getRedisKeyPic(picId);
PicVo picVo = redissonClient.<PicVo>getBucket(redisKey).get();
if (picVo == null) {
Pic pic = picService.selectByPrimaryKey(picId);
if (pic == null) {
return null;
}
picVo = new PicVo(pic);
Long packId = pic.getPackId();
byte[] bytes;
try {
bytes = getFile(packId, pic.getName());
} catch (Exception e) {
log.info("", e);
return null;
}
picVo.setImage(bytes);
RBucket<PicVo> bucket = redissonClient.getBucket(redisKey);
bucket.set(picVo);
bucket.expire(12, TimeUnit.HOURS);
}
return picVo;
}
public boolean deletePic(Long picId) throws Exception {
Pic pic = picService.selectByPrimaryKey(picId);
Long packId = pic.getPackId();
return deleteFile(packId, pic.getName());
}
public void setPic(Pic pic, byte[] data) throws Exception {
Long packId = pic.getPackId();
String picName = pic.getName();
setFile(packId, picName, data);
}
public byte[] getFile(Long packId, String fileName) throws Exception {
Pack pack = getPack(packId);
Storage storage = getStorage(pack.getStorageId());
return storage.getInnerStorage().get(pack.getUnid() + File.separator + fileName);
}
public void setFile(Long packId, String fileName, byte[] data) throws Exception {
if (packId == null || fileName == null) {
throw new RuntimeException("packId or name can't be null");
}
Pack pack = getPack(packId);
Long storageId = pack.getStorageId();
Storage storage = getStorage(storageId);
String path = pack.getUnid() + File.separator + fileName;
storage.getInnerStorage().set(path, data);
}
public boolean deleteFile(Long packId, String fileName) throws Exception {
Pack pack = getPack(packId);
Long storageId = pack.getStorageId();
Storage storage = getStorage(storageId);
String path = pack.getUnid() + File.separator + fileName;
return storage.getInnerStorage().delete(path);
}
public Feature getFeatureByPic(Long picId) {
try {
PicVo pic = getPic(picId);
Long packId = pic.getPackId();
String name = pic.getName() + ".feature";
byte[] featureFileByte = getFile(packId, name);
return objectMapper.readValue(featureFileByte, Feature.class);
} catch (Exception e) {
log.info("获取特征失败", e);
}
return null;
}
public BodyFeature getBodyFeature(Long picId) {
Feature featureByPic = getFeatureByPic(picId);
List<Data> datas = featureByPic.getDatas();
if (datas == null || datas.size() == 0) {
return null;
}
Data data = datas.stream().filter(item -> "server".equals(item.getType())).findFirst().orElse(null);
if (data == null) {
return null;
}
Double[] featureData = data.getData();
return new BodyFeature().setFeature(featureData).setBid(featureByPic.getFilename());
}
public Storage getStorage(Long storageId) {
RLocalCachedMap<Long, Storage> storageMap = redissonClient.getLocalCachedMap(Constants.REDIS_KEY_STORAGE_MAP, LocalCachedMapOptions.defaults());
if (!storageMap.isExists()) {
refreshStorage();
}
Storage storage = storageMap.get(storageId);
if (storage == null) {
refreshStorage();
storage = storageMap.get(storageId);
if (storage == null) {
throw new RuntimeException("无法找到Id" + storageId + "对应的storage");
}
}
return storage;
}
public Pack getPack(Long packId) {
RLocalCachedMap<Long, Pack> packMap = redissonClient.getLocalCachedMap(Constants.REDIS_KEY_PACK_MAP, LocalCachedMapOptions.defaults());
if (!packMap.isExists()) {
refreshPack();
}
Pack pack = packMap.get(packId);
if (pack == null) {
refreshPack();
pack = packMap.get(packId);
if (pack == null) {
throw new RuntimeException("无法找到Id" + packId + "对应的pack");
}
}
return pack;
}
public synchronized void refreshStorage() {
redissonService.lockAndRun("lock:" + Constants.REDIS_KEY_STORAGE_MAP, 10L, 8L, () -> {
RLocalCachedMap<Long, Storage> storageMap = redissonClient.getLocalCachedMap(Constants.REDIS_KEY_STORAGE_MAP, LocalCachedMapOptions.defaults());
List<Storage> storages = storageService.selectByExample(new StorageExample());
Map<Long, Storage> map = storages.stream().collect(Collectors.toMap(Storage::getId, x -> x, (a, b) -> a));
storageMap.putAll(map);
});
}
public synchronized void refreshPack() {
redissonService.lockAndRun("lock:" + Constants.REDIS_KEY_PACK_MAP, 10L, 8L, () -> {
RLocalCachedMap<Long, Pack> packMap = redissonClient.getLocalCachedMap(Constants.REDIS_KEY_PACK_MAP, LocalCachedMapOptions.defaults());
List<Pack> packs = packService.selectByExample(new PackExample());
Map<Long, Pack> map = packs.stream().collect(Collectors.toMap(Pack::getId, x -> x, (a, b) -> a));
packMap.putAll(map);
});
}
public int removePicCache(Long... picId) {
int count = 0;
for (Long item : picId) {
RBucket<Object> bucket = redissonClient.getBucket(Constants.getRedisKeyPic(item));
count += bucket.delete() ? 1 : 0;
}
return count;
}
}
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.Account;
import com.viontech.label.platform.vobase.AccountVoBase;
public class AccountVo extends AccountVoBase {
public AccountVo() {
super();
}
public AccountVo(Account account) {
super(account);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.Dict;
import com.viontech.label.platform.vobase.DictVoBase;
public class DictVo extends DictVoBase {
public DictVo() {
super();
}
public DictVo(Dict dict) {
super(dict);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.Log;
import com.viontech.label.platform.vobase.LogVoBase;
public class LogVo extends LogVoBase {
public LogVo() {
super();
}
public LogVo(Log log) {
super(log);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.PackTag;
import com.viontech.label.platform.vobase.PackTagVoBase;
public class PackTagVo extends PackTagVoBase {
public PackTagVo() {
super();
}
public PackTagVo(PackTag packTag) {
super(packTag);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.vobase.PackVoBase;
public class PackVo extends PackVoBase {
public PackVo() {
super();
}
public PackVo(Pack pack) {
super(pack);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.vobase.PicVoBase;
import org.springframework.web.multipart.MultipartFile;
public class PicVo extends PicVoBase {
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private MultipartFile file;
@JsonIgnore
private byte[] image;
public PicVo() {
super();
}
public PicVo(Pic pic) {
super(pic);
}
public MultipartFile getFile() {
return file;
}
public void setFile(MultipartFile file) {
this.file = file;
}
public byte[] getImage() {
return image;
}
public void setImage(byte[] image) {
this.image = image;
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;
import java.util.Date;
/**
* .
*
* @author 谢明辉
* @date 2021/6/18
*/
@Getter
@Setter
public class ReidUploadData {
private MultipartFile pic;
private MultipartFile feature;
private Long packId;
private String unid;
private String personUnid;
private Date countTime;
}
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.Storage;
import com.viontech.label.platform.vobase.StorageVoBase;
public class StorageVo extends StorageVoBase {
public StorageVo() {
super();
}
public StorageVo(Storage storage) {
super(storage);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.SubTask;
import com.viontech.label.platform.vobase.SubTaskVoBase;
public class SubTaskVo extends SubTaskVoBase {
public SubTaskVo() {
super();
}
public SubTaskVo(SubTask subTask) {
super(subTask);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.TaskPack;
import com.viontech.label.platform.vobase.TaskPackVoBase;
public class TaskPackVo extends TaskPackVoBase {
public TaskPackVo() {
super();
}
public TaskPackVo(TaskPack taskPack) {
super(taskPack);
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import com.viontech.label.platform.model.Task;
import com.viontech.label.platform.vobase.TaskVoBase;
import java.util.List;
public class TaskVo extends TaskVoBase {
private List<Long> packIds;
public TaskVo() {
super();
}
public TaskVo(Task task) {
super(task);
}
public List<Long> getPackIds() {
return packIds;
}
public void setPackIds(List<Long> packIds) {
this.packIds = packIds;
}
}
\ No newline at end of file
package com.viontech.label.platform.vo;
import cn.dev33.satoken.stp.SaTokenInfo;
import com.viontech.label.platform.model.User;
import com.viontech.label.platform.vobase.UserVoBase;
public class UserVo extends UserVoBase {
private SaTokenInfo tokenInfo;
public UserVo() {
super();
}
public UserVo(User user) {
super(user);
}
public SaTokenInfo getTokenInfo() {
return tokenInfo;
}
public void setTokenInfo(SaTokenInfo tokenInfo) {
this.tokenInfo = tokenInfo;
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Account;
import java.util.ArrayList;
import java.util.Date;
public class AccountVoBase extends Account implements VoInterface<Account> {
private Account account;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private Boolean createUser_null;
@JsonIgnore
private ArrayList<Long> createUser_arr;
@JsonIgnore
private Long createUser_gt;
@JsonIgnore
private Long createUser_lt;
@JsonIgnore
private Long createUser_gte;
@JsonIgnore
private Long createUser_lte;
@JsonIgnore
private ArrayList<String> name_arr;
@JsonIgnore
private String name_like;
@JsonIgnore
private Boolean managerId_null;
@JsonIgnore
private ArrayList<Long> managerId_arr;
@JsonIgnore
private Long managerId_gt;
@JsonIgnore
private Long managerId_lt;
@JsonIgnore
private Long managerId_gte;
@JsonIgnore
private Long managerId_lte;
@JsonIgnore
private Boolean description_null;
@JsonIgnore
private ArrayList<String> description_arr;
@JsonIgnore
private String description_like;
public AccountVoBase() {
this(null);
}
public AccountVoBase(Account account) {
if(account == null) {
account = new Account();
}
this.account = account;
}
@JsonIgnore
public Account getModel() {
return account;
}
public void setModel(Account account) {
this.account = account;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public Boolean getCreateUser_null() {
return createUser_null;
}
public void setCreateUser_null(Boolean createUser_null) {
this.createUser_null = createUser_null;
}
public ArrayList<Long> getCreateUser_arr() {
return createUser_arr;
}
public void setCreateUser_arr(ArrayList<Long> createUser_arr) {
this.createUser_arr = createUser_arr;
}
public Long getCreateUser_gt() {
return createUser_gt;
}
public void setCreateUser_gt(Long createUser_gt) {
this.createUser_gt = createUser_gt;
}
public Long getCreateUser_lt() {
return createUser_lt;
}
public void setCreateUser_lt(Long createUser_lt) {
this.createUser_lt = createUser_lt;
}
public Long getCreateUser_gte() {
return createUser_gte;
}
public void setCreateUser_gte(Long createUser_gte) {
this.createUser_gte = createUser_gte;
}
public Long getCreateUser_lte() {
return createUser_lte;
}
public void setCreateUser_lte(Long createUser_lte) {
this.createUser_lte = createUser_lte;
}
public Long getCreateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateUser();
}
public void setCreateUser(Long createUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateUser(createUser);
}
public ArrayList<String> getName_arr() {
return name_arr;
}
public void setName_arr(ArrayList<String> name_arr) {
this.name_arr = name_arr;
}
public String getName_like() {
return name_like;
}
public void setName_like(String name_like) {
this.name_like = name_like;
}
public String getName() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getName();
}
public void setName(String name) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setName(name);
}
public Boolean getManagerId_null() {
return managerId_null;
}
public void setManagerId_null(Boolean managerId_null) {
this.managerId_null = managerId_null;
}
public ArrayList<Long> getManagerId_arr() {
return managerId_arr;
}
public void setManagerId_arr(ArrayList<Long> managerId_arr) {
this.managerId_arr = managerId_arr;
}
public Long getManagerId_gt() {
return managerId_gt;
}
public void setManagerId_gt(Long managerId_gt) {
this.managerId_gt = managerId_gt;
}
public Long getManagerId_lt() {
return managerId_lt;
}
public void setManagerId_lt(Long managerId_lt) {
this.managerId_lt = managerId_lt;
}
public Long getManagerId_gte() {
return managerId_gte;
}
public void setManagerId_gte(Long managerId_gte) {
this.managerId_gte = managerId_gte;
}
public Long getManagerId_lte() {
return managerId_lte;
}
public void setManagerId_lte(Long managerId_lte) {
this.managerId_lte = managerId_lte;
}
public Long getManagerId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getManagerId();
}
public void setManagerId(Long managerId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setManagerId(managerId);
}
public Boolean getDescription_null() {
return description_null;
}
public void setDescription_null(Boolean description_null) {
this.description_null = description_null;
}
public ArrayList<String> getDescription_arr() {
return description_arr;
}
public void setDescription_arr(ArrayList<String> description_arr) {
this.description_arr = description_arr;
}
public String getDescription_like() {
return description_like;
}
public void setDescription_like(String description_like) {
this.description_like = description_like;
}
public String getDescription() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getDescription();
}
public void setDescription(String description) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setDescription(description);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Dict;
import java.util.ArrayList;
import java.util.Date;
public class DictVoBase extends Dict implements VoInterface<Dict> {
private Dict dict;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private Boolean createUser_null;
@JsonIgnore
private ArrayList<Long> createUser_arr;
@JsonIgnore
private Long createUser_gt;
@JsonIgnore
private Long createUser_lt;
@JsonIgnore
private Long createUser_gte;
@JsonIgnore
private Long createUser_lte;
@JsonIgnore
private ArrayList<String> key_arr;
@JsonIgnore
private String key_like;
@JsonIgnore
private ArrayList<Integer> value_arr;
@JsonIgnore
private Integer value_gt;
@JsonIgnore
private Integer value_lt;
@JsonIgnore
private Integer value_gte;
@JsonIgnore
private Integer value_lte;
@JsonIgnore
private Boolean description_null;
@JsonIgnore
private ArrayList<String> description_arr;
@JsonIgnore
private String description_like;
public DictVoBase() {
this(null);
}
public DictVoBase(Dict dict) {
if(dict == null) {
dict = new Dict();
}
this.dict = dict;
}
@JsonIgnore
public Dict getModel() {
return dict;
}
public void setModel(Dict dict) {
this.dict = dict;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public Boolean getCreateUser_null() {
return createUser_null;
}
public void setCreateUser_null(Boolean createUser_null) {
this.createUser_null = createUser_null;
}
public ArrayList<Long> getCreateUser_arr() {
return createUser_arr;
}
public void setCreateUser_arr(ArrayList<Long> createUser_arr) {
this.createUser_arr = createUser_arr;
}
public Long getCreateUser_gt() {
return createUser_gt;
}
public void setCreateUser_gt(Long createUser_gt) {
this.createUser_gt = createUser_gt;
}
public Long getCreateUser_lt() {
return createUser_lt;
}
public void setCreateUser_lt(Long createUser_lt) {
this.createUser_lt = createUser_lt;
}
public Long getCreateUser_gte() {
return createUser_gte;
}
public void setCreateUser_gte(Long createUser_gte) {
this.createUser_gte = createUser_gte;
}
public Long getCreateUser_lte() {
return createUser_lte;
}
public void setCreateUser_lte(Long createUser_lte) {
this.createUser_lte = createUser_lte;
}
public Long getCreateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateUser();
}
public void setCreateUser(Long createUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateUser(createUser);
}
public ArrayList<String> getKey_arr() {
return key_arr;
}
public void setKey_arr(ArrayList<String> key_arr) {
this.key_arr = key_arr;
}
public String getKey_like() {
return key_like;
}
public void setKey_like(String key_like) {
this.key_like = key_like;
}
public String getKey() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getKey();
}
public void setKey(String key) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setKey(key);
}
public ArrayList<Integer> getValue_arr() {
return value_arr;
}
public void setValue_arr(ArrayList<Integer> value_arr) {
this.value_arr = value_arr;
}
public Integer getValue_gt() {
return value_gt;
}
public void setValue_gt(Integer value_gt) {
this.value_gt = value_gt;
}
public Integer getValue_lt() {
return value_lt;
}
public void setValue_lt(Integer value_lt) {
this.value_lt = value_lt;
}
public Integer getValue_gte() {
return value_gte;
}
public void setValue_gte(Integer value_gte) {
this.value_gte = value_gte;
}
public Integer getValue_lte() {
return value_lte;
}
public void setValue_lte(Integer value_lte) {
this.value_lte = value_lte;
}
public Integer getValue() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getValue();
}
public void setValue(Integer value) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setValue(value);
}
public Boolean getDescription_null() {
return description_null;
}
public void setDescription_null(Boolean description_null) {
this.description_null = description_null;
}
public ArrayList<String> getDescription_arr() {
return description_arr;
}
public void setDescription_arr(ArrayList<String> description_arr) {
this.description_arr = description_arr;
}
public String getDescription_like() {
return description_like;
}
public void setDescription_like(String description_like) {
this.description_like = description_like;
}
public String getDescription() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getDescription();
}
public void setDescription(String description) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setDescription(description);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Log;
import java.util.ArrayList;
import java.util.Date;
public class LogVoBase extends Log implements VoInterface<Log> {
private Log log;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private ArrayList<Long> operateUser_arr;
@JsonIgnore
private Long operateUser_gt;
@JsonIgnore
private Long operateUser_lt;
@JsonIgnore
private Long operateUser_gte;
@JsonIgnore
private Long operateUser_lte;
@JsonIgnore
private ArrayList<Date> operateDate_arr;
@JsonIgnore
private Date operateDate_gt;
@JsonIgnore
private Date operateDate_lt;
@JsonIgnore
private Date operateDate_gte;
@JsonIgnore
private Date operateDate_lte;
@JsonIgnore
private Boolean operateType_null;
@JsonIgnore
private ArrayList<Integer> operateType_arr;
@JsonIgnore
private Integer operateType_gt;
@JsonIgnore
private Integer operateType_lt;
@JsonIgnore
private Integer operateType_gte;
@JsonIgnore
private Integer operateType_lte;
@JsonIgnore
private Boolean operate_null;
@JsonIgnore
private ArrayList<String> operate_arr;
@JsonIgnore
private String operate_like;
public LogVoBase() {
this(null);
}
public LogVoBase(Log log) {
if(log == null) {
log = new Log();
}
this.log = log;
}
@JsonIgnore
public Log getModel() {
return log;
}
public void setModel(Log log) {
this.log = log;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public ArrayList<Long> getOperateUser_arr() {
return operateUser_arr;
}
public void setOperateUser_arr(ArrayList<Long> operateUser_arr) {
this.operateUser_arr = operateUser_arr;
}
public Long getOperateUser_gt() {
return operateUser_gt;
}
public void setOperateUser_gt(Long operateUser_gt) {
this.operateUser_gt = operateUser_gt;
}
public Long getOperateUser_lt() {
return operateUser_lt;
}
public void setOperateUser_lt(Long operateUser_lt) {
this.operateUser_lt = operateUser_lt;
}
public Long getOperateUser_gte() {
return operateUser_gte;
}
public void setOperateUser_gte(Long operateUser_gte) {
this.operateUser_gte = operateUser_gte;
}
public Long getOperateUser_lte() {
return operateUser_lte;
}
public void setOperateUser_lte(Long operateUser_lte) {
this.operateUser_lte = operateUser_lte;
}
public Long getOperateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getOperateUser();
}
public void setOperateUser(Long operateUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setOperateUser(operateUser);
}
public ArrayList<Date> getOperateDate_arr() {
return operateDate_arr;
}
public void setOperateDate_arr(ArrayList<Date> operateDate_arr) {
this.operateDate_arr = operateDate_arr;
}
public Date getOperateDate_gt() {
return operateDate_gt;
}
public void setOperateDate_gt(Date operateDate_gt) {
this.operateDate_gt = operateDate_gt;
}
public Date getOperateDate_lt() {
return operateDate_lt;
}
public void setOperateDate_lt(Date operateDate_lt) {
this.operateDate_lt = operateDate_lt;
}
public Date getOperateDate_gte() {
return operateDate_gte;
}
public void setOperateDate_gte(Date operateDate_gte) {
this.operateDate_gte = operateDate_gte;
}
public Date getOperateDate_lte() {
return operateDate_lte;
}
public void setOperateDate_lte(Date operateDate_lte) {
this.operateDate_lte = operateDate_lte;
}
public Date getOperateDate() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getOperateDate();
}
public void setOperateDate(Date operateDate) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setOperateDate(operateDate);
}
public Boolean getOperateType_null() {
return operateType_null;
}
public void setOperateType_null(Boolean operateType_null) {
this.operateType_null = operateType_null;
}
public ArrayList<Integer> getOperateType_arr() {
return operateType_arr;
}
public void setOperateType_arr(ArrayList<Integer> operateType_arr) {
this.operateType_arr = operateType_arr;
}
public Integer getOperateType_gt() {
return operateType_gt;
}
public void setOperateType_gt(Integer operateType_gt) {
this.operateType_gt = operateType_gt;
}
public Integer getOperateType_lt() {
return operateType_lt;
}
public void setOperateType_lt(Integer operateType_lt) {
this.operateType_lt = operateType_lt;
}
public Integer getOperateType_gte() {
return operateType_gte;
}
public void setOperateType_gte(Integer operateType_gte) {
this.operateType_gte = operateType_gte;
}
public Integer getOperateType_lte() {
return operateType_lte;
}
public void setOperateType_lte(Integer operateType_lte) {
this.operateType_lte = operateType_lte;
}
public Integer getOperateType() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getOperateType();
}
public void setOperateType(Integer operateType) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setOperateType(operateType);
}
public Boolean getOperate_null() {
return operate_null;
}
public void setOperate_null(Boolean operate_null) {
this.operate_null = operate_null;
}
public ArrayList<String> getOperate_arr() {
return operate_arr;
}
public void setOperate_arr(ArrayList<String> operate_arr) {
this.operate_arr = operate_arr;
}
public String getOperate_like() {
return operate_like;
}
public void setOperate_like(String operate_like) {
this.operate_like = operate_like;
}
public String getOperate() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getOperate();
}
public void setOperate(String operate) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setOperate(operate);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.model.PackTag;
import java.util.ArrayList;
import java.util.Date;
public class PackTagVoBase extends PackTag implements VoInterface<PackTag> {
private PackTag packTag;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private ArrayList<Long> packId_arr;
@JsonIgnore
private Long packId_gt;
@JsonIgnore
private Long packId_lt;
@JsonIgnore
private Long packId_gte;
@JsonIgnore
private Long packId_lte;
@JsonIgnore
private ArrayList<Integer> tag_arr;
@JsonIgnore
private Integer tag_gt;
@JsonIgnore
private Integer tag_lt;
@JsonIgnore
private Integer tag_gte;
@JsonIgnore
private Integer tag_lte;
public PackTagVoBase() {
this(null);
}
public PackTagVoBase(PackTag packTag) {
if(packTag == null) {
packTag = new PackTag();
}
this.packTag = packTag;
}
@JsonIgnore
public PackTag getModel() {
return packTag;
}
public void setModel(PackTag packTag) {
this.packTag = packTag;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public ArrayList<Long> getPackId_arr() {
return packId_arr;
}
public void setPackId_arr(ArrayList<Long> packId_arr) {
this.packId_arr = packId_arr;
}
public Long getPackId_gt() {
return packId_gt;
}
public void setPackId_gt(Long packId_gt) {
this.packId_gt = packId_gt;
}
public Long getPackId_lt() {
return packId_lt;
}
public void setPackId_lt(Long packId_lt) {
this.packId_lt = packId_lt;
}
public Long getPackId_gte() {
return packId_gte;
}
public void setPackId_gte(Long packId_gte) {
this.packId_gte = packId_gte;
}
public Long getPackId_lte() {
return packId_lte;
}
public void setPackId_lte(Long packId_lte) {
this.packId_lte = packId_lte;
}
public Long getPackId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPackId();
}
public void setPackId(Long packId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPackId(packId);
}
public ArrayList<Integer> getTag_arr() {
return tag_arr;
}
public void setTag_arr(ArrayList<Integer> tag_arr) {
this.tag_arr = tag_arr;
}
public Integer getTag_gt() {
return tag_gt;
}
public void setTag_gt(Integer tag_gt) {
this.tag_gt = tag_gt;
}
public Integer getTag_lt() {
return tag_lt;
}
public void setTag_lt(Integer tag_lt) {
this.tag_lt = tag_lt;
}
public Integer getTag_gte() {
return tag_gte;
}
public void setTag_gte(Integer tag_gte) {
this.tag_gte = tag_gte;
}
public Integer getTag_lte() {
return tag_lte;
}
public void setTag_lte(Integer tag_lte) {
this.tag_lte = tag_lte;
}
public Integer getTag() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getTag();
}
public void setTag(Integer tag) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setTag(tag);
}
public Pack getPack() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPack();
}
public void setPack(Pack pack) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPack(pack);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.model.Storage;
import java.util.ArrayList;
import java.util.Date;
public class PackVoBase extends Pack implements VoInterface<Pack> {
private Pack pack;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private Boolean createUser_null;
@JsonIgnore
private ArrayList<Long> createUser_arr;
@JsonIgnore
private Long createUser_gt;
@JsonIgnore
private Long createUser_lt;
@JsonIgnore
private Long createUser_gte;
@JsonIgnore
private Long createUser_lte;
@JsonIgnore
private ArrayList<Long> storageId_arr;
@JsonIgnore
private Long storageId_gt;
@JsonIgnore
private Long storageId_lt;
@JsonIgnore
private Long storageId_gte;
@JsonIgnore
private Long storageId_lte;
@JsonIgnore
private ArrayList<String> name_arr;
@JsonIgnore
private String name_like;
@JsonIgnore
private ArrayList<Integer> status_arr;
@JsonIgnore
private Integer status_gt;
@JsonIgnore
private Integer status_lt;
@JsonIgnore
private Integer status_gte;
@JsonIgnore
private Integer status_lte;
@JsonIgnore
private ArrayList<Integer> type_arr;
@JsonIgnore
private Integer type_gt;
@JsonIgnore
private Integer type_lt;
@JsonIgnore
private Integer type_gte;
@JsonIgnore
private Integer type_lte;
public PackVoBase() {
this(null);
}
public PackVoBase(Pack pack) {
if(pack == null) {
pack = new Pack();
}
this.pack = pack;
}
@JsonIgnore
public Pack getModel() {
return pack;
}
public void setModel(Pack pack) {
this.pack = pack;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public Boolean getCreateUser_null() {
return createUser_null;
}
public void setCreateUser_null(Boolean createUser_null) {
this.createUser_null = createUser_null;
}
public ArrayList<Long> getCreateUser_arr() {
return createUser_arr;
}
public void setCreateUser_arr(ArrayList<Long> createUser_arr) {
this.createUser_arr = createUser_arr;
}
public Long getCreateUser_gt() {
return createUser_gt;
}
public void setCreateUser_gt(Long createUser_gt) {
this.createUser_gt = createUser_gt;
}
public Long getCreateUser_lt() {
return createUser_lt;
}
public void setCreateUser_lt(Long createUser_lt) {
this.createUser_lt = createUser_lt;
}
public Long getCreateUser_gte() {
return createUser_gte;
}
public void setCreateUser_gte(Long createUser_gte) {
this.createUser_gte = createUser_gte;
}
public Long getCreateUser_lte() {
return createUser_lte;
}
public void setCreateUser_lte(Long createUser_lte) {
this.createUser_lte = createUser_lte;
}
public Long getCreateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateUser();
}
public void setCreateUser(Long createUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateUser(createUser);
}
public ArrayList<Long> getStorageId_arr() {
return storageId_arr;
}
public void setStorageId_arr(ArrayList<Long> storageId_arr) {
this.storageId_arr = storageId_arr;
}
public Long getStorageId_gt() {
return storageId_gt;
}
public void setStorageId_gt(Long storageId_gt) {
this.storageId_gt = storageId_gt;
}
public Long getStorageId_lt() {
return storageId_lt;
}
public void setStorageId_lt(Long storageId_lt) {
this.storageId_lt = storageId_lt;
}
public Long getStorageId_gte() {
return storageId_gte;
}
public void setStorageId_gte(Long storageId_gte) {
this.storageId_gte = storageId_gte;
}
public Long getStorageId_lte() {
return storageId_lte;
}
public void setStorageId_lte(Long storageId_lte) {
this.storageId_lte = storageId_lte;
}
public Long getStorageId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStorageId();
}
public void setStorageId(Long storageId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStorageId(storageId);
}
public ArrayList<String> getName_arr() {
return name_arr;
}
public void setName_arr(ArrayList<String> name_arr) {
this.name_arr = name_arr;
}
public String getName_like() {
return name_like;
}
public void setName_like(String name_like) {
this.name_like = name_like;
}
public String getName() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getName();
}
public void setName(String name) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setName(name);
}
public ArrayList<Integer> getStatus_arr() {
return status_arr;
}
public void setStatus_arr(ArrayList<Integer> status_arr) {
this.status_arr = status_arr;
}
public Integer getStatus_gt() {
return status_gt;
}
public void setStatus_gt(Integer status_gt) {
this.status_gt = status_gt;
}
public Integer getStatus_lt() {
return status_lt;
}
public void setStatus_lt(Integer status_lt) {
this.status_lt = status_lt;
}
public Integer getStatus_gte() {
return status_gte;
}
public void setStatus_gte(Integer status_gte) {
this.status_gte = status_gte;
}
public Integer getStatus_lte() {
return status_lte;
}
public void setStatus_lte(Integer status_lte) {
this.status_lte = status_lte;
}
public Integer getStatus() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStatus();
}
public void setStatus(Integer status) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStatus(status);
}
public ArrayList<Integer> getType_arr() {
return type_arr;
}
public void setType_arr(ArrayList<Integer> type_arr) {
this.type_arr = type_arr;
}
public Integer getType_gt() {
return type_gt;
}
public void setType_gt(Integer type_gt) {
this.type_gt = type_gt;
}
public Integer getType_lt() {
return type_lt;
}
public void setType_lt(Integer type_lt) {
this.type_lt = type_lt;
}
public Integer getType_gte() {
return type_gte;
}
public void setType_gte(Integer type_gte) {
this.type_gte = type_gte;
}
public Integer getType_lte() {
return type_lte;
}
public void setType_lte(Integer type_lte) {
this.type_lte = type_lte;
}
public Integer getType() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getType();
}
public void setType(Integer type) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setType(type);
}
public Storage getStorage() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStorage();
}
public void setStorage(Storage storage) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStorage(storage);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.model.Storage;
import java.util.ArrayList;
import java.util.Date;
public class PicVoBase extends Pic implements VoInterface<Pic> {
private Pic pic;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private ArrayList<String> name_arr;
@JsonIgnore
private String name_like;
@JsonIgnore
private ArrayList<Long> storageId_arr;
@JsonIgnore
private Long storageId_gt;
@JsonIgnore
private Long storageId_lt;
@JsonIgnore
private Long storageId_gte;
@JsonIgnore
private Long storageId_lte;
@JsonIgnore
private ArrayList<Long> packId_arr;
@JsonIgnore
private Long packId_gt;
@JsonIgnore
private Long packId_lt;
@JsonIgnore
private Long packId_gte;
@JsonIgnore
private Long packId_lte;
@JsonIgnore
private Boolean personUnid_null;
@JsonIgnore
private ArrayList<String> personUnid_arr;
@JsonIgnore
private String personUnid_like;
@JsonIgnore
private ArrayList<Integer> status_arr;
@JsonIgnore
private Integer status_gt;
@JsonIgnore
private Integer status_lt;
@JsonIgnore
private Integer status_gte;
@JsonIgnore
private Integer status_lte;
public PicVoBase() {
this(null);
}
public PicVoBase(Pic pic) {
if(pic == null) {
pic = new Pic();
}
this.pic = pic;
}
@JsonIgnore
public Pic getModel() {
return pic;
}
public void setModel(Pic pic) {
this.pic = pic;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public ArrayList<String> getName_arr() {
return name_arr;
}
public void setName_arr(ArrayList<String> name_arr) {
this.name_arr = name_arr;
}
public String getName_like() {
return name_like;
}
public void setName_like(String name_like) {
this.name_like = name_like;
}
public String getName() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getName();
}
public void setName(String name) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setName(name);
}
public ArrayList<Long> getStorageId_arr() {
return storageId_arr;
}
public void setStorageId_arr(ArrayList<Long> storageId_arr) {
this.storageId_arr = storageId_arr;
}
public Long getStorageId_gt() {
return storageId_gt;
}
public void setStorageId_gt(Long storageId_gt) {
this.storageId_gt = storageId_gt;
}
public Long getStorageId_lt() {
return storageId_lt;
}
public void setStorageId_lt(Long storageId_lt) {
this.storageId_lt = storageId_lt;
}
public Long getStorageId_gte() {
return storageId_gte;
}
public void setStorageId_gte(Long storageId_gte) {
this.storageId_gte = storageId_gte;
}
public Long getStorageId_lte() {
return storageId_lte;
}
public void setStorageId_lte(Long storageId_lte) {
this.storageId_lte = storageId_lte;
}
public Long getStorageId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStorageId();
}
public void setStorageId(Long storageId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStorageId(storageId);
}
public ArrayList<Long> getPackId_arr() {
return packId_arr;
}
public void setPackId_arr(ArrayList<Long> packId_arr) {
this.packId_arr = packId_arr;
}
public Long getPackId_gt() {
return packId_gt;
}
public void setPackId_gt(Long packId_gt) {
this.packId_gt = packId_gt;
}
public Long getPackId_lt() {
return packId_lt;
}
public void setPackId_lt(Long packId_lt) {
this.packId_lt = packId_lt;
}
public Long getPackId_gte() {
return packId_gte;
}
public void setPackId_gte(Long packId_gte) {
this.packId_gte = packId_gte;
}
public Long getPackId_lte() {
return packId_lte;
}
public void setPackId_lte(Long packId_lte) {
this.packId_lte = packId_lte;
}
public Long getPackId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPackId();
}
public void setPackId(Long packId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPackId(packId);
}
public Boolean getPersonUnid_null() {
return personUnid_null;
}
public void setPersonUnid_null(Boolean personUnid_null) {
this.personUnid_null = personUnid_null;
}
public ArrayList<String> getPersonUnid_arr() {
return personUnid_arr;
}
public void setPersonUnid_arr(ArrayList<String> personUnid_arr) {
this.personUnid_arr = personUnid_arr;
}
public String getPersonUnid_like() {
return personUnid_like;
}
public void setPersonUnid_like(String personUnid_like) {
this.personUnid_like = personUnid_like;
}
public String getPersonUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPersonUnid();
}
public void setPersonUnid(String personUnid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPersonUnid(personUnid);
}
public ArrayList<Integer> getStatus_arr() {
return status_arr;
}
public void setStatus_arr(ArrayList<Integer> status_arr) {
this.status_arr = status_arr;
}
public Integer getStatus_gt() {
return status_gt;
}
public void setStatus_gt(Integer status_gt) {
this.status_gt = status_gt;
}
public Integer getStatus_lt() {
return status_lt;
}
public void setStatus_lt(Integer status_lt) {
this.status_lt = status_lt;
}
public Integer getStatus_gte() {
return status_gte;
}
public void setStatus_gte(Integer status_gte) {
this.status_gte = status_gte;
}
public Integer getStatus_lte() {
return status_lte;
}
public void setStatus_lte(Integer status_lte) {
this.status_lte = status_lte;
}
public Integer getStatus() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStatus();
}
public void setStatus(Integer status) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStatus(status);
}
public Storage getStorage() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStorage();
}
public void setStorage(Storage storage) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStorage(storage);
}
public Pack getPack() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPack();
}
public void setPack(Pack pack) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPack(pack);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Storage;
import java.util.ArrayList;
import java.util.Date;
public class StorageVoBase extends Storage implements VoInterface<Storage> {
private Storage storage;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private Boolean createUser_null;
@JsonIgnore
private ArrayList<Long> createUser_arr;
@JsonIgnore
private Long createUser_gt;
@JsonIgnore
private Long createUser_lt;
@JsonIgnore
private Long createUser_gte;
@JsonIgnore
private Long createUser_lte;
@JsonIgnore
private ArrayList<String> name_arr;
@JsonIgnore
private String name_like;
@JsonIgnore
private ArrayList<Integer> type_arr;
@JsonIgnore
private Integer type_gt;
@JsonIgnore
private Integer type_lt;
@JsonIgnore
private Integer type_gte;
@JsonIgnore
private Integer type_lte;
@JsonIgnore
private ArrayList<String> path_arr;
@JsonIgnore
private String path_like;
public StorageVoBase() {
this(null);
}
public StorageVoBase(Storage storage) {
if(storage == null) {
storage = new Storage();
}
this.storage = storage;
}
@JsonIgnore
public Storage getModel() {
return storage;
}
public void setModel(Storage storage) {
this.storage = storage;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public Boolean getCreateUser_null() {
return createUser_null;
}
public void setCreateUser_null(Boolean createUser_null) {
this.createUser_null = createUser_null;
}
public ArrayList<Long> getCreateUser_arr() {
return createUser_arr;
}
public void setCreateUser_arr(ArrayList<Long> createUser_arr) {
this.createUser_arr = createUser_arr;
}
public Long getCreateUser_gt() {
return createUser_gt;
}
public void setCreateUser_gt(Long createUser_gt) {
this.createUser_gt = createUser_gt;
}
public Long getCreateUser_lt() {
return createUser_lt;
}
public void setCreateUser_lt(Long createUser_lt) {
this.createUser_lt = createUser_lt;
}
public Long getCreateUser_gte() {
return createUser_gte;
}
public void setCreateUser_gte(Long createUser_gte) {
this.createUser_gte = createUser_gte;
}
public Long getCreateUser_lte() {
return createUser_lte;
}
public void setCreateUser_lte(Long createUser_lte) {
this.createUser_lte = createUser_lte;
}
public Long getCreateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateUser();
}
public void setCreateUser(Long createUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateUser(createUser);
}
public ArrayList<String> getName_arr() {
return name_arr;
}
public void setName_arr(ArrayList<String> name_arr) {
this.name_arr = name_arr;
}
public String getName_like() {
return name_like;
}
public void setName_like(String name_like) {
this.name_like = name_like;
}
public String getName() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getName();
}
public void setName(String name) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setName(name);
}
public ArrayList<Integer> getType_arr() {
return type_arr;
}
public void setType_arr(ArrayList<Integer> type_arr) {
this.type_arr = type_arr;
}
public Integer getType_gt() {
return type_gt;
}
public void setType_gt(Integer type_gt) {
this.type_gt = type_gt;
}
public Integer getType_lt() {
return type_lt;
}
public void setType_lt(Integer type_lt) {
this.type_lt = type_lt;
}
public Integer getType_gte() {
return type_gte;
}
public void setType_gte(Integer type_gte) {
this.type_gte = type_gte;
}
public Integer getType_lte() {
return type_lte;
}
public void setType_lte(Integer type_lte) {
this.type_lte = type_lte;
}
public Integer getType() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getType();
}
public void setType(Integer type) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setType(type);
}
public ArrayList<String> getPath_arr() {
return path_arr;
}
public void setPath_arr(ArrayList<String> path_arr) {
this.path_arr = path_arr;
}
public String getPath_like() {
return path_like;
}
public void setPath_like(String path_like) {
this.path_like = path_like;
}
public String getPath() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPath();
}
public void setPath(String path) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPath(path);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Pic;
import com.viontech.label.platform.model.SubTask;
import com.viontech.label.platform.model.Task;
import java.util.ArrayList;
import java.util.Date;
public class SubTaskVoBase extends SubTask implements VoInterface<SubTask> {
private SubTask subTask;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private Boolean createUser_null;
@JsonIgnore
private ArrayList<Long> createUser_arr;
@JsonIgnore
private Long createUser_gt;
@JsonIgnore
private Long createUser_lt;
@JsonIgnore
private Long createUser_gte;
@JsonIgnore
private Long createUser_lte;
@JsonIgnore
private ArrayList<Long> picId_arr;
@JsonIgnore
private Long picId_gt;
@JsonIgnore
private Long picId_lt;
@JsonIgnore
private Long picId_gte;
@JsonIgnore
private Long picId_lte;
@JsonIgnore
private ArrayList<Long> taskId_arr;
@JsonIgnore
private Long taskId_gt;
@JsonIgnore
private Long taskId_lt;
@JsonIgnore
private Long taskId_gte;
@JsonIgnore
private Long taskId_lte;
@JsonIgnore
private Boolean inInspectorId_null;
@JsonIgnore
private ArrayList<Long> inInspectorId_arr;
@JsonIgnore
private Long inInspectorId_gt;
@JsonIgnore
private Long inInspectorId_lt;
@JsonIgnore
private Long inInspectorId_gte;
@JsonIgnore
private Long inInspectorId_lte;
@JsonIgnore
private Boolean outInspectorId_null;
@JsonIgnore
private ArrayList<Long> outInspectorId_arr;
@JsonIgnore
private Long outInspectorId_gt;
@JsonIgnore
private Long outInspectorId_lt;
@JsonIgnore
private Long outInspectorId_gte;
@JsonIgnore
private Long outInspectorId_lte;
@JsonIgnore
private Boolean annotatorId_null;
@JsonIgnore
private ArrayList<Long> annotatorId_arr;
@JsonIgnore
private Long annotatorId_gt;
@JsonIgnore
private Long annotatorId_lt;
@JsonIgnore
private Long annotatorId_gte;
@JsonIgnore
private Long annotatorId_lte;
@JsonIgnore
private Boolean labelResult_null;
@JsonIgnore
private ArrayList<String> labelResult_arr;
@JsonIgnore
private String labelResult_like;
@JsonIgnore
private ArrayList<Integer> inStatus_arr;
@JsonIgnore
private Integer inStatus_gt;
@JsonIgnore
private Integer inStatus_lt;
@JsonIgnore
private Integer inStatus_gte;
@JsonIgnore
private Integer inStatus_lte;
@JsonIgnore
private ArrayList<Integer> outStatus_arr;
@JsonIgnore
private Integer outStatus_gt;
@JsonIgnore
private Integer outStatus_lt;
@JsonIgnore
private Integer outStatus_gte;
@JsonIgnore
private Integer outStatus_lte;
@JsonIgnore
private ArrayList<Integer> status_arr;
@JsonIgnore
private Integer status_gt;
@JsonIgnore
private Integer status_lt;
@JsonIgnore
private Integer status_gte;
@JsonIgnore
private Integer status_lte;
public SubTaskVoBase() {
this(null);
}
public SubTaskVoBase(SubTask subTask) {
if(subTask == null) {
subTask = new SubTask();
}
this.subTask = subTask;
}
@JsonIgnore
public SubTask getModel() {
return subTask;
}
public void setModel(SubTask subTask) {
this.subTask = subTask;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public Boolean getCreateUser_null() {
return createUser_null;
}
public void setCreateUser_null(Boolean createUser_null) {
this.createUser_null = createUser_null;
}
public ArrayList<Long> getCreateUser_arr() {
return createUser_arr;
}
public void setCreateUser_arr(ArrayList<Long> createUser_arr) {
this.createUser_arr = createUser_arr;
}
public Long getCreateUser_gt() {
return createUser_gt;
}
public void setCreateUser_gt(Long createUser_gt) {
this.createUser_gt = createUser_gt;
}
public Long getCreateUser_lt() {
return createUser_lt;
}
public void setCreateUser_lt(Long createUser_lt) {
this.createUser_lt = createUser_lt;
}
public Long getCreateUser_gte() {
return createUser_gte;
}
public void setCreateUser_gte(Long createUser_gte) {
this.createUser_gte = createUser_gte;
}
public Long getCreateUser_lte() {
return createUser_lte;
}
public void setCreateUser_lte(Long createUser_lte) {
this.createUser_lte = createUser_lte;
}
public Long getCreateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateUser();
}
public void setCreateUser(Long createUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateUser(createUser);
}
public ArrayList<Long> getPicId_arr() {
return picId_arr;
}
public void setPicId_arr(ArrayList<Long> picId_arr) {
this.picId_arr = picId_arr;
}
public Long getPicId_gt() {
return picId_gt;
}
public void setPicId_gt(Long picId_gt) {
this.picId_gt = picId_gt;
}
public Long getPicId_lt() {
return picId_lt;
}
public void setPicId_lt(Long picId_lt) {
this.picId_lt = picId_lt;
}
public Long getPicId_gte() {
return picId_gte;
}
public void setPicId_gte(Long picId_gte) {
this.picId_gte = picId_gte;
}
public Long getPicId_lte() {
return picId_lte;
}
public void setPicId_lte(Long picId_lte) {
this.picId_lte = picId_lte;
}
public Long getPicId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPicId();
}
public void setPicId(Long picId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPicId(picId);
}
public ArrayList<Long> getTaskId_arr() {
return taskId_arr;
}
public void setTaskId_arr(ArrayList<Long> taskId_arr) {
this.taskId_arr = taskId_arr;
}
public Long getTaskId_gt() {
return taskId_gt;
}
public void setTaskId_gt(Long taskId_gt) {
this.taskId_gt = taskId_gt;
}
public Long getTaskId_lt() {
return taskId_lt;
}
public void setTaskId_lt(Long taskId_lt) {
this.taskId_lt = taskId_lt;
}
public Long getTaskId_gte() {
return taskId_gte;
}
public void setTaskId_gte(Long taskId_gte) {
this.taskId_gte = taskId_gte;
}
public Long getTaskId_lte() {
return taskId_lte;
}
public void setTaskId_lte(Long taskId_lte) {
this.taskId_lte = taskId_lte;
}
public Long getTaskId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getTaskId();
}
public void setTaskId(Long taskId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setTaskId(taskId);
}
public Boolean getInInspectorId_null() {
return inInspectorId_null;
}
public void setInInspectorId_null(Boolean inInspectorId_null) {
this.inInspectorId_null = inInspectorId_null;
}
public ArrayList<Long> getInInspectorId_arr() {
return inInspectorId_arr;
}
public void setInInspectorId_arr(ArrayList<Long> inInspectorId_arr) {
this.inInspectorId_arr = inInspectorId_arr;
}
public Long getInInspectorId_gt() {
return inInspectorId_gt;
}
public void setInInspectorId_gt(Long inInspectorId_gt) {
this.inInspectorId_gt = inInspectorId_gt;
}
public Long getInInspectorId_lt() {
return inInspectorId_lt;
}
public void setInInspectorId_lt(Long inInspectorId_lt) {
this.inInspectorId_lt = inInspectorId_lt;
}
public Long getInInspectorId_gte() {
return inInspectorId_gte;
}
public void setInInspectorId_gte(Long inInspectorId_gte) {
this.inInspectorId_gte = inInspectorId_gte;
}
public Long getInInspectorId_lte() {
return inInspectorId_lte;
}
public void setInInspectorId_lte(Long inInspectorId_lte) {
this.inInspectorId_lte = inInspectorId_lte;
}
public Long getInInspectorId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getInInspectorId();
}
public void setInInspectorId(Long inInspectorId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setInInspectorId(inInspectorId);
}
public Boolean getOutInspectorId_null() {
return outInspectorId_null;
}
public void setOutInspectorId_null(Boolean outInspectorId_null) {
this.outInspectorId_null = outInspectorId_null;
}
public ArrayList<Long> getOutInspectorId_arr() {
return outInspectorId_arr;
}
public void setOutInspectorId_arr(ArrayList<Long> outInspectorId_arr) {
this.outInspectorId_arr = outInspectorId_arr;
}
public Long getOutInspectorId_gt() {
return outInspectorId_gt;
}
public void setOutInspectorId_gt(Long outInspectorId_gt) {
this.outInspectorId_gt = outInspectorId_gt;
}
public Long getOutInspectorId_lt() {
return outInspectorId_lt;
}
public void setOutInspectorId_lt(Long outInspectorId_lt) {
this.outInspectorId_lt = outInspectorId_lt;
}
public Long getOutInspectorId_gte() {
return outInspectorId_gte;
}
public void setOutInspectorId_gte(Long outInspectorId_gte) {
this.outInspectorId_gte = outInspectorId_gte;
}
public Long getOutInspectorId_lte() {
return outInspectorId_lte;
}
public void setOutInspectorId_lte(Long outInspectorId_lte) {
this.outInspectorId_lte = outInspectorId_lte;
}
public Long getOutInspectorId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getOutInspectorId();
}
public void setOutInspectorId(Long outInspectorId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setOutInspectorId(outInspectorId);
}
public Boolean getAnnotatorId_null() {
return annotatorId_null;
}
public void setAnnotatorId_null(Boolean annotatorId_null) {
this.annotatorId_null = annotatorId_null;
}
public ArrayList<Long> getAnnotatorId_arr() {
return annotatorId_arr;
}
public void setAnnotatorId_arr(ArrayList<Long> annotatorId_arr) {
this.annotatorId_arr = annotatorId_arr;
}
public Long getAnnotatorId_gt() {
return annotatorId_gt;
}
public void setAnnotatorId_gt(Long annotatorId_gt) {
this.annotatorId_gt = annotatorId_gt;
}
public Long getAnnotatorId_lt() {
return annotatorId_lt;
}
public void setAnnotatorId_lt(Long annotatorId_lt) {
this.annotatorId_lt = annotatorId_lt;
}
public Long getAnnotatorId_gte() {
return annotatorId_gte;
}
public void setAnnotatorId_gte(Long annotatorId_gte) {
this.annotatorId_gte = annotatorId_gte;
}
public Long getAnnotatorId_lte() {
return annotatorId_lte;
}
public void setAnnotatorId_lte(Long annotatorId_lte) {
this.annotatorId_lte = annotatorId_lte;
}
public Long getAnnotatorId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getAnnotatorId();
}
public void setAnnotatorId(Long annotatorId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setAnnotatorId(annotatorId);
}
public Boolean getLabelResult_null() {
return labelResult_null;
}
public void setLabelResult_null(Boolean labelResult_null) {
this.labelResult_null = labelResult_null;
}
public ArrayList<String> getLabelResult_arr() {
return labelResult_arr;
}
public void setLabelResult_arr(ArrayList<String> labelResult_arr) {
this.labelResult_arr = labelResult_arr;
}
public String getLabelResult_like() {
return labelResult_like;
}
public void setLabelResult_like(String labelResult_like) {
this.labelResult_like = labelResult_like;
}
public String getLabelResult() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getLabelResult();
}
public void setLabelResult(String labelResult) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setLabelResult(labelResult);
}
public ArrayList<Integer> getInStatus_arr() {
return inStatus_arr;
}
public void setInStatus_arr(ArrayList<Integer> inStatus_arr) {
this.inStatus_arr = inStatus_arr;
}
public Integer getInStatus_gt() {
return inStatus_gt;
}
public void setInStatus_gt(Integer inStatus_gt) {
this.inStatus_gt = inStatus_gt;
}
public Integer getInStatus_lt() {
return inStatus_lt;
}
public void setInStatus_lt(Integer inStatus_lt) {
this.inStatus_lt = inStatus_lt;
}
public Integer getInStatus_gte() {
return inStatus_gte;
}
public void setInStatus_gte(Integer inStatus_gte) {
this.inStatus_gte = inStatus_gte;
}
public Integer getInStatus_lte() {
return inStatus_lte;
}
public void setInStatus_lte(Integer inStatus_lte) {
this.inStatus_lte = inStatus_lte;
}
public Integer getInStatus() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getInStatus();
}
public void setInStatus(Integer inStatus) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setInStatus(inStatus);
}
public ArrayList<Integer> getOutStatus_arr() {
return outStatus_arr;
}
public void setOutStatus_arr(ArrayList<Integer> outStatus_arr) {
this.outStatus_arr = outStatus_arr;
}
public Integer getOutStatus_gt() {
return outStatus_gt;
}
public void setOutStatus_gt(Integer outStatus_gt) {
this.outStatus_gt = outStatus_gt;
}
public Integer getOutStatus_lt() {
return outStatus_lt;
}
public void setOutStatus_lt(Integer outStatus_lt) {
this.outStatus_lt = outStatus_lt;
}
public Integer getOutStatus_gte() {
return outStatus_gte;
}
public void setOutStatus_gte(Integer outStatus_gte) {
this.outStatus_gte = outStatus_gte;
}
public Integer getOutStatus_lte() {
return outStatus_lte;
}
public void setOutStatus_lte(Integer outStatus_lte) {
this.outStatus_lte = outStatus_lte;
}
public Integer getOutStatus() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getOutStatus();
}
public void setOutStatus(Integer outStatus) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setOutStatus(outStatus);
}
public ArrayList<Integer> getStatus_arr() {
return status_arr;
}
public void setStatus_arr(ArrayList<Integer> status_arr) {
this.status_arr = status_arr;
}
public Integer getStatus_gt() {
return status_gt;
}
public void setStatus_gt(Integer status_gt) {
this.status_gt = status_gt;
}
public Integer getStatus_lt() {
return status_lt;
}
public void setStatus_lt(Integer status_lt) {
this.status_lt = status_lt;
}
public Integer getStatus_gte() {
return status_gte;
}
public void setStatus_gte(Integer status_gte) {
this.status_gte = status_gte;
}
public Integer getStatus_lte() {
return status_lte;
}
public void setStatus_lte(Integer status_lte) {
this.status_lte = status_lte;
}
public Integer getStatus() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStatus();
}
public void setStatus(Integer status) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStatus(status);
}
public Pic getPic() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPic();
}
public void setPic(Pic pic) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPic(pic);
}
public Task getTask() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getTask();
}
public void setTask(Task task) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setTask(task);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Pack;
import com.viontech.label.platform.model.Task;
import com.viontech.label.platform.model.TaskPack;
import java.util.ArrayList;
import java.util.Date;
public class TaskPackVoBase extends TaskPack implements VoInterface<TaskPack> {
private TaskPack taskPack;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private ArrayList<Long> taskId_arr;
@JsonIgnore
private Long taskId_gt;
@JsonIgnore
private Long taskId_lt;
@JsonIgnore
private Long taskId_gte;
@JsonIgnore
private Long taskId_lte;
@JsonIgnore
private ArrayList<Long> packId_arr;
@JsonIgnore
private Long packId_gt;
@JsonIgnore
private Long packId_lt;
@JsonIgnore
private Long packId_gte;
@JsonIgnore
private Long packId_lte;
public TaskPackVoBase() {
this(null);
}
public TaskPackVoBase(TaskPack taskPack) {
if(taskPack == null) {
taskPack = new TaskPack();
}
this.taskPack = taskPack;
}
@JsonIgnore
public TaskPack getModel() {
return taskPack;
}
public void setModel(TaskPack taskPack) {
this.taskPack = taskPack;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public ArrayList<Long> getTaskId_arr() {
return taskId_arr;
}
public void setTaskId_arr(ArrayList<Long> taskId_arr) {
this.taskId_arr = taskId_arr;
}
public Long getTaskId_gt() {
return taskId_gt;
}
public void setTaskId_gt(Long taskId_gt) {
this.taskId_gt = taskId_gt;
}
public Long getTaskId_lt() {
return taskId_lt;
}
public void setTaskId_lt(Long taskId_lt) {
this.taskId_lt = taskId_lt;
}
public Long getTaskId_gte() {
return taskId_gte;
}
public void setTaskId_gte(Long taskId_gte) {
this.taskId_gte = taskId_gte;
}
public Long getTaskId_lte() {
return taskId_lte;
}
public void setTaskId_lte(Long taskId_lte) {
this.taskId_lte = taskId_lte;
}
public Long getTaskId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getTaskId();
}
public void setTaskId(Long taskId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setTaskId(taskId);
}
public ArrayList<Long> getPackId_arr() {
return packId_arr;
}
public void setPackId_arr(ArrayList<Long> packId_arr) {
this.packId_arr = packId_arr;
}
public Long getPackId_gt() {
return packId_gt;
}
public void setPackId_gt(Long packId_gt) {
this.packId_gt = packId_gt;
}
public Long getPackId_lt() {
return packId_lt;
}
public void setPackId_lt(Long packId_lt) {
this.packId_lt = packId_lt;
}
public Long getPackId_gte() {
return packId_gte;
}
public void setPackId_gte(Long packId_gte) {
this.packId_gte = packId_gte;
}
public Long getPackId_lte() {
return packId_lte;
}
public void setPackId_lte(Long packId_lte) {
this.packId_lte = packId_lte;
}
public Long getPackId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPackId();
}
public void setPackId(Long packId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPackId(packId);
}
public Task getTask() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getTask();
}
public void setTask(Task task) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setTask(task);
}
public Pack getPack() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPack();
}
public void setPack(Pack pack) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPack(pack);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Account;
import com.viontech.label.platform.model.Task;
import java.util.ArrayList;
import java.util.Date;
public class TaskVoBase extends Task implements VoInterface<Task> {
private Task task;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private Boolean createUser_null;
@JsonIgnore
private ArrayList<Long> createUser_arr;
@JsonIgnore
private Long createUser_gt;
@JsonIgnore
private Long createUser_lt;
@JsonIgnore
private Long createUser_gte;
@JsonIgnore
private Long createUser_lte;
@JsonIgnore
private ArrayList<String> name_arr;
@JsonIgnore
private String name_like;
@JsonIgnore
private ArrayList<Integer> type_arr;
@JsonIgnore
private Integer type_gt;
@JsonIgnore
private Integer type_lt;
@JsonIgnore
private Integer type_gte;
@JsonIgnore
private Integer type_lte;
@JsonIgnore
private ArrayList<Integer> labelType_arr;
@JsonIgnore
private Integer labelType_gt;
@JsonIgnore
private Integer labelType_lt;
@JsonIgnore
private Integer labelType_gte;
@JsonIgnore
private Integer labelType_lte;
@JsonIgnore
private ArrayList<Long> accountId_arr;
@JsonIgnore
private Long accountId_gt;
@JsonIgnore
private Long accountId_lt;
@JsonIgnore
private Long accountId_gte;
@JsonIgnore
private Long accountId_lte;
@JsonIgnore
private Boolean contractorManagerId_null;
@JsonIgnore
private ArrayList<Long> contractorManagerId_arr;
@JsonIgnore
private Long contractorManagerId_gt;
@JsonIgnore
private Long contractorManagerId_lt;
@JsonIgnore
private Long contractorManagerId_gte;
@JsonIgnore
private Long contractorManagerId_lte;
@JsonIgnore
private Boolean managerId_null;
@JsonIgnore
private ArrayList<Long> managerId_arr;
@JsonIgnore
private Long managerId_gt;
@JsonIgnore
private Long managerId_lt;
@JsonIgnore
private Long managerId_gte;
@JsonIgnore
private Long managerId_lte;
@JsonIgnore
private ArrayList<Long> inInspectorId_arr;
@JsonIgnore
private Long inInspectorId_gt;
@JsonIgnore
private Long inInspectorId_lt;
@JsonIgnore
private Long inInspectorId_gte;
@JsonIgnore
private Long inInspectorId_lte;
@JsonIgnore
private Boolean description_null;
@JsonIgnore
private ArrayList<String> description_arr;
@JsonIgnore
private String description_like;
@JsonIgnore
private ArrayList<Integer> status_arr;
@JsonIgnore
private Integer status_gt;
@JsonIgnore
private Integer status_lt;
@JsonIgnore
private Integer status_gte;
@JsonIgnore
private Integer status_lte;
public TaskVoBase() {
this(null);
}
public TaskVoBase(Task task) {
if(task == null) {
task = new Task();
}
this.task = task;
}
@JsonIgnore
public Task getModel() {
return task;
}
public void setModel(Task task) {
this.task = task;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public Boolean getCreateUser_null() {
return createUser_null;
}
public void setCreateUser_null(Boolean createUser_null) {
this.createUser_null = createUser_null;
}
public ArrayList<Long> getCreateUser_arr() {
return createUser_arr;
}
public void setCreateUser_arr(ArrayList<Long> createUser_arr) {
this.createUser_arr = createUser_arr;
}
public Long getCreateUser_gt() {
return createUser_gt;
}
public void setCreateUser_gt(Long createUser_gt) {
this.createUser_gt = createUser_gt;
}
public Long getCreateUser_lt() {
return createUser_lt;
}
public void setCreateUser_lt(Long createUser_lt) {
this.createUser_lt = createUser_lt;
}
public Long getCreateUser_gte() {
return createUser_gte;
}
public void setCreateUser_gte(Long createUser_gte) {
this.createUser_gte = createUser_gte;
}
public Long getCreateUser_lte() {
return createUser_lte;
}
public void setCreateUser_lte(Long createUser_lte) {
this.createUser_lte = createUser_lte;
}
public Long getCreateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateUser();
}
public void setCreateUser(Long createUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateUser(createUser);
}
public ArrayList<String> getName_arr() {
return name_arr;
}
public void setName_arr(ArrayList<String> name_arr) {
this.name_arr = name_arr;
}
public String getName_like() {
return name_like;
}
public void setName_like(String name_like) {
this.name_like = name_like;
}
public String getName() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getName();
}
public void setName(String name) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setName(name);
}
public ArrayList<Integer> getType_arr() {
return type_arr;
}
public void setType_arr(ArrayList<Integer> type_arr) {
this.type_arr = type_arr;
}
public Integer getType_gt() {
return type_gt;
}
public void setType_gt(Integer type_gt) {
this.type_gt = type_gt;
}
public Integer getType_lt() {
return type_lt;
}
public void setType_lt(Integer type_lt) {
this.type_lt = type_lt;
}
public Integer getType_gte() {
return type_gte;
}
public void setType_gte(Integer type_gte) {
this.type_gte = type_gte;
}
public Integer getType_lte() {
return type_lte;
}
public void setType_lte(Integer type_lte) {
this.type_lte = type_lte;
}
public Integer getType() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getType();
}
public void setType(Integer type) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setType(type);
}
public ArrayList<Integer> getLabelType_arr() {
return labelType_arr;
}
public void setLabelType_arr(ArrayList<Integer> labelType_arr) {
this.labelType_arr = labelType_arr;
}
public Integer getLabelType_gt() {
return labelType_gt;
}
public void setLabelType_gt(Integer labelType_gt) {
this.labelType_gt = labelType_gt;
}
public Integer getLabelType_lt() {
return labelType_lt;
}
public void setLabelType_lt(Integer labelType_lt) {
this.labelType_lt = labelType_lt;
}
public Integer getLabelType_gte() {
return labelType_gte;
}
public void setLabelType_gte(Integer labelType_gte) {
this.labelType_gte = labelType_gte;
}
public Integer getLabelType_lte() {
return labelType_lte;
}
public void setLabelType_lte(Integer labelType_lte) {
this.labelType_lte = labelType_lte;
}
public Integer getLabelType() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getLabelType();
}
public void setLabelType(Integer labelType) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setLabelType(labelType);
}
public ArrayList<Long> getAccountId_arr() {
return accountId_arr;
}
public void setAccountId_arr(ArrayList<Long> accountId_arr) {
this.accountId_arr = accountId_arr;
}
public Long getAccountId_gt() {
return accountId_gt;
}
public void setAccountId_gt(Long accountId_gt) {
this.accountId_gt = accountId_gt;
}
public Long getAccountId_lt() {
return accountId_lt;
}
public void setAccountId_lt(Long accountId_lt) {
this.accountId_lt = accountId_lt;
}
public Long getAccountId_gte() {
return accountId_gte;
}
public void setAccountId_gte(Long accountId_gte) {
this.accountId_gte = accountId_gte;
}
public Long getAccountId_lte() {
return accountId_lte;
}
public void setAccountId_lte(Long accountId_lte) {
this.accountId_lte = accountId_lte;
}
public Long getAccountId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getAccountId();
}
public void setAccountId(Long accountId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setAccountId(accountId);
}
public Boolean getContractorManagerId_null() {
return contractorManagerId_null;
}
public void setContractorManagerId_null(Boolean contractorManagerId_null) {
this.contractorManagerId_null = contractorManagerId_null;
}
public ArrayList<Long> getContractorManagerId_arr() {
return contractorManagerId_arr;
}
public void setContractorManagerId_arr(ArrayList<Long> contractorManagerId_arr) {
this.contractorManagerId_arr = contractorManagerId_arr;
}
public Long getContractorManagerId_gt() {
return contractorManagerId_gt;
}
public void setContractorManagerId_gt(Long contractorManagerId_gt) {
this.contractorManagerId_gt = contractorManagerId_gt;
}
public Long getContractorManagerId_lt() {
return contractorManagerId_lt;
}
public void setContractorManagerId_lt(Long contractorManagerId_lt) {
this.contractorManagerId_lt = contractorManagerId_lt;
}
public Long getContractorManagerId_gte() {
return contractorManagerId_gte;
}
public void setContractorManagerId_gte(Long contractorManagerId_gte) {
this.contractorManagerId_gte = contractorManagerId_gte;
}
public Long getContractorManagerId_lte() {
return contractorManagerId_lte;
}
public void setContractorManagerId_lte(Long contractorManagerId_lte) {
this.contractorManagerId_lte = contractorManagerId_lte;
}
public Long getContractorManagerId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getContractorManagerId();
}
public void setContractorManagerId(Long contractorManagerId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setContractorManagerId(contractorManagerId);
}
public Boolean getManagerId_null() {
return managerId_null;
}
public void setManagerId_null(Boolean managerId_null) {
this.managerId_null = managerId_null;
}
public ArrayList<Long> getManagerId_arr() {
return managerId_arr;
}
public void setManagerId_arr(ArrayList<Long> managerId_arr) {
this.managerId_arr = managerId_arr;
}
public Long getManagerId_gt() {
return managerId_gt;
}
public void setManagerId_gt(Long managerId_gt) {
this.managerId_gt = managerId_gt;
}
public Long getManagerId_lt() {
return managerId_lt;
}
public void setManagerId_lt(Long managerId_lt) {
this.managerId_lt = managerId_lt;
}
public Long getManagerId_gte() {
return managerId_gte;
}
public void setManagerId_gte(Long managerId_gte) {
this.managerId_gte = managerId_gte;
}
public Long getManagerId_lte() {
return managerId_lte;
}
public void setManagerId_lte(Long managerId_lte) {
this.managerId_lte = managerId_lte;
}
public Long getManagerId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getManagerId();
}
public void setManagerId(Long managerId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setManagerId(managerId);
}
public ArrayList<Long> getInInspectorId_arr() {
return inInspectorId_arr;
}
public void setInInspectorId_arr(ArrayList<Long> inInspectorId_arr) {
this.inInspectorId_arr = inInspectorId_arr;
}
public Long getInInspectorId_gt() {
return inInspectorId_gt;
}
public void setInInspectorId_gt(Long inInspectorId_gt) {
this.inInspectorId_gt = inInspectorId_gt;
}
public Long getInInspectorId_lt() {
return inInspectorId_lt;
}
public void setInInspectorId_lt(Long inInspectorId_lt) {
this.inInspectorId_lt = inInspectorId_lt;
}
public Long getInInspectorId_gte() {
return inInspectorId_gte;
}
public void setInInspectorId_gte(Long inInspectorId_gte) {
this.inInspectorId_gte = inInspectorId_gte;
}
public Long getInInspectorId_lte() {
return inInspectorId_lte;
}
public void setInInspectorId_lte(Long inInspectorId_lte) {
this.inInspectorId_lte = inInspectorId_lte;
}
public Long getInInspectorId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getInInspectorId();
}
public void setInInspectorId(Long inInspectorId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setInInspectorId(inInspectorId);
}
public Boolean getDescription_null() {
return description_null;
}
public void setDescription_null(Boolean description_null) {
this.description_null = description_null;
}
public ArrayList<String> getDescription_arr() {
return description_arr;
}
public void setDescription_arr(ArrayList<String> description_arr) {
this.description_arr = description_arr;
}
public String getDescription_like() {
return description_like;
}
public void setDescription_like(String description_like) {
this.description_like = description_like;
}
public String getDescription() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getDescription();
}
public void setDescription(String description) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setDescription(description);
}
public ArrayList<Integer> getStatus_arr() {
return status_arr;
}
public void setStatus_arr(ArrayList<Integer> status_arr) {
this.status_arr = status_arr;
}
public Integer getStatus_gt() {
return status_gt;
}
public void setStatus_gt(Integer status_gt) {
this.status_gt = status_gt;
}
public Integer getStatus_lt() {
return status_lt;
}
public void setStatus_lt(Integer status_lt) {
this.status_lt = status_lt;
}
public Integer getStatus_gte() {
return status_gte;
}
public void setStatus_gte(Integer status_gte) {
this.status_gte = status_gte;
}
public Integer getStatus_lte() {
return status_lte;
}
public void setStatus_lte(Integer status_lte) {
this.status_lte = status_lte;
}
public Integer getStatus() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getStatus();
}
public void setStatus(Integer status) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setStatus(status);
}
public Account getAccount() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getAccount();
}
public void setAccount(Account account) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setAccount(account);
}
}
\ No newline at end of file
package com.viontech.label.platform.vobase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.label.platform.base.VoInterface;
import com.viontech.label.platform.model.Account;
import com.viontech.label.platform.model.User;
import java.util.ArrayList;
import java.util.Date;
public class UserVoBase extends User implements VoInterface<User> {
private User user;
@JsonIgnore
private ArrayList<Long> id_arr;
@JsonIgnore
private Long id_gt;
@JsonIgnore
private Long id_lt;
@JsonIgnore
private Long id_gte;
@JsonIgnore
private Long id_lte;
@JsonIgnore
private ArrayList<String> unid_arr;
@JsonIgnore
private String unid_like;
@JsonIgnore
private ArrayList<Date> createTime_arr;
@JsonIgnore
private Date createTime_gt;
@JsonIgnore
private Date createTime_lt;
@JsonIgnore
private Date createTime_gte;
@JsonIgnore
private Date createTime_lte;
@JsonIgnore
private Boolean createUser_null;
@JsonIgnore
private ArrayList<Long> createUser_arr;
@JsonIgnore
private Long createUser_gt;
@JsonIgnore
private Long createUser_lt;
@JsonIgnore
private Long createUser_gte;
@JsonIgnore
private Long createUser_lte;
@JsonIgnore
private ArrayList<String> username_arr;
@JsonIgnore
private String username_like;
@JsonIgnore
private ArrayList<String> password_arr;
@JsonIgnore
private String password_like;
@JsonIgnore
private ArrayList<Integer> type_arr;
@JsonIgnore
private Integer type_gt;
@JsonIgnore
private Integer type_lt;
@JsonIgnore
private Integer type_gte;
@JsonIgnore
private Integer type_lte;
@JsonIgnore
private Boolean name_null;
@JsonIgnore
private ArrayList<String> name_arr;
@JsonIgnore
private String name_like;
@JsonIgnore
private Boolean mail_null;
@JsonIgnore
private ArrayList<String> mail_arr;
@JsonIgnore
private String mail_like;
@JsonIgnore
private Boolean tel_null;
@JsonIgnore
private ArrayList<String> tel_arr;
@JsonIgnore
private String tel_like;
@JsonIgnore
private Boolean accountId_null;
@JsonIgnore
private ArrayList<Long> accountId_arr;
@JsonIgnore
private Long accountId_gt;
@JsonIgnore
private Long accountId_lt;
@JsonIgnore
private Long accountId_gte;
@JsonIgnore
private Long accountId_lte;
@JsonIgnore
private Boolean lastLoginTime_null;
@JsonIgnore
private ArrayList<Date> lastLoginTime_arr;
@JsonIgnore
private Date lastLoginTime_gt;
@JsonIgnore
private Date lastLoginTime_lt;
@JsonIgnore
private Date lastLoginTime_gte;
@JsonIgnore
private Date lastLoginTime_lte;
public UserVoBase() {
this(null);
}
public UserVoBase(User user) {
if(user == null) {
user = new User();
}
this.user = user;
}
@JsonIgnore
public User getModel() {
return user;
}
public void setModel(User user) {
this.user = user;
}
public ArrayList<Long> getId_arr() {
return id_arr;
}
public void setId_arr(ArrayList<Long> id_arr) {
this.id_arr = id_arr;
}
public Long getId_gt() {
return id_gt;
}
public void setId_gt(Long id_gt) {
this.id_gt = id_gt;
}
public Long getId_lt() {
return id_lt;
}
public void setId_lt(Long id_lt) {
this.id_lt = id_lt;
}
public Long getId_gte() {
return id_gte;
}
public void setId_gte(Long id_gte) {
this.id_gte = id_gte;
}
public Long getId_lte() {
return id_lte;
}
public void setId_lte(Long id_lte) {
this.id_lte = id_lte;
}
public Long getId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getId();
}
public void setId(Long id) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setId(id);
}
public ArrayList<String> getUnid_arr() {
return unid_arr;
}
public void setUnid_arr(ArrayList<String> unid_arr) {
this.unid_arr = unid_arr;
}
public String getUnid_like() {
return unid_like;
}
public void setUnid_like(String unid_like) {
this.unid_like = unid_like;
}
public String getUnid() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUnid();
}
public void setUnid(String unid) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUnid(unid);
}
public ArrayList<Date> getCreateTime_arr() {
return createTime_arr;
}
public void setCreateTime_arr(ArrayList<Date> createTime_arr) {
this.createTime_arr = createTime_arr;
}
public Date getCreateTime_gt() {
return createTime_gt;
}
public void setCreateTime_gt(Date createTime_gt) {
this.createTime_gt = createTime_gt;
}
public Date getCreateTime_lt() {
return createTime_lt;
}
public void setCreateTime_lt(Date createTime_lt) {
this.createTime_lt = createTime_lt;
}
public Date getCreateTime_gte() {
return createTime_gte;
}
public void setCreateTime_gte(Date createTime_gte) {
this.createTime_gte = createTime_gte;
}
public Date getCreateTime_lte() {
return createTime_lte;
}
public void setCreateTime_lte(Date createTime_lte) {
this.createTime_lte = createTime_lte;
}
public Date getCreateTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateTime();
}
public void setCreateTime(Date createTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateTime(createTime);
}
public Boolean getCreateUser_null() {
return createUser_null;
}
public void setCreateUser_null(Boolean createUser_null) {
this.createUser_null = createUser_null;
}
public ArrayList<Long> getCreateUser_arr() {
return createUser_arr;
}
public void setCreateUser_arr(ArrayList<Long> createUser_arr) {
this.createUser_arr = createUser_arr;
}
public Long getCreateUser_gt() {
return createUser_gt;
}
public void setCreateUser_gt(Long createUser_gt) {
this.createUser_gt = createUser_gt;
}
public Long getCreateUser_lt() {
return createUser_lt;
}
public void setCreateUser_lt(Long createUser_lt) {
this.createUser_lt = createUser_lt;
}
public Long getCreateUser_gte() {
return createUser_gte;
}
public void setCreateUser_gte(Long createUser_gte) {
this.createUser_gte = createUser_gte;
}
public Long getCreateUser_lte() {
return createUser_lte;
}
public void setCreateUser_lte(Long createUser_lte) {
this.createUser_lte = createUser_lte;
}
public Long getCreateUser() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getCreateUser();
}
public void setCreateUser(Long createUser) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setCreateUser(createUser);
}
public ArrayList<String> getUsername_arr() {
return username_arr;
}
public void setUsername_arr(ArrayList<String> username_arr) {
this.username_arr = username_arr;
}
public String getUsername_like() {
return username_like;
}
public void setUsername_like(String username_like) {
this.username_like = username_like;
}
public String getUsername() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getUsername();
}
public void setUsername(String username) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setUsername(username);
}
public ArrayList<String> getPassword_arr() {
return password_arr;
}
public void setPassword_arr(ArrayList<String> password_arr) {
this.password_arr = password_arr;
}
public String getPassword_like() {
return password_like;
}
public void setPassword_like(String password_like) {
this.password_like = password_like;
}
public String getPassword() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getPassword();
}
public void setPassword(String password) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setPassword(password);
}
public ArrayList<Integer> getType_arr() {
return type_arr;
}
public void setType_arr(ArrayList<Integer> type_arr) {
this.type_arr = type_arr;
}
public Integer getType_gt() {
return type_gt;
}
public void setType_gt(Integer type_gt) {
this.type_gt = type_gt;
}
public Integer getType_lt() {
return type_lt;
}
public void setType_lt(Integer type_lt) {
this.type_lt = type_lt;
}
public Integer getType_gte() {
return type_gte;
}
public void setType_gte(Integer type_gte) {
this.type_gte = type_gte;
}
public Integer getType_lte() {
return type_lte;
}
public void setType_lte(Integer type_lte) {
this.type_lte = type_lte;
}
public Integer getType() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getType();
}
public void setType(Integer type) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setType(type);
}
public Boolean getName_null() {
return name_null;
}
public void setName_null(Boolean name_null) {
this.name_null = name_null;
}
public ArrayList<String> getName_arr() {
return name_arr;
}
public void setName_arr(ArrayList<String> name_arr) {
this.name_arr = name_arr;
}
public String getName_like() {
return name_like;
}
public void setName_like(String name_like) {
this.name_like = name_like;
}
public String getName() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getName();
}
public void setName(String name) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setName(name);
}
public Boolean getMail_null() {
return mail_null;
}
public void setMail_null(Boolean mail_null) {
this.mail_null = mail_null;
}
public ArrayList<String> getMail_arr() {
return mail_arr;
}
public void setMail_arr(ArrayList<String> mail_arr) {
this.mail_arr = mail_arr;
}
public String getMail_like() {
return mail_like;
}
public void setMail_like(String mail_like) {
this.mail_like = mail_like;
}
public String getMail() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getMail();
}
public void setMail(String mail) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setMail(mail);
}
public Boolean getTel_null() {
return tel_null;
}
public void setTel_null(Boolean tel_null) {
this.tel_null = tel_null;
}
public ArrayList<String> getTel_arr() {
return tel_arr;
}
public void setTel_arr(ArrayList<String> tel_arr) {
this.tel_arr = tel_arr;
}
public String getTel_like() {
return tel_like;
}
public void setTel_like(String tel_like) {
this.tel_like = tel_like;
}
public String getTel() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getTel();
}
public void setTel(String tel) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setTel(tel);
}
public Boolean getAccountId_null() {
return accountId_null;
}
public void setAccountId_null(Boolean accountId_null) {
this.accountId_null = accountId_null;
}
public ArrayList<Long> getAccountId_arr() {
return accountId_arr;
}
public void setAccountId_arr(ArrayList<Long> accountId_arr) {
this.accountId_arr = accountId_arr;
}
public Long getAccountId_gt() {
return accountId_gt;
}
public void setAccountId_gt(Long accountId_gt) {
this.accountId_gt = accountId_gt;
}
public Long getAccountId_lt() {
return accountId_lt;
}
public void setAccountId_lt(Long accountId_lt) {
this.accountId_lt = accountId_lt;
}
public Long getAccountId_gte() {
return accountId_gte;
}
public void setAccountId_gte(Long accountId_gte) {
this.accountId_gte = accountId_gte;
}
public Long getAccountId_lte() {
return accountId_lte;
}
public void setAccountId_lte(Long accountId_lte) {
this.accountId_lte = accountId_lte;
}
public Long getAccountId() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getAccountId();
}
public void setAccountId(Long accountId) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setAccountId(accountId);
}
public Boolean getLastLoginTime_null() {
return lastLoginTime_null;
}
public void setLastLoginTime_null(Boolean lastLoginTime_null) {
this.lastLoginTime_null = lastLoginTime_null;
}
public ArrayList<Date> getLastLoginTime_arr() {
return lastLoginTime_arr;
}
public void setLastLoginTime_arr(ArrayList<Date> lastLoginTime_arr) {
this.lastLoginTime_arr = lastLoginTime_arr;
}
public Date getLastLoginTime_gt() {
return lastLoginTime_gt;
}
public void setLastLoginTime_gt(Date lastLoginTime_gt) {
this.lastLoginTime_gt = lastLoginTime_gt;
}
public Date getLastLoginTime_lt() {
return lastLoginTime_lt;
}
public void setLastLoginTime_lt(Date lastLoginTime_lt) {
this.lastLoginTime_lt = lastLoginTime_lt;
}
public Date getLastLoginTime_gte() {
return lastLoginTime_gte;
}
public void setLastLoginTime_gte(Date lastLoginTime_gte) {
this.lastLoginTime_gte = lastLoginTime_gte;
}
public Date getLastLoginTime_lte() {
return lastLoginTime_lte;
}
public void setLastLoginTime_lte(Date lastLoginTime_lte) {
this.lastLoginTime_lte = lastLoginTime_lte;
}
public Date getLastLoginTime() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getLastLoginTime();
}
public void setLastLoginTime(Date lastLoginTime) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setLastLoginTime(lastLoginTime);
}
public Account getAccount() {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
return this.getModel().getAccount();
}
public void setAccount(Account account) {
if(getModel() == null ){
throw new RuntimeException("model is null");
}
this.getModel().setAccount(account);
}
}
\ No newline at end of file
package com.viontech.label.platform.websocket;
import com.viontech.label.platform.config.ApplicationContextProvider;
import com.viontech.label.platform.service.main.ReidService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.websocket.OnClose;
import javax.websocket.OnError;
import javax.websocket.OnMessage;
import javax.websocket.Session;
import javax.websocket.server.PathParam;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
/**
* 在标注时建立websocket通道,
*
* @author 谢明辉
* @date 2021/7/6
*/
@ServerEndpoint(value = "/reid/websocket/{packId}/{personUnid}")
@Component
@Slf4j
public class ReidLabelingWebsocket {
private static final Set<String> SESSION_ID_SET = new HashSet<>();
@OnClose
public void onClose(Session session, @PathParam("packId") Long packId, @PathParam("personUnid") String personUnid) {
ReidService reidService = ApplicationContextProvider.getBean(ReidService.class);
if (!SESSION_ID_SET.contains(session.getId())) {
log.info("websocket 下线,需要退出标注中状态, packId:{}, personUnid:{}, sessionId:{}", packId, personUnid, session.getId());
reidService.exitLabeling(personUnid, packId);
SESSION_ID_SET.remove(session.getId());
}
}
@OnMessage
public void onMessage(String message, Session session, @PathParam("packId") Long packId, @PathParam("personUnid") String personUnid) {
if (message.contains("success")) {
SESSION_ID_SET.add(session.getId());
try {
session.getBasicRemote().sendText("ok");
} catch (IOException e) {
log.info("", e);
}
}
}
@OnError
public void onError(Session session, Throwable error) {
log.info("", error);
}
}
package com.viontech.label.platform.websocket;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.MultimapBuilder;
import com.viontech.label.platform.model.User;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.websocket.*;
import javax.websocket.server.PathParam;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;
import java.util.List;
/**
* reid 标注使用
*
* @author 谢明辉
* @date 2021/6/24
*/
@ServerEndpoint(value = "/reid/websocket/{packId}")
@Component
@Slf4j
public class ReidWebsocket {
private final static ListMultimap<Long, Session> SESSION_MAP = MultimapBuilder.hashKeys().linkedListValues().build();
public static void sendInfo(Long packId, Message message) {
try {
List<Session> sessions = SESSION_MAP.get(packId);
for (Session session : sessions) {
try {
sendMessage(session, message);
} catch (Exception ignore) {
}
}
} catch (Exception e) {
log.error("", e);
}
}
public static void sendMessage(Session session, Message message) throws IOException {
String messageStr = JSON.toJSONString(message);
session.getBasicRemote().sendText(messageStr);
}
@OnOpen
public void onOpen(Session session, @PathParam("packId") Long packId) {
SESSION_MAP.put(packId, session);
}
@OnClose
public void onClose(Session session, @PathParam("packId") Long packId) {
log.info("websocket 下线, packId:{}, sessionId:{}", packId, session.getId());
SESSION_MAP.remove(packId, session);
}
@OnMessage
public void onMessage(String message, Session session, @PathParam("packId") Long packId) {
System.out.println("packId:" + packId + "\nsessionId:" + session.getId() + "\nmessage:" + message);
}
@OnError
public void onError(Session session, Throwable error) {
log.info("", error);
}
@Getter
@Setter
@Accessors(chain = true)
public static class Message {
private String command;
private Object data;
private User user;
}
}
server.port=12100
# database
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/vion_label
spring.datasource.username=postgres
spring.datasource.password=vion
# redis
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=vionredis
# temporary
logging.level.com.viontech.label.platform.mapper=error
debug=false
# vion
vion.match-url=http://127.0.0.1:12000/alg
\ No newline at end of file
server.port=12100
# database
spring.datasource.url=jdbc:postgresql://36.112.68.214:5432/vion_label
spring.datasource.username=postgres
spring.datasource.password=vion
# redis
spring.redis.host=36.112.68.214
spring.redis.port=6379
spring.redis.password=vionredis
spring.redis.database=0
# temporary
logging.level.com.viontech.label.platform.mapper=error
debug=false
# vion
vion.match-url=http://36.112.68.214:12000/alg
\ No newline at end of file
server:
port: 12100
spring:
profiles:
active: dev
sa-token:
token-name: token
activity-timeout: 36000
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
default-property-inclusion: non_null
datasource:
driver-class-name: org.postgresql.Driver
mybatis:
type-aliases-package: com.viontech.lable.model
mapper-locations: classpath:com/viontech/label/platform/mapping/*.xml
pagehelper:
helper-dialect: postgresql
reasonable: true
supportMethodsArguments: true
params: count=countByExample
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL,如果设置为WARN,则低于WARN的信息都不会输出 -->
<!-- scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true -->
<!-- scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。 -->
<!-- debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。 -->
<configuration scan="true" scanPeriod="10 seconds">
<!--<include resource="org/springframework/boot/logging/logback/base.xml" />-->
<contextName>logback</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<property name="log.path" value="logs"/>
<property name="pattern" value="[%d{yyyy-MM-dd HH:mm:ss.SSS}] [%-5level] [%thread] %logger{50} - %msg%n"/>
<!--输出到控制台-->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息-->
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>info</level>
</filter>
<encoder>
<Pattern>${pattern}</Pattern>
<!-- 设置字符集 -->
</encoder>
</appender>
<!--输出到文件-->
<!-- 时间滚动输出 level为 DEBUG 日志 -->
<appender name="DEBUG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- 正在记录的日志文件的路径及文件名 -->
<file>${log.path}/log_debug.log</file>
<!--日志文件输出格式-->
<encoder>
<Pattern>${pattern}</Pattern>
<charset>UTF-8</charset> <!-- 设置字符集 -->
</encoder>
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志归档 -->
<fileNamePattern>${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!--日志文件保留天数-->
<maxHistory>15</maxHistory>
</rollingPolicy>
<!-- 此日志文件只记录debug级别的 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>debug</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 时间滚动输出 level为 INFO 日志 -->
<appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- 正在记录的日志文件的路径及文件名 -->
<file>${log.path}/log_info.log</file>
<!--日志文件输出格式-->
<encoder>
<Pattern>${pattern}</Pattern>
<charset>UTF-8</charset>
</encoder>
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 每天日志归档路径以及格式 -->
<fileNamePattern>${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!--日志文件保留天数-->
<maxHistory>15</maxHistory>
</rollingPolicy>
<!-- 此日志文件只记录info级别的 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>info</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>NEUTRAL</onMismatch>
</filter>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>warn</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 时间滚动输出 level为 WARN 日志 -->
<appender name="WARN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- 正在记录的日志文件的路径及文件名 -->
<file>${log.path}/log_warn.log</file>
<!--日志文件输出格式-->
<encoder>
<Pattern>${pattern}</Pattern>
<charset>UTF-8</charset> <!-- 此处设置字符集 -->
</encoder>
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!--日志文件保留天数-->
<maxHistory>5</maxHistory>
</rollingPolicy>
<!-- 此日志文件只记录warn级别的 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>warn</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 时间滚动输出 level为 ERROR 日志 -->
<appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- 正在记录的日志文件的路径及文件名 -->
<file>${log.path}/log_error.log</file>
<!--日志文件输出格式-->
<encoder>
<Pattern>${pattern}</Pattern>
<charset>UTF-8</charset> <!-- 此处设置字符集 -->
</encoder>
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!--日志文件保留天数-->
<maxHistory>15</maxHistory>
</rollingPolicy>
<!-- 此日志文件只记录ERROR级别的 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<logger name="com.viontech" level="debug">
<appender-ref ref="DEBUG_FILE"/>
</logger>
<root level="info">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="WARN_FILE"/>
<appender-ref ref="ERROR_FILE"/>
</root>
</configuration>
\ No newline at end of file
package com.viontech.label.platform;
import com.google.common.collect.Lists;
import com.viontech.keliu.model.BodyFeature;
import com.viontech.keliu.model.Data;
import com.viontech.keliu.model.Feature;
import com.viontech.keliu.model.Person;
import com.viontech.label.platform.utils.StorageUtils;
import com.viontech.label.platform.vo.PicVo;
import org.apache.commons.lang3.ArrayUtils;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import java.awt.event.KeyListener;
import java.util.List;
import java.util.Optional;
@SpringBootTest
@RunWith(SpringRunner.class)
class LabelApplicationTests {
@Resource
private StorageUtils storageUtils;
@Test
void contextLoads() throws Exception{
PicVo pic = storageUtils.getPic(5L);
Feature bodyFeature = storageUtils.getFeatureByPic(5L);
List<Data> datas = bodyFeature.getDatas();
if (datas == null || datas.size() == 0) {
return;
}
Data data = datas.stream().filter(item -> "server".equals(item.getType())).findFirst().orElse(null);
if (data == null) {
return;
}
Double[] featureData = data.getData();
Person person = new Person().setPersonId(pic.getUnid());
person.setBodyFeatures(Lists.newArrayList(new BodyFeature().setFeature(featureData).setPicName(pic.getName())));
System.out.println(person);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<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.viontech</groupId>
<artifactId>label</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>label-tool-keliu</artifactId>
<version>${project.parent.version}</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.viontech</groupId>
<artifactId>label-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.viontech.keliu</groupId>
<artifactId>AlgApiClient</artifactId>
<version>6.0.6-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>tomcat-websocket</artifactId>
<groupId>org.apache.tomcat</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>2.57</version>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
<version>3.11.2</version>
</dependency>
</dependencies>
<build>
<finalName>label-tool-keliu</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package com.viontech.label.tool.keliu;
import com.viontech.label.tool.keliu.config.VionConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import javax.annotation.Resource;
@SpringBootApplication
@ConfigurationPropertiesScan("com.viontech.label.tool.keliu")
public class LabelKeliuToolApp {
@Resource
private VionConfig vionConfig;
public static void main(String[] args) {
SpringApplication.run(LabelKeliuToolApp.class, args);
}
}
package com.viontech.label.tool.keliu.config;
import org.nustaq.serialization.FSTConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Configuration
@AutoConfigureAfter(RedisAutoConfiguration.class)
public class RedisConfig extends CachingConfigurerSupport {
@Bean
public RedisTemplate redisTemplate(RedisConnectionFactory redisConnectionFactory) {
RedisTemplate redisTemplate = new RedisTemplate();
//给redis模板先设置连接工厂,在设置序列化规则
redisTemplate.setConnectionFactory(redisConnectionFactory);
//设置序列化规则
FSTSerializer fstSerializer = new FSTSerializer();
redisTemplate.setKeySerializer(new StringRedisSerializer());
redisTemplate.setValueSerializer(fstSerializer);
redisTemplate.setHashKeySerializer(fstSerializer);
redisTemplate.setHashValueSerializer(fstSerializer);
return redisTemplate;
}
private static class FSTSerializer implements RedisSerializer<Object> {
private final static ThreadLocal<FSTConfiguration> FST_CONFIG = ThreadLocal.withInitial(FSTConfiguration::createDefaultConfiguration);
@Override
public byte[] serialize(Object obj) {
if (null == obj) {
return null;
}
return FST_CONFIG.get().asByteArray(obj);
}
@Override
public Object deserialize(byte[] bytes) {
if (null == bytes || bytes.length == 0) {
return null;
}
return FST_CONFIG.get().asObject(bytes);
}
}
}
package com.viontech.label.tool.keliu.config;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.codec.FstCodec;
import org.redisson.config.Config;
import org.redisson.config.SingleServerConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import java.util.concurrent.TimeUnit;
/**
* .
*
* @author 谢明辉
* @date 2019-8-7 9:30
*/
@Configuration
public class RedissonConfig {
@Value("${spring.redis.host:127.0.0.1}")
private String host;
@Value("${spring.redis.port:6379}")
private Integer port;
@Value("${spring.redis.password:vionredis}")
private String password;
@Value("${spring.redis.database:0}")
private Integer database;
@Bean(name = "redissonClient", destroyMethod = "shutdown")
@ConditionalOnProperty(name = "spring.redis.host")
@Lazy
public RedissonClient redissonClient() {
Config config = new Config();
SingleServerConfig singleServerConfig = config.useSingleServer();
singleServerConfig.setAddress("redis://" + host + ":" + port);
singleServerConfig.setPassword(password);
singleServerConfig.setDatabase(database);
singleServerConfig.setConnectionMinimumIdleSize(10);
singleServerConfig.setConnectionPoolSize(20);
singleServerConfig.setDnsMonitoringInterval(5000);
config.setCodec(new FstCodec());
return Redisson.create(config);
}
@Bean(name = "redissonClient", destroyMethod = "shutdown")
@ConditionalOnProperty(name = "spring.redis.cluster.nodes")
@ConditionalOnMissingBean(RedissonClient.class)
@Lazy
public RedissonClient redissonClientCluster(@Value("${spring.redis.cluster.nodes}") String nodesStr) {
String[] split = nodesStr.split(",");
for (int i = 0; i < split.length; i++) {
split[i] = "redis://" + split[i];
}
Config config = new Config();
config.useClusterServers()
// 集群状态扫描间隔时间,单位是毫秒
.setScanInterval(2000)
//可以用"rediss://"来启用SSL连接
.addNodeAddress(split)
.setPassword(password)
.setSlaveConnectionPoolSize(10)
.setSlaveConnectionMinimumIdleSize(5)
.setTimeout((int) TimeUnit.MINUTES.toMillis(5));
config.setCodec(new FstCodec());
return Redisson.create(config);
}
@Bean(name = "redissonClient", destroyMethod = "shutdown")
@ConditionalOnProperty(name = "spring.redis.sentinel.nodes")
@ConditionalOnMissingBean(RedissonClient.class)
@Lazy
public RedissonClient redissonClientSentinel(@Value("${spring.redis.sentinel.nodes}") String nodesStr, @Value("${spring.redis.sentinel.master}") String master) {
String[] split = nodesStr.split(",");
for (int i = 0; i < split.length; i++) {
split[i] = "redis://" + split[i];
}
Config config = new Config();
config.useSentinelServers()
.setMasterName(master)
.addSentinelAddress(split)
.setPassword(password)
.setSlaveConnectionPoolSize(10)
.setSlaveConnectionMinimumIdleSize(5)
.setTimeout((int) TimeUnit.MINUTES.toMillis(5));
config.setCodec(new FstCodec());
return Redisson.create(config);
}
}
package com.viontech.label.tool.keliu.config;
import com.viontech.label.tool.keliu.model.MyHikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.jdbc.core.JdbcTemplate;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* .
*
* @author 谢明辉
* @date 2021/6/17
*/
@ConfigurationProperties(prefix = "vion")
@Getter
@Setter
public class VionConfig {
private Boolean localClient;
private String targetUrl;
private String keliuImageUrl;
private String keliuImagePath;
private static final ThreadPoolExecutor POOL_EXECUTOR = new ThreadPoolExecutor(20, 20, 1, TimeUnit.MINUTES, new LinkedBlockingDeque<>(10000), new ThreadPoolExecutor.CallerRunsPolicy());
}
package com.viontech.label.tool.keliu.config;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.viontech.label.core.base.DateConverter;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.convert.converter.Converter;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.util.Date;
/**
* .
*
* @author 谢明辉
* @date 2021/5/26
*/
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Bean
@Primary
public ObjectMapper jacksonObjectMapper(Jackson2ObjectMapperBuilder builder) {
builder.serializationInclusion(JsonInclude.Include.NON_NULL);
ObjectMapper objectMapper = builder.createXmlMapper(false).build();
SimpleFilterProvider simpleFilterProvider = new SimpleFilterProvider();
simpleFilterProvider.addFilter("myHikariConfig", SimpleBeanPropertyFilter.filterOutAllExcept("jdbcUrl", "driverClassName", "username", "password", "name"));
objectMapper.setFilterProvider(simpleFilterProvider);
return objectMapper;
}
@Bean
public Converter<String, Date> addNewConvert() {
return new DateConverter();
}
@Bean
public RestTemplate getRestTemplate(RestTemplateBuilder restTemplateBuilder) {
return restTemplateBuilder.build();
}
@Configuration
public static class CorsConfig {
@Bean
public CorsFilter corsFilter() {
CorsConfiguration config = new CorsConfiguration();
config.addAllowedOrigin("*");
config.setAllowCredentials(true);
config.addAllowedMethod("*");
config.addAllowedHeader("*");
config.setMaxAge(3600L);
UrlBasedCorsConfigurationSource configSource = new UrlBasedCorsConfigurationSource();
configSource.registerCorsConfiguration("/**", config);
return new CorsFilter(configSource);
}
}
}
package com.viontech.label.tool.keliu.controller;
import com.viontech.keliu.util.JsonMessageUtil;
import com.viontech.label.core.constant.Constants;
import com.viontech.label.tool.keliu.model.MyHikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Map;
import java.util.UUID;
/**
* .
*
* @author 谢明辉
* @date 2021/6/17
*/
@RestController
@RequestMapping("/datasource")
public class DatasourceController {
@Resource
private RedisTemplate redisTemplate;
@PostMapping
public Object add(@RequestBody MyHikariConfig hikariConfig) {
hikariConfig.setDriverClassName("org.postgresql.Driver");
HikariDataSource hikariDataSource = new HikariDataSource(hikariConfig);
try (Connection con = hikariDataSource.getConnection()) {
} catch (SQLException e) {
return JsonMessageUtil.getErrorJsonMsg(e.getLocalizedMessage());
} finally {
hikariDataSource.close();
}
redisTemplate.opsForHash().put(Constants.REDIS_KEY_DATASOURCE, UUID.randomUUID().toString(), hikariConfig);
return JsonMessageUtil.getSuccessJsonMsg(null);
}
@GetMapping
public Object get() {
Map<String, MyHikariConfig> entries = redisTemplate.opsForHash().entries(Constants.REDIS_KEY_DATASOURCE);
return JsonMessageUtil.getSuccessJsonMsg(entries);
}
@DeleteMapping("/{unid}")
public Object delete(@PathVariable("unid") String unid) {
Long delete = redisTemplate.opsForHash().delete(Constants.REDIS_KEY_DATASOURCE, unid);
return JsonMessageUtil.getSuccessJsonMsg(delete.toString());
}
}
package com.viontech.label.tool.keliu.controller;
import com.viontech.keliu.util.JsonMessageUtil;
import com.viontech.label.tool.keliu.config.VionConfig;
import com.viontech.label.tool.keliu.model.FaceRecognition;
import com.viontech.label.tool.keliu.repository.KeliuRepository;
import com.viontech.label.tool.keliu.service.FileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.http.*;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Future;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* .
*
* @author 谢明辉
* @date 2021/6/17
*/
@RestController
@RequestMapping("/keliu")
@Slf4j
public class KeliuController {
private static Boolean SEND_DATA = false;
@Resource
private KeliuRepository keliuRepository;
@Resource
private VionConfig vionConfig;
@Resource
private FileService fileService;
@Resource
private RestTemplate restTemplate;
@GetMapping("/mallMap")
public Object getMallMap() {
HashMap<Long, String> mallMap = keliuRepository.getMallMap();
return JsonMessageUtil.getSuccessJsonMsg(mallMap);
}
@GetMapping("/sendData")
public Object sendData(@RequestParam Date date, @RequestParam Long mallId, @RequestParam Long packId) {
List<Future<JsonMessageUtil.JsonMessage>> responses = new LinkedList<>();
if (SEND_DATA) {
return JsonMessageUtil.getErrorJsonMsg("有数据传输任务正在进行");
} else {
SEND_DATA = true;
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(20, 20, 1, TimeUnit.MINUTES, new LinkedBlockingDeque<>(10000), new ThreadPoolExecutor.CallerRunsPolicy());
try {
List<FaceRecognition> faceRecognitions = keliuRepository.getFaceRecognitionsByDateAndMallId(date, mallId);
for (FaceRecognition faceRecognition : faceRecognitions) {
Future<JsonMessageUtil.JsonMessage> submit = threadPoolExecutor.submit(() -> {
try {
byte[] bodyPic = fileService.getFile(faceRecognition.getBodyPath());
byte[] bodyFeature = fileService.getFile(faceRecognition.getBodyFeaturePath());
HttpEntity<MultiValueMap<String, Object>> requestEntity = getRequestEntity(faceRecognition, bodyPic, bodyFeature, packId);
ResponseEntity<JsonMessageUtil.JsonMessage> exchange = restTemplate.exchange(vionConfig.getTargetUrl(), HttpMethod.POST, requestEntity, JsonMessageUtil.JsonMessage.class);
JsonMessageUtil.JsonMessage body = exchange.getBody();
log.info("unid:{},msg:{}", faceRecognition.getUnid(), body.getMsg());
return body;
} catch (Exception e) {
log.info("", e);
return null;
}
});
responses.add(submit);
}
} finally {
threadPoolExecutor.shutdown();
SEND_DATA = false;
}
}
long success = 0;
long failed = 0;
for (Future<JsonMessageUtil.JsonMessage> future : responses) {
try {
JsonMessageUtil.JsonMessage jsonMessage = future.get();
if (jsonMessage == null || !jsonMessage.isSuccess()) {
failed++;
} else {
success++;
}
} catch (Exception e) {
e.printStackTrace();
}
}
return JsonMessageUtil.getSuccessJsonMsg("success:" + success + ";failed:" + failed);
}
private HttpEntity<MultiValueMap<String, Object>> getRequestEntity(FaceRecognition faceRecognition, byte[] bodyPic, byte[] bodyFeature, Long packId) {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.MULTIPART_FORM_DATA);
ByteArrayResource picResource = new ByteArrayResource(bodyPic) {
@Override
public String getFilename() {
return faceRecognition.getBodyPic();
}
};
ByteArrayResource featureResource = new ByteArrayResource(bodyFeature) {
@Override
public String getFilename() {
return faceRecognition.getBodyPic() + ".feature";
}
};
LinkedMultiValueMap<String, Object> map = new LinkedMultiValueMap<>();
map.add("pic", picResource);
map.add("feature", featureResource);
map.add("unid", faceRecognition.getUnid());
map.add("personUnid", faceRecognition.getPersonUnid());
map.add("packId", packId);
map.add("countTime", faceRecognition.getCounttime());
return new HttpEntity<>(map, headers);
}
}
package com.viontech.label.tool.keliu.model;
import com.viontech.keliu.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import java.io.File;
import java.nio.file.Files;
import java.util.Date;
@Getter
@Setter
public class FaceRecognition {
private Long id;
private Long deviceId;
private Long channelId;
private Long gateId;
private String deviceSerialnum;
private String channelSerialnum;
private Long personType;
private String facePic;
private String bodyPic;
private Short mood;
private Short age;
private Short gender;
private Short direction;
private Date counttime;
private Date countdate;
private Date modifyTime;
private Date createTime;
private Long mallId;
private Long accountId;
private String personUnid;
private Short status;
private String trackInfo;
private Integer trackTime;
private Short happyConf;
private Short historyArrivalCount;
private Short todayArrivalCount;
private String unid;
private Float faceScore;
private Short faceType;
private Short facePicNum;
private Short bodyPicNum;
private Short faceFeatureType;
private Short bodyFeatureType;
private String countdateStr;
public String getBodyPath() {
return "picture/" + getRootPath("body") + bodyPic;
}
public String getBodyFeaturePath() {
return "feature/" + getRootPath("body") + bodyPic + ".feature";
}
private String getRootPath(String pathType) {
Date countdate = this.getCountdate();
if (countdate == null) {
return "获取轨迹根路径失败。【日期字段无法获取】";
}
if (countdateStr == null) {
countdateStr = DateUtil.format("yyyyMMdd", countdate);
}
String channelSerialnum = this.getChannelSerialnum();
if (channelSerialnum == null) {
return "获取轨迹根路径失败。【通道序列号字段无法获取】";
}
return pathType + "/" + countdateStr + "/" + channelSerialnum + "/";
}
}
\ No newline at end of file
package com.viontech.label.tool.keliu.model;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.zaxxer.hikari.HikariConfig;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* .
*
* @author 谢明辉
* @date 2021/6/17
*/
@JsonFilter("myHikariConfig")
public class MyHikariConfig extends HikariConfig implements Serializable {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
package com.viontech.label.tool.keliu.repository;
import com.viontech.label.tool.keliu.model.FaceRecognition;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
/**
* .
*
* @author 谢明辉
* @date 2021/6/17
*/
@Repository
public class KeliuRepository {
@Resource
private JdbcTemplate jdbcTemplate;
public List<FaceRecognition> getFaceRecognitionsByDateAndMallId(Date date, Long mallId) {
return jdbcTemplate.query("select unid,person_unid,channel_serialnum,body_pic,countdate,counttime from d_face_recognition where countdate=? and mall_id=?", new BeanPropertyRowMapper<>(FaceRecognition.class), date, mallId);
}
public HashMap<Long, String> getMallMap() {
HashMap<Long, String> result = new HashMap<>();
jdbcTemplate.query("select id,name from b_mall", rs -> {
result.put(rs.getLong("id"), rs.getString("name"));
});
return result;
}
}
package com.viontech.label.tool.keliu.service;
/**
* .
*
* @author 谢明辉
* @date 2021/7/9
*/
public interface FileService {
byte[] getFile(String filePath);
}
package com.viontech.label.tool.keliu.service;
import com.viontech.label.tool.keliu.config.VionConfig;
import org.apache.commons.io.FileUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.File;
/**
* .
*
* @author 谢明辉
* @date 2021/7/9
*/
@Service("fileService")
@ConditionalOnProperty("vion.keliu-image-path")
public class LocalFileServiceImpl implements FileService {
@Resource
private VionConfig vionConfig;
@Override
public byte[] getFile(String filePath) {
try {
return FileUtils.readFileToByteArray(new File(vionConfig.getKeliuImagePath() + filePath));
} catch (Exception e) {
return null;
}
}
}
package com.viontech.label.tool.keliu.service;
import com.viontech.label.tool.keliu.config.VionConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import javax.annotation.Resource;
/**
* .
*
* @author 谢明辉
* @date 2021/7/9
*/
@Service("fileService")
@ConditionalOnProperty("vion.keliu-image-url")
public class OnlineFileServiceImpl implements FileService {
@Resource
private VionConfig vionConfig;
@Resource
private RestTemplate restTemplate;
@Override
public byte[] getFile(String filePath) {
return restTemplate.getForObject(vionConfig.getKeliuImageUrl() + filePath, byte[].class);
}
}
server.port=12101
# database
spring.datasource.url=jdbc:postgresql://36.112.68.214:5432/benfei
spring.datasource.username=postgres
spring.datasource.password=vion
#spring.datasource.url=jdbc:postgresql://pgm-2ze197c18ro6p1r1fo.pg.rds.aliyuncs.com:3433/ShoppingMall_retail2.0
#spring.datasource.username=vion
#spring.datasource.password=cdmqYwBq9uAdvLJb
# redis
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=vionredis
#temporary
logging.level.com.viontech.label.mapper=error
debug=false
vion.local-client=true
vion.target-url=http://36.112.68.214:12100/reid/upload
#vion.keliu-image-url=https://vion-retail.oss-cn-beijing.aliyuncs.com/
vion.keliu-image-path=/jason/VVAS/jingmao/
server:
port: 12101
spring:
profiles:
active: option
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
default-property-inclusion: non_null
datasource:
driver-class-name: org.postgresql.Driver
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.viontech</groupId>
<artifactId>label</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>label</name>
<modules>
<module>label-core</module>
<module>label-platform</module>
<module>label-tool-keliu</module>
</modules>
<packaging>pom</packaging>
<properties>
<skipTests>true</skipTests>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!