Browse Source

大改了一下common

tall3
zy_Java 4 years ago
parent
commit
782d677105
  1. 50
      common/src/main/java/com/ccsens/common/CommonApplication.java
  2. 58
      common/src/main/java/com/ccsens/common/api/DebugController.java
  3. 82
      common/src/main/java/com/ccsens/common/api/ProjectController.java
  4. 124
      common/src/main/java/com/ccsens/common/api/RoleController.java
  5. 128
      common/src/main/java/com/ccsens/common/api/TaskController.java
  6. 210
      common/src/main/java/com/ccsens/common/bean/po/LabelBusiness.java
  7. 1360
      common/src/main/java/com/ccsens/common/bean/po/LabelBusinessExample.java
  8. 117
      common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholder.java
  9. 761
      common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholderExample.java
  10. 199
      common/src/main/java/com/ccsens/common/bean/po/ProTaskVersion.java
  11. 1330
      common/src/main/java/com/ccsens/common/bean/po/ProTaskVersionExample.java
  12. 44
      common/src/main/java/com/ccsens/common/config/BeanConfig.java
  13. 196
      common/src/main/java/com/ccsens/common/config/SpringConfig.java
  14. 112
      common/src/main/java/com/ccsens/common/config/SwaggerConfigure.java
  15. 3
      common/src/main/java/com/ccsens/common/persist/dao/LabelDao.java
  16. 2
      common/src/main/java/com/ccsens/common/persist/dao/ProProjectDao.java
  17. 3
      common/src/main/java/com/ccsens/common/persist/dao/ProRoleMemberDao.java
  18. 3
      common/src/main/java/com/ccsens/common/persist/dao/ProTaskDetailDao.java
  19. 30
      common/src/main/java/com/ccsens/common/persist/mapper/LabelBusinessMapper.java
  20. 30
      common/src/main/java/com/ccsens/common/persist/mapper/Label_BusinessMapper.java
  21. 30
      common/src/main/java/com/ccsens/common/persist/mapper/ProMemberStakeholderMapper.java
  22. 58
      common/src/main/java/com/ccsens/common/persist/mapper/ProTaskVersionMapper.java
  23. 12
      common/src/main/resources/application-dev.yml
  24. 514
      common/src/main/resources/mapper_raw/LabelBusinessMapper.xml
  25. 276
      common/src/main/resources/mapper_raw/ProMemberStakeholderMapper.xml
  26. 500
      common/src/main/resources/mapper_raw/ProTaskVersionMapper.xml
  27. 1
      pom.xml
  28. 14
      tall/src/main/resources/application-dev.yml

50
common/src/main/java/com/ccsens/common/CommonApplication.java

@ -1,25 +1,25 @@
package com.ccsens.common; //package com.ccsens.common;
//
import org.mybatis.spring.annotation.MapperScan; //import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; //import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; //import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan; //import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; //import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients; //import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync; //import org.springframework.scheduling.annotation.EnableAsync;
//
/** ///**
* @author ma // * @author ma
*/ // */
//@MapperScan(basePackages = {"com.ccsens.common.persist.*"}) ////@MapperScan(basePackages = {"com.ccsens.common.persist.*"})
//@ServletComponentScan ////@ServletComponentScan
//@EnableAsync ////@EnableAsync
////开启断路器功能 //////开启断路器功能
//@EnableCircuitBreaker ////@EnableCircuitBreaker
//@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") ////@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign")
//@SpringBootApplication(scanBasePackages = "com.ccsens") ////@SpringBootApplication(scanBasePackages = "com.ccsens")
public class CommonApplication { //public class CommonApplication {
public static void main(String[] args) { // public static void main(String[] args) {
SpringApplication.run(CommonApplication.class,args); // SpringApplication.run(CommonApplication.class,args);
} // }
} //}

58
common/src/main/java/com/ccsens/common/api/DebugController.java

@ -1,29 +1,29 @@
package com.ccsens.common.api; //package com.ccsens.common.api;
//
import com.ccsens.util.JsonResponse; //import com.ccsens.util.JsonResponse;
import io.swagger.annotations.Api; //import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams; //import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; //import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; //import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; //import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; //import org.springframework.web.bind.annotation.RestController;
//
import javax.servlet.http.HttpServletRequest; //import javax.servlet.http.HttpServletRequest;
//
@Api(tags = "DEBUG" , description = "DebugController | ") //@Api(tags = "DEBUG" , description = "DebugController | ")
@RestController //@RestController
@RequestMapping("/debug") //@RequestMapping("/debug")
@Slf4j //@Slf4j
public class DebugController { //public class DebugController {
//
@ApiOperation(value = "/测试",notes = "") // @ApiOperation(value = "/测试",notes = "")
@ApiImplicitParams({ // @ApiImplicitParams({
}) // })
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
public JsonResponse debug(HttpServletRequest request) throws Exception { // public JsonResponse debug(HttpServletRequest request) throws Exception {
//
return JsonResponse.newInstance().ok("测试"); // return JsonResponse.newInstance().ok("测试");
} // }
//
} //}

82
common/src/main/java/com/ccsens/common/api/ProjectController.java

