Browse Source

新需求添加

master
ccsens_zhengzhichuan 3 months ago
parent
commit
722711ca03
  1. 47
      research-admin/src/main/java/com/research/web/controller/client/project/GroupController.java
  2. 16
      research-generator/src/main/resources/mbg.xml
  3. 33
      research-system/src/main/java/com/research/system/domain/dto/GroupDto.java
  4. 183
      research-system/src/main/java/com/research/system/domain/po/KtConfig.java
  5. 1171
      research-system/src/main/java/com/research/system/domain/po/KtConfigExample.java
  6. 139
      research-system/src/main/java/com/research/system/domain/po/KtExpectedOutcomes.java
  7. 831
      research-system/src/main/java/com/research/system/domain/po/KtExpectedOutcomesExample.java
  8. 139
      research-system/src/main/java/com/research/system/domain/po/KtResearchContent.java
  9. 831
      research-system/src/main/java/com/research/system/domain/po/KtResearchContentExample.java
  10. 22
      research-system/src/main/java/com/research/system/domain/po/KtsKtGroup.java
  11. 120
      research-system/src/main/java/com/research/system/domain/po/KtsKtGroupExample.java
  12. 39
      research-system/src/main/java/com/research/system/domain/po/KtsKtGroupWithBLOBs.java
  13. 74
      research-system/src/main/java/com/research/system/domain/vo/GroupVO.java
  14. 5
      research-system/src/main/java/com/research/system/persist/dao/KtsGroupDao.java
  15. 28
      research-system/src/main/java/com/research/system/persist/mapper/KtConfigMapper.java
  16. 34
      research-system/src/main/java/com/research/system/persist/mapper/KtExpectedOutcomesMapper.java
  17. 34
      research-system/src/main/java/com/research/system/persist/mapper/KtResearchContentMapper.java
  18. 17
      research-system/src/main/java/com/research/system/persist/mapper/KtsKtGroupMapper.java
  19. 14
      research-system/src/main/java/com/research/system/service/KtsGroupService.java
  20. 72
      research-system/src/main/java/com/research/system/service/impl/KtsGroupServiceImpl.java
  21. 40
      research-system/src/main/resources/mapper/dao/KtsGroupDao.xml
  22. 365
      research-system/src/main/resources/mapper/system/KtConfigMapper.xml
  23. 352
      research-system/src/main/resources/mapper/system/KtExpectedOutcomesMapper.xml
  24. 352
      research-system/src/main/resources/mapper/system/KtResearchContentMapper.xml
  25. 149
      research-system/src/main/resources/mapper/system/KtsKtGroupMapper.xml

47
research-admin/src/main/java/com/research/web/controller/client/project/GroupController.java

