diff --git a/common/src/main/java/com/ccsens/common/CommonApplication.java b/common/src/main/java/com/ccsens/common/CommonApplication.java index cb363dad..5c614671 100644 --- a/common/src/main/java/com/ccsens/common/CommonApplication.java +++ b/common/src/main/java/com/ccsens/common/CommonApplication.java @@ -1,25 +1,25 @@ -package com.ccsens.common; - -import org.mybatis.spring.annotation.MapperScan; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.web.servlet.ServletComponentScan; -import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; -import org.springframework.cloud.openfeign.EnableFeignClients; -import org.springframework.scheduling.annotation.EnableAsync; - -/** - * @author ma - */ -//@MapperScan(basePackages = {"com.ccsens.common.persist.*"}) -//@ServletComponentScan -//@EnableAsync -////开启断路器功能 -//@EnableCircuitBreaker -//@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") -//@SpringBootApplication(scanBasePackages = "com.ccsens") -public class CommonApplication { - public static void main(String[] args) { - SpringApplication.run(CommonApplication.class,args); - } -} +//package com.ccsens.common; +// +//import org.mybatis.spring.annotation.MapperScan; +//import org.springframework.boot.SpringApplication; +//import org.springframework.boot.autoconfigure.SpringBootApplication; +//import org.springframework.boot.web.servlet.ServletComponentScan; +//import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; +//import org.springframework.cloud.openfeign.EnableFeignClients; +//import org.springframework.scheduling.annotation.EnableAsync; +// +///** +// * @author ma +// */ +////@MapperScan(basePackages = {"com.ccsens.common.persist.*"}) +////@ServletComponentScan +////@EnableAsync +//////开启断路器功能 +////@EnableCircuitBreaker +////@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") +////@SpringBootApplication(scanBasePackages = "com.ccsens") +//public class CommonApplication { +// public static void main(String[] args) { +// SpringApplication.run(CommonApplication.class,args); +// } +//} diff --git a/common/src/main/java/com/ccsens/common/api/DebugController.java b/common/src/main/java/com/ccsens/common/api/DebugController.java index d706abdb..6a098c9c 100644 --- a/common/src/main/java/com/ccsens/common/api/DebugController.java +++ b/common/src/main/java/com/ccsens/common/api/DebugController.java @@ -1,29 +1,29 @@ -package com.ccsens.common.api; - -import com.ccsens.util.JsonResponse; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import lombok.extern.slf4j.Slf4j; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import javax.servlet.http.HttpServletRequest; - -@Api(tags = "DEBUG" , description = "DebugController | ") -@RestController -@RequestMapping("/debug") -@Slf4j -public class DebugController { - - @ApiOperation(value = "/测试",notes = "") - @ApiImplicitParams({ - }) - @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) - public JsonResponse debug(HttpServletRequest request) throws Exception { - - return JsonResponse.newInstance().ok("测试"); - } - -} +//package com.ccsens.common.api; +// +//import com.ccsens.util.JsonResponse; +//import io.swagger.annotations.Api; +//import io.swagger.annotations.ApiImplicitParams; +//import io.swagger.annotations.ApiOperation; +//import lombok.extern.slf4j.Slf4j; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RequestMethod; +//import org.springframework.web.bind.annotation.RestController; +// +//import javax.servlet.http.HttpServletRequest; +// +//@Api(tags = "DEBUG" , description = "DebugController | ") +//@RestController +//@RequestMapping("/debug") +//@Slf4j +//public class DebugController { +// +// @ApiOperation(value = "/测试",notes = "") +// @ApiImplicitParams({ +// }) +// @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) +// public JsonResponse debug(HttpServletRequest request) throws Exception { +// +// return JsonResponse.newInstance().ok("测试"); +// } +// +//} diff --git a/common/src/main/java/com/ccsens/common/api/ProjectController.java b/common/src/main/java/com/ccsens/common/api/ProjectController.java index 6946fcb3..61952a86 100644 --- a/common/src/main/java/com/ccsens/common/api/ProjectController.java +++ b/common/src/main/java/com/ccsens/common/api/ProjectController.java @@ -1,41 +1,41 @@ -package com.ccsens.common.api; - -import com.ccsens.common.bean.dto.ProjectDto; -import com.ccsens.common.bean.vo.ProjectVo; -import com.ccsens.common.service.IProjectService; -import com.ccsens.util.JsonResponse; -import com.ccsens.util.bean.dto.QueryDto; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; -import lombok.extern.slf4j.Slf4j; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import javax.annotation.Resource; - -/** - * @author ma - */ -@Api(tags = "项目相关接口", description = "ProjectController | 项目相关接口") -@RestController -@Slf4j -@RequestMapping("/project") -public class ProjectController { - - @Resource - private IProjectService projectService; - - @ApiOperation(value = "根据id查询项目信息", notes = "根据id查询项目信息") - @RequestMapping(value = "/findProjectById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse findProjectById(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - log.info("根据id查询项目信息:{}",params); - ProjectVo.ProjectInfo projectInfo = projectService.findProjectById(params.getParam(),params.getUserId()); - log.info("根据id查询项目信息"); - return JsonResponse.newInstance().ok(projectInfo); - } - -} +//package com.ccsens.common.api; +// +//import com.ccsens.common.bean.dto.ProjectDto; +//import com.ccsens.common.bean.vo.ProjectVo; +//import com.ccsens.common.service.IProjectService; +//import com.ccsens.util.JsonResponse; +//import com.ccsens.util.bean.dto.QueryDto; +//import io.swagger.annotations.Api; +//import io.swagger.annotations.ApiOperation; +//import io.swagger.annotations.ApiParam; +//import lombok.extern.slf4j.Slf4j; +//import org.springframework.validation.annotation.Validated; +//import org.springframework.web.bind.annotation.RequestBody; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RequestMethod; +//import org.springframework.web.bind.annotation.RestController; +// +//import javax.annotation.Resource; +// +///** +// * @author ma +// */ +//@Api(tags = "项目相关接口", description = "ProjectController | 项目相关接口") +//@RestController +//@Slf4j +//@RequestMapping("/project") +//public class ProjectController { +// +// @Resource +// private IProjectService projectService; +// +// @ApiOperation(value = "根据id查询项目信息", notes = "根据id查询项目信息") +// @RequestMapping(value = "/findProjectById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse findProjectById(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ +// log.info("根据id查询项目信息:{}",params); +// ProjectVo.ProjectInfo projectInfo = projectService.findProjectById(params.getParam(),params.getUserId()); +// log.info("根据id查询项目信息"); +// return JsonResponse.newInstance().ok(projectInfo); +// } +// +//} diff --git a/common/src/main/java/com/ccsens/common/api/RoleController.java b/common/src/main/java/com/ccsens/common/api/RoleController.java index f1228b31..85ff35bf 100644 --- a/common/src/main/java/com/ccsens/common/api/RoleController.java +++ b/common/src/main/java/com/ccsens/common/api/RoleController.java @@ -1,62 +1,62 @@ -package com.ccsens.common.api; - -import com.ccsens.cloudutil.annotation.MustLogin; -import com.ccsens.common.bean.dto.RoleDto; -import com.ccsens.common.bean.vo.RoleVo; -import com.ccsens.common.service.IProRoleService; -import com.ccsens.util.JsonResponse; -import com.ccsens.util.WebConstant; -import com.ccsens.util.bean.dto.QueryDto; -import io.jsonwebtoken.Claims; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; -import lombok.extern.slf4j.Slf4j; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import java.util.List; - -@Api(tags = "角色操作相关api" ) -@RestController -@RequestMapping("/roles") -@Slf4j -public class RoleController { - - @Resource - private IProRoleService proRoleService; - - @MustLogin - @ApiOperation(value = "查询角色栏展示的角色",notes = "") - @ApiImplicitParams({ - }) - @RequestMapping(value = "/QueryRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse queryByProjectVirtualRole( - @ApiParam @Validated @RequestBody QueryDto params) throws Exception { - log.info("查询角色栏展示的角色:{}",params); -// params.setUserId(1373938255183089664L); - RoleVo.QueryRole list = proRoleService.QueryShowRole(params.getParam(),params.getUserId()); - log.info("查询角色栏展示的角色成功"); - return JsonResponse.newInstance().ok(list); - } - - - @MustLogin - @ApiOperation(value = "配置角色栏展示的角色",notes = "") - @ApiImplicitParams({ - }) - @RequestMapping(value = "/UpdateRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse updateShowRole( - @ApiParam @Validated @RequestBody QueryDto params) throws Exception { - log.info("配置角色栏展示的角色:{}",params); - proRoleService.updateShowRole(params.getParam(),params.getUserId()); - log.info("配置角色栏展示的角色成功"); - return JsonResponse.newInstance().ok(); - } -} +//package com.ccsens.common.api; +// +//import com.ccsens.cloudutil.annotation.MustLogin; +//import com.ccsens.common.bean.dto.RoleDto; +//import com.ccsens.common.bean.vo.RoleVo; +//import com.ccsens.common.service.IProRoleService; +//import com.ccsens.util.JsonResponse; +//import com.ccsens.util.WebConstant; +//import com.ccsens.util.bean.dto.QueryDto; +//import io.jsonwebtoken.Claims; +//import io.swagger.annotations.Api; +//import io.swagger.annotations.ApiImplicitParams; +//import io.swagger.annotations.ApiOperation; +//import io.swagger.annotations.ApiParam; +//import lombok.extern.slf4j.Slf4j; +//import org.springframework.validation.annotation.Validated; +//import org.springframework.web.bind.annotation.RequestBody; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RequestMethod; +//import org.springframework.web.bind.annotation.RestController; +// +//import javax.annotation.Resource; +//import javax.servlet.http.HttpServletRequest; +//import java.util.List; +// +//@Api(tags = "角色操作相关api" ) +//@RestController +//@RequestMapping("/roles") +//@Slf4j +//public class RoleController { +// +// @Resource +// private IProRoleService proRoleService; +// +// @MustLogin +// @ApiOperation(value = "查询角色栏展示的角色",notes = "") +// @ApiImplicitParams({ +// }) +// @RequestMapping(value = "/QueryRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse queryByProjectVirtualRole( +// @ApiParam @Validated @RequestBody QueryDto params) throws Exception { +// log.info("查询角色栏展示的角色:{}",params); +//// params.setUserId(1373938255183089664L); +// RoleVo.QueryRole list = proRoleService.QueryShowRole(params.getParam(),params.getUserId()); +// log.info("查询角色栏展示的角色成功"); +// return JsonResponse.newInstance().ok(list); +// } +// +// +// @MustLogin +// @ApiOperation(value = "配置角色栏展示的角色",notes = "") +// @ApiImplicitParams({ +// }) +// @RequestMapping(value = "/UpdateRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse updateShowRole( +// @ApiParam @Validated @RequestBody QueryDto params) throws Exception { +// log.info("配置角色栏展示的角色:{}",params); +// proRoleService.updateShowRole(params.getParam(),params.getUserId()); +// log.info("配置角色栏展示的角色成功"); +// return JsonResponse.newInstance().ok(); +// } +//} diff --git a/common/src/main/java/com/ccsens/common/api/TaskController.java b/common/src/main/java/com/ccsens/common/api/TaskController.java index 74a3c310..5dbfab1e 100644 --- a/common/src/main/java/com/ccsens/common/api/TaskController.java +++ b/common/src/main/java/com/ccsens/common/api/TaskController.java @@ -1,64 +1,64 @@ -package com.ccsens.common.api; - -import com.ccsens.cloudutil.annotation.MustLogin; -import com.ccsens.common.bean.dto.TaskDto; -import com.ccsens.common.bean.vo.TaskVo; -import com.ccsens.common.service.ITaskService; -import com.ccsens.util.JsonResponse; -import com.ccsens.util.bean.dto.QueryDto; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; -import lombok.extern.slf4j.Slf4j; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import javax.annotation.Resource; -import java.util.List; - -/** - * @author 逗 - */ -@Api(tags = "DEBUG" , description = "DebugController | ") -@RestController -@RequestMapping("/task") -@Slf4j -public class TaskController { - - @Resource - private ITaskService taskService; - - @MustLogin - @ApiOperation(value = "查找永久日常任务", notes = "") - @RequestMapping(value = "/permanent", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryPermanentGlobalTask(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("查找永久日常任务开始{}",params); - List permanentGlobalTaskList = taskService.queryPermanentGlobalTask(params.getParam(),params.getUserId()); - log.info("查找永久日常任务结束{}",permanentGlobalTaskList); - return JsonResponse.newInstance().ok(permanentGlobalTaskList); - } - - @MustLogin - @ApiOperation(value = "查找带时间的日常任务", notes = "") - @RequestMapping(value = "/global", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryGlobalTask(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("查找带时间的日常任务开始{}",params); - List globalTask = taskService.queryGlobalTask(params.getParam(),params.getUserId()); - log.info("查找带时间的日常任务结束{}",globalTask); - return JsonResponse.newInstance().ok(globalTask); - } - - @MustLogin - @ApiOperation(value = "查找带时间的定期任务", notes = "") - @RequestMapping(value = "/regular", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryRegularTask(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("查找带时间的定期任务开始{}",params); - - log.info("查找带时间的定期任务结束{}"); - return JsonResponse.newInstance().ok(); - } - -} +//package com.ccsens.common.api; +// +//import com.ccsens.cloudutil.annotation.MustLogin; +//import com.ccsens.common.bean.dto.TaskDto; +//import com.ccsens.common.bean.vo.TaskVo; +//import com.ccsens.common.service.ITaskService; +//import com.ccsens.util.JsonResponse; +//import com.ccsens.util.bean.dto.QueryDto; +//import io.swagger.annotations.Api; +//import io.swagger.annotations.ApiOperation; +//import io.swagger.annotations.ApiParam; +//import lombok.extern.slf4j.Slf4j; +//import org.springframework.validation.annotation.Validated; +//import org.springframework.web.bind.annotation.RequestBody; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RequestMethod; +//import org.springframework.web.bind.annotation.RestController; +// +//import javax.annotation.Resource; +//import java.util.List; +// +///** +// * @author 逗 +// */ +//@Api(tags = "DEBUG" , description = "DebugController | ") +//@RestController +//@RequestMapping("/task") +//@Slf4j +//public class TaskController { +// +// @Resource +// private ITaskService taskService; +// +// @MustLogin +// @ApiOperation(value = "查找永久日常任务", notes = "") +// @RequestMapping(value = "/permanent", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse> queryPermanentGlobalTask(@ApiParam @Validated @RequestBody QueryDto params) { +// log.info("查找永久日常任务开始{}",params); +// List permanentGlobalTaskList = taskService.queryPermanentGlobalTask(params.getParam(),params.getUserId()); +// log.info("查找永久日常任务结束{}",permanentGlobalTaskList); +// return JsonResponse.newInstance().ok(permanentGlobalTaskList); +// } +// +// @MustLogin +// @ApiOperation(value = "查找带时间的日常任务", notes = "") +// @RequestMapping(value = "/global", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse> queryGlobalTask(@ApiParam @Validated @RequestBody QueryDto params) { +// log.info("查找带时间的日常任务开始{}",params); +// List globalTask = taskService.queryGlobalTask(params.getParam(),params.getUserId()); +// log.info("查找带时间的日常任务结束{}",globalTask); +// return JsonResponse.newInstance().ok(globalTask); +// } +// +// @MustLogin +// @ApiOperation(value = "查找带时间的定期任务", notes = "") +// @RequestMapping(value = "/regular", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse> queryRegularTask(@ApiParam @Validated @RequestBody QueryDto params) { +// log.info("查找带时间的定期任务开始{}",params); +// +// log.info("查找带时间的定期任务结束{}"); +// return JsonResponse.newInstance().ok(); +// } +// +//} diff --git a/common/src/main/java/com/ccsens/common/bean/po/Label_Business.java b/common/src/main/java/com/ccsens/common/bean/po/LabelBusiness.java similarity index 93% rename from common/src/main/java/com/ccsens/common/bean/po/Label_Business.java rename to common/src/main/java/com/ccsens/common/bean/po/LabelBusiness.java index d8538211..b98aa738 100644 --- a/common/src/main/java/com/ccsens/common/bean/po/Label_Business.java +++ b/common/src/main/java/com/ccsens/common/bean/po/LabelBusiness.java @@ -1,106 +1,106 @@ -package com.ccsens.common.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Label_Business implements Serializable { - private Long id; - - private Long labelId; - - private Long userId; - - private Byte businessType; - - private Long businessId; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getLabelId() { - return labelId; - } - - public void setLabelId(Long labelId) { - this.labelId = labelId; - } - - public Long getUserId() { - return userId; - } - - public void setUserId(Long userId) { - this.userId = userId; - } - - public Byte getBusinessType() { - return businessType; - } - - public void setBusinessType(Byte businessType) { - this.businessType = businessType; - } - - public Long getBusinessId() { - return businessId; - } - - public void setBusinessId(Long businessId) { - this.businessId = businessId; - } - - public Date getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public Byte getRecStatus() { - return recStatus; - } - - public void setRecStatus(Byte recStatus) { - this.recStatus = recStatus; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", labelId=").append(labelId); - sb.append(", userId=").append(userId); - sb.append(", businessType=").append(businessType); - sb.append(", businessId=").append(businessId); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append("]"); - return sb.toString(); - } +package com.ccsens.common.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class LabelBusiness implements Serializable { + private Long id; + + private Long labelId; + + private Long userId; + + private Byte businessType; + + private Long businessId; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getLabelId() { + return labelId; + } + + public void setLabelId(Long labelId) { + this.labelId = labelId; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public Byte getBusinessType() { + return businessType; + } + + public void setBusinessType(Byte businessType) { + this.businessType = businessType; + } + + public Long getBusinessId() { + return businessId; + } + + public void setBusinessId(Long businessId) { + this.businessId = businessId; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", labelId=").append(labelId); + sb.append(", userId=").append(userId); + sb.append(", businessType=").append(businessType); + sb.append(", businessId=").append(businessId); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/bean/po/Label_BusinessExample.java b/common/src/main/java/com/ccsens/common/bean/po/LabelBusinessExample.java similarity index 96% rename from common/src/main/java/com/ccsens/common/bean/po/Label_BusinessExample.java rename to common/src/main/java/com/ccsens/common/bean/po/LabelBusinessExample.java index 70c87ed2..eb61e732 100644 --- a/common/src/main/java/com/ccsens/common/bean/po/Label_BusinessExample.java +++ b/common/src/main/java/com/ccsens/common/bean/po/LabelBusinessExample.java @@ -1,681 +1,681 @@ -package com.ccsens.common.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class Label_BusinessExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public Label_BusinessExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - 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(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andLabelIdIsNull() { - addCriterion("label_id is null"); - return (Criteria) this; - } - - public Criteria andLabelIdIsNotNull() { - addCriterion("label_id is not null"); - return (Criteria) this; - } - - public Criteria andLabelIdEqualTo(Long value) { - addCriterion("label_id =", value, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdNotEqualTo(Long value) { - addCriterion("label_id <>", value, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdGreaterThan(Long value) { - addCriterion("label_id >", value, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdGreaterThanOrEqualTo(Long value) { - addCriterion("label_id >=", value, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdLessThan(Long value) { - addCriterion("label_id <", value, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdLessThanOrEqualTo(Long value) { - addCriterion("label_id <=", value, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdIn(List values) { - addCriterion("label_id in", values, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdNotIn(List values) { - addCriterion("label_id not in", values, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdBetween(Long value1, Long value2) { - addCriterion("label_id between", value1, value2, "labelId"); - return (Criteria) this; - } - - public Criteria andLabelIdNotBetween(Long value1, Long value2) { - addCriterion("label_id not between", value1, value2, "labelId"); - return (Criteria) this; - } - - public Criteria andUserIdIsNull() { - addCriterion("user_id is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("user_id is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(Long value) { - addCriterion("user_id =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(Long value) { - addCriterion("user_id <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(Long value) { - addCriterion("user_id >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(Long value) { - addCriterion("user_id >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(Long value) { - addCriterion("user_id <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(Long value) { - addCriterion("user_id <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("user_id in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("user_id not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(Long value1, Long value2) { - addCriterion("user_id between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(Long value1, Long value2) { - addCriterion("user_id not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andBusinessTypeIsNull() { - addCriterion("business_type is null"); - return (Criteria) this; - } - - public Criteria andBusinessTypeIsNotNull() { - addCriterion("business_type is not null"); - return (Criteria) this; - } - - public Criteria andBusinessTypeEqualTo(Byte value) { - addCriterion("business_type =", value, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeNotEqualTo(Byte value) { - addCriterion("business_type <>", value, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeGreaterThan(Byte value) { - addCriterion("business_type >", value, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("business_type >=", value, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeLessThan(Byte value) { - addCriterion("business_type <", value, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeLessThanOrEqualTo(Byte value) { - addCriterion("business_type <=", value, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeIn(List values) { - addCriterion("business_type in", values, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeNotIn(List values) { - addCriterion("business_type not in", values, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeBetween(Byte value1, Byte value2) { - addCriterion("business_type between", value1, value2, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessTypeNotBetween(Byte value1, Byte value2) { - addCriterion("business_type not between", value1, value2, "businessType"); - return (Criteria) this; - } - - public Criteria andBusinessIdIsNull() { - addCriterion("business_id is null"); - return (Criteria) this; - } - - public Criteria andBusinessIdIsNotNull() { - addCriterion("business_id is not null"); - return (Criteria) this; - } - - public Criteria andBusinessIdEqualTo(Long value) { - addCriterion("business_id =", value, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdNotEqualTo(Long value) { - addCriterion("business_id <>", value, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdGreaterThan(Long value) { - addCriterion("business_id >", value, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdGreaterThanOrEqualTo(Long value) { - addCriterion("business_id >=", value, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdLessThan(Long value) { - addCriterion("business_id <", value, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdLessThanOrEqualTo(Long value) { - addCriterion("business_id <=", value, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdIn(List values) { - addCriterion("business_id in", values, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdNotIn(List values) { - addCriterion("business_id not in", values, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdBetween(Long value1, Long value2) { - addCriterion("business_id between", value1, value2, "businessId"); - return (Criteria) this; - } - - public Criteria andBusinessIdNotBetween(Long value1, Long value2) { - addCriterion("business_id not between", value1, value2, "businessId"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNull() { - addCriterion("created_at is null"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNotNull() { - addCriterion("created_at is not null"); - return (Criteria) this; - } - - public Criteria andCreatedAtEqualTo(Date value) { - addCriterion("created_at =", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotEqualTo(Date value) { - addCriterion("created_at <>", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThan(Date value) { - addCriterion("created_at >", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("created_at >=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThan(Date value) { - addCriterion("created_at <", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThanOrEqualTo(Date value) { - addCriterion("created_at <=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtIn(List values) { - addCriterion("created_at in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotIn(List values) { - addCriterion("created_at not in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtBetween(Date value1, Date value2) { - addCriterion("created_at between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotBetween(Date value1, Date value2) { - addCriterion("created_at not between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNull() { - addCriterion("updated_at is null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNotNull() { - addCriterion("updated_at is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtEqualTo(Date value) { - addCriterion("updated_at =", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotEqualTo(Date value) { - addCriterion("updated_at <>", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThan(Date value) { - addCriterion("updated_at >", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("updated_at >=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThan(Date value) { - addCriterion("updated_at <", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { - addCriterion("updated_at <=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIn(List values) { - addCriterion("updated_at in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotIn(List values) { - addCriterion("updated_at not in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtBetween(Date value1, Date value2) { - addCriterion("updated_at between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { - addCriterion("updated_at not between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNull() { - addCriterion("rec_status is null"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNotNull() { - addCriterion("rec_status is not null"); - return (Criteria) this; - } - - public Criteria andRecStatusEqualTo(Byte value) { - addCriterion("rec_status =", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotEqualTo(Byte value) { - addCriterion("rec_status <>", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThan(Byte value) { - addCriterion("rec_status >", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { - addCriterion("rec_status >=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThan(Byte value) { - addCriterion("rec_status <", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThanOrEqualTo(Byte value) { - addCriterion("rec_status <=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusIn(List values) { - addCriterion("rec_status in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotIn(List values) { - addCriterion("rec_status not in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusBetween(Byte value1, Byte value2) { - addCriterion("rec_status between", value1, value2, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { - addCriterion("rec_status not between", value1, value2, "recStatus"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } +package com.ccsens.common.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class LabelBusinessExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LabelBusinessExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + 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(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andLabelIdIsNull() { + addCriterion("label_id is null"); + return (Criteria) this; + } + + public Criteria andLabelIdIsNotNull() { + addCriterion("label_id is not null"); + return (Criteria) this; + } + + public Criteria andLabelIdEqualTo(Long value) { + addCriterion("label_id =", value, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdNotEqualTo(Long value) { + addCriterion("label_id <>", value, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdGreaterThan(Long value) { + addCriterion("label_id >", value, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdGreaterThanOrEqualTo(Long value) { + addCriterion("label_id >=", value, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdLessThan(Long value) { + addCriterion("label_id <", value, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdLessThanOrEqualTo(Long value) { + addCriterion("label_id <=", value, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdIn(List values) { + addCriterion("label_id in", values, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdNotIn(List values) { + addCriterion("label_id not in", values, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdBetween(Long value1, Long value2) { + addCriterion("label_id between", value1, value2, "labelId"); + return (Criteria) this; + } + + public Criteria andLabelIdNotBetween(Long value1, Long value2) { + addCriterion("label_id not between", value1, value2, "labelId"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andBusinessTypeIsNull() { + addCriterion("business_type is null"); + return (Criteria) this; + } + + public Criteria andBusinessTypeIsNotNull() { + addCriterion("business_type is not null"); + return (Criteria) this; + } + + public Criteria andBusinessTypeEqualTo(Byte value) { + addCriterion("business_type =", value, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeNotEqualTo(Byte value) { + addCriterion("business_type <>", value, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeGreaterThan(Byte value) { + addCriterion("business_type >", value, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("business_type >=", value, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeLessThan(Byte value) { + addCriterion("business_type <", value, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeLessThanOrEqualTo(Byte value) { + addCriterion("business_type <=", value, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeIn(List values) { + addCriterion("business_type in", values, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeNotIn(List values) { + addCriterion("business_type not in", values, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeBetween(Byte value1, Byte value2) { + addCriterion("business_type between", value1, value2, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessTypeNotBetween(Byte value1, Byte value2) { + addCriterion("business_type not between", value1, value2, "businessType"); + return (Criteria) this; + } + + public Criteria andBusinessIdIsNull() { + addCriterion("business_id is null"); + return (Criteria) this; + } + + public Criteria andBusinessIdIsNotNull() { + addCriterion("business_id is not null"); + return (Criteria) this; + } + + public Criteria andBusinessIdEqualTo(Long value) { + addCriterion("business_id =", value, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdNotEqualTo(Long value) { + addCriterion("business_id <>", value, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdGreaterThan(Long value) { + addCriterion("business_id >", value, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdGreaterThanOrEqualTo(Long value) { + addCriterion("business_id >=", value, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdLessThan(Long value) { + addCriterion("business_id <", value, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdLessThanOrEqualTo(Long value) { + addCriterion("business_id <=", value, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdIn(List values) { + addCriterion("business_id in", values, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdNotIn(List values) { + addCriterion("business_id not in", values, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdBetween(Long value1, Long value2) { + addCriterion("business_id between", value1, value2, "businessId"); + return (Criteria) this; + } + + public Criteria andBusinessIdNotBetween(Long value1, Long value2) { + addCriterion("business_id not between", value1, value2, "businessId"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholder.java b/common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholder.java new file mode 100644 index 00000000..abf0be22 --- /dev/null +++ b/common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholder.java @@ -0,0 +1,117 @@ +package com.ccsens.common.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class ProMemberStakeholder implements Serializable { + private Long id; + + private Long memeberId; + + private String stakeholderName; + + private String stakeholderPhone; + + private Long userId; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getMemeberId() { + return memeberId; + } + + public void setMemeberId(Long memeberId) { + this.memeberId = memeberId; + } + + public String getStakeholderName() { + return stakeholderName; + } + + public void setStakeholderName(String stakeholderName) { + this.stakeholderName = stakeholderName == null ? null : stakeholderName.trim(); + } + + public String getStakeholderPhone() { + return stakeholderPhone; + } + + public void setStakeholderPhone(String stakeholderPhone) { + this.stakeholderPhone = stakeholderPhone == null ? null : stakeholderPhone.trim(); + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", memeberId=").append(memeberId); + sb.append(", stakeholderName=").append(stakeholderName); + sb.append(", stakeholderPhone=").append(stakeholderPhone); + sb.append(", userId=").append(userId); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholderExample.java b/common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholderExample.java new file mode 100644 index 00000000..574f7f80 --- /dev/null +++ b/common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholderExample.java @@ -0,0 +1,761 @@ +package com.ccsens.common.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ProMemberStakeholderExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ProMemberStakeholderExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + 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(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andMemeberIdIsNull() { + addCriterion("memeber_id is null"); + return (Criteria) this; + } + + public Criteria andMemeberIdIsNotNull() { + addCriterion("memeber_id is not null"); + return (Criteria) this; + } + + public Criteria andMemeberIdEqualTo(Long value) { + addCriterion("memeber_id =", value, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdNotEqualTo(Long value) { + addCriterion("memeber_id <>", value, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdGreaterThan(Long value) { + addCriterion("memeber_id >", value, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdGreaterThanOrEqualTo(Long value) { + addCriterion("memeber_id >=", value, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdLessThan(Long value) { + addCriterion("memeber_id <", value, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdLessThanOrEqualTo(Long value) { + addCriterion("memeber_id <=", value, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdIn(List values) { + addCriterion("memeber_id in", values, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdNotIn(List values) { + addCriterion("memeber_id not in", values, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdBetween(Long value1, Long value2) { + addCriterion("memeber_id between", value1, value2, "memeberId"); + return (Criteria) this; + } + + public Criteria andMemeberIdNotBetween(Long value1, Long value2) { + addCriterion("memeber_id not between", value1, value2, "memeberId"); + return (Criteria) this; + } + + public Criteria andStakeholderNameIsNull() { + addCriterion("stakeholder_name is null"); + return (Criteria) this; + } + + public Criteria andStakeholderNameIsNotNull() { + addCriterion("stakeholder_name is not null"); + return (Criteria) this; + } + + public Criteria andStakeholderNameEqualTo(String value) { + addCriterion("stakeholder_name =", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameNotEqualTo(String value) { + addCriterion("stakeholder_name <>", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameGreaterThan(String value) { + addCriterion("stakeholder_name >", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameGreaterThanOrEqualTo(String value) { + addCriterion("stakeholder_name >=", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameLessThan(String value) { + addCriterion("stakeholder_name <", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameLessThanOrEqualTo(String value) { + addCriterion("stakeholder_name <=", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameLike(String value) { + addCriterion("stakeholder_name like", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameNotLike(String value) { + addCriterion("stakeholder_name not like", value, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameIn(List values) { + addCriterion("stakeholder_name in", values, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameNotIn(List values) { + addCriterion("stakeholder_name not in", values, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameBetween(String value1, String value2) { + addCriterion("stakeholder_name between", value1, value2, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderNameNotBetween(String value1, String value2) { + addCriterion("stakeholder_name not between", value1, value2, "stakeholderName"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneIsNull() { + addCriterion("stakeholder_phone is null"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneIsNotNull() { + addCriterion("stakeholder_phone is not null"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneEqualTo(String value) { + addCriterion("stakeholder_phone =", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneNotEqualTo(String value) { + addCriterion("stakeholder_phone <>", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneGreaterThan(String value) { + addCriterion("stakeholder_phone >", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneGreaterThanOrEqualTo(String value) { + addCriterion("stakeholder_phone >=", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneLessThan(String value) { + addCriterion("stakeholder_phone <", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneLessThanOrEqualTo(String value) { + addCriterion("stakeholder_phone <=", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneLike(String value) { + addCriterion("stakeholder_phone like", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneNotLike(String value) { + addCriterion("stakeholder_phone not like", value, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneIn(List values) { + addCriterion("stakeholder_phone in", values, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneNotIn(List values) { + addCriterion("stakeholder_phone not in", values, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneBetween(String value1, String value2) { + addCriterion("stakeholder_phone between", value1, value2, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andStakeholderPhoneNotBetween(String value1, String value2) { + addCriterion("stakeholder_phone not between", value1, value2, "stakeholderPhone"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersion.java b/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersion.java index 86effb78..e9b0f1d8 100644 --- a/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersion.java +++ b/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersion.java @@ -1,95 +1,106 @@ -package com.ccsens.common.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class ProTaskVersion implements Serializable { - private Long id; - - private Long taskDetailId; - - private String taskVersionInfo; - - private Byte projectType; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getTaskDetailId() { - return taskDetailId; - } - - public void setTaskDetailId(Long taskDetailId) { - this.taskDetailId = taskDetailId; - } - - public String getTaskVersionInfo() { - return taskVersionInfo; - } - - public void setTaskVersionInfo(String taskVersionInfo) { - this.taskVersionInfo = taskVersionInfo == null ? null : taskVersionInfo.trim(); - } - - public Byte getProjectType() { - return projectType; - } - - public void setProjectType(Byte projectType) { - this.projectType = projectType; - } - - public Date getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public Byte getRecStatus() { - return recStatus; - } - - public void setRecStatus(Byte recStatus) { - this.recStatus = recStatus; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", taskDetailId=").append(taskDetailId); - sb.append(", taskVersionInfo=").append(taskVersionInfo); - sb.append(", projectType=").append(projectType); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append("]"); - return sb.toString(); - } +package com.ccsens.common.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class ProTaskVersion implements Serializable { + private Long id; + + private Long taskDetailId; + + private String taskVersionInfo; + + private Byte projectType; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private String address; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getTaskDetailId() { + return taskDetailId; + } + + public void setTaskDetailId(Long taskDetailId) { + this.taskDetailId = taskDetailId; + } + + public String getTaskVersionInfo() { + return taskVersionInfo; + } + + public void setTaskVersionInfo(String taskVersionInfo) { + this.taskVersionInfo = taskVersionInfo == null ? null : taskVersionInfo.trim(); + } + + public Byte getProjectType() { + return projectType; + } + + public void setProjectType(Byte projectType) { + this.projectType = projectType; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", taskDetailId=").append(taskDetailId); + sb.append(", taskVersionInfo=").append(taskVersionInfo); + sb.append(", projectType=").append(projectType); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append(", address=").append(address); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersionExample.java b/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersionExample.java index f2afafcb..aba7ccb9 100644 --- a/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersionExample.java +++ b/common/src/main/java/com/ccsens/common/bean/po/ProTaskVersionExample.java @@ -1,631 +1,701 @@ -package com.ccsens.common.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class ProTaskVersionExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public ProTaskVersionExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - 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(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdIsNull() { - addCriterion("task_detail_id is null"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdIsNotNull() { - addCriterion("task_detail_id is not null"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdEqualTo(Long value) { - addCriterion("task_detail_id =", value, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdNotEqualTo(Long value) { - addCriterion("task_detail_id <>", value, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdGreaterThan(Long value) { - addCriterion("task_detail_id >", value, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdGreaterThanOrEqualTo(Long value) { - addCriterion("task_detail_id >=", value, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdLessThan(Long value) { - addCriterion("task_detail_id <", value, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdLessThanOrEqualTo(Long value) { - addCriterion("task_detail_id <=", value, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdIn(List values) { - addCriterion("task_detail_id in", values, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdNotIn(List values) { - addCriterion("task_detail_id not in", values, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdBetween(Long value1, Long value2) { - addCriterion("task_detail_id between", value1, value2, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskDetailIdNotBetween(Long value1, Long value2) { - addCriterion("task_detail_id not between", value1, value2, "taskDetailId"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoIsNull() { - addCriterion("task_version_info is null"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoIsNotNull() { - addCriterion("task_version_info is not null"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoEqualTo(String value) { - addCriterion("task_version_info =", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoNotEqualTo(String value) { - addCriterion("task_version_info <>", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoGreaterThan(String value) { - addCriterion("task_version_info >", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoGreaterThanOrEqualTo(String value) { - addCriterion("task_version_info >=", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoLessThan(String value) { - addCriterion("task_version_info <", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoLessThanOrEqualTo(String value) { - addCriterion("task_version_info <=", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoLike(String value) { - addCriterion("task_version_info like", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoNotLike(String value) { - addCriterion("task_version_info not like", value, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoIn(List values) { - addCriterion("task_version_info in", values, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoNotIn(List values) { - addCriterion("task_version_info not in", values, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoBetween(String value1, String value2) { - addCriterion("task_version_info between", value1, value2, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andTaskVersionInfoNotBetween(String value1, String value2) { - addCriterion("task_version_info not between", value1, value2, "taskVersionInfo"); - return (Criteria) this; - } - - public Criteria andProjectTypeIsNull() { - addCriterion("project_type is null"); - return (Criteria) this; - } - - public Criteria andProjectTypeIsNotNull() { - addCriterion("project_type is not null"); - return (Criteria) this; - } - - public Criteria andProjectTypeEqualTo(Byte value) { - addCriterion("project_type =", value, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeNotEqualTo(Byte value) { - addCriterion("project_type <>", value, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeGreaterThan(Byte value) { - addCriterion("project_type >", value, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("project_type >=", value, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeLessThan(Byte value) { - addCriterion("project_type <", value, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeLessThanOrEqualTo(Byte value) { - addCriterion("project_type <=", value, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeIn(List values) { - addCriterion("project_type in", values, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeNotIn(List values) { - addCriterion("project_type not in", values, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeBetween(Byte value1, Byte value2) { - addCriterion("project_type between", value1, value2, "projectType"); - return (Criteria) this; - } - - public Criteria andProjectTypeNotBetween(Byte value1, Byte value2) { - addCriterion("project_type not between", value1, value2, "projectType"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNull() { - addCriterion("created_at is null"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNotNull() { - addCriterion("created_at is not null"); - return (Criteria) this; - } - - public Criteria andCreatedAtEqualTo(Date value) { - addCriterion("created_at =", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotEqualTo(Date value) { - addCriterion("created_at <>", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThan(Date value) { - addCriterion("created_at >", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("created_at >=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThan(Date value) { - addCriterion("created_at <", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThanOrEqualTo(Date value) { - addCriterion("created_at <=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtIn(List values) { - addCriterion("created_at in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotIn(List values) { - addCriterion("created_at not in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtBetween(Date value1, Date value2) { - addCriterion("created_at between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotBetween(Date value1, Date value2) { - addCriterion("created_at not between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNull() { - addCriterion("updated_at is null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNotNull() { - addCriterion("updated_at is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtEqualTo(Date value) { - addCriterion("updated_at =", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotEqualTo(Date value) { - addCriterion("updated_at <>", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThan(Date value) { - addCriterion("updated_at >", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("updated_at >=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThan(Date value) { - addCriterion("updated_at <", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { - addCriterion("updated_at <=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIn(List values) { - addCriterion("updated_at in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotIn(List values) { - addCriterion("updated_at not in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtBetween(Date value1, Date value2) { - addCriterion("updated_at between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { - addCriterion("updated_at not between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNull() { - addCriterion("rec_status is null"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNotNull() { - addCriterion("rec_status is not null"); - return (Criteria) this; - } - - public Criteria andRecStatusEqualTo(Byte value) { - addCriterion("rec_status =", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotEqualTo(Byte value) { - addCriterion("rec_status <>", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThan(Byte value) { - addCriterion("rec_status >", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { - addCriterion("rec_status >=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThan(Byte value) { - addCriterion("rec_status <", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThanOrEqualTo(Byte value) { - addCriterion("rec_status <=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusIn(List values) { - addCriterion("rec_status in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotIn(List values) { - addCriterion("rec_status not in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusBetween(Byte value1, Byte value2) { - addCriterion("rec_status between", value1, value2, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { - addCriterion("rec_status not between", value1, value2, "recStatus"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } +package com.ccsens.common.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ProTaskVersionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ProTaskVersionExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + 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(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdIsNull() { + addCriterion("task_detail_id is null"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdIsNotNull() { + addCriterion("task_detail_id is not null"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdEqualTo(Long value) { + addCriterion("task_detail_id =", value, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdNotEqualTo(Long value) { + addCriterion("task_detail_id <>", value, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdGreaterThan(Long value) { + addCriterion("task_detail_id >", value, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdGreaterThanOrEqualTo(Long value) { + addCriterion("task_detail_id >=", value, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdLessThan(Long value) { + addCriterion("task_detail_id <", value, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdLessThanOrEqualTo(Long value) { + addCriterion("task_detail_id <=", value, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdIn(List values) { + addCriterion("task_detail_id in", values, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdNotIn(List values) { + addCriterion("task_detail_id not in", values, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdBetween(Long value1, Long value2) { + addCriterion("task_detail_id between", value1, value2, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskDetailIdNotBetween(Long value1, Long value2) { + addCriterion("task_detail_id not between", value1, value2, "taskDetailId"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoIsNull() { + addCriterion("task_version_info is null"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoIsNotNull() { + addCriterion("task_version_info is not null"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoEqualTo(String value) { + addCriterion("task_version_info =", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoNotEqualTo(String value) { + addCriterion("task_version_info <>", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoGreaterThan(String value) { + addCriterion("task_version_info >", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoGreaterThanOrEqualTo(String value) { + addCriterion("task_version_info >=", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoLessThan(String value) { + addCriterion("task_version_info <", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoLessThanOrEqualTo(String value) { + addCriterion("task_version_info <=", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoLike(String value) { + addCriterion("task_version_info like", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoNotLike(String value) { + addCriterion("task_version_info not like", value, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoIn(List values) { + addCriterion("task_version_info in", values, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoNotIn(List values) { + addCriterion("task_version_info not in", values, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoBetween(String value1, String value2) { + addCriterion("task_version_info between", value1, value2, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andTaskVersionInfoNotBetween(String value1, String value2) { + addCriterion("task_version_info not between", value1, value2, "taskVersionInfo"); + return (Criteria) this; + } + + public Criteria andProjectTypeIsNull() { + addCriterion("project_type is null"); + return (Criteria) this; + } + + public Criteria andProjectTypeIsNotNull() { + addCriterion("project_type is not null"); + return (Criteria) this; + } + + public Criteria andProjectTypeEqualTo(Byte value) { + addCriterion("project_type =", value, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeNotEqualTo(Byte value) { + addCriterion("project_type <>", value, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeGreaterThan(Byte value) { + addCriterion("project_type >", value, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("project_type >=", value, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeLessThan(Byte value) { + addCriterion("project_type <", value, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeLessThanOrEqualTo(Byte value) { + addCriterion("project_type <=", value, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeIn(List values) { + addCriterion("project_type in", values, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeNotIn(List values) { + addCriterion("project_type not in", values, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeBetween(Byte value1, Byte value2) { + addCriterion("project_type between", value1, value2, "projectType"); + return (Criteria) this; + } + + public Criteria andProjectTypeNotBetween(Byte value1, Byte value2) { + addCriterion("project_type not between", value1, value2, "projectType"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andAddressIsNull() { + addCriterion("address is null"); + return (Criteria) this; + } + + public Criteria andAddressIsNotNull() { + addCriterion("address is not null"); + return (Criteria) this; + } + + public Criteria andAddressEqualTo(String value) { + addCriterion("address =", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotEqualTo(String value) { + addCriterion("address <>", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThan(String value) { + addCriterion("address >", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThanOrEqualTo(String value) { + addCriterion("address >=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThan(String value) { + addCriterion("address <", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThanOrEqualTo(String value) { + addCriterion("address <=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLike(String value) { + addCriterion("address like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotLike(String value) { + addCriterion("address not like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressIn(List values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List values) { + addCriterion("address not in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressBetween(String value1, String value2) { + addCriterion("address between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotBetween(String value1, String value2) { + addCriterion("address not between", value1, value2, "address"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/config/BeanConfig.java b/common/src/main/java/com/ccsens/common/config/BeanConfig.java index 871d08ea..f318ac91 100644 --- a/common/src/main/java/com/ccsens/common/config/BeanConfig.java +++ b/common/src/main/java/com/ccsens/common/config/BeanConfig.java @@ -1,22 +1,22 @@ -package com.ccsens.common.config; - -import com.ccsens.common.intercept.MybatisInterceptor; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * @description: - * @author: wuHuiJuan - * @create: 2019/12/11 10:59 - */ -@Configuration -public class BeanConfig { - /** - * 注册拦截器 - */ - @Bean - public MybatisInterceptor mybatisInterceptor() { - MybatisInterceptor interceptor = new MybatisInterceptor(); - return interceptor; - } -} +//package com.ccsens.common.config; +// +//import com.ccsens.common.intercept.MybatisInterceptor; +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +// +///** +// * @description: +// * @author: wuHuiJuan +// * @create: 2019/12/11 10:59 +// */ +//@Configuration +//public class BeanConfig { +// /** +// * 注册拦截器 +// */ +// @Bean +// public MybatisInterceptor mybatisInterceptor() { +// MybatisInterceptor interceptor = new MybatisInterceptor(); +// return interceptor; +// } +//} diff --git a/common/src/main/java/com/ccsens/common/config/SpringConfig.java b/common/src/main/java/com/ccsens/common/config/SpringConfig.java index e20f45b9..148fe680 100644 --- a/common/src/main/java/com/ccsens/common/config/SpringConfig.java +++ b/common/src/main/java/com/ccsens/common/config/SpringConfig.java @@ -1,98 +1,98 @@ -package com.ccsens.common.config; - - -import cn.hutool.core.lang.Snowflake; -import cn.hutool.core.util.IdUtil; -import com.ccsens.util.config.DruidProps; -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.http.MediaType; -import org.springframework.http.converter.HttpMessageConverter; -import org.springframework.http.converter.StringHttpMessageConverter; -import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; -import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer; -import org.springframework.web.servlet.config.annotation.InterceptorRegistry; -import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -import javax.sql.DataSource; -import java.nio.charset.Charset; -import java.util.ArrayList; -import java.util.List; - -@Configuration -//public class SpringConfig extends WebMvcConfigurationSupport { -public class SpringConfig implements WebMvcConfigurer { - @Autowired - private DruidProps druidPropsUtil; - @Value("${spring.snowflake.workerId}") - private String workerId; - @Value("${spring.snowflake.datacenterId}") - private String datacenterId; - - /** - * 配置Converter - * @return - */ - @Bean - public HttpMessageConverter responseStringConverter() { - StringHttpMessageConverter converter = new StringHttpMessageConverter( - Charset.forName("UTF-8")); - return converter; - } - - @Bean - public HttpMessageConverter responseJsonConverter(){ - MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); - List mediaTypeList = new ArrayList<>(); - mediaTypeList.add(MediaType.TEXT_HTML); - mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8); - converter.setSupportedMediaTypes(mediaTypeList); - - ObjectMapper objectMapper = new ObjectMapper(); - SimpleModule simpleModule = new SimpleModule(); - simpleModule.addSerializer(Long.class, ToStringSerializer.instance); - simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); - objectMapper.registerModule(simpleModule); - objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - converter.setObjectMapper(objectMapper); - - return converter; - } - - @Override - public void configureMessageConverters(List> converters) { - converters.add(responseStringConverter()); - converters.add(responseJsonConverter()); - } - - @Override - public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { - configurer.favorPathExtension(false); - } - - /** - * 配置数据源(单数据源) - */ - @Bean - public DataSource dataSource(){ - return druidPropsUtil.createDruidDataSource(); - } - - @Bean - public Snowflake snowflake(){ - return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); - } - - @Override - public void addResourceHandlers(ResourceHandlerRegistry registry) { - registry.addResourceHandler("/uploads/**") - .addResourceLocations("file:///home/cloud/ht/uploads/"); - } -} \ No newline at end of file +//package com.ccsens.common.config; +// +// +//import cn.hutool.core.lang.Snowflake; +//import cn.hutool.core.util.IdUtil; +//import com.ccsens.util.config.DruidProps; +//import com.fasterxml.jackson.databind.DeserializationFeature; +//import com.fasterxml.jackson.databind.ObjectMapper; +//import com.fasterxml.jackson.databind.module.SimpleModule; +//import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.beans.factory.annotation.Value; +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +//import org.springframework.http.MediaType; +//import org.springframework.http.converter.HttpMessageConverter; +//import org.springframework.http.converter.StringHttpMessageConverter; +//import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; +//import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer; +//import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; +//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; +// +//import javax.sql.DataSource; +//import java.nio.charset.Charset; +//import java.util.ArrayList; +//import java.util.List; +// +//@Configuration +////public class SpringConfig extends WebMvcConfigurationSupport { +//public class SpringConfig implements WebMvcConfigurer { +// @Autowired +// private DruidProps druidPropsUtil; +// @Value("${spring.snowflake.workerId}") +// private String workerId; +// @Value("${spring.snowflake.datacenterId}") +// private String datacenterId; +// +// /** +// * 配置Converter +// * @return +// */ +// @Bean +// public HttpMessageConverter responseStringConverter() { +// StringHttpMessageConverter converter = new StringHttpMessageConverter( +// Charset.forName("UTF-8")); +// return converter; +// } +// +// @Bean +// public HttpMessageConverter responseJsonConverter(){ +// MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); +// List mediaTypeList = new ArrayList<>(); +// mediaTypeList.add(MediaType.TEXT_HTML); +// mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8); +// converter.setSupportedMediaTypes(mediaTypeList); +// +// ObjectMapper objectMapper = new ObjectMapper(); +// SimpleModule simpleModule = new SimpleModule(); +// simpleModule.addSerializer(Long.class, ToStringSerializer.instance); +// simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); +// objectMapper.registerModule(simpleModule); +// objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); +// converter.setObjectMapper(objectMapper); +// +// return converter; +// } +// +// @Override +// public void configureMessageConverters(List> converters) { +// converters.add(responseStringConverter()); +// converters.add(responseJsonConverter()); +// } +// +// @Override +// public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { +// configurer.favorPathExtension(false); +// } +// +// /** +// * 配置数据源(单数据源) +// */ +// @Bean +// public DataSource dataSource(){ +// return druidPropsUtil.createDruidDataSource(); +// } +// +// @Bean +// public Snowflake snowflake(){ +// return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); +// } +// +// @Override +// public void addResourceHandlers(ResourceHandlerRegistry registry) { +// registry.addResourceHandler("/uploads/**") +// .addResourceLocations("file:///home/cloud/ht/uploads/"); +// } +//} \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/config/SwaggerConfigure.java b/common/src/main/java/com/ccsens/common/config/SwaggerConfigure.java index fc938657..8c11f139 100644 --- a/common/src/main/java/com/ccsens/common/config/SwaggerConfigure.java +++ b/common/src/main/java/com/ccsens/common/config/SwaggerConfigure.java @@ -1,56 +1,56 @@ -package com.ccsens.common.config; - -import com.ccsens.util.WebConstant; -import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import springfox.documentation.builders.ParameterBuilder; -import springfox.documentation.builders.RequestHandlerSelectors; -import springfox.documentation.schema.ModelRef; -import springfox.documentation.service.ApiInfo; -import springfox.documentation.service.Parameter; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spring.web.plugins.Docket; -import springfox.documentation.swagger2.annotations.EnableSwagger2; - -import java.util.ArrayList; -import java.util.List; - -@Configuration -@EnableSwagger2 -@ConditionalOnExpression("${swagger.enable}") -//public class SwaggerConfigure extends WebMvcConfigurationSupport { -public class SwaggerConfigure /*implements WebMvcConfigurer*/ { - @Bean - public Docket customDocket() { - // - return new Docket(DocumentationType.SWAGGER_2) - .apiInfo(apiInfo()) - .select() - .apis(RequestHandlerSelectors - .basePackage("com.ccsens.common.api")) - .build() - .globalOperationParameters(setHeaderToken()); - } - - private ApiInfo apiInfo() { - return new ApiInfo("Swagger Tall-ptpro",//大标题 title - "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题 - "1.0.0",//版本 - "http://swagger.io/terms/",//termsOfServiceUrl - "zhangsan",//作者 - "Apache 2.0",//链接显示文字 - "http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接 - ); - } - - private List setHeaderToken() { - ParameterBuilder tokenPar = new ParameterBuilder(); - List pars = new ArrayList<>(); - tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token") - .defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX) - .modelRef(new ModelRef("string")).parameterType("header").required(false).build(); - pars.add(tokenPar.build()); - return pars; - } -} +//package com.ccsens.common.config; +// +//import com.ccsens.util.WebConstant; +//import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +//import springfox.documentation.builders.ParameterBuilder; +//import springfox.documentation.builders.RequestHandlerSelectors; +//import springfox.documentation.schema.ModelRef; +//import springfox.documentation.service.ApiInfo; +//import springfox.documentation.service.Parameter; +//import springfox.documentation.spi.DocumentationType; +//import springfox.documentation.spring.web.plugins.Docket; +//import springfox.documentation.swagger2.annotations.EnableSwagger2; +// +//import java.util.ArrayList; +//import java.util.List; +// +//@Configuration +//@EnableSwagger2 +//@ConditionalOnExpression("${swagger.enable}") +////public class SwaggerConfigure extends WebMvcConfigurationSupport { +//public class SwaggerConfigure /*implements WebMvcConfigurer*/ { +// @Bean +// public Docket customDocket() { +// // +// return new Docket(DocumentationType.SWAGGER_2) +// .apiInfo(apiInfo()) +// .select() +// .apis(RequestHandlerSelectors +// .basePackage("com.ccsens.common.api")) +// .build() +// .globalOperationParameters(setHeaderToken()); +// } +// +// private ApiInfo apiInfo() { +// return new ApiInfo("Swagger Tall-ptpro",//大标题 title +// "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题 +// "1.0.0",//版本 +// "http://swagger.io/terms/",//termsOfServiceUrl +// "zhangsan",//作者 +// "Apache 2.0",//链接显示文字 +// "http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接 +// ); +// } +// +// private List setHeaderToken() { +// ParameterBuilder tokenPar = new ParameterBuilder(); +// List pars = new ArrayList<>(); +// tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token") +// .defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX) +// .modelRef(new ModelRef("string")).parameterType("header").required(false).build(); +// pars.add(tokenPar.build()); +// return pars; +// } +//} diff --git a/common/src/main/java/com/ccsens/common/persist/dao/LabelDao.java b/common/src/main/java/com/ccsens/common/persist/dao/LabelDao.java index e99addd7..669b358b 100644 --- a/common/src/main/java/com/ccsens/common/persist/dao/LabelDao.java +++ b/common/src/main/java/com/ccsens/common/persist/dao/LabelDao.java @@ -1,11 +1,12 @@ package com.ccsens.common.persist.dao; +import com.ccsens.common.persist.mapper.LabelMapper; import com.ccsens.common.persist.mapper.ProRoleMapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; @Repository -public interface LabelDao extends ProRoleMapper { +public interface LabelDao extends LabelMapper { String queryIsPm(Long labelId); diff --git a/common/src/main/java/com/ccsens/common/persist/dao/ProProjectDao.java b/common/src/main/java/com/ccsens/common/persist/dao/ProProjectDao.java index 812c5f49..30a93b4d 100644 --- a/common/src/main/java/com/ccsens/common/persist/dao/ProProjectDao.java +++ b/common/src/main/java/com/ccsens/common/persist/dao/ProProjectDao.java @@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository; * @author AUSU */ @Repository -public interface ProProjectDao { +public interface ProProjectDao{ /** * 根据id查找项目信息 diff --git a/common/src/main/java/com/ccsens/common/persist/dao/ProRoleMemberDao.java b/common/src/main/java/com/ccsens/common/persist/dao/ProRoleMemberDao.java index 40c688df..cbc9b3bc 100644 --- a/common/src/main/java/com/ccsens/common/persist/dao/ProRoleMemberDao.java +++ b/common/src/main/java/com/ccsens/common/persist/dao/ProRoleMemberDao.java @@ -1,5 +1,6 @@ package com.ccsens.common.persist.dao; +import com.ccsens.common.persist.mapper.ProRoleMemberMapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; @@ -9,7 +10,7 @@ import java.util.List; * @author AUSU */ @Repository -public interface ProRoleMemberDao { +public interface ProRoleMemberDao extends ProRoleMemberMapper { /** * 查找成员所属的所有角色 diff --git a/common/src/main/java/com/ccsens/common/persist/dao/ProTaskDetailDao.java b/common/src/main/java/com/ccsens/common/persist/dao/ProTaskDetailDao.java index 1e637fb6..5049a8d2 100644 --- a/common/src/main/java/com/ccsens/common/persist/dao/ProTaskDetailDao.java +++ b/common/src/main/java/com/ccsens/common/persist/dao/ProTaskDetailDao.java @@ -1,6 +1,7 @@ package com.ccsens.common.persist.dao; import com.ccsens.common.bean.vo.TaskVo; +import com.ccsens.common.persist.mapper.ProTaskDetailMapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; @@ -10,7 +11,7 @@ import java.util.List; * @author AUSU */ @Repository -public interface ProTaskDetailDao { +public interface ProTaskDetailDao extends ProTaskDetailMapper { /** * 根据角色查找永久日常任务 * @param roleId 角色id diff --git a/common/src/main/java/com/ccsens/common/persist/mapper/LabelBusinessMapper.java b/common/src/main/java/com/ccsens/common/persist/mapper/LabelBusinessMapper.java new file mode 100644 index 00000000..c77968c9 --- /dev/null +++ b/common/src/main/java/com/ccsens/common/persist/mapper/LabelBusinessMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.common.persist.mapper; + +import com.ccsens.common.bean.po.LabelBusiness; +import com.ccsens.common.bean.po.LabelBusinessExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface LabelBusinessMapper { + long countByExample(LabelBusinessExample example); + + int deleteByExample(LabelBusinessExample example); + + int deleteByPrimaryKey(Long id); + + int insert(LabelBusiness record); + + int insertSelective(LabelBusiness record); + + List selectByExample(LabelBusinessExample example); + + LabelBusiness selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") LabelBusiness record, @Param("example") LabelBusinessExample example); + + int updateByExample(@Param("record") LabelBusiness record, @Param("example") LabelBusinessExample example); + + int updateByPrimaryKeySelective(LabelBusiness record); + + int updateByPrimaryKey(LabelBusiness record); +} \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/persist/mapper/Label_BusinessMapper.java b/common/src/main/java/com/ccsens/common/persist/mapper/Label_BusinessMapper.java deleted file mode 100644 index 11bbe908..00000000 --- a/common/src/main/java/com/ccsens/common/persist/mapper/Label_BusinessMapper.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.ccsens.common.persist.mapper; - -import com.ccsens.common.bean.po.Label_Business; -import com.ccsens.common.bean.po.Label_BusinessExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface Label_BusinessMapper { - long countByExample(Label_BusinessExample example); - - int deleteByExample(Label_BusinessExample example); - - int deleteByPrimaryKey(Long id); - - int insert(Label_Business record); - - int insertSelective(Label_Business record); - - List selectByExample(Label_BusinessExample example); - - Label_Business selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") Label_Business record, @Param("example") Label_BusinessExample example); - - int updateByExample(@Param("record") Label_Business record, @Param("example") Label_BusinessExample example); - - int updateByPrimaryKeySelective(Label_Business record); - - int updateByPrimaryKey(Label_Business record); -} \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/persist/mapper/ProMemberStakeholderMapper.java b/common/src/main/java/com/ccsens/common/persist/mapper/ProMemberStakeholderMapper.java new file mode 100644 index 00000000..d95e8c45 --- /dev/null +++ b/common/src/main/java/com/ccsens/common/persist/mapper/ProMemberStakeholderMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.common.persist.mapper; + +import com.ccsens.common.bean.po.ProMemberStakeholder; +import com.ccsens.common.bean.po.ProMemberStakeholderExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ProMemberStakeholderMapper { + long countByExample(ProMemberStakeholderExample example); + + int deleteByExample(ProMemberStakeholderExample example); + + int deleteByPrimaryKey(Long id); + + int insert(ProMemberStakeholder record); + + int insertSelective(ProMemberStakeholder record); + + List selectByExample(ProMemberStakeholderExample example); + + ProMemberStakeholder selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") ProMemberStakeholder record, @Param("example") ProMemberStakeholderExample example); + + int updateByExample(@Param("record") ProMemberStakeholder record, @Param("example") ProMemberStakeholderExample example); + + int updateByPrimaryKeySelective(ProMemberStakeholder record); + + int updateByPrimaryKey(ProMemberStakeholder record); +} \ No newline at end of file diff --git a/common/src/main/java/com/ccsens/common/persist/mapper/ProTaskVersionMapper.java b/common/src/main/java/com/ccsens/common/persist/mapper/ProTaskVersionMapper.java index 9eff74be..15f2651c 100644 --- a/common/src/main/java/com/ccsens/common/persist/mapper/ProTaskVersionMapper.java +++ b/common/src/main/java/com/ccsens/common/persist/mapper/ProTaskVersionMapper.java @@ -1,30 +1,30 @@ -package com.ccsens.common.persist.mapper; - -import com.ccsens.common.bean.po.ProTaskVersion; -import com.ccsens.common.bean.po.ProTaskVersionExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface ProTaskVersionMapper { - long countByExample(ProTaskVersionExample example); - - int deleteByExample(ProTaskVersionExample example); - - int deleteByPrimaryKey(Long id); - - int insert(ProTaskVersion record); - - int insertSelective(ProTaskVersion record); - - List selectByExample(ProTaskVersionExample example); - - ProTaskVersion selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") ProTaskVersion record, @Param("example") ProTaskVersionExample example); - - int updateByExample(@Param("record") ProTaskVersion record, @Param("example") ProTaskVersionExample example); - - int updateByPrimaryKeySelective(ProTaskVersion record); - - int updateByPrimaryKey(ProTaskVersion record); +package com.ccsens.common.persist.mapper; + +import com.ccsens.common.bean.po.ProTaskVersion; +import com.ccsens.common.bean.po.ProTaskVersionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ProTaskVersionMapper { + long countByExample(ProTaskVersionExample example); + + int deleteByExample(ProTaskVersionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(ProTaskVersion record); + + int insertSelective(ProTaskVersion record); + + List selectByExample(ProTaskVersionExample example); + + ProTaskVersion selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") ProTaskVersion record, @Param("example") ProTaskVersionExample example); + + int updateByExample(@Param("record") ProTaskVersion record, @Param("example") ProTaskVersionExample example); + + int updateByPrimaryKeySelective(ProTaskVersion record); + + int updateByPrimaryKey(ProTaskVersion record); } \ No newline at end of file diff --git a/common/src/main/resources/application-dev.yml b/common/src/main/resources/application-dev.yml index 5f514016..217a06ea 100644 --- a/common/src/main/resources/application-dev.yml +++ b/common/src/main/resources/application-dev.yml @@ -29,6 +29,18 @@ spring: timeout: 1000ms swagger: enable: true +mybatisCache: + database: 1 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1 + min-idle: 0 + password: '' + port: 6379 + timeout: 1000 gatewayUrl: https://test.tall.wiki/gateway/ notGatewayUrl: /home/staticrec/logo.png diff --git a/common/src/main/resources/mapper_raw/Label_BusinessMapper.xml b/common/src/main/resources/mapper_raw/LabelBusinessMapper.xml similarity index 94% rename from common/src/main/resources/mapper_raw/Label_BusinessMapper.xml rename to common/src/main/resources/mapper_raw/LabelBusinessMapper.xml index 80aab385..2f26241f 100644 --- a/common/src/main/resources/mapper_raw/Label_BusinessMapper.xml +++ b/common/src/main/resources/mapper_raw/LabelBusinessMapper.xml @@ -1,258 +1,258 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, label_id, user_id, business_type, business_id, created_at, updated_at, rec_status - - - - - delete from t_label_business - where id = #{id,jdbcType=BIGINT} - - - delete from t_label_business - - - - - - insert into t_label_business (id, label_id, user_id, - business_type, business_id, created_at, - updated_at, rec_status) - values (#{id,jdbcType=BIGINT}, #{labelId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, - #{businessType,jdbcType=TINYINT}, #{businessId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) - - - insert into t_label_business - - - id, - - - label_id, - - - user_id, - - - business_type, - - - business_id, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{labelId,jdbcType=BIGINT}, - - - #{userId,jdbcType=BIGINT}, - - - #{businessType,jdbcType=TINYINT}, - - - #{businessId,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_label_business - - - id = #{record.id,jdbcType=BIGINT}, - - - label_id = #{record.labelId,jdbcType=BIGINT}, - - - user_id = #{record.userId,jdbcType=BIGINT}, - - - business_type = #{record.businessType,jdbcType=TINYINT}, - - - business_id = #{record.businessId,jdbcType=BIGINT}, - - - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{record.recStatus,jdbcType=TINYINT}, - - - - - - - - update t_label_business - set id = #{record.id,jdbcType=BIGINT}, - label_id = #{record.labelId,jdbcType=BIGINT}, - user_id = #{record.userId,jdbcType=BIGINT}, - business_type = #{record.businessType,jdbcType=TINYINT}, - business_id = #{record.businessId,jdbcType=BIGINT}, - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{record.recStatus,jdbcType=TINYINT} - - - - - - update t_label_business - - - label_id = #{labelId,jdbcType=BIGINT}, - - - user_id = #{userId,jdbcType=BIGINT}, - - - business_type = #{businessType,jdbcType=TINYINT}, - - - business_id = #{businessId,jdbcType=BIGINT}, - - - created_at = #{createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{recStatus,jdbcType=TINYINT}, - - - where id = #{id,jdbcType=BIGINT} - - - update t_label_business - set label_id = #{labelId,jdbcType=BIGINT}, - user_id = #{userId,jdbcType=BIGINT}, - business_type = #{businessType,jdbcType=TINYINT}, - business_id = #{businessId,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, label_id, user_id, business_type, business_id, created_at, updated_at, rec_status + + + + + delete from t_label_business + where id = #{id,jdbcType=BIGINT} + + + delete from t_label_business + + + + + + insert into t_label_business (id, label_id, user_id, + business_type, business_id, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{labelId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, + #{businessType,jdbcType=TINYINT}, #{businessId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_label_business + + + id, + + + label_id, + + + user_id, + + + business_type, + + + business_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{labelId,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{businessType,jdbcType=TINYINT}, + + + #{businessId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_label_business + + + id = #{record.id,jdbcType=BIGINT}, + + + label_id = #{record.labelId,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + business_type = #{record.businessType,jdbcType=TINYINT}, + + + business_id = #{record.businessId,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_label_business + set id = #{record.id,jdbcType=BIGINT}, + label_id = #{record.labelId,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + business_type = #{record.businessType,jdbcType=TINYINT}, + business_id = #{record.businessId,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_label_business + + + label_id = #{labelId,jdbcType=BIGINT}, + + + user_id = #{userId,jdbcType=BIGINT}, + + + business_type = #{businessType,jdbcType=TINYINT}, + + + business_id = #{businessId,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_label_business + set label_id = #{labelId,jdbcType=BIGINT}, + user_id = #{userId,jdbcType=BIGINT}, + business_type = #{businessType,jdbcType=TINYINT}, + business_id = #{businessId,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/common/src/main/resources/mapper_raw/ProMemberStakeholderMapper.xml b/common/src/main/resources/mapper_raw/ProMemberStakeholderMapper.xml new file mode 100644 index 00000000..b6ec79fb --- /dev/null +++ b/common/src/main/resources/mapper_raw/ProMemberStakeholderMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, memeber_id, stakeholder_name, stakeholder_phone, user_id, operator, created_at, + updated_at, rec_status + + + + + delete from t_pro_member_stakeholder + where id = #{id,jdbcType=BIGINT} + + + delete from t_pro_member_stakeholder + + + + + + insert into t_pro_member_stakeholder (id, memeber_id, stakeholder_name, + stakeholder_phone, user_id, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{memeberId,jdbcType=BIGINT}, #{stakeholderName,jdbcType=VARCHAR}, + #{stakeholderPhone,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_pro_member_stakeholder + + + id, + + + memeber_id, + + + stakeholder_name, + + + stakeholder_phone, + + + user_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{memeberId,jdbcType=BIGINT}, + + + #{stakeholderName,jdbcType=VARCHAR}, + + + #{stakeholderPhone,jdbcType=VARCHAR}, + + + #{userId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_pro_member_stakeholder + + + id = #{record.id,jdbcType=BIGINT}, + + + memeber_id = #{record.memeberId,jdbcType=BIGINT}, + + + stakeholder_name = #{record.stakeholderName,jdbcType=VARCHAR}, + + + stakeholder_phone = #{record.stakeholderPhone,jdbcType=VARCHAR}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_pro_member_stakeholder + set id = #{record.id,jdbcType=BIGINT}, + memeber_id = #{record.memeberId,jdbcType=BIGINT}, + stakeholder_name = #{record.stakeholderName,jdbcType=VARCHAR}, + stakeholder_phone = #{record.stakeholderPhone,jdbcType=VARCHAR}, + user_id = #{record.userId,jdbcType=BIGINT}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_pro_member_stakeholder + + + memeber_id = #{memeberId,jdbcType=BIGINT}, + + + stakeholder_name = #{stakeholderName,jdbcType=VARCHAR}, + + + stakeholder_phone = #{stakeholderPhone,jdbcType=VARCHAR}, + + + user_id = #{userId,jdbcType=BIGINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_pro_member_stakeholder + set memeber_id = #{memeberId,jdbcType=BIGINT}, + stakeholder_name = #{stakeholderName,jdbcType=VARCHAR}, + stakeholder_phone = #{stakeholderPhone,jdbcType=VARCHAR}, + user_id = #{userId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/common/src/main/resources/mapper_raw/ProTaskVersionMapper.xml b/common/src/main/resources/mapper_raw/ProTaskVersionMapper.xml index 473a4be6..e5e60d2d 100644 --- a/common/src/main/resources/mapper_raw/ProTaskVersionMapper.xml +++ b/common/src/main/resources/mapper_raw/ProTaskVersionMapper.xml @@ -1,243 +1,259 @@ - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, task_detail_id, task_version_info, project_type, created_at, updated_at, rec_status - - - - - delete from t_pro_task_version - where id = #{id,jdbcType=BIGINT} - - - delete from t_pro_task_version - - - - - - insert into t_pro_task_version (id, task_detail_id, task_version_info, - project_type, created_at, updated_at, - rec_status) - values (#{id,jdbcType=BIGINT}, #{taskDetailId,jdbcType=BIGINT}, #{taskVersionInfo,jdbcType=VARCHAR}, - #{projectType,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, - #{recStatus,jdbcType=TINYINT}) - - - insert into t_pro_task_version - - - id, - - - task_detail_id, - - - task_version_info, - - - project_type, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{taskDetailId,jdbcType=BIGINT}, - - - #{taskVersionInfo,jdbcType=VARCHAR}, - - - #{projectType,jdbcType=TINYINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_pro_task_version - - - id = #{record.id,jdbcType=BIGINT}, - - - task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, - - - task_version_info = #{record.taskVersionInfo,jdbcType=VARCHAR}, - - - project_type = #{record.projectType,jdbcType=TINYINT}, - - - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{record.recStatus,jdbcType=TINYINT}, - - - - - - - - update t_pro_task_version - set id = #{record.id,jdbcType=BIGINT}, - task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, - task_version_info = #{record.taskVersionInfo,jdbcType=VARCHAR}, - project_type = #{record.projectType,jdbcType=TINYINT}, - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{record.recStatus,jdbcType=TINYINT} - - - - - - update t_pro_task_version - - - task_detail_id = #{taskDetailId,jdbcType=BIGINT}, - - - task_version_info = #{taskVersionInfo,jdbcType=VARCHAR}, - - - project_type = #{projectType,jdbcType=TINYINT}, - - - created_at = #{createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{recStatus,jdbcType=TINYINT}, - - - where id = #{id,jdbcType=BIGINT} - - - update t_pro_task_version - set task_detail_id = #{taskDetailId,jdbcType=BIGINT}, - task_version_info = #{taskVersionInfo,jdbcType=VARCHAR}, - project_type = #{projectType,jdbcType=TINYINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, task_detail_id, task_version_info, project_type, created_at, updated_at, rec_status, + address + + + + + delete from t_pro_task_version + where id = #{id,jdbcType=BIGINT} + + + delete from t_pro_task_version + + + + + + insert into t_pro_task_version (id, task_detail_id, task_version_info, + project_type, created_at, updated_at, + rec_status, address) + values (#{id,jdbcType=BIGINT}, #{taskDetailId,jdbcType=BIGINT}, #{taskVersionInfo,jdbcType=VARCHAR}, + #{projectType,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}, #{address,jdbcType=VARCHAR}) + + + insert into t_pro_task_version + + + id, + + + task_detail_id, + + + task_version_info, + + + project_type, + + + created_at, + + + updated_at, + + + rec_status, + + + address, + + + + + #{id,jdbcType=BIGINT}, + + + #{taskDetailId,jdbcType=BIGINT}, + + + #{taskVersionInfo,jdbcType=VARCHAR}, + + + #{projectType,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + #{address,jdbcType=VARCHAR}, + + + + + + update t_pro_task_version + + + id = #{record.id,jdbcType=BIGINT}, + + + task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, + + + task_version_info = #{record.taskVersionInfo,jdbcType=VARCHAR}, + + + project_type = #{record.projectType,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + + + + + + update t_pro_task_version + set id = #{record.id,jdbcType=BIGINT}, + task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, + task_version_info = #{record.taskVersionInfo,jdbcType=VARCHAR}, + project_type = #{record.projectType,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT}, + address = #{record.address,jdbcType=VARCHAR} + + + + + + update t_pro_task_version + + + task_detail_id = #{taskDetailId,jdbcType=BIGINT}, + + + task_version_info = #{taskVersionInfo,jdbcType=VARCHAR}, + + + project_type = #{projectType,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + address = #{address,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_pro_task_version + set task_detail_id = #{taskDetailId,jdbcType=BIGINT}, + task_version_info = #{taskVersionInfo,jdbcType=VARCHAR}, + project_type = #{projectType,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT}, + address = #{address,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2e229c00..a4fd6914 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,7 @@ signin common + diff --git a/tall/src/main/resources/application-dev.yml b/tall/src/main/resources/application-dev.yml index c69f2275..8311dc5f 100644 --- a/tall/src/main/resources/application-dev.yml +++ b/tall/src/main/resources/application-dev.yml @@ -11,7 +11,7 @@ spring: datasource: type: com.alibaba.druid.pool.DruidDataSource rabbitmq: - host: 192.168.4.113 + host: 192.168.0.99 #host: 127.0.0.1 password: 111111 port: 5672 @@ -30,6 +30,18 @@ spring: timeout: 1000ms swagger: enable: true +mybatisCache: + database: 1 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1 + min-idle: 0 + password: '' + port: 6379 + timeout: 1000 gatewayUrl: https://test.tall.wiki/gateway/ notGatewayUrl: /home/staticrec/logo.png