@ -1,41 +1,41 @@
package com.ccsens.common.api; //package com.ccsens.common.api;
//
import com.ccsens.common.bean.dto.ProjectDto; //import com.ccsens.common.bean.dto.ProjectDto;
import com.ccsens.common.bean.vo.ProjectVo; //import com.ccsens.common.bean.vo.ProjectVo;
import com.ccsens.common.service.IProjectService; //import com.ccsens.common.service.IProjectService;
import com.ccsens.util.JsonResponse; //import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto; //import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api; //import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; //import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; //import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j; //import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated; //import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody; //import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; //import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; //import org.springframework.web.bind.annotation.RestController;
//
import javax.annotation.Resource; //import javax.annotation.Resource;
//
/** ///**
* @author ma // * @author ma
*/ // */
@Api(tags = "项目相关接口", description = "ProjectController | 项目相关接口") //@Api(tags = "项目相关接口", description = "ProjectController | 项目相关接口")
@RestController //@RestController
@Slf4j //@Slf4j
@RequestMapping("/project") //@RequestMapping("/project")
public class ProjectController { //public class ProjectController {
//
@Resource // @Resource
private IProjectService projectService; // private IProjectService projectService;
//
@ApiOperation(value = "根据id查询项目信息", notes = "根据id查询项目信息") // @ApiOperation(value = "根据id查询项目信息", notes = "根据id查询项目信息")
@RequestMapping(value = "/findProjectById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value = "/findProjectById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<ProjectVo.ProjectInfo> findProjectById(@ApiParam @Validated @RequestBody QueryDto<ProjectDto.ProjectById> params) throws Exception{ // public JsonResponse<ProjectVo.ProjectInfo> findProjectById(@ApiParam @Validated @RequestBody QueryDto<ProjectDto.ProjectById> params) throws Exception{
log.info("根据id查询项目信息:{}",params); // log.info("根据id查询项目信息:{}",params);
ProjectVo.ProjectInfo projectInfo = projectService.findProjectById(params.getParam(),params.getUserId()); // ProjectVo.ProjectInfo projectInfo = projectService.findProjectById(params.getParam(),params.getUserId());
log.info("根据id查询项目信息"); // log.info("根据id查询项目信息");
return JsonResponse.newInstance().ok(projectInfo); // return JsonResponse.newInstance().ok(projectInfo);
} // }
//
} //}

124
common/src/main/java/com/ccsens/common/api/RoleController.java

@ -1,62 +1,62 @@
package com.ccsens.common.api; //package com.ccsens.common.api;
//
import com.ccsens.cloudutil.annotation.MustLogin; //import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.common.bean.dto.RoleDto; //import com.ccsens.common.bean.dto.RoleDto;
import com.ccsens.common.bean.vo.RoleVo; //import com.ccsens.common.bean.vo.RoleVo;
import com.ccsens.common.service.IProRoleService; //import com.ccsens.common.service.IProRoleService;
import com.ccsens.util.JsonResponse; //import com.ccsens.util.JsonResponse;
import com.ccsens.util.WebConstant; //import com.ccsens.util.WebConstant;
import com.ccsens.util.bean.dto.QueryDto; //import com.ccsens.util.bean.dto.QueryDto;
import io.jsonwebtoken.Claims; //import io.jsonwebtoken.Claims;
import io.swagger.annotations.Api; //import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams; //import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; //import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; //import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j; //import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated; //import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody; //import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; //import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; //import org.springframework.web.bind.annotation.RestController;
//
import javax.annotation.Resource; //import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; //import javax.servlet.http.HttpServletRequest;
import java.util.List; //import java.util.List;
//
@Api(tags = "角色操作相关api" ) //@Api(tags = "角色操作相关api" )
@RestController //@RestController
@RequestMapping("/roles") //@RequestMapping("/roles")
@Slf4j //@Slf4j
public class RoleController { //public class RoleController {
//
@Resource // @Resource
private IProRoleService proRoleService; // private IProRoleService proRoleService;
//
@MustLogin // @MustLogin
@ApiOperation(value = "查询角色栏展示的角色",notes = "") // @ApiOperation(value = "查询角色栏展示的角色",notes = "")
@ApiImplicitParams({ // @ApiImplicitParams({
}) // })
@RequestMapping(value = "/QueryRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value = "/QueryRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<RoleVo.QueryRole> queryByProjectVirtualRole( // public JsonResponse<RoleVo.QueryRole> queryByProjectVirtualRole(
@ApiParam @Validated @RequestBody QueryDto<RoleDto.QueryRoleById> params) throws Exception { // @ApiParam @Validated @RequestBody QueryDto<RoleDto.QueryRoleById> params) throws Exception {
log.info("查询角色栏展示的角色:{}",params); // log.info("查询角色栏展示的角色:{}",params);
// params.setUserId(1373938255183089664L); //// params.setUserId(1373938255183089664L);
RoleVo.QueryRole list = proRoleService.QueryShowRole(params.getParam(),params.getUserId()); // RoleVo.QueryRole list = proRoleService.QueryShowRole(params.getParam(),params.getUserId());
log.info("查询角色栏展示的角色成功"); // log.info("查询角色栏展示的角色成功");
return JsonResponse.newInstance().ok(list); // return JsonResponse.newInstance().ok(list);
} // }
//
//
@MustLogin // @MustLogin
@ApiOperation(value = "配置角色栏展示的角色",notes = "") // @ApiOperation(value = "配置角色栏展示的角色",notes = "")
@ApiImplicitParams({ // @ApiImplicitParams({
}) // })
@RequestMapping(value = "/UpdateRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value = "/UpdateRoleShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse updateShowRole( // public JsonResponse updateShowRole(
@ApiParam @Validated @RequestBody QueryDto<RoleDto.UpdateRoleShow> params) throws Exception { // @ApiParam @Validated @RequestBody QueryDto<RoleDto.UpdateRoleShow> params) throws Exception {
log.info("配置角色栏展示的角色:{}",params); // log.info("配置角色栏展示的角色:{}",params);
proRoleService.updateShowRole(params.getParam(),params.getUserId()); // proRoleService.updateShowRole(params.getParam(),params.getUserId());
log.info("配置角色栏展示的角色成功"); // log.info("配置角色栏展示的角色成功");
return JsonResponse.newInstance().ok(); // return JsonResponse.newInstance().ok();
} // }
} //}

128
common/src/main/java/com/ccsens/common/api/TaskController.java

@ -1,64 +1,64 @@
package com.ccsens.common.api; //package com.ccsens.common.api;
//
import com.ccsens.cloudutil.annotation.MustLogin; //import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.common.bean.dto.TaskDto; //import com.ccsens.common.bean.dto.TaskDto;
import com.ccsens.common.bean.vo.TaskVo; //import com.ccsens.common.bean.vo.TaskVo;
import com.ccsens.common.service.ITaskService; //import com.ccsens.common.service.ITaskService;
import com.ccsens.util.JsonResponse; //import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto; //import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api; //import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; //import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; //import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j; //import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated; //import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody; //import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; //import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; //import org.springframework.web.bind.annotation.RestController;
//
import javax.annotation.Resource; //import javax.annotation.Resource;
import java.util.List; //import java.util.List;
//
/** ///**
* @author // * @author 逗
*/ // */
@Api(tags = "DEBUG" , description = "DebugController | ") //@Api(tags = "DEBUG" , description = "DebugController | ")
@RestController //@RestController
@RequestMapping("/task") //@RequestMapping("/task")
@Slf4j //@Slf4j
public class TaskController { //public class TaskController {
//
@Resource // @Resource
private ITaskService taskService; // private ITaskService taskService;
//
@MustLogin // @MustLogin
@ApiOperation(value = "查找永久日常任务", notes = "") // @ApiOperation(value = "查找永久日常任务", notes = "")
@RequestMapping(value = "/permanent", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value = "/permanent", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<TaskVo.QueryTask>> queryPermanentGlobalTask(@ApiParam @Validated @RequestBody QueryDto<TaskDto.QueryPermanentGlobalTask> params) { // public JsonResponse<List<TaskVo.QueryTask>> queryPermanentGlobalTask(@ApiParam @Validated @RequestBody QueryDto<TaskDto.QueryPermanentGlobalTask> params) {
log.info("查找永久日常任务开始{}",params); // log.info("查找永久日常任务开始{}",params);
List<TaskVo.QueryTask> permanentGlobalTaskList = taskService.queryPermanentGlobalTask(params.getParam(),params.getUserId()); // List<TaskVo.QueryTask> permanentGlobalTaskList = taskService.queryPermanentGlobalTask(params.getParam(),params.getUserId());
log.info("查找永久日常任务结束{}",permanentGlobalTaskList); // log.info("查找永久日常任务结束{}",permanentGlobalTaskList);
return JsonResponse.newInstance().ok(permanentGlobalTaskList); // return JsonResponse.newInstance().ok(permanentGlobalTaskList);
} // }
//
@MustLogin // @MustLogin
@ApiOperation(value = "查找带时间的日常任务", notes = "") // @ApiOperation(value = "查找带时间的日常任务", notes = "")
@RequestMapping(value = "/global", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value = "/global", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<TaskVo.QueryTask>> queryGlobalTask(@ApiParam @Validated @RequestBody QueryDto<TaskDto.QueryGlobalTask> params) { // public JsonResponse<List<TaskVo.QueryTask>> queryGlobalTask(@ApiParam @Validated @RequestBody QueryDto<TaskDto.QueryGlobalTask> params) {
log.info("查找带时间的日常任务开始{}",params); // log.info("查找带时间的日常任务开始{}",params);
List<TaskVo.QueryTask> globalTask = taskService.queryGlobalTask(params.getParam(),params.getUserId()); // List<TaskVo.QueryTask> globalTask = taskService.queryGlobalTask(params.getParam(),params.getUserId());
log.info("查找带时间的日常任务结束{}",globalTask); // log.info("查找带时间的日常任务结束{}",globalTask);
return JsonResponse.newInstance().ok(globalTask); // return JsonResponse.newInstance().ok(globalTask);
} // }
//
@MustLogin // @MustLogin
@ApiOperation(value = "查找带时间的定期任务", notes = "") // @ApiOperation(value = "查找带时间的定期任务", notes = "")
@RequestMapping(value = "/regular", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) // @RequestMapping(value = "/regular", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<TaskVo.QueryTask>> queryRegularTask(@ApiParam @Validated @RequestBody QueryDto<TaskDto.QueryRegularTask> params) { // public JsonResponse<List<TaskVo.QueryTask>> queryRegularTask(@ApiParam @Validated @RequestBody QueryDto<TaskDto.QueryRegularTask> params) {
log.info("查找带时间的定期任务开始{}",params); // log.info("查找带时间的定期任务开始{}",params);
//
log.info("查找带时间的定期任务结束{}"); // log.info("查找带时间的定期任务结束{}");
return JsonResponse.newInstance().ok(); // return JsonResponse.newInstance().ok();
} // }
//
} //}

210
common/src/main/java/com/ccsens/common/bean/po/Label_Business.java → common/src/main/java/com/ccsens/common/bean/po/LabelBusiness.java

@ -1,106 +1,106 @@
package com.ccsens.common.bean.po; package com.ccsens.common.bean.po;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
public class Label_Business implements Serializable { public class LabelBusiness implements Serializable {
private Long id; private Long id;
private Long labelId; private Long labelId;
private Long userId; private Long userId;
private Byte businessType; private Byte businessType;
private Long businessId; private Long businessId;
private Date createdAt; private Date createdAt;
private Date updatedAt; private Date updatedAt;
private Byte recStatus; private Byte recStatus;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Long getLabelId() { public Long getLabelId() {
return labelId; return labelId;
} }
public void setLabelId(Long labelId) { public void setLabelId(Long labelId) {
this.labelId = labelId; this.labelId = labelId;
} }
public Long getUserId() { public Long getUserId() {
return userId; return userId;
} }
public void setUserId(Long userId) { public void setUserId(Long userId) {
this.userId = userId; this.userId = userId;
} }
public Byte getBusinessType() { public Byte getBusinessType() {
return businessType; return businessType;
} }
public void setBusinessType(Byte businessType) { public void setBusinessType(Byte businessType) {
this.businessType = businessType; this.businessType = businessType;
} }
public Long getBusinessId() { public Long getBusinessId() {
return businessId; return businessId;
} }
public void setBusinessId(Long businessId) { public void setBusinessId(Long businessId) {
this.businessId = businessId; this.businessId = businessId;
} }
public Date getCreatedAt() { public Date getCreatedAt() {
return createdAt; return createdAt;
} }
public void setCreatedAt(Date createdAt) { public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt; this.createdAt = createdAt;
} }
public Date getUpdatedAt() { public Date getUpdatedAt() {
return updatedAt; return updatedAt;
} }
public void setUpdatedAt(Date updatedAt) { public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt; this.updatedAt = updatedAt;
} }
public Byte getRecStatus() { public Byte getRecStatus() {
return recStatus; return recStatus;
} }
public void setRecStatus(Byte recStatus) { public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus; this.recStatus = recStatus;
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName()); sb.append(getClass().getSimpleName());
sb.append(" ["); sb.append(" [");
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", labelId=").append(labelId); sb.append(", labelId=").append(labelId);
sb.append(", userId=").append(userId); sb.append(", userId=").append(userId);
sb.append(", businessType=").append(businessType); sb.append(", businessType=").append(businessType);
sb.append(", businessId=").append(businessId); sb.append(", businessId=").append(businessId);
sb.append(", createdAt=").append(createdAt); sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt); sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus); sb.append(", recStatus=").append(recStatus);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
} }

