diff --git a/pom.xml b/pom.xml index 56c929ea..a4fd6914 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - wisdomcar + signin diff --git a/signin/src/main/java/com/ccsens/signin/api/ProjectController.java b/signin/src/main/java/com/ccsens/signin/api/ProjectController.java new file mode 100644 index 00000000..b0efb815 --- /dev/null +++ b/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> queryProjectList(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + List projectList = projectService.queryProjectList(params.getParam(),params.getUserId()); + return JsonResponse.newInstance().ok(projectList); + } + +} diff --git a/signin/src/main/java/com/ccsens/signin/api/UserController.java b/signin/src/main/java/com/ccsens/signin/api/UserController.java index 90840aed..429740c0 100644 --- a/signin/src/main/java/com/ccsens/signin/api/UserController.java +++ b/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.extra.servlet.ServletUtil; 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.exception.UserLoginException; import com.ccsens.signin.service.IUserService; @@ -187,25 +188,25 @@ public class UserController { // } - @ApiOperation(value = "/微信合并已有账号",notes = "") - @ApiImplicitParams({ - }) - @RequestMapping(value="/merge",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) - public JsonResponse bindingPhone(HttpServletRequest request, - @ApiParam @RequestBody UserDto.WxMergePhone wxPhone) throws Exception { - Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject()); - UserVo.UserSign userSignVo = userService.mergeByPhone(currentUserId,wxPhone); - - UserVo.TokenBean tokenBean = null; - if (ObjectUtil.isNotNull(userSignVo)) { - WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); - WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); - Map theMap = CollectionUtil.newHashMap(); - theMap.put("authId", String.valueOf(userSignVo.getAuthId())); - tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); - } - return JsonResponse.newInstance().ok(tokenBean); - } +// @ApiOperation(value = "/微信合并已有账号",notes = "") +// @ApiImplicitParams({ +// }) +// @RequestMapping(value="/merge",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) +// public JsonResponse bindingPhone(HttpServletRequest request, +// @ApiParam @RequestBody UserDto.WxMergePhone wxPhone) throws Exception { +// Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject()); +// UserVo.UserSign userSignVo = userService.mergeByPhone(currentUserId,wxPhone); +// +// UserVo.TokenBean tokenBean = null; +// if (ObjectUtil.isNotNull(userSignVo)) { +// WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1); +// WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3); +// Map theMap = CollectionUtil.newHashMap(); +// theMap.put("authId", String.valueOf(userSignVo.getAuthId())); +// tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap); +// } +// return JsonResponse.newInstance().ok(tokenBean); +// } @ApiOperation(value = "/微信绑定账号",notes = "") @ApiImplicitParams({ @@ -389,12 +390,47 @@ public class UserController { }) @RequestMapping(value = "token",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) public JsonResponse 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(); UserVo.TokenToUserId tokenToUserId = new UserVo.TokenToUserId(); // 验证token是否存在 String tokenStr = token; if (tokenStr == null || !tokenStr.startsWith(WebConstant.HEADER_KEY_TOKEN_PREFIX)) { + log.info("token不存在:{}",tokenStr); return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); } String userToken = tokenStr.substring(WebConstant.HEADER_KEY_TOKEN_PREFIX.length()); @@ -404,21 +440,23 @@ public class UserController { try { claims = JwtUtil.parseJWT(userToken, WebConstant.JWT_ACCESS_TOKEN_SECERT); }catch(Exception e){ + log.info("token无效"); return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); } //验证用户存根 if(userService.tokenNotExistInCache(Long.valueOf(claims.getSubject()))){ + log.info("用户存根不存在:{}",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); + 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); } diff --git a/signin/src/main/java/com/ccsens/signin/bean/dto/ProjectDto.java b/signin/src/main/java/com/ccsens/signin/bean/dto/ProjectDto.java new file mode 100644 index 00000000..a8ed3100 --- /dev/null +++ b/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; + } + +} diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysProjectList.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysProjectList.java new file mode 100644 index 00000000..39e8ba67 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysProjectListExample.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysProjectListExample.java new file mode 100644 index 00000000..c5ff3332 --- /dev/null +++ b/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 oredCriteria; + + public SysProjectListExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List 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 values) { + addCriterion("template_id in", values, "templateId"); + return (Criteria) this; + } + + public Criteria andTemplateIdNotIn(List 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 values) { + addCriterion("parent_project_id in", values, "parentProjectId"); + return (Criteria) this; + } + + public Criteria andParentProjectIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List 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 values) { + addCriterion("project_start_time in", values, "projectStartTime"); + return (Criteria) this; + } + + public Criteria andProjectStartTimeNotIn(List 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 values) { + addCriterion("project_end_time in", values, "projectEndTime"); + return (Criteria) this; + } + + public Criteria andProjectEndTimeNotIn(List 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 values) { + addCriterion("project_status in", values, "projectStatus"); + return (Criteria) this; + } + + public Criteria andProjectStatusNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysTemplate.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysTemplate.java new file mode 100644 index 00000000..6f17212d --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysTemplateExample.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysTemplateExample.java new file mode 100644 index 00000000..a9d6f9c5 --- /dev/null +++ b/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 oredCriteria; + + public SysTemplateExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List 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 values) { + addCriterion("business_template_id in", values, "businessTemplateId"); + return (Criteria) this; + } + + public Criteria andBusinessTemplateIdNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysUserProject.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserProject.java new file mode 100644 index 00000000..89da8221 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysUserProjectExample.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserProjectExample.java new file mode 100644 index 00000000..dead9220 --- /dev/null +++ b/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 oredCriteria; + + public SysUserProjectExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/bean/vo/ProjectVo.java b/signin/src/main/java/com/ccsens/signin/bean/vo/ProjectVo.java new file mode 100644 index 00000000..0c6a1f86 --- /dev/null +++ b/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; + } + +} diff --git a/signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java b/signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java index 396b4253..609bca98 100644 --- a/signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java +++ b/signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java @@ -63,6 +63,10 @@ public class UserVo { public static class TokenToUserId{ @ApiModelProperty("用户id") private Long id; + @ApiModelProperty("用户名") + private String userName; + @ApiModelProperty("头像") + private String avatarUrl; } @Data diff --git a/signin/src/main/java/com/ccsens/signin/persist/dao/ProjectDao.java b/signin/src/main/java/com/ccsens/signin/persist/dao/ProjectDao.java new file mode 100644 index 00000000..66a7c34c --- /dev/null +++ b/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 queryProjectList(@Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("userId") Long userId); +} diff --git a/signin/src/main/java/com/ccsens/signin/persist/mapper/SysProjectListMapper.java b/signin/src/main/java/com/ccsens/signin/persist/mapper/SysProjectListMapper.java new file mode 100644 index 00000000..d6721ff3 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/persist/mapper/SysTemplateMapper.java b/signin/src/main/java/com/ccsens/signin/persist/mapper/SysTemplateMapper.java new file mode 100644 index 00000000..5c372de3 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/persist/mapper/SysUserProjectMapper.java b/signin/src/main/java/com/ccsens/signin/persist/mapper/SysUserProjectMapper.java new file mode 100644 index 00000000..8a6af767 --- /dev/null +++ b/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 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); +} \ No newline at end of file diff --git a/signin/src/main/java/com/ccsens/signin/service/IProjectService.java b/signin/src/main/java/com/ccsens/signin/service/IProjectService.java new file mode 100644 index 00000000..58f37043 --- /dev/null +++ b/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 queryProjectList(ProjectDto.QueryProjectDto param, Long userId); +} diff --git a/signin/src/main/java/com/ccsens/signin/service/ProjectService.java b/signin/src/main/java/com/ccsens/signin/service/ProjectService.java new file mode 100644 index 00000000..efcf6b64 --- /dev/null +++ b/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 queryProjectList(ProjectDto.QueryProjectDto param, Long userId) { + return projectDao.queryProjectList(param.getStartTime(),param.getEndTime(),userId); + } +} diff --git a/signin/src/main/java/com/ccsens/signin/service/UserInfoService.java b/signin/src/main/java/com/ccsens/signin/service/UserInfoService.java index 5dc6de93..78c0d250 100644 --- a/signin/src/main/java/com/ccsens/signin/service/UserInfoService.java +++ b/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)); - //获取空间使用信息 - UserVo.Interspace interspace = sysUserDao.selectInterspace(currentUserId); - selectUserInfo.setInterspace(interspace); + //TODO 获取空间使用信息 +// UserVo.Interspace interspace = sysUserDao.selectInterspace(currentUserId); +// selectUserInfo.setInterspace(interspace); } return selectUserInfo; diff --git a/signin/src/main/resources/application-dev.yml b/signin/src/main/resources/application-dev.yml index 0880f7c5..8a64d34a 100644 --- a/signin/src/main/resources/application-dev.yml +++ b/signin/src/main/resources/application-dev.yml @@ -1,13 +1,13 @@ server: port: 7130 servlet: - context-path: /v3.0 + context-path: /v1.0 spring: snowflake: datacenterId: 1 workerId: 1 application: - name: signin + name: tall datasource: type: com.alibaba.druid.pool.DruidDataSource rabbitmq: diff --git a/signin/src/main/resources/application-prod.yml b/signin/src/main/resources/application-prod.yml index bfd00a0d..23fcc8ea 100644 --- a/signin/src/main/resources/application-prod.yml +++ b/signin/src/main/resources/application-prod.yml @@ -1,13 +1,13 @@ server: port: 7130 servlet: - context-path: /v3.0 + context-path: /v1.0 spring: snowflake: datacenterId: 1 workerId: 1 application: - name: signin + name: tall datasource: type: com.alibaba.druid.pool.DruidDataSource rabbitmq: diff --git a/signin/src/main/resources/application-test.yml b/signin/src/main/resources/application-test.yml index 5f0b19e1..7cd5ec1c 100644 --- a/signin/src/main/resources/application-test.yml +++ b/signin/src/main/resources/application-test.yml @@ -1,13 +1,13 @@ server: port: 7130 servlet: - context-path: /v3.0 + context-path: /v1.0 spring: snowflake: datacenterId: 1 workerId: 1 application: - name: signin + name: tall datasource: type: com.alibaba.druid.pool.DruidDataSource rabbitmq: diff --git a/signin/src/main/resources/application.yml b/signin/src/main/resources/application.yml index b5408a3a..ebc544af 100644 --- a/signin/src/main/resources/application.yml +++ b/signin/src/main/resources/application.yml @@ -1,5 +1,5 @@ spring: profiles: - active: dev - include: util-dev,common + active: test + include: util-test,common diff --git a/signin/src/main/resources/druid-dev.yml b/signin/src/main/resources/druid-dev.yml index 109ec223..c948a8b1 100644 --- a/signin/src/main/resources/druid-dev.yml +++ b/signin/src/main/resources/druid-dev.yml @@ -27,7 +27,7 @@ spring: testOnReturn: false testWhileIdle: true 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 username: root validationQuery: SELECT 1 FROM DUAL diff --git a/signin/src/main/resources/druid-prod.yml b/signin/src/main/resources/druid-prod.yml index 20a6ff77..2441b0b8 100644 --- a/signin/src/main/resources/druid-prod.yml +++ b/signin/src/main/resources/druid-prod.yml @@ -28,7 +28,7 @@ spring: testOnReturn: false testWhileIdle: true 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 validationQuery: SELECT 1 FROM DUAL env: CCSENS_HEALTH \ No newline at end of file diff --git a/signin/src/main/resources/druid-test.yml b/signin/src/main/resources/druid-test.yml index 656c54f2..f3bbd3c2 100644 --- a/signin/src/main/resources/druid-test.yml +++ b/signin/src/main/resources/druid-test.yml @@ -29,7 +29,7 @@ spring: testWhileIdle: true timeBetweenEvictionRunsMillis: 60000 # 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 validationQuery: SELECT 1 FROM DUAL env: CCSENS_TALL \ No newline at end of file diff --git a/signin/src/main/resources/mapper_dao/ProjectDap.xml b/signin/src/main/resources/mapper_dao/ProjectDap.xml new file mode 100644 index 00000000..b925267b --- /dev/null +++ b/signin/src/main/resources/mapper_dao/ProjectDap.xml @@ -0,0 +1,24 @@ + + + + + + + \ No newline at end of file diff --git a/signin/src/main/resources/mapper_raw/SysProjectListMapper.xml b/signin/src/main/resources/mapper_raw/SysProjectListMapper.xml new file mode 100644 index 00000000..20abc44d --- /dev/null +++ b/signin/src/main/resources/mapper_raw/SysProjectListMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, project_id, template_id, parent_project_id, name, url, project_start_time, project_end_time, + project_status, created_at, updated_at, rec_status + + + + + delete from t_sys_project_list + where id = #{id,jdbcType=BIGINT} + + + delete from t_sys_project_list + + + + + + 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 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, + + + + + #{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}, + + + + + + update t_sys_project_list + + + 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}, + + + + + + + + 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} + + + + + + update t_sys_project_list + + + 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 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} + + \ No newline at end of file diff --git a/signin/src/main/resources/mapper_raw/SysTemplateMapper.xml b/signin/src/main/resources/mapper_raw/SysTemplateMapper.xml new file mode 100644 index 00000000..09ee3165 --- /dev/null +++ b/signin/src/main/resources/mapper_raw/SysTemplateMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, url, business_template_id, created_at, updated_at, rec_status + + + + + delete from t_sys_template + where id = #{id,jdbcType=BIGINT} + + + delete from t_sys_template + + + + + + 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 into t_sys_template + + + id, + + + name, + + + url, + + + business_template_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{url,jdbcType=VARCHAR}, + + + #{businessTemplateId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_sys_template + + + 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}, + + + + + + + + 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} + + + + + + update t_sys_template + + + 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 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} + + \ No newline at end of file diff --git a/signin/src/main/resources/mapper_raw/SysUserProjectMapper.xml b/signin/src/main/resources/mapper_raw/SysUserProjectMapper.xml new file mode 100644 index 00000000..164a54f7 --- /dev/null +++ b/signin/src/main/resources/mapper_raw/SysUserProjectMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, project_id, user_id, created_at, updated_at, rec_status + + + + + delete from t_sys_user_project + where id = #{id,jdbcType=BIGINT} + + + delete from t_sys_user_project + + + + + + 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 into t_sys_user_project + + + id, + + + project_id, + + + user_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_sys_user_project + + + 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}, + + + + + + + + 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} + + + + + + update t_sys_user_project + + + 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 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} + + \ No newline at end of file