Browse Source

20210806项目列表

tall3
zy_Java 4 years ago
parent
commit
bc999dd82a
  1. 2
      pom.xml
  2. 38
      signin/src/main/java/com/ccsens/signin/api/ProjectController.java
  3. 86
      signin/src/main/java/com/ccsens/signin/api/UserController.java
  4. 21
      signin/src/main/java/com/ccsens/signin/bean/dto/ProjectDto.java
  5. 150
      signin/src/main/java/com/ccsens/signin/bean/po/SysProjectList.java
  6. 941
      signin/src/main/java/com/ccsens/signin/bean/po/SysProjectListExample.java
  7. 95
      signin/src/main/java/com/ccsens/signin/bean/po/SysTemplate.java
  8. 641
      signin/src/main/java/com/ccsens/signin/bean/po/SysTemplateExample.java
  9. 84
      signin/src/main/java/com/ccsens/signin/bean/po/SysUserProject.java
  10. 561
      signin/src/main/java/com/ccsens/signin/bean/po/SysUserProjectExample.java
  11. 29
      signin/src/main/java/com/ccsens/signin/bean/vo/ProjectVo.java
  12. 4
      signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java
  13. 15
      signin/src/main/java/com/ccsens/signin/persist/dao/ProjectDao.java
  14. 30
      signin/src/main/java/com/ccsens/signin/persist/mapper/SysProjectListMapper.java
  15. 30
      signin/src/main/java/com/ccsens/signin/persist/mapper/SysTemplateMapper.java
  16. 30
      signin/src/main/java/com/ccsens/signin/persist/mapper/SysUserProjectMapper.java
  17. 11
      signin/src/main/java/com/ccsens/signin/service/IProjectService.java
  18. 28
      signin/src/main/java/com/ccsens/signin/service/ProjectService.java
  19. 6
      signin/src/main/java/com/ccsens/signin/service/UserInfoService.java
  20. 4
      signin/src/main/resources/application-dev.yml
  21. 4
      signin/src/main/resources/application-prod.yml
  22. 4
      signin/src/main/resources/application-test.yml
  23. 4
      signin/src/main/resources/application.yml
  24. 2
      signin/src/main/resources/druid-dev.yml
  25. 2
      signin/src/main/resources/druid-prod.yml
  26. 2
      signin/src/main/resources/druid-test.yml
  27. 24
      signin/src/main/resources/mapper_dao/ProjectDap.xml
  28. 323
      signin/src/main/resources/mapper_raw/SysProjectListMapper.xml
  29. 243
      signin/src/main/resources/mapper_raw/SysTemplateMapper.xml
  30. 228
      signin/src/main/resources/mapper_raw/SysUserProjectMapper.xml

2
pom.xml

@ -13,7 +13,7 @@
<!-- <module>ht</module>--> <!-- <module>ht</module>-->
<!-- <module>game</module>--> <!-- <module>game</module>-->
<!-- <module>mt</module>--> <!-- <module>mt</module>-->
<module>wisdomcar</module> <!-- <module>wisdomcar</module>-->
<!-- <module>beneficiation</module>--> <!-- <module>beneficiation</module>-->
<!-- <module>form</module>--> <!-- <module>form</module>-->
<module>signin</module> <module>signin</module>

38
signin/src/main/java/com/ccsens/signin/api/ProjectController.java

@ -0,0 +1,38 @@
package com.ccsens.signin.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.signin.bean.dto.ProjectDto;
import com.ccsens.signin.bean.vo.ProjectVo;
import com.ccsens.signin.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.*;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Slf4j
@Api(tags = "项目列表", description = "")
@RestController
@RequestMapping("/project")
public class ProjectController {
@Resource
private IProjectService projectService;
@MustLogin
@ApiOperation(value = "查询项目列表", notes = "")
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<ProjectVo.QueryProject>> queryProjectList(@ApiParam @Validated @RequestBody QueryDto<ProjectDto.QueryProjectDto> params) throws Exception{
List<ProjectVo.QueryProject> projectList = projectService.queryProjectList(params.getParam(),params.getUserId());
return JsonResponse.newInstance().ok(projectList);
}
}

86
signin/src/main/java/com/ccsens/signin/api/UserController.java