1360
common/src/main/java/com/ccsens/common/bean/po/Label_BusinessExample.java → common/src/main/java/com/ccsens/common/bean/po/LabelBusinessExample.java

File diff suppressed because it is too large

117
common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholder.java

@ -0,0 +1,117 @@
package com.ccsens.common.bean.po;
import java.io.Serializable;
import java.util.Date;
public class ProMemberStakeholder implements Serializable {
private Long id;
private Long memeberId;
private String stakeholderName;
private String stakeholderPhone;
private Long userId;
private Long operator;
private Date createdAt;
private Date updatedAt;
private Byte recStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getMemeberId() {
return memeberId;
}
public void setMemeberId(Long memeberId) {
this.memeberId = memeberId;
}
public String getStakeholderName() {
return stakeholderName;
}
public void setStakeholderName(String stakeholderName) {
this.stakeholderName = stakeholderName == null ? null : stakeholderName.trim();
}
public String getStakeholderPhone() {
return stakeholderPhone;
}
public void setStakeholderPhone(String stakeholderPhone) {
this.stakeholderPhone = stakeholderPhone == null ? null : stakeholderPhone.trim();
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getOperator() {
return operator;
}
public void setOperator(Long operator) {
this.operator = operator;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Byte getRecStatus() {
return recStatus;
}
public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", memeberId=").append(memeberId);
sb.append(", stakeholderName=").append(stakeholderName);
sb.append(", stakeholderPhone=").append(stakeholderPhone);
sb.append(", userId=").append(userId);
sb.append(", operator=").append(operator);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append("]");
return sb.toString();
}
}