@ -73,16 +73,21 @@ public class GroupController {
@Anonymous
@PostMapping("/query")
public JsonResponse<PageInfo<GroupVO.Result>> queryGroupList(@RequestBody @Validated BaseDto<GroupDto.Query> query){
public JsonResponse<PageInfo<GroupVO.Result>> queryGroupList(@RequestBody @Validated BaseDto<GroupDto.Query> query) {
if (query.getPageNum() > 0) {
PageHelper.startPage(query.getPageNum(), query.getPageSize());
}
return JsonResponse.ok(new PageInfo<>(ktsGroupService.queryGroupList(query.getParam())));
}
@PostMapping("/detail")
public JsonResponse<GroupVO.Detail> detail(@RequestBody @Validated GroupDto.Detail dto) {
return JsonResponse.ok(ktsGroupService.detail(dto.getGroupId()));
}
@Anonymous
@PostMapping("/childList")
public JsonResponse<PageInfo<GroupVO.Result>> childList(@RequestBody @Validated BaseDto<GroupDto.Query> query){
public JsonResponse<PageInfo<GroupVO.Result>> childList(@RequestBody @Validated BaseDto<GroupDto.Query> query) {
// if (query.getPageNum() > 0) {
// PageHelper.startPage(query.getPageNum(), query.getPageSize());
// }
@ -90,24 +95,26 @@ public class GroupController {
}
@PostMapping("/add")
public JsonResponse<Integer> add(@RequestBody @Validated GroupDto.Add dto){
public JsonResponse<Integer> add(@RequestBody @Validated GroupDto.Add dto) {
ktsGroupService.add(dto);
return JsonResponse.ok();
}
@PostMapping("/del")
public JsonResponse<Integer> del(@RequestBody @Validated CommonDto.DelDto dto){
public JsonResponse<Integer> del(@RequestBody @Validated CommonDto.DelDto dto) {
ktsGroupService.del(dto);
return JsonResponse.ok();
}
@PostMapping("/status")
public JsonResponse<Integer> status(@RequestBody @Validated CommonDto.StatusDto dto){
public JsonResponse<Integer> status(@RequestBody @Validated CommonDto.StatusDto dto) {
ktsGroupService.status(dto);
return JsonResponse.ok();
}
@Anonymous
@PostMapping("/member/query")
public JsonResponse<PageInfo<GroupVO.MemberResult>> queryMemberList(@RequestBody @Validated BaseDto<GroupDto.MemberQuery> query){
public JsonResponse<PageInfo<GroupVO.MemberResult>> queryMemberList(@RequestBody @Validated BaseDto<GroupDto.MemberQuery> query) {
if (query.getPageNum() > 0) {
PageHelper.startPage(query.getPageNum(), query.getPageSize());
}
@ -123,11 +130,37 @@ public class GroupController {
}
@PostMapping("/member/del")
public JsonResponse<Integer> delMember(@RequestBody @Validated CommonDto.DelDto dto){
public JsonResponse<Integer> delMember(@RequestBody @Validated CommonDto.DelDto dto) {
ktsGroupService.delMember(dto);
return JsonResponse.ok();
}
@PostMapping("/member/del")
public JsonResponse<Integer> configAdd(@RequestBody @Validated GroupDto.ConfigAdd dto) {
return JsonResponse.ok(ktsGroupService.configAdd(dto));
}
@PostMapping("/config/add")
public JsonResponse<GroupVO.ConfigResult> configQuery() {
return JsonResponse.ok(ktsGroupService.configQuery());
}
@PostMapping("/num")
public JsonResponse<List<GroupVO.Num>> queryNum(){
return JsonResponse.ok(ktsGroupService.queryNum());
}
@PostMapping("/jhzt")
public JsonResponse<List<GroupVO.Num1>> jhzt(){
return JsonResponse.ok(ktsGroupService.jhzt());
}
@PostMapping("/kzzt")
public JsonResponse<List<GroupVO.Num2>> kzzt(){
return JsonResponse.ok(ktsGroupService.kzzt());
}
private void aduit(Long memberId) throws Exception {
//1.流程初始化表单

16
research-generator/src/main/resources/mbg.xml

@ -65,7 +65,7 @@
<!-- <table tableName="ach_achievement" domainObjectName="AchAchievement" enableDeleteByExample="false"/>-->
<!-- <table tableName="ach_achievement_category" domainObjectName="AchAchievementCategory" enableDeleteByExample="false"/>-->
<!-- <table tableName="fud_fund_record" domainObjectName="FudFundRecord" enableDeleteByExample="false"/>-->
<!-- <table tableName="kts_kt_group" domainObjectName="KtsKtGroup" enableDeleteByExample="false"/>-->
<table tableName="kts_kt_group" domainObjectName="KtsKtGroup" enableDeleteByExample="false"/>
<!-- <table tableName="kts_kt_group_member" domainObjectName="KtsKtGroupMember" enableDeleteByExample="false"/>-->
<!-- <table tableName="met_meeting_participant" domainObjectName="MetMeetingParticipant" enableDeleteByExample="false"/>-->
<!-- <table tableName="met_meeting_record" domainObjectName="MetMeetingRecord" enableDeleteByExample="false"/>-->
@ -89,12 +89,14 @@
<!-- <table tableName="task_deliverable" domainObjectName="TaskDeliverable" enableDeleteByExample="false"/>-->
<!-- <table tableName="shs_syff_info" domainObjectName="ShsSyffInfo" enableDeleteByExample="false"/>-->
<!-- <table tableName="pro_progress" domainObjectName="ProProgress" enableDeleteByExample="false"/>-->
<table tableName="chat_contact_list" domainObjectName="ChatContactList" enableDeleteByExample="false"/>
<table tableName="chat_message_read_status" domainObjectName="ChatMessageReadStatus" enableDeleteByExample="false"/>
<table tableName="chat_session_members" domainObjectName="ChatSessionMembers" enableDeleteByExample="false"/>
<table tableName="chat_session_messages" domainObjectName="ChatSessionMessages" enableDeleteByExample="false"/>
<table tableName="chat_sessions" domainObjectName="ChatSessions" enableDeleteByExample="false"/>
<!-- <table tableName="chat_contact_list" domainObjectName="ChatContactList" enableDeleteByExample="false"/>-->
<!-- <table tableName="chat_message_read_status" domainObjectName="ChatMessageReadStatus" enableDeleteByExample="false"/>-->
<!-- <table tableName="chat_session_members" domainObjectName="ChatSessionMembers" enableDeleteByExample="false"/>-->
<!-- <table tableName="chat_session_messages" domainObjectName="ChatSessionMessages" enableDeleteByExample="false"/>-->
<!-- <table tableName="chat_sessions" domainObjectName="ChatSessions" enableDeleteByExample="false"/>-->
<table tableName="kt_research_content" domainObjectName="KtResearchContent" enableDeleteByExample="false"/>
<table tableName="kt_expected_outcomes" domainObjectName="KtExpectedOutcomes" enableDeleteByExample="false"/>
<table tableName="kt_config" domainObjectName="KtConfig" enableDeleteByExample="false"/>
<!-- 有些表的字段需要指定java类型
<table schema="" tableName="">
<columnOverride column="" javaType="" />

33
research-system/src/main/java/com/research/system/domain/dto/GroupDto.java

@ -5,6 +5,7 @@ import com.research.system.domain.po.KtsKtGroupMember;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
@ -26,6 +27,12 @@ public class GroupDto {
private String ktGroupName;
}
@Data
public static class Detail {
@NotNull(message = "请选择课题组id")
private Long groupId;
}
@Data
public static class MemberQuery {
@ApiModelProperty("课题组id")
@ -64,6 +71,10 @@ public class GroupDto {
private String phone;
@ApiModelProperty("负责人")
private String name;
@ApiModelProperty("计划状态")
private String planStatus;
@ApiModelProperty("开展状态")
private Byte developStatus;
}
@Data
@ -135,4 +146,26 @@ public class GroupDto {
@ApiModelProperty("毕业时间")
private Date graduationTime;
}
@Data
public static class ConfigAdd {
private String id;
@ApiModelProperty("研究目标字数")
private String researchGoal;
@ApiModelProperty("研究内容字数字数")
private String researchContent;
@ApiModelProperty("研究方案字数")
private String researchPlan;
@ApiModelProperty("预期成果字数")
private String expectedResults;
@ApiModelProperty("研究目标提示语")
private String promptResearchGoal;
@ApiModelProperty("研究内容提示语")
private String promptResearchContent;
@ApiModelProperty("研究方案提示语")
private String promptResearchPlan;
@ApiModelProperty("预期成果提示语")
private String promptExpectedResults;
}
}

183
research-system/src/main/java/com/research/system/domain/po/KtConfig.java

@ -0,0 +1,183 @@
package com.research.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class KtConfig implements Serializable {
private Long id;
private Integer researchGoal;
private Integer researchContent;
private Integer researchPlan;
private Integer expectedResults;
private String promptResearchGoal;
private String promptResearchContent;
private String promptResearchPlan;
private String promptExpectedResults;
private Byte delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private String remark;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getResearchGoal() {
return researchGoal;
}
public void setResearchGoal(Integer researchGoal) {
this.researchGoal = researchGoal;
}
public Integer getResearchContent() {
return researchContent;
}
public void setResearchContent(Integer researchContent) {
this.researchContent = researchContent;
}
public Integer getResearchPlan() {
return researchPlan;
}
public void setResearchPlan(Integer researchPlan) {
this.researchPlan = researchPlan;
}
public Integer getExpectedResults() {
return expectedResults;
}
public void setExpectedResults(Integer expectedResults) {
this.expectedResults = expectedResults;
}
public String getPromptResearchGoal() {
return promptResearchGoal;
}
public void setPromptResearchGoal(String promptResearchGoal) {
this.promptResearchGoal = promptResearchGoal == null ? null : promptResearchGoal.trim();
}
public String getPromptResearchContent() {
return promptResearchContent;
}
public void setPromptResearchContent(String promptResearchContent) {
this.promptResearchContent = promptResearchContent == null ? null : promptResearchContent.trim();
}
public String getPromptResearchPlan() {
return promptResearchPlan;
}
public void setPromptResearchPlan(String promptResearchPlan) {
this.promptResearchPlan = promptResearchPlan == null ? null : promptResearchPlan.trim();
}
public String getPromptExpectedResults() {
return promptExpectedResults;
}
public void setPromptExpectedResults(String promptExpectedResults) {
this.promptExpectedResults = promptExpectedResults == null ? null : promptExpectedResults.trim();
}
public Byte getDelFlag() {
return delFlag;
}
public void setDelFlag(Byte delFlag) {
this.delFlag = delFlag;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", researchGoal=").append(researchGoal);
sb.append(", researchContent=").append(researchContent);
sb.append(", researchPlan=").append(researchPlan);
sb.append(", expectedResults=").append(expectedResults);
sb.append(", promptResearchGoal=").append(promptResearchGoal);
sb.append(", promptResearchContent=").append(promptResearchContent);
sb.append(", promptResearchPlan=").append(promptResearchPlan);
sb.append(", promptExpectedResults=").append(promptExpectedResults);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}

1171
research-system/src/main/java/com/research/system/domain/po/KtConfigExample.java

File diff suppressed because it is too large

139
research-system/src/main/java/com/research/system/domain/po/KtExpectedOutcomes.java

@ -0,0 +1,139 @@
package com.research.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class KtExpectedOutcomes implements Serializable {
private Long id;
private Long ktGroupId;
private Integer sort;
private Byte status;
private Byte delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private String remark;
private String outcomes;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getKtGroupId() {
return ktGroupId;
}
public void setKtGroupId(Long ktGroupId) {
this.ktGroupId = ktGroupId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Byte getDelFlag() {
return delFlag;
}
public void setDelFlag(Byte delFlag) {
this.delFlag = delFlag;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public String getOutcomes() {
return outcomes;
}
public void setOutcomes(String outcomes) {
this.outcomes = outcomes == null ? null : outcomes.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", ktGroupId=").append(ktGroupId);
sb.append(", sort=").append(sort);
sb.append(", status=").append(status);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", remark=").append(remark);
sb.append(", outcomes=").append(outcomes);
sb.append("]");
return sb.toString();
}
}

831
research-system/src/main/java/com/research/system/domain/po/KtExpectedOutcomesExample.java

@ -0,0 +1,831 @@
package com.research.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class KtExpectedOutcomesExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public KtExpectedOutcomesExample() {
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 andKtGroupIdIsNull() {
addCriterion("kt_group_id is null");
return (Criteria) this;
}
public Criteria andKtGroupIdIsNotNull() {
addCriterion("kt_group_id is not null");
return (Criteria) this;
}
public Criteria andKtGroupIdEqualTo(Long value) {
addCriterion("kt_group_id =", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdNotEqualTo(Long value) {
addCriterion("kt_group_id <>", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdGreaterThan(Long value) {
addCriterion("kt_group_id >", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdGreaterThanOrEqualTo(Long value) {
addCriterion("kt_group_id >=", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdLessThan(Long value) {
addCriterion("kt_group_id <", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdLessThanOrEqualTo(Long value) {
addCriterion("kt_group_id <=", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdIn(List<Long> values) {
addCriterion("kt_group_id in", values, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdNotIn(List<Long> values) {
addCriterion("kt_group_id not in", values, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdBetween(Long value1, Long value2) {
addCriterion("kt_group_id between", value1, value2, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdNotBetween(Long value1, Long value2) {
addCriterion("kt_group_id not between", value1, value2, "ktGroupId");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Integer value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Integer value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Integer value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Integer value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Integer value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Integer value1, Integer value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Integer value1, Integer value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(Byte value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(Byte value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(Byte value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(Byte value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(Byte value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<Byte> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<Byte> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(Byte value1, Byte value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
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);
}
}
}

139
research-system/src/main/java/com/research/system/domain/po/KtResearchContent.java

@ -0,0 +1,139 @@
package com.research.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class KtResearchContent implements Serializable {
private Long id;
private Long ktGroupId;
private Integer sort;
private Byte status;
private Byte delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private String remark;
private String content;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getKtGroupId() {
return ktGroupId;
}
public void setKtGroupId(Long ktGroupId) {
this.ktGroupId = ktGroupId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Byte getDelFlag() {
return delFlag;
}
public void setDelFlag(Byte delFlag) {
this.delFlag = delFlag;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", ktGroupId=").append(ktGroupId);
sb.append(", sort=").append(sort);
sb.append(", status=").append(status);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", remark=").append(remark);
sb.append(", content=").append(content);
sb.append("]");
return sb.toString();
}
}

831
research-system/src/main/java/com/research/system/domain/po/KtResearchContentExample.java

@ -0,0 +1,831 @@
package com.research.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class KtResearchContentExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public KtResearchContentExample() {
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 andKtGroupIdIsNull() {
addCriterion("kt_group_id is null");
return (Criteria) this;
}
public Criteria andKtGroupIdIsNotNull() {
addCriterion("kt_group_id is not null");
return (Criteria) this;
}
public Criteria andKtGroupIdEqualTo(Long value) {
addCriterion("kt_group_id =", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdNotEqualTo(Long value) {
addCriterion("kt_group_id <>", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdGreaterThan(Long value) {
addCriterion("kt_group_id >", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdGreaterThanOrEqualTo(Long value) {
addCriterion("kt_group_id >=", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdLessThan(Long value) {
addCriterion("kt_group_id <", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdLessThanOrEqualTo(Long value) {
addCriterion("kt_group_id <=", value, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdIn(List<Long> values) {
addCriterion("kt_group_id in", values, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdNotIn(List<Long> values) {
addCriterion("kt_group_id not in", values, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdBetween(Long value1, Long value2) {
addCriterion("kt_group_id between", value1, value2, "ktGroupId");
return (Criteria) this;
}
public Criteria andKtGroupIdNotBetween(Long value1, Long value2) {
addCriterion("kt_group_id not between", value1, value2, "ktGroupId");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Integer value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Integer value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Integer value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Integer value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Integer value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Integer value1, Integer value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Integer value1, Integer value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(Byte value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(Byte value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(Byte value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(Byte value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(Byte value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<Byte> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<Byte> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(Byte value1, Byte value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
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);
}
}
}

22
research-system/src/main/java/com/research/system/domain/po/KtsKtGroup.java

@ -36,6 +36,10 @@ public class KtsKtGroup implements Serializable {
private String phone;
private Byte planStatus;
private Byte developStatus;
private static final long serialVersionUID = 1L;
public Long getId() {
@ -166,6 +170,22 @@ public class KtsKtGroup implements Serializable {
this.phone = phone == null ? null : phone.trim();
}
public Byte getPlanStatus() {
return planStatus;
}
public void setPlanStatus(Byte planStatus) {
this.planStatus = planStatus;
}
public Byte getDevelopStatus() {
return developStatus;
}
public void setDevelopStatus(Byte developStatus) {
this.developStatus = developStatus;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@ -188,6 +208,8 @@ public class KtsKtGroup implements Serializable {
sb.append(", remark=").append(remark);
sb.append(", name=").append(name);
sb.append(", phone=").append(phone);
sb.append(", planStatus=").append(planStatus);
sb.append(", developStatus=").append(developStatus);
sb.append("]");
return sb.toString();
}

120
research-system/src/main/java/com/research/system/domain/po/KtsKtGroupExample.java

@ -1134,6 +1134,126 @@ public class KtsKtGroupExample {
addCriterion("phone not between", value1, value2, "phone");
return (Criteria) this;
}
public Criteria andPlanStatusIsNull() {
addCriterion("plan_status is null");
return (Criteria) this;
}
public Criteria andPlanStatusIsNotNull() {
addCriterion("plan_status is not null");
return (Criteria) this;
}
public Criteria andPlanStatusEqualTo(Byte value) {
addCriterion("plan_status =", value, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusNotEqualTo(Byte value) {
addCriterion("plan_status <>", value, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusGreaterThan(Byte value) {
addCriterion("plan_status >", value, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("plan_status >=", value, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusLessThan(Byte value) {
addCriterion("plan_status <", value, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusLessThanOrEqualTo(Byte value) {
addCriterion("plan_status <=", value, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusIn(List<Byte> values) {
addCriterion("plan_status in", values, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusNotIn(List<Byte> values) {
addCriterion("plan_status not in", values, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusBetween(Byte value1, Byte value2) {
addCriterion("plan_status between", value1, value2, "planStatus");
return (Criteria) this;
}
public Criteria andPlanStatusNotBetween(Byte value1, Byte value2) {
addCriterion("plan_status not between", value1, value2, "planStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusIsNull() {
addCriterion("develop_status is null");
return (Criteria) this;
}
public Criteria andDevelopStatusIsNotNull() {
addCriterion("develop_status is not null");
return (Criteria) this;
}
public Criteria andDevelopStatusEqualTo(Byte value) {
addCriterion("develop_status =", value, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusNotEqualTo(Byte value) {
addCriterion("develop_status <>", value, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusGreaterThan(Byte value) {
addCriterion("develop_status >", value, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("develop_status >=", value, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusLessThan(Byte value) {
addCriterion("develop_status <", value, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusLessThanOrEqualTo(Byte value) {
addCriterion("develop_status <=", value, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusIn(List<Byte> values) {
addCriterion("develop_status in", values, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusNotIn(List<Byte> values) {
addCriterion("develop_status not in", values, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusBetween(Byte value1, Byte value2) {
addCriterion("develop_status between", value1, value2, "developStatus");
return (Criteria) this;
}
public Criteria andDevelopStatusNotBetween(Byte value1, Byte value2) {
addCriterion("develop_status not between", value1, value2, "developStatus");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

39
research-system/src/main/java/com/research/system/domain/po/KtsKtGroupWithBLOBs.java

@ -0,0 +1,39 @@
package com.research.system.domain.po;
import java.io.Serializable;
public class KtsKtGroupWithBLOBs extends KtsKtGroup implements Serializable {
private String target;
private String plan;
private static final long serialVersionUID = 1L;
public String getTarget() {
return target;
}
public void setTarget(String target) {
this.target = target == null ? null : target.trim();
}
public String getPlan() {
return plan;
}
public void setPlan(String plan) {
this.plan = plan == null ? null : plan.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", target=").append(target);
sb.append(", plan=").append(plan);
sb.append("]");
return sb.toString();
}
}

74
research-system/src/main/java/com/research/system/domain/vo/GroupVO.java

@ -65,9 +65,83 @@ public class GroupVO {
private Integer xsjlNum;
@ApiModelProperty("计划状态")
private String planStatus;
@ApiModelProperty("开展状态")
private Byte developStatus;
private List<Result> childrenList;
}
@Data
public static class Num{
private Long orgId;
private String orgName;
private Integer num;
}
@Data
public static class Num1{
private Long orgId;
private String orgName;
private Integer jhn;
private Integer jhw;
}
@Data
public static class Num2{
private Long orgId;
private String orgName;
private Integer befor;
private Integer ing;
private Integer after;
}
@Data
public static class Detail {
private Long id;
private String mb;
private String fa;
private List<Nr> nrList;
private List<Yqcg> yqcgList;
@Data
public static class Nr {
private Long id;
private String content;
private Integer sort;
private Byte status;
}
@Data
public static class Yqcg {
private Long id;
private String outcomes;
private Integer sort;
private Byte status;
}
}
@Data
public static class ConfigResult {
private String id;
@ApiModelProperty("研究目标字数")
private String researchGoal;
@ApiModelProperty("研究内容字数字数")
private String researchContent;
@ApiModelProperty("研究方案字数")
private String researchPlan;
@ApiModelProperty("预期成果字数")
private String expectedResults;
@ApiModelProperty("研究目标提示语")
private String promptResearchGoal;
@ApiModelProperty("研究内容提示语")
private String promptResearchContent;
@ApiModelProperty("研究方案提示语")
private String promptResearchPlan;
@ApiModelProperty("预期成果提示语")
private String promptExpectedResults;
}
@Data
public static class MemberResult {

5
research-system/src/main/java/com/research/system/persist/dao/KtsGroupDao.java

@ -19,4 +19,9 @@ public interface KtsGroupDao {
List<GroupVO.MemberResult> queryMemberList(@Param("dto") GroupDto.MemberQuery dto);
List<GroupVO.Num> queryNum();
List<GroupVO.Num1> jhzt();
List<GroupVO.Num2> kzzt();
}

28
research-system/src/main/java/com/research/system/persist/mapper/KtConfigMapper.java

@ -0,0 +1,28 @@
package com.research.system.persist.mapper;
import com.research.system.domain.po.KtConfig;
import com.research.system.domain.po.KtConfigExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface KtConfigMapper {
long countByExample(KtConfigExample example);
int deleteByPrimaryKey(Long id);
int insert(KtConfig record);
int insertSelective(KtConfig record);
List<KtConfig> selectByExample(KtConfigExample example);
KtConfig selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") KtConfig record, @Param("example") KtConfigExample example);
int updateByExample(@Param("record") KtConfig record, @Param("example") KtConfigExample example);
int updateByPrimaryKeySelective(KtConfig record);
int updateByPrimaryKey(KtConfig record);
}

34
research-system/src/main/java/com/research/system/persist/mapper/KtExpectedOutcomesMapper.java

@ -0,0 +1,34 @@
package com.research.system.persist.mapper;
import com.research.system.domain.po.KtExpectedOutcomes;
import com.research.system.domain.po.KtExpectedOutcomesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface KtExpectedOutcomesMapper {
long countByExample(KtExpectedOutcomesExample example);
int deleteByPrimaryKey(Long id);
int insert(KtExpectedOutcomes record);
int insertSelective(KtExpectedOutcomes record);
List<KtExpectedOutcomes> selectByExampleWithBLOBs(KtExpectedOutcomesExample example);
List<KtExpectedOutcomes> selectByExample(KtExpectedOutcomesExample example);
KtExpectedOutcomes selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") KtExpectedOutcomes record, @Param("example") KtExpectedOutcomesExample example);
int updateByExampleWithBLOBs(@Param("record") KtExpectedOutcomes record, @Param("example") KtExpectedOutcomesExample example);
int updateByExample(@Param("record") KtExpectedOutcomes record, @Param("example") KtExpectedOutcomesExample example);
int updateByPrimaryKeySelective(KtExpectedOutcomes record);
int updateByPrimaryKeyWithBLOBs(KtExpectedOutcomes record);
int updateByPrimaryKey(KtExpectedOutcomes record);
}

34
research-system/src/main/java/com/research/system/persist/mapper/KtResearchContentMapper.java

@ -0,0 +1,34 @@
package com.research.system.persist.mapper;
import com.research.system.domain.po.KtResearchContent;
import com.research.system.domain.po.KtResearchContentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface KtResearchContentMapper {
long countByExample(KtResearchContentExample example);
int deleteByPrimaryKey(Long id);
int insert(KtResearchContent record);
int insertSelective(KtResearchContent record);
List<KtResearchContent> selectByExampleWithBLOBs(KtResearchContentExample example);
List<KtResearchContent> selectByExample(KtResearchContentExample example);
KtResearchContent selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") KtResearchContent record, @Param("example") KtResearchContentExample example);
int updateByExampleWithBLOBs(@Param("record") KtResearchContent record, @Param("example") KtResearchContentExample example);
int updateByExample(@Param("record") KtResearchContent record, @Param("example") KtResearchContentExample example);
int updateByPrimaryKeySelective(KtResearchContent record);
int updateByPrimaryKeyWithBLOBs(KtResearchContent record);
int updateByPrimaryKey(KtResearchContent record);
}

17
research-system/src/main/java/com/research/system/persist/mapper/KtsKtGroupMapper.java

@ -2,6 +2,7 @@ package com.research.system.persist.mapper;
import com.research.system.domain.po.KtsKtGroup;
import com.research.system.domain.po.KtsKtGroupExample;
import com.research.system.domain.po.KtsKtGroupWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;
@ -10,19 +11,25 @@ public interface KtsKtGroupMapper {
int deleteByPrimaryKey(Long id);
int insert(KtsKtGroup record);
int insert(KtsKtGroupWithBLOBs record);
int insertSelective(KtsKtGroup record);
int insertSelective(KtsKtGroupWithBLOBs record);
List<KtsKtGroupWithBLOBs> selectByExampleWithBLOBs(KtsKtGroupExample example);
List<KtsKtGroup> selectByExample(KtsKtGroupExample example);
KtsKtGroup selectByPrimaryKey(Long id);
KtsKtGroupWithBLOBs selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") KtsKtGroupWithBLOBs record, @Param("example") KtsKtGroupExample example);
int updateByExampleSelective(@Param("record") KtsKtGroup record, @Param("example") KtsKtGroupExample example);
int updateByExampleWithBLOBs(@Param("record") KtsKtGroupWithBLOBs record, @Param("example") KtsKtGroupExample example);
int updateByExample(@Param("record") KtsKtGroup record, @Param("example") KtsKtGroupExample example);
int updateByPrimaryKeySelective(KtsKtGroup record);
int updateByPrimaryKeySelective(KtsKtGroupWithBLOBs record);
int updateByPrimaryKeyWithBLOBs(KtsKtGroupWithBLOBs record);
int updateByPrimaryKey(KtsKtGroup record);
}

14
research-system/src/main/java/com/research/system/service/KtsGroupService.java

@ -8,6 +8,7 @@ import com.research.system.domain.dto.GroupDto;
import com.research.system.domain.po.KtsKtGroup;
import com.research.system.domain.po.KtsKtGroupMember;
import com.research.system.domain.vo.GroupVO;
import com.research.system.domain.vo.HomeVo;
import java.util.List;
@ -24,6 +25,8 @@ public interface KtsGroupService {
List<GroupVO.Result> childList(GroupDto.Query query);
GroupVO.Detail detail(Long id);
KtsKtGroup add(GroupDto.Add dto);
void del(CommonDto.DelDto dto);
@ -40,4 +43,15 @@ public interface KtsGroupService {
void aduitMember(Long memberId, Byte status);
Integer configAdd(GroupDto.ConfigAdd dto);
GroupVO.ConfigResult configQuery();
List<GroupVO.Num> queryNum();
List<GroupVO.Num1> jhzt();
List<GroupVO.Num2> kzzt();
}

72
research-system/src/main/java/com/research/system/service/impl/KtsGroupServiceImpl.java

@ -13,9 +13,9 @@ import com.research.system.domain.dto.CommonDto;
import com.research.system.domain.dto.GroupDto;
import com.research.system.domain.po.*;
import com.research.system.domain.vo.GroupVO;
import com.research.system.domain.vo.HomeVo;
import com.research.system.persist.dao.KtsGroupDao;
import com.research.system.persist.mapper.KtsKtGroupMapper;
import com.research.system.persist.mapper.KtsKtGroupMemberMapper;
import com.research.system.persist.mapper.*;
import com.research.system.service.ClientPrjProjInfoService;
import com.research.system.service.ISysUserService;
import com.research.system.service.KtsGroupService;
@ -49,6 +49,12 @@ public class KtsGroupServiceImpl implements KtsGroupService {
private ISysUserService sysUserService;
@Resource
private KtsGroupDao ktsGroupDao;
@Resource
private KtConfigMapper ktConfigMapper;
@Resource
private KtResearchContentMapper ktResearchContentMapper;
@Resource
private KtExpectedOutcomesMapper ktExpectedOutcomesMapper;
@Override
@ -65,6 +71,32 @@ public class KtsGroupServiceImpl implements KtsGroupService {
return null;
}
@Override
public GroupVO.Detail detail(Long id) {
KtsKtGroupWithBLOBs ktsKtGroupWithBLOBs = ktsKtGroupMapper.selectByPrimaryKey(id);
if (ktsKtGroupWithBLOBs == null) {
throw new BaseException("未查询到数据");
}
GroupVO.Detail detail = new GroupVO.Detail();
detail.setId(ktsKtGroupWithBLOBs.getId());
detail.setMb(ktsKtGroupWithBLOBs.getTarget());
detail.setFa(ktsKtGroupWithBLOBs.getPlan());
KtExpectedOutcomesExample ktExpectedOutcomesExample = new KtExpectedOutcomesExample();
ktExpectedOutcomesExample.createCriteria().andKtGroupIdEqualTo(id).andDelFlagEqualTo((byte) 0);
List<KtExpectedOutcomes> ktExpectedOutcomes = ktExpectedOutcomesMapper.selectByExampleWithBLOBs(ktExpectedOutcomesExample);
if (CollUtil.isNotEmpty(ktExpectedOutcomes)) {
detail.setYqcgList(BeanUtil.copyToList(ktExpectedOutcomes, GroupVO.Detail.Yqcg.class));
}
KtResearchContentExample ktResearchContentExample = new KtResearchContentExample();
ktResearchContentExample.createCriteria().andKtGroupIdEqualTo(id).andDelFlagEqualTo((byte) 0);
List<KtResearchContent> ktResearchContents = ktResearchContentMapper.selectByExampleWithBLOBs(ktResearchContentExample);
if (CollUtil.isNotEmpty(ktResearchContents)) {
detail.setNrList(BeanUtil.copyToList(ktResearchContents, GroupVO.Detail.Nr.class));
}
return detail;
}
public static List<GroupVO.Result> buildTree(List<GroupVO.Result> rootList) {
if (rootList == null || rootList.isEmpty()) {
@ -105,7 +137,7 @@ public class KtsGroupServiceImpl implements KtsGroupService {
if (proInfoByTenantId == null) {
throw new BaseException("未查询到项目");
}
KtsKtGroup ktsKtGroup = BeanUtil.copyProperties(dto, KtsKtGroup.class);
KtsKtGroupWithBLOBs ktsKtGroup = BeanUtil.copyProperties(dto, KtsKtGroupWithBLOBs.class);
if (dto.getId() == null) {
ktsKtGroup.setId(IdUtil.getSnowflakeNextId());
ktsKtGroup.setCreateBy(SecurityUtils.getUsername());
@ -126,14 +158,14 @@ public class KtsGroupServiceImpl implements KtsGroupService {
public void del(CommonDto.DelDto dto) {
KtsKtGroupExample ktsKtGroupExample = new KtsKtGroupExample();
ktsKtGroupExample.createCriteria().andIdIn(dto.getIdList());
KtsKtGroup ktsKtGroup = new KtsKtGroup();
KtsKtGroupWithBLOBs ktsKtGroup = new KtsKtGroupWithBLOBs();
ktsKtGroup.setDelFlag((byte) 1);
ktsKtGroupMapper.updateByExampleSelective(ktsKtGroup, ktsKtGroupExample);
}
@Override
public void status(CommonDto.StatusDto dto) {
KtsKtGroup ktsKtGroup = ktsKtGroupMapper.selectByPrimaryKey(dto.getId());
KtsKtGroupWithBLOBs ktsKtGroup = ktsKtGroupMapper.selectByPrimaryKey(dto.getId());
if (ktsKtGroup == null || ktsKtGroup.getDelFlag() == 1) {
throw new BaseException("未查询到数据");
}
@ -292,5 +324,35 @@ public class KtsGroupServiceImpl implements KtsGroupService {
}
}
@Override
public Integer configAdd(GroupDto.ConfigAdd dto) {
KtConfig ktConfig = BeanUtil.copyProperties(dto, KtConfig.class);
return ktConfigMapper.updateByPrimaryKeySelective(ktConfig);
}
@Override
public GroupVO.ConfigResult configQuery() {
KtConfigExample ktConfigExample = new KtConfigExample();
ktConfigExample.createCriteria().andDelFlagEqualTo((byte) 0);
List<KtConfig> ktConfigs = ktConfigMapper.selectByExample(ktConfigExample);
if (CollUtil.isNotEmpty(ktConfigs)) {
return BeanUtil.copyProperties(ktConfigs.get(0), GroupVO.ConfigResult.class);
}
return null;
}
@Override
public List<GroupVO.Num> queryNum() {
return ktsGroupDao.queryNum();
}
@Override
public List<GroupVO.Num1> jhzt() {
return ktsGroupDao.jhzt();
}
@Override
public List<GroupVO.Num2> kzzt() {
return ktsGroupDao.kzzt();
}
}

40
research-system/src/main/resources/mapper/dao/KtsGroupDao.xml

@ -17,7 +17,9 @@
o.org_name as projOrgName,
pg.kt_group_name as parentKtName,
g.name as name,
g.phone as phone
g.phone as phone,
g.plan_status as planStatus,
g.develop_status as developStatus
from kts_kt_group g
left join
prj_proj_org o on g.proj_org_id = o.id
@ -100,4 +102,40 @@
</if>
order by m.kt_group_id,m.id
</select>
<select id="queryNum" resultType="com.research.system.domain.vo.GroupVO$Num">
select o.id as orgId,
o.org_name as orgName,
count(g.id) as num
from prj_proj_org o
left join
kts_kt_group g on g.proj_org_id = o.id and g.del_flag = 0
where o.del_flag = 0
group by o.id
</select>
<select id="jhzt" resultType="com.research.system.domain.vo.GroupVO$Num1">
select o.id as orgId,
o.org_name as orgName,
SUM(CASE WHEN plan_status = '0' THEN 1 ELSE 0 END) AS jhn,
SUM(CASE WHEN plan_status = '1' THEN 1 ELSE 0 END) AS jhw
from prj_proj_org o
left join
kts_kt_group g on g.proj_org_id = o.id and g.del_flag = 0
where o.del_flag = 0
group by o.id
</select>
<select id="kzzt" resultType="com.research.system.domain.vo.GroupVO$Num2">
select o.id as orgId,
o.org_name as orgName,
SUM(CASE WHEN develop_status = '0' THEN 1 ELSE 0 END) AS befor,
SUM(CASE WHEN develop_status = '1' THEN 1 ELSE 0 END) AS ing,
SUM(CASE WHEN develop_status = '2' THEN 1 ELSE 0 END) AS after
from prj_proj_org o
left join
kts_kt_group g on g.proj_org_id = o.id and g.del_flag = 0
where o.del_flag = 0
group by o.id
</select>
</mapper>

365
research-system/src/main/resources/mapper/system/KtConfigMapper.xml

@ -0,0 +1,365 @@
<?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.research.system.persist.mapper.KtConfigMapper">
<resultMap id="BaseResultMap" type="com.research.system.domain.po.KtConfig">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="research_goal" jdbcType="INTEGER" property="researchGoal" />
<result column="research_content" jdbcType="INTEGER" property="researchContent" />
<result column="research_plan" jdbcType="INTEGER" property="researchPlan" />
<result column="expected_results" jdbcType="INTEGER" property="expectedResults" />
<result column="prompt_research_goal" jdbcType="VARCHAR" property="promptResearchGoal" />
<result column="prompt_research_content" jdbcType="VARCHAR" property="promptResearchContent" />
<result column="prompt_research_plan" jdbcType="VARCHAR" property="promptResearchPlan" />
<result column="prompt_expected_results" jdbcType="VARCHAR" property="promptExpectedResults" />
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</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, research_goal, research_content, research_plan, expected_results, prompt_research_goal,
prompt_research_content, prompt_research_plan, prompt_expected_results, del_flag,
create_by, create_time, update_by, update_time, remark
</sql>
<select id="selectByExample" parameterType="com.research.system.domain.po.KtConfigExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from kt_config
<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 kt_config
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from kt_config
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.research.system.domain.po.KtConfig">
insert into kt_config (id, research_goal, research_content,
research_plan, expected_results, prompt_research_goal,
prompt_research_content, prompt_research_plan,
prompt_expected_results, del_flag, create_by,
create_time, update_by, update_time,
remark)
values (#{id,jdbcType=BIGINT}, #{researchGoal,jdbcType=INTEGER}, #{researchContent,jdbcType=INTEGER},
#{researchPlan,jdbcType=INTEGER}, #{expectedResults,jdbcType=INTEGER}, #{promptResearchGoal,jdbcType=VARCHAR},
#{promptResearchContent,jdbcType=VARCHAR}, #{promptResearchPlan,jdbcType=VARCHAR},
#{promptExpectedResults,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtConfig">
insert into kt_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="researchGoal != null">
research_goal,
</if>
<if test="researchContent != null">
research_content,
</if>
<if test="researchPlan != null">
research_plan,
</if>
<if test="expectedResults != null">
expected_results,
</if>
<if test="promptResearchGoal != null">
prompt_research_goal,
</if>
<if test="promptResearchContent != null">
prompt_research_content,
</if>
<if test="promptResearchPlan != null">
prompt_research_plan,
</if>
<if test="promptExpectedResults != null">
prompt_expected_results,
</if>
<if test="delFlag != null">
del_flag,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="remark != null">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="researchGoal != null">
#{researchGoal,jdbcType=INTEGER},
</if>
<if test="researchContent != null">
#{researchContent,jdbcType=INTEGER},
</if>
<if test="researchPlan != null">
#{researchPlan,jdbcType=INTEGER},
</if>
<if test="expectedResults != null">
#{expectedResults,jdbcType=INTEGER},
</if>
<if test="promptResearchGoal != null">
#{promptResearchGoal,jdbcType=VARCHAR},
</if>
<if test="promptResearchContent != null">
#{promptResearchContent,jdbcType=VARCHAR},
</if>
<if test="promptResearchPlan != null">
#{promptResearchPlan,jdbcType=VARCHAR},
</if>
<if test="promptExpectedResults != null">
#{promptExpectedResults,jdbcType=VARCHAR},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=TINYINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.research.system.domain.po.KtConfigExample" resultType="java.lang.Long">
select count(*) from kt_config
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update kt_config
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.researchGoal != null">
research_goal = #{record.researchGoal,jdbcType=INTEGER},
</if>
<if test="record.researchContent != null">
research_content = #{record.researchContent,jdbcType=INTEGER},
</if>
<if test="record.researchPlan != null">
research_plan = #{record.researchPlan,jdbcType=INTEGER},
</if>
<if test="record.expectedResults != null">
expected_results = #{record.expectedResults,jdbcType=INTEGER},
</if>
<if test="record.promptResearchGoal != null">
prompt_research_goal = #{record.promptResearchGoal,jdbcType=VARCHAR},
</if>
<if test="record.promptResearchContent != null">
prompt_research_content = #{record.promptResearchContent,jdbcType=VARCHAR},
</if>
<if test="record.promptResearchPlan != null">
prompt_research_plan = #{record.promptResearchPlan,jdbcType=VARCHAR},
</if>
<if test="record.promptExpectedResults != null">
prompt_expected_results = #{record.promptExpectedResults,jdbcType=VARCHAR},
</if>
<if test="record.delFlag != null">
del_flag = #{record.delFlag,jdbcType=TINYINT},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update kt_config
set id = #{record.id,jdbcType=BIGINT},
research_goal = #{record.researchGoal,jdbcType=INTEGER},
research_content = #{record.researchContent,jdbcType=INTEGER},
research_plan = #{record.researchPlan,jdbcType=INTEGER},
expected_results = #{record.expectedResults,jdbcType=INTEGER},
prompt_research_goal = #{record.promptResearchGoal,jdbcType=VARCHAR},
prompt_research_content = #{record.promptResearchContent,jdbcType=VARCHAR},
prompt_research_plan = #{record.promptResearchPlan,jdbcType=VARCHAR},
prompt_expected_results = #{record.promptExpectedResults,jdbcType=VARCHAR},
del_flag = #{record.delFlag,jdbcType=TINYINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.KtConfig">
update kt_config
<set>
<if test="researchGoal != null">
research_goal = #{researchGoal,jdbcType=INTEGER},
</if>
<if test="researchContent != null">
research_content = #{researchContent,jdbcType=INTEGER},
</if>
<if test="researchPlan != null">
research_plan = #{researchPlan,jdbcType=INTEGER},
</if>
<if test="expectedResults != null">
expected_results = #{expectedResults,jdbcType=INTEGER},
</if>
<if test="promptResearchGoal != null">
prompt_research_goal = #{promptResearchGoal,jdbcType=VARCHAR},
</if>
<if test="promptResearchContent != null">
prompt_research_content = #{promptResearchContent,jdbcType=VARCHAR},
</if>
<if test="promptResearchPlan != null">
prompt_research_plan = #{promptResearchPlan,jdbcType=VARCHAR},
</if>
<if test="promptExpectedResults != null">
prompt_expected_results = #{promptExpectedResults,jdbcType=VARCHAR},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=TINYINT},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.KtConfig">
update kt_config
set research_goal = #{researchGoal,jdbcType=INTEGER},
research_content = #{researchContent,jdbcType=INTEGER},
research_plan = #{researchPlan,jdbcType=INTEGER},
expected_results = #{expectedResults,jdbcType=INTEGER},
prompt_research_goal = #{promptResearchGoal,jdbcType=VARCHAR},
prompt_research_content = #{promptResearchContent,jdbcType=VARCHAR},
prompt_research_plan = #{promptResearchPlan,jdbcType=VARCHAR},
prompt_expected_results = #{promptExpectedResults,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=TINYINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

352
research-system/src/main/resources/mapper/system/KtExpectedOutcomesMapper.xml

@ -0,0 +1,352 @@
<?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.research.system.persist.mapper.KtExpectedOutcomesMapper">
<resultMap id="BaseResultMap" type="com.research.system.domain.po.KtExpectedOutcomes">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="kt_group_id" jdbcType="BIGINT" property="ktGroupId" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.research.system.domain.po.KtExpectedOutcomes">
<result column="outcomes" jdbcType="LONGVARCHAR" property="outcomes" />
</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, kt_group_id, sort, status, del_flag, create_by, create_time, update_by, update_time,
remark
</sql>
<sql id="Blob_Column_List">
outcomes
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.research.system.domain.po.KtExpectedOutcomesExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from kt_expected_outcomes
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.research.system.domain.po.KtExpectedOutcomesExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from kt_expected_outcomes
<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="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from kt_expected_outcomes
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from kt_expected_outcomes
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.research.system.domain.po.KtExpectedOutcomes">
insert into kt_expected_outcomes (id, kt_group_id, sort,
status, del_flag, create_by,
create_time, update_by, update_time,
remark, outcomes)
values (#{id,jdbcType=BIGINT}, #{ktGroupId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER},
#{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR}, #{outcomes,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtExpectedOutcomes">
insert into kt_expected_outcomes
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ktGroupId != null">
kt_group_id,
</if>
<if test="sort != null">
sort,
</if>
<if test="status != null">
status,
</if>
<if test="delFlag != null">
del_flag,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="remark != null">
remark,
</if>
<if test="outcomes != null">
outcomes,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="ktGroupId != null">
#{ktGroupId,jdbcType=BIGINT},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=TINYINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="outcomes != null">
#{outcomes,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.research.system.domain.po.KtExpectedOutcomesExample" resultType="java.lang.Long">
select count(*) from kt_expected_outcomes
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update kt_expected_outcomes
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.ktGroupId != null">
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.delFlag != null">
del_flag = #{record.delFlag,jdbcType=TINYINT},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.outcomes != null">
outcomes = #{record.outcomes,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update kt_expected_outcomes
set id = #{record.id,jdbcType=BIGINT},
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
sort = #{record.sort,jdbcType=INTEGER},
status = #{record.status,jdbcType=TINYINT},
del_flag = #{record.delFlag,jdbcType=TINYINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
outcomes = #{record.outcomes,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update kt_expected_outcomes
set id = #{record.id,jdbcType=BIGINT},
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
sort = #{record.sort,jdbcType=INTEGER},
status = #{record.status,jdbcType=TINYINT},
del_flag = #{record.delFlag,jdbcType=TINYINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.KtExpectedOutcomes">
update kt_expected_outcomes
<set>
<if test="ktGroupId != null">
kt_group_id = #{ktGroupId,jdbcType=BIGINT},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=TINYINT},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="outcomes != null">
outcomes = #{outcomes,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.research.system.domain.po.KtExpectedOutcomes">
update kt_expected_outcomes
set kt_group_id = #{ktGroupId,jdbcType=BIGINT},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT},
del_flag = #{delFlag,jdbcType=TINYINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
outcomes = #{outcomes,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.KtExpectedOutcomes">
update kt_expected_outcomes
set kt_group_id = #{ktGroupId,jdbcType=BIGINT},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT},
del_flag = #{delFlag,jdbcType=TINYINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

352
research-system/src/main/resources/mapper/system/KtResearchContentMapper.xml

@ -0,0 +1,352 @@
<?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.research.system.persist.mapper.KtResearchContentMapper">
<resultMap id="BaseResultMap" type="com.research.system.domain.po.KtResearchContent">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="kt_group_id" jdbcType="BIGINT" property="ktGroupId" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.research.system.domain.po.KtResearchContent">
<result column="content" jdbcType="LONGVARCHAR" property="content" />
</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, kt_group_id, sort, status, del_flag, create_by, create_time, update_by, update_time,
remark
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.research.system.domain.po.KtResearchContentExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from kt_research_content
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.research.system.domain.po.KtResearchContentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from kt_research_content
<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="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from kt_research_content
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from kt_research_content
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.research.system.domain.po.KtResearchContent">
insert into kt_research_content (id, kt_group_id, sort,
status, del_flag, create_by,
create_time, update_by, update_time,
remark, content)
values (#{id,jdbcType=BIGINT}, #{ktGroupId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER},
#{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtResearchContent">
insert into kt_research_content
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ktGroupId != null">
kt_group_id,
</if>
<if test="sort != null">
sort,
</if>
<if test="status != null">
status,
</if>
<if test="delFlag != null">
del_flag,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="remark != null">
remark,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="ktGroupId != null">
#{ktGroupId,jdbcType=BIGINT},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=TINYINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.research.system.domain.po.KtResearchContentExample" resultType="java.lang.Long">
select count(*) from kt_research_content
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update kt_research_content
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.ktGroupId != null">
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.delFlag != null">
del_flag = #{record.delFlag,jdbcType=TINYINT},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update kt_research_content
set id = #{record.id,jdbcType=BIGINT},
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
sort = #{record.sort,jdbcType=INTEGER},
status = #{record.status,jdbcType=TINYINT},
del_flag = #{record.delFlag,jdbcType=TINYINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
content = #{record.content,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update kt_research_content
set id = #{record.id,jdbcType=BIGINT},
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
sort = #{record.sort,jdbcType=INTEGER},
status = #{record.status,jdbcType=TINYINT},
del_flag = #{record.delFlag,jdbcType=TINYINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.KtResearchContent">
update kt_research_content
<set>
<if test="ktGroupId != null">
kt_group_id = #{ktGroupId,jdbcType=BIGINT},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=TINYINT},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.research.system.domain.po.KtResearchContent">
update kt_research_content
set kt_group_id = #{ktGroupId,jdbcType=BIGINT},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT},
del_flag = #{delFlag,jdbcType=TINYINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.KtResearchContent">
update kt_research_content
set kt_group_id = #{ktGroupId,jdbcType=BIGINT},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT},
del_flag = #{delFlag,jdbcType=TINYINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

149
research-system/src/main/resources/mapper/system/KtsKtGroupMapper.xml

@ -18,6 +18,12 @@
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="plan_status" jdbcType="TINYINT" property="planStatus" />
<result column="develop_status" jdbcType="TINYINT" property="developStatus" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.research.system.domain.po.KtsKtGroupWithBLOBs">
<result column="target" jdbcType="LONGVARCHAR" property="target" />
<result column="plan" jdbcType="LONGVARCHAR" property="plan" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -79,8 +85,28 @@
</sql>
<sql id="Base_Column_List">
id, proj_id, proj_org_id, parent_kt_id, kt_group_name, sort, intro, kt_group_status,
del_flag, create_by, create_time, update_by, update_time, remark, name, phone
del_flag, create_by, create_time, update_by, update_time, remark, name, phone, plan_status,
develop_status
</sql>
<sql id="Blob_Column_List">
target, plan
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.research.system.domain.po.KtsKtGroupExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from kts_kt_group
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.research.system.domain.po.KtsKtGroupExample" resultMap="BaseResultMap">
select
<if test="distinct">
@ -95,9 +121,11 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from kts_kt_group
where id = #{id,jdbcType=BIGINT}
</select>
@ -105,21 +133,23 @@
delete from kts_kt_group
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.research.system.domain.po.KtsKtGroup">
<insert id="insert" parameterType="com.research.system.domain.po.KtsKtGroupWithBLOBs">
insert into kts_kt_group (id, proj_id, proj_org_id,
parent_kt_id, kt_group_name, sort,
intro, kt_group_status, del_flag,
create_by, create_time, update_by,
update_time, remark, name,
phone)
phone, plan_status, develop_status,
target, plan)
values (#{id,jdbcType=BIGINT}, #{projId,jdbcType=BIGINT}, #{projOrgId,jdbcType=BIGINT},
#{parentKtId,jdbcType=BIGINT}, #{ktGroupName,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{intro,jdbcType=VARCHAR}, #{ktGroupStatus,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR})
#{phone,jdbcType=VARCHAR}, #{planStatus,jdbcType=TINYINT}, #{developStatus,jdbcType=TINYINT},
#{target,jdbcType=LONGVARCHAR}, #{plan,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtsKtGroup">
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtsKtGroupWithBLOBs">
insert into kts_kt_group
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -170,6 +200,18 @@
<if test="phone != null">
phone,
</if>
<if test="planStatus != null">
plan_status,
</if>
<if test="developStatus != null">
develop_status,
</if>
<if test="target != null">
target,
</if>
<if test="plan != null">
plan,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -220,6 +262,18 @@
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="planStatus != null">
#{planStatus,jdbcType=TINYINT},
</if>
<if test="developStatus != null">
#{developStatus,jdbcType=TINYINT},
</if>
<if test="target != null">
#{target,jdbcType=LONGVARCHAR},
</if>
<if test="plan != null">
#{plan,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.research.system.domain.po.KtsKtGroupExample" resultType="java.lang.Long">
@ -279,11 +333,49 @@
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.planStatus != null">
plan_status = #{record.planStatus,jdbcType=TINYINT},
</if>
<if test="record.developStatus != null">
develop_status = #{record.developStatus,jdbcType=TINYINT},
</if>
<if test="record.target != null">
target = #{record.target,jdbcType=LONGVARCHAR},
</if>
<if test="record.plan != null">
plan = #{record.plan,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update kts_kt_group
set id = #{record.id,jdbcType=BIGINT},
proj_id = #{record.projId,jdbcType=BIGINT},
proj_org_id = #{record.projOrgId,jdbcType=BIGINT},
parent_kt_id = #{record.parentKtId,jdbcType=BIGINT},
kt_group_name = #{record.ktGroupName,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
intro = #{record.intro,jdbcType=VARCHAR},
kt_group_status = #{record.ktGroupStatus,jdbcType=TINYINT},
del_flag = #{record.delFlag,jdbcType=TINYINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
plan_status = #{record.planStatus,jdbcType=TINYINT},
develop_status = #{record.developStatus,jdbcType=TINYINT},
target = #{record.target,jdbcType=LONGVARCHAR},
plan = #{record.plan,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update kts_kt_group
set id = #{record.id,jdbcType=BIGINT},
@ -301,12 +393,14 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR}
phone = #{record.phone,jdbcType=VARCHAR},
plan_status = #{record.planStatus,jdbcType=TINYINT},
develop_status = #{record.developStatus,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.KtsKtGroup">
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.KtsKtGroupWithBLOBs">
update kts_kt_group
<set>
<if test="projId != null">
@ -354,9 +448,44 @@
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="planStatus != null">
plan_status = #{planStatus,jdbcType=TINYINT},
</if>
<if test="developStatus != null">
develop_status = #{developStatus,jdbcType=TINYINT},
</if>
<if test="target != null">
target = #{target,jdbcType=LONGVARCHAR},
</if>
<if test="plan != null">
plan = #{plan,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.research.system.domain.po.KtsKtGroupWithBLOBs">
update kts_kt_group
set proj_id = #{projId,jdbcType=BIGINT},
proj_org_id = #{projOrgId,jdbcType=BIGINT},
parent_kt_id = #{parentKtId,jdbcType=BIGINT},
kt_group_name = #{ktGroupName,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
intro = #{intro,jdbcType=VARCHAR},
kt_group_status = #{ktGroupStatus,jdbcType=TINYINT},
del_flag = #{delFlag,jdbcType=TINYINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
plan_status = #{planStatus,jdbcType=TINYINT},
develop_status = #{developStatus,jdbcType=TINYINT},
target = #{target,jdbcType=LONGVARCHAR},
plan = #{plan,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.KtsKtGroup">
update kts_kt_group
set proj_id = #{projId,jdbcType=BIGINT},
@ -373,7 +502,9 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR}
phone = #{phone,jdbcType=VARCHAR},
plan_status = #{planStatus,jdbcType=TINYINT},
develop_status = #{developStatus,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
Loading…
Cancel
Save