@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.extra.servlet.ServletUtil; import cn.hutool.extra.servlet.ServletUtil;
import com.ccsens.signin.bean.dto.UserDto; import com.ccsens.signin.bean.dto.UserDto;
import com.ccsens.signin.bean.po.SysUser;
import com.ccsens.signin.bean.vo.UserVo; import com.ccsens.signin.bean.vo.UserVo;
import com.ccsens.signin.exception.UserLoginException; import com.ccsens.signin.exception.UserLoginException;
import com.ccsens.signin.service.IUserService; import com.ccsens.signin.service.IUserService;
@ -187,25 +188,25 @@ public class UserController {
// } // }
@ApiOperation(value = "/微信合并已有账号",notes = "") // @ApiOperation(value = "/微信合并已有账号",notes = "")
@ApiImplicitParams({ // @ApiImplicitParams({
}) // })
@RequestMapping(value="/merge",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value="/merge",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"})
public JsonResponse<UserVo.TokenBean> bindingPhone(HttpServletRequest request, // public JsonResponse<UserVo.TokenBean> bindingPhone(HttpServletRequest request,
@ApiParam @RequestBody UserDto.WxMergePhone wxPhone) throws Exception { // @ApiParam @RequestBody UserDto.WxMergePhone wxPhone) throws Exception {
Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject()); // Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
UserVo.UserSign userSignVo = userService.mergeByPhone(currentUserId,wxPhone); // UserVo.UserSign userSignVo = userService.mergeByPhone(currentUserId,wxPhone);
//
UserVo.TokenBean tokenBean = null; // UserVo.TokenBean tokenBean = null;
if (ObjectUtil.isNotNull(userSignVo)) { // if (ObjectUtil.isNotNull(userSignVo)) {
WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); // WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1);
WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); // WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3);
Map<String, Object> theMap = CollectionUtil.newHashMap(); // Map<String, Object> theMap = CollectionUtil.newHashMap();
theMap.put("authId", String.valueOf(userSignVo.getAuthId())); // theMap.put("authId", String.valueOf(userSignVo.getAuthId()));
tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); // tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap);
} // }
return JsonResponse.newInstance().ok(tokenBean); // return JsonResponse.newInstance().ok(tokenBean);
} // }
@ApiOperation(value = "/微信绑定账号",notes = "") @ApiOperation(value = "/微信绑定账号",notes = "")
@ApiImplicitParams({ @ApiImplicitParams({
@ -389,12 +390,47 @@ public class UserController {
}) })
@RequestMapping(value = "token",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) @RequestMapping(value = "token",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
public JsonResponse<UserVo.TokenToUserId> getUserByToken(@RequestParam(required = true) String token) throws Exception { public JsonResponse<UserVo.TokenToUserId> getUserByToken(@RequestParam(required = true) String token) throws Exception {
// long start = System.currentTimeMillis();
// UserVo.TokenToUserId tokenToUserId = new UserVo.TokenToUserId();
// // 验证token是否存在
// String tokenStr = token;
// if (tokenStr == null || !tokenStr.startsWith(WebConstant.HEADER_KEY_TOKEN_PREFIX)) {
// return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
// }
// String userToken = tokenStr.substring(WebConstant.HEADER_KEY_TOKEN_PREFIX.length());
//
// //验证token是否有效
// Claims claims = null;
// try {
// claims = JwtUtil.parseJWT(userToken, WebConstant.JWT_ACCESS_TOKEN_SECERT);
// }catch(Exception e){
// return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
// }
// //验证用户存根
// if(userService.tokenNotExistInCache(Long.valueOf(claims.getSubject()))){
// return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
// }
// //验证用户是否禁用
// SysUser user = userService.getUserById(Long.valueOf(claims.getSubject()));
// if(user.getRecStatus() == WebConstant.REC_STATUS.Disabled.value){
// return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
// }
// tokenToUserId.setId(Long.valueOf(claims.getSubject()));
// long end = System.currentTimeMillis();
// log.info("根据token查找userId用时:{}",end - start);
log.info("MustLogin根据token查找UserId:{}",token);
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
UserVo.TokenToUserId tokenToUserId = new UserVo.TokenToUserId(); UserVo.TokenToUserId tokenToUserId = new UserVo.TokenToUserId();
// 验证token是否存在 // 验证token是否存在
String tokenStr = token; String tokenStr = token;
if (tokenStr == null || !tokenStr.startsWith(WebConstant.HEADER_KEY_TOKEN_PREFIX)) { if (tokenStr == null || !tokenStr.startsWith(WebConstant.HEADER_KEY_TOKEN_PREFIX)) {
log.info("token不存在:{}",tokenStr);
return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
} }
String userToken = tokenStr.substring(WebConstant.HEADER_KEY_TOKEN_PREFIX.length()); String userToken = tokenStr.substring(WebConstant.HEADER_KEY_TOKEN_PREFIX.length());
@ -404,21 +440,23 @@ public class UserController {
try { try {
claims = JwtUtil.parseJWT(userToken, WebConstant.JWT_ACCESS_TOKEN_SECERT); claims = JwtUtil.parseJWT(userToken, WebConstant.JWT_ACCESS_TOKEN_SECERT);
}catch(Exception e){ }catch(Exception e){
log.info("token无效");
return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
} }
//验证用户存根 //验证用户存根
if(userService.tokenNotExistInCache(Long.valueOf(claims.getSubject()))){ if(userService.tokenNotExistInCache(Long.valueOf(claims.getSubject()))){
log.info("用户存根不存在:{}",claims.getSubject());
return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
} }
// //验证用户是否禁用
// SysUser user = userService.getUserById(Long.valueOf(claims.getSubject()));
// if(user.getRecStatus() == WebConstant.REC_STATUS.Disabled.value){
// return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
// }
tokenToUserId.setId(Long.valueOf(claims.getSubject())); tokenToUserId.setId(Long.valueOf(claims.getSubject()));
long end = System.currentTimeMillis(); long end = System.currentTimeMillis();
log.info("根据token查找userId用时:{}",end - start); log.info("根据token查找userId用时:{}",end - start);
SysUser sysUser = userService.getUserById(Long.valueOf(claims.getSubject()));
if(ObjectUtil.isNotNull(sysUser)){
tokenToUserId.setAvatarUrl(sysUser.getAvatarUrl());
}
tokenToUserId.setUserName(userService.getUserNameByUserId(Long.valueOf(claims.getSubject())));
return JsonResponse.newInstance().ok(tokenToUserId); return JsonResponse.newInstance().ok(tokenToUserId);
} }

21
signin/src/main/java/com/ccsens/signin/bean/dto/ProjectDto.java

@ -0,0 +1,21 @@
package com.ccsens.signin.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author
*/
@Data
public class ProjectDto {
@Data
@ApiModel("查询日历下项目列表")
public static class QueryProjectDto{
@ApiModelProperty("开始时间")
private Long startTime;
@ApiModelProperty("结束时间")
private Long endTime;
}
}

150
signin/src/main/java/com/ccsens/signin/bean/po/SysProjectList.java

@ -0,0 +1,150 @@
package com.ccsens.signin.bean.po;
import java.io.Serializable;
import java.util.Date;
public class SysProjectList implements Serializable {
private Long id;
private Long projectId;
private Long templateId;
private Long parentProjectId;
private String name;
private String url;
private Long projectStartTime;
private Long projectEndTime;
private Long projectStatus;
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 getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getTemplateId() {
return templateId;
}
public void setTemplateId(Long templateId) {
this.templateId = templateId;
}
public Long getParentProjectId() {
return parentProjectId;
}
public void setParentProjectId(Long parentProjectId) {
this.parentProjectId = parentProjectId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
public Long getProjectStartTime() {
return projectStartTime;
}
public void setProjectStartTime(Long projectStartTime) {
this.projectStartTime = projectStartTime;
}
public Long getProjectEndTime() {
return projectEndTime;
}
public void setProjectEndTime(Long projectEndTime) {
this.projectEndTime = projectEndTime;
}
public Long getProjectStatus() {
return projectStatus;
}
public void setProjectStatus(Long projectStatus) {
this.projectStatus = projectStatus;
}
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(", projectId=").append(projectId);
sb.append(", templateId=").append(templateId);
sb.append(", parentProjectId=").append(parentProjectId);
sb.append(", name=").append(name);
sb.append(", url=").append(url);
sb.append(", projectStartTime=").append(projectStartTime);
sb.append(", projectEndTime=").append(projectEndTime);
sb.append(", projectStatus=").append(projectStatus);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

941
signin/src/main/java/com/ccsens/signin/bean/po/SysProjectListExample.java

@ -0,0 +1,941 @@
package com.ccsens.signin.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SysProjectListExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysProjectListExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(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<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> 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 andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andTemplateIdIsNull() {
addCriterion("template_id is null");
return (Criteria) this;
}
public Criteria andTemplateIdIsNotNull() {
addCriterion("template_id is not null");
return (Criteria) this;
}
public Criteria andTemplateIdEqualTo(Long value) {
addCriterion("template_id =", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotEqualTo(Long value) {
addCriterion("template_id <>", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThan(Long value) {
addCriterion("template_id >", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThanOrEqualTo(Long value) {
addCriterion("template_id >=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThan(Long value) {
addCriterion("template_id <", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThanOrEqualTo(Long value) {
addCriterion("template_id <=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdIn(List<Long> values) {
addCriterion("template_id in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotIn(List<Long> values) {
addCriterion("template_id not in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdBetween(Long value1, Long value2) {
addCriterion("template_id between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotBetween(Long value1, Long value2) {
addCriterion("template_id not between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andParentProjectIdIsNull() {
addCriterion("parent_project_id is null");
return (Criteria) this;
}
public Criteria andParentProjectIdIsNotNull() {
addCriterion("parent_project_id is not null");
return (Criteria) this;
}
public Criteria andParentProjectIdEqualTo(Long value) {
addCriterion("parent_project_id =", value, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdNotEqualTo(Long value) {
addCriterion("parent_project_id <>", value, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdGreaterThan(Long value) {
addCriterion("parent_project_id >", value, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("parent_project_id >=", value, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdLessThan(Long value) {
addCriterion("parent_project_id <", value, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdLessThanOrEqualTo(Long value) {
addCriterion("parent_project_id <=", value, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdIn(List<Long> values) {
addCriterion("parent_project_id in", values, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdNotIn(List<Long> values) {
addCriterion("parent_project_id not in", values, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdBetween(Long value1, Long value2) {
addCriterion("parent_project_id between", value1, value2, "parentProjectId");
return (Criteria) this;
}
public Criteria andParentProjectIdNotBetween(Long value1, Long value2) {
addCriterion("parent_project_id not between", value1, value2, "parentProjectId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andProjectStartTimeIsNull() {
addCriterion("project_start_time is null");
return (Criteria) this;
}
public Criteria andProjectStartTimeIsNotNull() {
addCriterion("project_start_time is not null");
return (Criteria) this;
}
public Criteria andProjectStartTimeEqualTo(Long value) {
addCriterion("project_start_time =", value, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeNotEqualTo(Long value) {
addCriterion("project_start_time <>", value, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeGreaterThan(Long value) {
addCriterion("project_start_time >", value, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("project_start_time >=", value, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeLessThan(Long value) {
addCriterion("project_start_time <", value, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeLessThanOrEqualTo(Long value) {
addCriterion("project_start_time <=", value, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeIn(List<Long> values) {
addCriterion("project_start_time in", values, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeNotIn(List<Long> values) {
addCriterion("project_start_time not in", values, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeBetween(Long value1, Long value2) {
addCriterion("project_start_time between", value1, value2, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectStartTimeNotBetween(Long value1, Long value2) {
addCriterion("project_start_time not between", value1, value2, "projectStartTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeIsNull() {
addCriterion("project_end_time is null");
return (Criteria) this;
}
public Criteria andProjectEndTimeIsNotNull() {
addCriterion("project_end_time is not null");
return (Criteria) this;
}
public Criteria andProjectEndTimeEqualTo(Long value) {
addCriterion("project_end_time =", value, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeNotEqualTo(Long value) {
addCriterion("project_end_time <>", value, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeGreaterThan(Long value) {
addCriterion("project_end_time >", value, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeGreaterThanOrEqualTo(Long value) {
addCriterion("project_end_time >=", value, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeLessThan(Long value) {
addCriterion("project_end_time <", value, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeLessThanOrEqualTo(Long value) {
addCriterion("project_end_time <=", value, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeIn(List<Long> values) {
addCriterion("project_end_time in", values, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeNotIn(List<Long> values) {
addCriterion("project_end_time not in", values, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeBetween(Long value1, Long value2) {
addCriterion("project_end_time between", value1, value2, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectEndTimeNotBetween(Long value1, Long value2) {
addCriterion("project_end_time not between", value1, value2, "projectEndTime");
return (Criteria) this;
}
public Criteria andProjectStatusIsNull() {
addCriterion("project_status is null");
return (Criteria) this;
}
public Criteria andProjectStatusIsNotNull() {
addCriterion("project_status is not null");
return (Criteria) this;
}
public Criteria andProjectStatusEqualTo(Long value) {
addCriterion("project_status =", value, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusNotEqualTo(Long value) {
addCriterion("project_status <>", value, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusGreaterThan(Long value) {
addCriterion("project_status >", value, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusGreaterThanOrEqualTo(Long value) {
addCriterion("project_status >=", value, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusLessThan(Long value) {
addCriterion("project_status <", value, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusLessThanOrEqualTo(Long value) {
addCriterion("project_status <=", value, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusIn(List<Long> values) {
addCriterion("project_status in", values, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusNotIn(List<Long> values) {
addCriterion("project_status not in", values, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusBetween(Long value1, Long value2) {
addCriterion("project_status between", value1, value2, "projectStatus");
return (Criteria) this;
}
public Criteria andProjectStatusNotBetween(Long value1, Long value2) {
addCriterion("project_status not between", value1, value2, "projectStatus");
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<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> 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<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> 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<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> 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);
}
}
}

95
signin/src/main/java/com/ccsens/signin/bean/po/SysTemplate.java

@ -0,0 +1,95 @@
package com.ccsens.signin.bean.po;
import java.io.Serializable;
import java.util.Date;
public class SysTemplate implements Serializable {
private Long id;
private String name;
private String url;
private Long businessTemplateId;
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 String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
public Long getBusinessTemplateId() {
return businessTemplateId;
}
public void setBusinessTemplateId(Long businessTemplateId) {
this.businessTemplateId = businessTemplateId;
}
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(", name=").append(name);
sb.append(", url=").append(url);
sb.append(", businessTemplateId=").append(businessTemplateId);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

641
signin/src/main/java/com/ccsens/signin/bean/po/SysTemplateExample.java

@ -0,0 +1,641 @@
package com.ccsens.signin.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SysTemplateExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysTemplateExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(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<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> 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 andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdIsNull() {
addCriterion("business_template_id is null");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdIsNotNull() {
addCriterion("business_template_id is not null");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdEqualTo(Long value) {
addCriterion("business_template_id =", value, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdNotEqualTo(Long value) {
addCriterion("business_template_id <>", value, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdGreaterThan(Long value) {
addCriterion("business_template_id >", value, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdGreaterThanOrEqualTo(Long value) {
addCriterion("business_template_id >=", value, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdLessThan(Long value) {
addCriterion("business_template_id <", value, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdLessThanOrEqualTo(Long value) {
addCriterion("business_template_id <=", value, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdIn(List<Long> values) {
addCriterion("business_template_id in", values, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdNotIn(List<Long> values) {
addCriterion("business_template_id not in", values, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdBetween(Long value1, Long value2) {
addCriterion("business_template_id between", value1, value2, "businessTemplateId");
return (Criteria) this;
}
public Criteria andBusinessTemplateIdNotBetween(Long value1, Long value2) {
addCriterion("business_template_id not between", value1, value2, "businessTemplateId");
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<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> 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<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> 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<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> 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);
}
}
}

84
signin/src/main/java/com/ccsens/signin/bean/po/SysUserProject.java

@ -0,0 +1,84 @@
package com.ccsens.signin.bean.po;
import java.io.Serializable;
import java.util.Date;
public class SysUserProject implements Serializable {
private Long id;
private Long projectId;
private Long userId;
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 getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
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(", projectId=").append(projectId);
sb.append(", userId=").append(userId);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

561
signin/src/main/java/com/ccsens/signin/bean/po/SysUserProjectExample.java

@ -0,0 +1,561 @@
package com.ccsens.signin.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SysUserProjectExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysUserProjectExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(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<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> 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 andProjectIdIsNull() {
addCriterion("project_id is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(Long value) {
addCriterion("project_id =", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(Long value) {
addCriterion("project_id <>", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(Long value) {
addCriterion("project_id >", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
addCriterion("project_id >=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(Long value) {
addCriterion("project_id <", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(Long value) {
addCriterion("project_id <=", value, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<Long> values) {
addCriterion("project_id in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<Long> values) {
addCriterion("project_id not in", values, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdBetween(Long value1, Long value2) {
addCriterion("project_id between", value1, value2, "projectId");
return (Criteria) this;
}
public Criteria andProjectIdNotBetween(Long value1, Long value2) {
addCriterion("project_id not between", value1, value2, "projectId");
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<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> 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 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<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> 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<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> 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<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> 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);
}
}
}

29
signin/src/main/java/com/ccsens/signin/bean/vo/ProjectVo.java

@ -0,0 +1,29 @@
package com.ccsens.signin.bean.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author
*/
@Data
public class ProjectVo {
@Data
@ApiModel("日历下项目列表信息")
public static class QueryProject{
@ApiModelProperty("id")
private Long id;
@ApiModelProperty("项目名")
private String name;
@ApiModelProperty("开始时间")
private Long startTime;
@ApiModelProperty("结束时间")
private Long endTime;
@ApiModelProperty("项目完成状态(0-未开始,1-进行中,2-暂停,3-已完成)")
private byte status;
@ApiModelProperty("访问路径)")
private String url;
}
}

4
signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java

@ -63,6 +63,10 @@ public class UserVo {
public static class TokenToUserId{ public static class TokenToUserId{
@ApiModelProperty("用户id") @ApiModelProperty("用户id")
private Long id; private Long id;
@ApiModelProperty("用户名")
private String userName;
@ApiModelProperty("头像")
private String avatarUrl;
} }
@Data @Data

15
signin/src/main/java/com/ccsens/signin/persist/dao/ProjectDao.java

@ -0,0 +1,15 @@
package com.ccsens.signin.persist.dao;
import com.ccsens.signin.bean.vo.ProjectVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author
*/
@Repository
public interface ProjectDao {
List<ProjectVo.QueryProject> queryProjectList(@Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("userId") Long userId);
}

30
signin/src/main/java/com/ccsens/signin/persist/mapper/SysProjectListMapper.java

@ -0,0 +1,30 @@
package com.ccsens.signin.persist.mapper;
import com.ccsens.signin.bean.po.SysProjectList;
import com.ccsens.signin.bean.po.SysProjectListExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SysProjectListMapper {
long countByExample(SysProjectListExample example);
int deleteByExample(SysProjectListExample example);
int deleteByPrimaryKey(Long id);
int insert(SysProjectList record);
int insertSelective(SysProjectList record);
List<SysProjectList> selectByExample(SysProjectListExample example);
SysProjectList selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SysProjectList record, @Param("example") SysProjectListExample example);
int updateByExample(@Param("record") SysProjectList record, @Param("example") SysProjectListExample example);
int updateByPrimaryKeySelective(SysProjectList record);
int updateByPrimaryKey(SysProjectList record);
}

30
signin/src/main/java/com/ccsens/signin/persist/mapper/SysTemplateMapper.java

@ -0,0 +1,30 @@
package com.ccsens.signin.persist.mapper;
import com.ccsens.signin.bean.po.SysTemplate;
import com.ccsens.signin.bean.po.SysTemplateExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SysTemplateMapper {
long countByExample(SysTemplateExample example);
int deleteByExample(SysTemplateExample example);
int deleteByPrimaryKey(Long id);
int insert(SysTemplate record);
int insertSelective(SysTemplate record);
List<SysTemplate> selectByExample(SysTemplateExample example);
SysTemplate selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SysTemplate record, @Param("example") SysTemplateExample example);
int updateByExample(@Param("record") SysTemplate record, @Param("example") SysTemplateExample example);
int updateByPrimaryKeySelective(SysTemplate record);
int updateByPrimaryKey(SysTemplate record);
}

30
signin/src/main/java/com/ccsens/signin/persist/mapper/SysUserProjectMapper.java

@ -0,0 +1,30 @@
package com.ccsens.signin.persist.mapper;
import com.ccsens.signin.bean.po.SysUserProject;
import com.ccsens.signin.bean.po.SysUserProjectExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SysUserProjectMapper {
long countByExample(SysUserProjectExample example);
int deleteByExample(SysUserProjectExample example);
int deleteByPrimaryKey(Long id);
int insert(SysUserProject record);
int insertSelective(SysUserProject record);
List<SysUserProject> selectByExample(SysUserProjectExample example);
SysUserProject selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SysUserProject record, @Param("example") SysUserProjectExample example);
int updateByExample(@Param("record") SysUserProject record, @Param("example") SysUserProjectExample example);
int updateByPrimaryKeySelective(SysUserProject record);
int updateByPrimaryKey(SysUserProject record);
}

11
signin/src/main/java/com/ccsens/signin/service/IProjectService.java

@ -0,0 +1,11 @@
package com.ccsens.signin.service;
import com.ccsens.signin.bean.dto.ProjectDto;
import com.ccsens.signin.bean.vo.ProjectVo;
import java.util.List;
public interface IProjectService {
List<ProjectVo.QueryProject> queryProjectList(ProjectDto.QueryProjectDto param, Long userId);
}

28
signin/src/main/java/com/ccsens/signin/service/ProjectService.java

@ -0,0 +1,28 @@
package com.ccsens.signin.service;
import com.ccsens.signin.bean.dto.ProjectDto;
import com.ccsens.signin.bean.vo.ProjectVo;
import com.ccsens.signin.persist.dao.ProjectDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class ProjectService implements IProjectService{
@Resource
private ProjectDao projectDao;
@Override
public List<ProjectVo.QueryProject> queryProjectList(ProjectDto.QueryProjectDto param, Long userId) {
return projectDao.queryProjectList(param.getStartTime(),param.getEndTime(),userId);
}
}

6
signin/src/main/java/com/ccsens/signin/service/UserInfoService.java

@ -190,9 +190,9 @@ public class UserInfoService implements IUserInfoService{
} }
// //获取标签信息 // //获取标签信息
// selectUserInfo.setLabelList(sysLabelDao.selectLabelByUserId(currentUserId,null,null)); // selectUserInfo.setLabelList(sysLabelDao.selectLabelByUserId(currentUserId,null,null));
//获取空间使用信息 //TODO 获取空间使用信息
UserVo.Interspace interspace = sysUserDao.selectInterspace(currentUserId); // UserVo.Interspace interspace = sysUserDao.selectInterspace(currentUserId);
selectUserInfo.setInterspace(interspace); // selectUserInfo.setInterspace(interspace);
} }
return selectUserInfo; return selectUserInfo;

4
signin/src/main/resources/application-dev.yml

@ -1,13 +1,13 @@
server: server:
port: 7130 port: 7130
servlet: servlet:
context-path: /v3.0 context-path: /v1.0
spring: spring:
snowflake: snowflake:
datacenterId: 1 datacenterId: 1
workerId: 1 workerId: 1
application: application:
name: signin name: tall
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:

4
signin/src/main/resources/application-prod.yml

@ -1,13 +1,13 @@
server: server:
port: 7130 port: 7130
servlet: servlet:
context-path: /v3.0 context-path: /v1.0
spring: spring:
snowflake: snowflake:
datacenterId: 1 datacenterId: 1
workerId: 1 workerId: 1
application: application:
name: signin name: tall
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:

4
signin/src/main/resources/application-test.yml

@ -1,13 +1,13 @@
server: server:
port: 7130 port: 7130
servlet: servlet:
context-path: /v3.0 context-path: /v1.0
spring: spring:
snowflake: snowflake:
datacenterId: 1 datacenterId: 1
workerId: 1 workerId: 1
application: application:
name: signin name: tall
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:

4
signin/src/main/resources/application.yml

@ -1,5 +1,5 @@
spring: spring:
profiles: profiles:
active: dev active: test
include: util-dev,common include: util-test,common

2
signin/src/main/resources/druid-dev.yml

@ -27,7 +27,7 @@ spring:
testOnReturn: false testOnReturn: false
testWhileIdle: true testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000 timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://49.233.89.188:3306/tall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true url: jdbc:mysql://49.233.89.188:3306/tall3?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
# url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true # url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
username: root username: root
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1 FROM DUAL

2
signin/src/main/resources/druid-prod.yml

@ -28,7 +28,7 @@ spring:
testOnReturn: false testOnReturn: false
testWhileIdle: true testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000 timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true url: jdbc:mysql://127.0.0.1/tall3?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
username: root username: root
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1 FROM DUAL
env: CCSENS_HEALTH env: CCSENS_HEALTH

2
signin/src/main/resources/druid-test.yml

@ -29,7 +29,7 @@ spring:
testWhileIdle: true testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000 timeBetweenEvictionRunsMillis: 60000
# url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8 # url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://test.tall.wiki/tall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true url: jdbc:mysql://test.tall.wiki/tall3?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
username: root username: root
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1 FROM DUAL
env: CCSENS_TALL env: CCSENS_TALL

24
signin/src/main/resources/mapper_dao/ProjectDap.xml

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ccsens.signin.persist.dao.ProjectDao">
<select id="queryProjectList" resultType="com.ccsens.signin.bean.vo.ProjectVo$QueryProject">
SELECT
p.project_id as id,
p.`name`,
p.project_start_time as startTime,
p.project_end_time as endTime,
p.project_status as `status`,
p.url
FROM
t_sys_user_project up,
t_sys_project_list p
WHERE
up.project_id = p.project_id
and up.user_id = #{userId}
and p.project_start_time &lt;= #{endTime}
and p.project_end_time &gt;= #{startTime}
</select>
</mapper>

323
signin/src/main/resources/mapper_raw/SysProjectListMapper.xml

@ -0,0 +1,323 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ccsens.signin.persist.mapper.SysProjectListMapper">
<resultMap id="BaseResultMap" type="com.ccsens.signin.bean.po.SysProjectList">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="template_id" jdbcType="BIGINT" property="templateId" />
<result column="parent_project_id" jdbcType="BIGINT" property="parentProjectId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="project_start_time" jdbcType="BIGINT" property="projectStartTime" />
<result column="project_end_time" jdbcType="BIGINT" property="projectEndTime" />
<result column="project_status" jdbcType="BIGINT" property="projectStatus" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, project_id, template_id, parent_project_id, name, url, project_start_time, project_end_time,
project_status, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.signin.bean.po.SysProjectListExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_sys_project_list
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sys_project_list
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_sys_project_list
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.signin.bean.po.SysProjectListExample">
delete from t_sys_project_list
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.signin.bean.po.SysProjectList">
insert into t_sys_project_list (id, project_id, template_id,
parent_project_id, name, url,
project_start_time, project_end_time, project_status,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{templateId,jdbcType=BIGINT},
#{parentProjectId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
#{projectStartTime,jdbcType=BIGINT}, #{projectEndTime,jdbcType=BIGINT}, #{projectStatus,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.signin.bean.po.SysProjectList">
insert into t_sys_project_list
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="templateId != null">
template_id,
</if>
<if test="parentProjectId != null">
parent_project_id,
</if>
<if test="name != null">
name,
</if>
<if test="url != null">
url,
</if>
<if test="projectStartTime != null">
project_start_time,
</if>
<if test="projectEndTime != null">
project_end_time,
</if>
<if test="projectStatus != null">
project_status,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="templateId != null">
#{templateId,jdbcType=BIGINT},
</if>
<if test="parentProjectId != null">
#{parentProjectId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="url != null">
#{url,jdbcType=VARCHAR},
</if>
<if test="projectStartTime != null">
#{projectStartTime,jdbcType=BIGINT},
</if>
<if test="projectEndTime != null">
#{projectEndTime,jdbcType=BIGINT},
</if>
<if test="projectStatus != null">
#{projectStatus,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.signin.bean.po.SysProjectListExample" resultType="java.lang.Long">
select count(*) from t_sys_project_list
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_sys_project_list
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.templateId != null">
template_id = #{record.templateId,jdbcType=BIGINT},
</if>
<if test="record.parentProjectId != null">
parent_project_id = #{record.parentProjectId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.projectStartTime != null">
project_start_time = #{record.projectStartTime,jdbcType=BIGINT},
</if>
<if test="record.projectEndTime != null">
project_end_time = #{record.projectEndTime,jdbcType=BIGINT},
</if>
<if test="record.projectStatus != null">
project_status = #{record.projectStatus,jdbcType=BIGINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_sys_project_list
set id = #{record.id,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
template_id = #{record.templateId,jdbcType=BIGINT},
parent_project_id = #{record.parentProjectId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
url = #{record.url,jdbcType=VARCHAR},
project_start_time = #{record.projectStartTime,jdbcType=BIGINT},
project_end_time = #{record.projectEndTime,jdbcType=BIGINT},
project_status = #{record.projectStatus,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.signin.bean.po.SysProjectList">
update t_sys_project_list
<set>
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="templateId != null">
template_id = #{templateId,jdbcType=BIGINT},
</if>
<if test="parentProjectId != null">
parent_project_id = #{parentProjectId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="url != null">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="projectStartTime != null">
project_start_time = #{projectStartTime,jdbcType=BIGINT},
</if>
<if test="projectEndTime != null">
project_end_time = #{projectEndTime,jdbcType=BIGINT},
</if>
<if test="projectStatus != null">
project_status = #{projectStatus,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.signin.bean.po.SysProjectList">
update t_sys_project_list
set project_id = #{projectId,jdbcType=BIGINT},
template_id = #{templateId,jdbcType=BIGINT},
parent_project_id = #{parentProjectId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
project_start_time = #{projectStartTime,jdbcType=BIGINT},
project_end_time = #{projectEndTime,jdbcType=BIGINT},
project_status = #{projectStatus,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

243
signin/src/main/resources/mapper_raw/SysTemplateMapper.xml

@ -0,0 +1,243 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ccsens.signin.persist.mapper.SysTemplateMapper">
<resultMap id="BaseResultMap" type="com.ccsens.signin.bean.po.SysTemplate">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="business_template_id" jdbcType="BIGINT" property="businessTemplateId" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, url, business_template_id, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.signin.bean.po.SysTemplateExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_sys_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sys_template
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_sys_template
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.signin.bean.po.SysTemplateExample">
delete from t_sys_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.signin.bean.po.SysTemplate">
insert into t_sys_template (id, name, url,
business_template_id, created_at, updated_at,
rec_status)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
#{businessTemplateId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.signin.bean.po.SysTemplate">
insert into t_sys_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="url != null">
url,
</if>
<if test="businessTemplateId != null">
business_template_id,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="url != null">
#{url,jdbcType=VARCHAR},
</if>
<if test="businessTemplateId != null">
#{businessTemplateId,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.signin.bean.po.SysTemplateExample" resultType="java.lang.Long">
select count(*) from t_sys_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_sys_template
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.businessTemplateId != null">
business_template_id = #{record.businessTemplateId,jdbcType=BIGINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_sys_template
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
url = #{record.url,jdbcType=VARCHAR},
business_template_id = #{record.businessTemplateId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.signin.bean.po.SysTemplate">
update t_sys_template
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="url != null">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="businessTemplateId != null">
business_template_id = #{businessTemplateId,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.signin.bean.po.SysTemplate">
update t_sys_template
set name = #{name,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
business_template_id = #{businessTemplateId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

228
signin/src/main/resources/mapper_raw/SysUserProjectMapper.xml

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ccsens.signin.persist.mapper.SysUserProjectMapper">
<resultMap id="BaseResultMap" type="com.ccsens.signin.bean.po.SysUserProject">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, project_id, user_id, created_at, updated_at, rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.signin.bean.po.SysUserProjectExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_sys_user_project
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sys_user_project
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_sys_user_project
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.signin.bean.po.SysUserProjectExample">
delete from t_sys_user_project
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.signin.bean.po.SysUserProject">
insert into t_sys_user_project (id, project_id, user_id,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.signin.bean.po.SysUserProject">
insert into t_sys_user_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.signin.bean.po.SysUserProjectExample" resultType="java.lang.Long">
select count(*) from t_sys_user_project
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_sys_user_project
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_sys_user_project
set id = #{record.id,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.signin.bean.po.SysUserProject">
update t_sys_user_project
<set>
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.signin.bean.po.SysUserProject">
update t_sys_user_project
set project_id = #{projectId,jdbcType=BIGINT},
user_id = #{userId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
Loading…
Cancel
Save