761
common/src/main/java/com/ccsens/common/bean/po/ProMemberStakeholderExample.java

@ -0,0 +1,761 @@
package com.ccsens.common.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ProMemberStakeholderExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ProMemberStakeholderExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andMemeberIdIsNull() {
addCriterion("memeber_id is null");
return (Criteria) this;
}
public Criteria andMemeberIdIsNotNull() {
addCriterion("memeber_id is not null");
return (Criteria) this;
}
public Criteria andMemeberIdEqualTo(Long value) {
addCriterion("memeber_id =", value, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdNotEqualTo(Long value) {
addCriterion("memeber_id <>", value, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdGreaterThan(Long value) {
addCriterion("memeber_id >", value, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdGreaterThanOrEqualTo(Long value) {
addCriterion("memeber_id >=", value, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdLessThan(Long value) {
addCriterion("memeber_id <", value, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdLessThanOrEqualTo(Long value) {
addCriterion("memeber_id <=", value, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdIn(List<Long> values) {
addCriterion("memeber_id in", values, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdNotIn(List<Long> values) {
addCriterion("memeber_id not in", values, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdBetween(Long value1, Long value2) {
addCriterion("memeber_id between", value1, value2, "memeberId");
return (Criteria) this;
}
public Criteria andMemeberIdNotBetween(Long value1, Long value2) {
addCriterion("memeber_id not between", value1, value2, "memeberId");
return (Criteria) this;
}
public Criteria andStakeholderNameIsNull() {
addCriterion("stakeholder_name is null");
return (Criteria) this;
}
public Criteria andStakeholderNameIsNotNull() {
addCriterion("stakeholder_name is not null");
return (Criteria) this;
}
public Criteria andStakeholderNameEqualTo(String value) {
addCriterion("stakeholder_name =", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameNotEqualTo(String value) {
addCriterion("stakeholder_name <>", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameGreaterThan(String value) {
addCriterion("stakeholder_name >", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameGreaterThanOrEqualTo(String value) {
addCriterion("stakeholder_name >=", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameLessThan(String value) {
addCriterion("stakeholder_name <", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameLessThanOrEqualTo(String value) {
addCriterion("stakeholder_name <=", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameLike(String value) {
addCriterion("stakeholder_name like", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameNotLike(String value) {
addCriterion("stakeholder_name not like", value, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameIn(List<String> values) {
addCriterion("stakeholder_name in", values, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameNotIn(List<String> values) {
addCriterion("stakeholder_name not in", values, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameBetween(String value1, String value2) {
addCriterion("stakeholder_name between", value1, value2, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderNameNotBetween(String value1, String value2) {
addCriterion("stakeholder_name not between", value1, value2, "stakeholderName");
return (Criteria) this;
}
public Criteria andStakeholderPhoneIsNull() {
addCriterion("stakeholder_phone is null");
return (Criteria) this;
}
public Criteria andStakeholderPhoneIsNotNull() {
addCriterion("stakeholder_phone is not null");
return (Criteria) this;
}
public Criteria andStakeholderPhoneEqualTo(String value) {
addCriterion("stakeholder_phone =", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneNotEqualTo(String value) {
addCriterion("stakeholder_phone <>", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneGreaterThan(String value) {
addCriterion("stakeholder_phone >", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneGreaterThanOrEqualTo(String value) {
addCriterion("stakeholder_phone >=", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneLessThan(String value) {
addCriterion("stakeholder_phone <", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneLessThanOrEqualTo(String value) {
addCriterion("stakeholder_phone <=", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneLike(String value) {
addCriterion("stakeholder_phone like", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneNotLike(String value) {
addCriterion("stakeholder_phone not like", value, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneIn(List<String> values) {
addCriterion("stakeholder_phone in", values, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneNotIn(List<String> values) {
addCriterion("stakeholder_phone not in", values, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneBetween(String value1, String value2) {
addCriterion("stakeholder_phone between", value1, value2, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andStakeholderPhoneNotBetween(String value1, String value2) {
addCriterion("stakeholder_phone not between", value1, value2, "stakeholderPhone");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andOperatorIsNull() {
addCriterion("operator is null");
return (Criteria) this;
}
public Criteria andOperatorIsNotNull() {
addCriterion("operator is not null");
return (Criteria) this;
}
public Criteria andOperatorEqualTo(Long value) {
addCriterion("operator =", value, "operator");
return (Criteria) this;
}
public Criteria andOperatorNotEqualTo(Long value) {
addCriterion("operator <>", value, "operator");
return (Criteria) this;
}
public Criteria andOperatorGreaterThan(Long value) {
addCriterion("operator >", value, "operator");
return (Criteria) this;
}
public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
addCriterion("operator >=", value, "operator");
return (Criteria) this;
}
public Criteria andOperatorLessThan(Long value) {
addCriterion("operator <", value, "operator");
return (Criteria) this;
}
public Criteria andOperatorLessThanOrEqualTo(Long value) {
addCriterion("operator <=", value, "operator");
return (Criteria) this;
}
public Criteria andOperatorIn(List<Long> values) {
addCriterion("operator in", values, "operator");
return (Criteria) this;
}
public Criteria andOperatorNotIn(List<Long> values) {
addCriterion("operator not in", values, "operator");
return (Criteria) this;
}
public Criteria andOperatorBetween(Long value1, Long value2) {
addCriterion("operator between", value1, value2, "operator");
return (Criteria) this;
}
public Criteria andOperatorNotBetween(Long value1, Long value2) {
addCriterion("operator not between", value1, value2, "operator");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;
}
public Criteria andCreatedAtIsNotNull() {
addCriterion("created_at is not null");
return (Criteria) this;
}
public Criteria andCreatedAtEqualTo(Date value) {
addCriterion("created_at =", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotEqualTo(Date value) {
addCriterion("created_at <>", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThan(Date value) {
addCriterion("created_at >", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("created_at >=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThan(Date value) {
addCriterion("created_at <", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
addCriterion("created_at <=", value, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtIn(List<Date> values) {
addCriterion("created_at in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotIn(List<Date> values) {
addCriterion("created_at not in", values, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtBetween(Date value1, Date value2) {
addCriterion("created_at between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
addCriterion("created_at not between", value1, value2, "createdAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNull() {
addCriterion("updated_at is null");
return (Criteria) this;
}
public Criteria andUpdatedAtIsNotNull() {
addCriterion("updated_at is not null");
return (Criteria) this;
}
public Criteria andUpdatedAtEqualTo(Date value) {
addCriterion("updated_at =", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotEqualTo(Date value) {
addCriterion("updated_at <>", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThan(Date value) {
addCriterion("updated_at >", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
addCriterion("updated_at >=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThan(Date value) {
addCriterion("updated_at <", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
addCriterion("updated_at <=", value, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtIn(List<Date> values) {
addCriterion("updated_at in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotIn(List<Date> values) {
addCriterion("updated_at not in", values, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtBetween(Date value1, Date value2) {
addCriterion("updated_at between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
addCriterion("updated_at not between", value1, value2, "updatedAt");
return (Criteria) this;
}
public Criteria andRecStatusIsNull() {
addCriterion("rec_status is null");
return (Criteria) this;
}
public Criteria andRecStatusIsNotNull() {
addCriterion("rec_status is not null");
return (Criteria) this;
}
public Criteria andRecStatusEqualTo(Byte value) {
addCriterion("rec_status =", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotEqualTo(Byte value) {
addCriterion("rec_status <>", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThan(Byte value) {
addCriterion("rec_status >", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("rec_status >=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThan(Byte value) {
addCriterion("rec_status <", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
addCriterion("rec_status <=", value, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusIn(List<Byte> values) {
addCriterion("rec_status in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotIn(List<Byte> values) {
addCriterion("rec_status not in", values, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusBetween(Byte value1, Byte value2) {
addCriterion("rec_status between", value1, value2, "recStatus");
return (Criteria) this;
}
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
addCriterion("rec_status not between", value1, value2, "recStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

199
common/src/main/java/com/ccsens/common/bean/po/ProTaskVersion.java

@ -1,95 +1,106 @@
package com.ccsens.common.bean.po; package com.ccsens.common.bean.po;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
public class ProTaskVersion implements Serializable { public class ProTaskVersion implements Serializable {
private Long id; private Long id;
private Long taskDetailId; private Long taskDetailId;
private String taskVersionInfo; private String taskVersionInfo;
private Byte projectType; private Byte projectType;
private Date createdAt; private Date createdAt;
private Date updatedAt; private Date updatedAt;
private Byte recStatus; private Byte recStatus;
private static final long serialVersionUID = 1L; private String address;
public Long getId() { private static final long serialVersionUID = 1L;
return id;
} public Long getId() {
return id;
public void setId(Long id) { }
this.id = id;
} public void setId(Long id) {
this.id = id;
public Long getTaskDetailId() { }
return taskDetailId;
} public Long getTaskDetailId() {
return taskDetailId;
public void setTaskDetailId(Long taskDetailId) { }
this.taskDetailId = taskDetailId;
} public void setTaskDetailId(Long taskDetailId) {
this.taskDetailId = taskDetailId;
public String getTaskVersionInfo() { }
return taskVersionInfo;
} public String getTaskVersionInfo() {
return taskVersionInfo;
public void setTaskVersionInfo(String taskVersionInfo) { }
this.taskVersionInfo = taskVersionInfo == null ? null : taskVersionInfo.trim();
} public void setTaskVersionInfo(String taskVersionInfo) {
this.taskVersionInfo = taskVersionInfo == null ? null : taskVersionInfo.trim();
public Byte getProjectType() { }
return projectType;
} public Byte getProjectType() {
return projectType;
public void setProjectType(Byte projectType) { }
this.projectType = projectType;
} public void setProjectType(Byte projectType) {
this.projectType = projectType;
public Date getCreatedAt() { }
return createdAt;
} public Date getCreatedAt() {
return createdAt;
public void setCreatedAt(Date createdAt) { }
this.createdAt = createdAt;
} public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
public Date getUpdatedAt() { }
return updatedAt;
} public Date getUpdatedAt() {
return updatedAt;
public void setUpdatedAt(Date updatedAt) { }
this.updatedAt = updatedAt;
} public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
public Byte getRecStatus() { }
return recStatus;
} public Byte getRecStatus() {
return recStatus;
public void setRecStatus(Byte recStatus) { }
this.recStatus = recStatus;
} public void setRecStatus(Byte recStatus) {
this.recStatus = recStatus;
@Override }
public String toString() {
StringBuilder sb = new StringBuilder(); public String getAddress() {
sb.append(getClass().getSimpleName()); return address;
sb.append(" ["); }
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); public void setAddress(String address) {
sb.append(", taskDetailId=").append(taskDetailId); this.address = address == null ? null : address.trim();
sb.append(", taskVersionInfo=").append(taskVersionInfo); }
sb.append(", projectType=").append(projectType);
sb.append(", createdAt=").append(createdAt); @Override
sb.append(", updatedAt=").append(updatedAt); public String toString() {
sb.append(", recStatus=").append(recStatus); StringBuilder sb = new StringBuilder();
sb.append("]"); sb.append(getClass().getSimpleName());
return sb.toString(); sb.append(" [");
} sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", taskDetailId=").append(taskDetailId);
sb.append(", taskVersionInfo=").append(taskVersionInfo);
sb.append(", projectType=").append(projectType);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", address=").append(address);
sb.append("]");
return sb.toString();
}
} }

1330
common/src/main/java/com/ccsens/common/bean/po/ProTaskVersionExample.java

File diff suppressed because it is too large

44
common/src/main/java/com/ccsens/common/config/BeanConfig.java

@ -1,22 +1,22 @@
package com.ccsens.common.config; //package com.ccsens.common.config;
//
import com.ccsens.common.intercept.MybatisInterceptor; //import com.ccsens.common.intercept.MybatisInterceptor;
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
//
/** ///**
* @description: // * @description:
* @author: wuHuiJuan // * @author: wuHuiJuan
* @create: 2019/12/11 10:59 // * @create: 2019/12/11 10:59
*/ // */
@Configuration //@Configuration
public class BeanConfig { //public class BeanConfig {
/** // /**
* 注册拦截器 // * 注册拦截器
*/ // */
@Bean // @Bean
public MybatisInterceptor mybatisInterceptor() { // public MybatisInterceptor mybatisInterceptor() {
MybatisInterceptor interceptor = new MybatisInterceptor(); // MybatisInterceptor interceptor = new MybatisInterceptor();
return interceptor; // return interceptor;
} // }
} //}

196
common/src/main/java/com/ccsens/common/config/SpringConfig.java

@ -1,98 +1,98 @@
package com.ccsens.common.config; //package com.ccsens.common.config;
//
//
import cn.hutool.core.lang.Snowflake; //import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil; //import cn.hutool.core.util.IdUtil;
import com.ccsens.util.config.DruidProps; //import com.ccsens.util.config.DruidProps;
import com.fasterxml.jackson.databind.DeserializationFeature; //import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; //import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule; //import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; //import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; //import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType; //import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter; //import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter; //import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; //import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer; //import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry; //import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; //import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; //import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
import javax.sql.DataSource; //import javax.sql.DataSource;
import java.nio.charset.Charset; //import java.nio.charset.Charset;
import java.util.ArrayList; //import java.util.ArrayList;
import java.util.List; //import java.util.List;
//
@Configuration //@Configuration
//public class SpringConfig extends WebMvcConfigurationSupport { ////public class SpringConfig extends WebMvcConfigurationSupport {
public class SpringConfig implements WebMvcConfigurer { //public class SpringConfig implements WebMvcConfigurer {
@Autowired // @Autowired
private DruidProps druidPropsUtil; // private DruidProps druidPropsUtil;
@Value("${spring.snowflake.workerId}") // @Value("${spring.snowflake.workerId}")
private String workerId; // private String workerId;
@Value("${spring.snowflake.datacenterId}") // @Value("${spring.snowflake.datacenterId}")
private String datacenterId; // private String datacenterId;
//
/** // /**
* 配置Converter // * 配置Converter
* @return // * @return
*/ // */
@Bean // @Bean
public HttpMessageConverter<String> responseStringConverter() { // public HttpMessageConverter<String> responseStringConverter() {
StringHttpMessageConverter converter = new StringHttpMessageConverter( // StringHttpMessageConverter converter = new StringHttpMessageConverter(
Charset.forName("UTF-8")); // Charset.forName("UTF-8"));
return converter; // return converter;
} // }
//
@Bean // @Bean
public HttpMessageConverter<Object> responseJsonConverter(){ // public HttpMessageConverter<Object> responseJsonConverter(){
MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); // MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
List<MediaType> mediaTypeList = new ArrayList<>(); // List<MediaType> mediaTypeList = new ArrayList<>();
mediaTypeList.add(MediaType.TEXT_HTML); // mediaTypeList.add(MediaType.TEXT_HTML);
mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8); // mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8);
converter.setSupportedMediaTypes(mediaTypeList); // converter.setSupportedMediaTypes(mediaTypeList);
//
ObjectMapper objectMapper = new ObjectMapper(); // ObjectMapper objectMapper = new ObjectMapper();
SimpleModule simpleModule = new SimpleModule(); // SimpleModule simpleModule = new SimpleModule();
simpleModule.addSerializer(Long.class, ToStringSerializer.instance); // simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); // simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance);
objectMapper.registerModule(simpleModule); // objectMapper.registerModule(simpleModule);
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); // objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
converter.setObjectMapper(objectMapper); // converter.setObjectMapper(objectMapper);
//
return converter; // return converter;
} // }
//
@Override // @Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { // public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(responseStringConverter()); // converters.add(responseStringConverter());
converters.add(responseJsonConverter()); // converters.add(responseJsonConverter());
} // }
//
@Override // @Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { // public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
configurer.favorPathExtension(false); // configurer.favorPathExtension(false);
} // }
//
/** // /**
* 配置数据源单数据源 // * 配置数据源(单数据源)
*/ // */
@Bean // @Bean
public DataSource dataSource(){ // public DataSource dataSource(){
return druidPropsUtil.createDruidDataSource(); // return druidPropsUtil.createDruidDataSource();
} // }
//
@Bean // @Bean
public Snowflake snowflake(){ // public Snowflake snowflake(){
return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); // return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId));
} // }
//
@Override // @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { // public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/uploads/**") // registry.addResourceHandler("/uploads/**")
.addResourceLocations("file:///home/cloud/ht/uploads/"); // .addResourceLocations("file:///home/cloud/ht/uploads/");
} // }
} //}

112
common/src/main/java/com/ccsens/common/config/SwaggerConfigure.java

@ -1,56 +1,56 @@
package com.ccsens.common.config; //package com.ccsens.common.config;
//
import com.ccsens.util.WebConstant; //import com.ccsens.util.WebConstant;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; //import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ParameterBuilder; //import springfox.documentation.builders.ParameterBuilder;
import springfox.documentation.builders.RequestHandlerSelectors; //import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.schema.ModelRef; //import springfox.documentation.schema.ModelRef;
import springfox.documentation.service.ApiInfo; //import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Parameter; //import springfox.documentation.service.Parameter;
import springfox.documentation.spi.DocumentationType; //import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket; //import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2; //import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
import java.util.ArrayList; //import java.util.ArrayList;
import java.util.List; //import java.util.List;
//
@Configuration //@Configuration
@EnableSwagger2 //@EnableSwagger2
@ConditionalOnExpression("${swagger.enable}") //@ConditionalOnExpression("${swagger.enable}")
//public class SwaggerConfigure extends WebMvcConfigurationSupport { ////public class SwaggerConfigure extends WebMvcConfigurationSupport {
public class SwaggerConfigure /*implements WebMvcConfigurer*/ { //public class SwaggerConfigure /*implements WebMvcConfigurer*/ {
@Bean // @Bean
public Docket customDocket() { // public Docket customDocket() {
// // //
return new Docket(DocumentationType.SWAGGER_2) // return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo()) // .apiInfo(apiInfo())
.select() // .select()
.apis(RequestHandlerSelectors // .apis(RequestHandlerSelectors
.basePackage("com.ccsens.common.api")) // .basePackage("com.ccsens.common.api"))
.build() // .build()
.globalOperationParameters(setHeaderToken()); // .globalOperationParameters(setHeaderToken());
} // }
//
private ApiInfo apiInfo() { // private ApiInfo apiInfo() {
return new ApiInfo("Swagger Tall-ptpro",//大标题 title // return new ApiInfo("Swagger Tall-ptpro",//大标题 title
"This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题 // "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题
"1.0.0",//版本 // "1.0.0",//版本
"http://swagger.io/terms/",//termsOfServiceUrl // "http://swagger.io/terms/",//termsOfServiceUrl
"zhangsan",//作者 // "zhangsan",//作者
"Apache 2.0",//链接显示文字 // "Apache 2.0",//链接显示文字
"http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接 // "http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接
); // );
} // }
//
private List<Parameter> setHeaderToken() { // private List<Parameter> setHeaderToken() {
ParameterBuilder tokenPar = new ParameterBuilder(); // ParameterBuilder tokenPar = new ParameterBuilder();
List<Parameter> pars = new ArrayList<>(); // List<Parameter> pars = new ArrayList<>();
tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token") // tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token")
.defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX) // .defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX)
.modelRef(new ModelRef("string")).parameterType("header").required(false).build(); // .modelRef(new ModelRef("string")).parameterType("header").required(false).build();
pars.add(tokenPar.build()); // pars.add(tokenPar.build());
return pars; // return pars;
} // }
} //}

3
common/src/main/java/com/ccsens/common/persist/dao/LabelDao.java

@ -1,11 +1,12 @@
package com.ccsens.common.persist.dao; package com.ccsens.common.persist.dao;
import com.ccsens.common.persist.mapper.LabelMapper;
import com.ccsens.common.persist.mapper.ProRoleMapper; import com.ccsens.common.persist.mapper.ProRoleMapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository
public interface LabelDao extends ProRoleMapper { public interface LabelDao extends LabelMapper {
String queryIsPm(Long labelId); String queryIsPm(Long labelId);

2
common/src/main/java/com/ccsens/common/persist/dao/ProProjectDao.java

@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository;
* @author AUSU * @author AUSU
*/ */
@Repository @Repository
public interface ProProjectDao { public interface ProProjectDao{
/** /**
* 根据id查找项目信息 * 根据id查找项目信息

3
common/src/main/java/com/ccsens/common/persist/dao/ProRoleMemberDao.java

@ -1,5 +1,6 @@
package com.ccsens.common.persist.dao; package com.ccsens.common.persist.dao;
import com.ccsens.common.persist.mapper.ProRoleMemberMapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@ -9,7 +10,7 @@ import java.util.List;
* @author AUSU * @author AUSU
*/ */
@Repository @Repository
public interface ProRoleMemberDao { public interface ProRoleMemberDao extends ProRoleMemberMapper {
/** /**
* 查找成员所属的所有角色 * 查找成员所属的所有角色

3
common/src/main/java/com/ccsens/common/persist/dao/ProTaskDetailDao.java

@ -1,6 +1,7 @@
package com.ccsens.common.persist.dao; package com.ccsens.common.persist.dao;
import com.ccsens.common.bean.vo.TaskVo; import com.ccsens.common.bean.vo.TaskVo;
import com.ccsens.common.persist.mapper.ProTaskDetailMapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@ -10,7 +11,7 @@ import java.util.List;
* @author AUSU * @author AUSU
*/ */
@Repository @Repository
public interface ProTaskDetailDao { public interface ProTaskDetailDao extends ProTaskDetailMapper {
/** /**
* 根据角色查找永久日常任务 * 根据角色查找永久日常任务
* @param roleId 角色id * @param roleId 角色id

30
common/src/main/java/com/ccsens/common/persist/mapper/LabelBusinessMapper.java

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

30
common/src/main/java/com/ccsens/common/persist/mapper/Label_BusinessMapper.java

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

30
common/src/main/java/com/ccsens/common/persist/mapper/ProMemberStakeholderMapper.java

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

58
common/src/main/java/com/ccsens/common/persist/mapper/ProTaskVersionMapper.java

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

12
common/src/main/resources/application-dev.yml

@ -29,6 +29,18 @@ spring:
timeout: 1000ms timeout: 1000ms
swagger: swagger:
enable: true enable: true
mybatisCache:
database: 1
host: 127.0.0.1
jedis:
pool:
max-active: 200
max-idle: 10
max-wait: -1
min-idle: 0
password: ''
port: 6379
timeout: 1000
gatewayUrl: https://test.tall.wiki/gateway/ gatewayUrl: https://test.tall.wiki/gateway/
notGatewayUrl: /home/staticrec/logo.png notGatewayUrl: /home/staticrec/logo.png

514
common/src/main/resources/mapper_raw/Label_BusinessMapper.xml → common/src/main/resources/mapper_raw/LabelBusinessMapper.xml

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

276
common/src/main/resources/mapper_raw/ProMemberStakeholderMapper.xml

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

500
common/src/main/resources/mapper_raw/ProTaskVersionMapper.xml

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

1
pom.xml

@ -18,6 +18,7 @@
<!-- <module>form</module>--> <!-- <module>form</module>-->
<module>signin</module> <module>signin</module>
<module>common</module> <module>common</module>
<!-- <module>pims</module>--> <!-- <module>pims</module>-->
<!-- <module>health</module>--> <!-- <module>health</module>-->
<!-- <module>ct</module>--> <!-- <module>ct</module>-->

14
tall/src/main/resources/application-dev.yml

@ -11,7 +11,7 @@ spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
rabbitmq: rabbitmq:
host: 192.168.4.113 host: 192.168.0.99
#host: 127.0.0.1 #host: 127.0.0.1
password: 111111 password: 111111
port: 5672 port: 5672
@ -30,6 +30,18 @@ spring:
timeout: 1000ms timeout: 1000ms
swagger: swagger:
enable: true enable: true
mybatisCache:
database: 1
host: 127.0.0.1
jedis:
pool:
max-active: 200
max-idle: 10
max-wait: -1
min-idle: 0
password: ''
port: 6379
timeout: 1000
gatewayUrl: https://test.tall.wiki/gateway/ gatewayUrl: https://test.tall.wiki/gateway/
notGatewayUrl: /home/staticrec/logo.png notGatewayUrl: /home/staticrec/logo.png

Loading…
Cancel
Save