17 changed files with 3629 additions and 7 deletions
@ -0,0 +1,72 @@ |
|||
package com.research.web.controller.client.res; |
|||
|
|||
import com.github.pagehelper.PageHelper; |
|||
import com.github.pagehelper.PageInfo; |
|||
import com.research.common.core.domain.BaseDto; |
|||
import com.research.common.core.domain.JsonResponse; |
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ResResearchIntegrityDto; |
|||
import com.research.system.domain.vo.ResResearchIntegrityVo; |
|||
import com.research.system.service.ResResearchIntegrityService; |
|||
import io.swagger.annotations.Api; |
|||
import liquibase.pro.packaged.J; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import javax.annotation.Resource; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.web.controller.client.res |
|||
* @Date 2025/8/16 17:24 |
|||
* @description: |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "科研诚信承诺") |
|||
@RestController |
|||
@RequestMapping("/commitmentLetter") |
|||
public class ResResearchIntegrityController { |
|||
@Resource |
|||
private ResResearchIntegrityService resResearchIntegrityService; |
|||
|
|||
@PostMapping("/query") |
|||
public JsonResponse<PageInfo<ResResearchIntegrityVo.Result>> query(@RequestBody @Validated BaseDto<ResResearchIntegrityDto.Query> dto){ |
|||
if (dto.getPageNum() > 0) { |
|||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(resResearchIntegrityService.query(dto.getParam()))); |
|||
} |
|||
|
|||
@PostMapping("/add") |
|||
public JsonResponse<Integer> add(@RequestBody @Validated ResResearchIntegrityDto.Add dto){ |
|||
return JsonResponse.ok(resResearchIntegrityService.add(dto)); |
|||
} |
|||
|
|||
@PostMapping("/del") |
|||
public JsonResponse<Integer> del(@RequestBody @Validated CommonDto.DelDto dto){ |
|||
return JsonResponse.ok(resResearchIntegrityService.del(dto)); |
|||
} |
|||
|
|||
@PostMapping("/template/query") |
|||
public JsonResponse<PageInfo<ResResearchIntegrityVo.TemplateResult>> queryTemplate(@RequestBody @Validated BaseDto<ResResearchIntegrityDto.TemplateQuery> dto){ |
|||
if (dto.getPageNum() > 0) { |
|||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(resResearchIntegrityService.queryTemplate(dto.getParam()))); |
|||
} |
|||
|
|||
@PostMapping("/template/add") |
|||
public JsonResponse<Integer> addTemplate(@RequestBody @Validated ResResearchIntegrityDto.TemplateAdd dto){ |
|||
return JsonResponse.ok(resResearchIntegrityService.addTemplate(dto)); |
|||
} |
|||
|
|||
@PostMapping("/template/del") |
|||
public JsonResponse<Integer> delTemplate(@RequestBody @Validated CommonDto.DelDto dto){ |
|||
return JsonResponse.ok(resResearchIntegrityService.delTemplate(dto)); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,71 @@ |
|||
package com.research.system.domain.dto; |
|||
|
|||
import com.research.system.domain.po.ResResearchIntegrity; |
|||
import com.research.system.domain.po.ResResearchIntegrityTemplate; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/16 17:24 |
|||
* @description: |
|||
*/ |
|||
public class ResResearchIntegrityDto { |
|||
@Data |
|||
public static class Query { |
|||
private String title; |
|||
private Byte status; |
|||
private String version; |
|||
} |
|||
|
|||
@Data |
|||
public static class Add { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private Long tplId; |
|||
|
|||
private Byte category; |
|||
|
|||
private Long businessId; |
|||
|
|||
private String title; |
|||
|
|||
private String signUsername; |
|||
|
|||
private String signTime; |
|||
|
|||
private String tplDownloadUrl; |
|||
} |
|||
|
|||
@Data |
|||
public static class TemplateQuery{ |
|||
private Long projId; |
|||
|
|||
private String title; |
|||
|
|||
private String version; |
|||
|
|||
private Byte status; |
|||
} |
|||
|
|||
@Data |
|||
public static class TemplateAdd{ |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private String title; |
|||
|
|||
private String version; |
|||
|
|||
private String tplDownloadUrl; |
|||
|
|||
private Byte status; |
|||
} |
|||
} |
@ -0,0 +1,194 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ResResearchIntegrity implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private Long tplId; |
|||
|
|||
private Byte category; |
|||
|
|||
private Long businessId; |
|||
|
|||
private String title; |
|||
|
|||
private String signUsername; |
|||
|
|||
private String signTime; |
|||
|
|||
private String tplDownloadUrl; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjId() { |
|||
return projId; |
|||
} |
|||
|
|||
public void setProjId(Long projId) { |
|||
this.projId = projId; |
|||
} |
|||
|
|||
public Long getProjOrgId() { |
|||
return projOrgId; |
|||
} |
|||
|
|||
public void setProjOrgId(Long projOrgId) { |
|||
this.projOrgId = projOrgId; |
|||
} |
|||
|
|||
public Long getKtGroupId() { |
|||
return ktGroupId; |
|||
} |
|||
|
|||
public void setKtGroupId(Long ktGroupId) { |
|||
this.ktGroupId = ktGroupId; |
|||
} |
|||
|
|||
public Long getTplId() { |
|||
return tplId; |
|||
} |
|||
|
|||
public void setTplId(Long tplId) { |
|||
this.tplId = tplId; |
|||
} |
|||
|
|||
public Byte getCategory() { |
|||
return category; |
|||
} |
|||
|
|||
public void setCategory(Byte category) { |
|||
this.category = category; |
|||
} |
|||
|
|||
public Long getBusinessId() { |
|||
return businessId; |
|||
} |
|||
|
|||
public void setBusinessId(Long businessId) { |
|||
this.businessId = businessId; |
|||
} |
|||
|
|||
public String getTitle() { |
|||
return title; |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
this.title = title == null ? null : title.trim(); |
|||
} |
|||
|
|||
public String getSignUsername() { |
|||
return signUsername; |
|||
} |
|||
|
|||
public void setSignUsername(String signUsername) { |
|||
this.signUsername = signUsername == null ? null : signUsername.trim(); |
|||
} |
|||
|
|||
public String getSignTime() { |
|||
return signTime; |
|||
} |
|||
|
|||
public void setSignTime(String signTime) { |
|||
this.signTime = signTime == null ? null : signTime.trim(); |
|||
} |
|||
|
|||
public String getTplDownloadUrl() { |
|||
return tplDownloadUrl; |
|||
} |
|||
|
|||
public void setTplDownloadUrl(String tplDownloadUrl) { |
|||
this.tplDownloadUrl = tplDownloadUrl == null ? null : tplDownloadUrl.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; |
|||
} |
|||
|
|||
@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(", projId=").append(projId); |
|||
sb.append(", projOrgId=").append(projOrgId); |
|||
sb.append(", ktGroupId=").append(ktGroupId); |
|||
sb.append(", tplId=").append(tplId); |
|||
sb.append(", category=").append(category); |
|||
sb.append(", businessId=").append(businessId); |
|||
sb.append(", title=").append(title); |
|||
sb.append(", signUsername=").append(signUsername); |
|||
sb.append(", signTime=").append(signTime); |
|||
sb.append(", tplDownloadUrl=").append(tplDownloadUrl); |
|||
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("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,139 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ResResearchIntegrityTemplate implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private String title; |
|||
|
|||
private String version; |
|||
|
|||
private String tplDownloadUrl; |
|||
|
|||
private Byte status; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjId() { |
|||
return projId; |
|||
} |
|||
|
|||
public void setProjId(Long projId) { |
|||
this.projId = projId; |
|||
} |
|||
|
|||
public String getTitle() { |
|||
return title; |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
this.title = title == null ? null : title.trim(); |
|||
} |
|||
|
|||
public String getVersion() { |
|||
return version; |
|||
} |
|||
|
|||
public void setVersion(String version) { |
|||
this.version = version == null ? null : version.trim(); |
|||
} |
|||
|
|||
public String getTplDownloadUrl() { |
|||
return tplDownloadUrl; |
|||
} |
|||
|
|||
public void setTplDownloadUrl(String tplDownloadUrl) { |
|||
this.tplDownloadUrl = tplDownloadUrl == null ? null : tplDownloadUrl.trim(); |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
@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(", projId=").append(projId); |
|||
sb.append(", title=").append(title); |
|||
sb.append(", version=").append(version); |
|||
sb.append(", tplDownloadUrl=").append(tplDownloadUrl); |
|||
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("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,911 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ResResearchIntegrityTemplateExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ResResearchIntegrityTemplateExample() { |
|||
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 andProjIdIsNull() { |
|||
addCriterion("proj_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdIsNotNull() { |
|||
addCriterion("proj_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdEqualTo(Long value) { |
|||
addCriterion("proj_id =", value, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdNotEqualTo(Long value) { |
|||
addCriterion("proj_id <>", value, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdGreaterThan(Long value) { |
|||
addCriterion("proj_id >", value, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("proj_id >=", value, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdLessThan(Long value) { |
|||
addCriterion("proj_id <", value, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("proj_id <=", value, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdIn(List<Long> values) { |
|||
addCriterion("proj_id in", values, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdNotIn(List<Long> values) { |
|||
addCriterion("proj_id not in", values, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdBetween(Long value1, Long value2) { |
|||
addCriterion("proj_id between", value1, value2, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("proj_id not between", value1, value2, "projId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleIsNull() { |
|||
addCriterion("title is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleIsNotNull() { |
|||
addCriterion("title is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleEqualTo(String value) { |
|||
addCriterion("title =", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotEqualTo(String value) { |
|||
addCriterion("title <>", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleGreaterThan(String value) { |
|||
addCriterion("title >", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleGreaterThanOrEqualTo(String value) { |
|||
addCriterion("title >=", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleLessThan(String value) { |
|||
addCriterion("title <", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleLessThanOrEqualTo(String value) { |
|||
addCriterion("title <=", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleLike(String value) { |
|||
addCriterion("title like", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotLike(String value) { |
|||
addCriterion("title not like", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleIn(List<String> values) { |
|||
addCriterion("title in", values, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotIn(List<String> values) { |
|||
addCriterion("title not in", values, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleBetween(String value1, String value2) { |
|||
addCriterion("title between", value1, value2, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotBetween(String value1, String value2) { |
|||
addCriterion("title not between", value1, value2, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionIsNull() { |
|||
addCriterion("version is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionIsNotNull() { |
|||
addCriterion("version is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionEqualTo(String value) { |
|||
addCriterion("version =", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionNotEqualTo(String value) { |
|||
addCriterion("version <>", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionGreaterThan(String value) { |
|||
addCriterion("version >", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("version >=", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionLessThan(String value) { |
|||
addCriterion("version <", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionLessThanOrEqualTo(String value) { |
|||
addCriterion("version <=", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionLike(String value) { |
|||
addCriterion("version like", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionNotLike(String value) { |
|||
addCriterion("version not like", value, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionIn(List<String> values) { |
|||
addCriterion("version in", values, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionNotIn(List<String> values) { |
|||
addCriterion("version not in", values, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionBetween(String value1, String value2) { |
|||
addCriterion("version between", value1, value2, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andVersionNotBetween(String value1, String value2) { |
|||
addCriterion("version not between", value1, value2, "version"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlIsNull() { |
|||
addCriterion("tpl_download_url is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlIsNotNull() { |
|||
addCriterion("tpl_download_url is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlEqualTo(String value) { |
|||
addCriterion("tpl_download_url =", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlNotEqualTo(String value) { |
|||
addCriterion("tpl_download_url <>", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlGreaterThan(String value) { |
|||
addCriterion("tpl_download_url >", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlGreaterThanOrEqualTo(String value) { |
|||
addCriterion("tpl_download_url >=", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlLessThan(String value) { |
|||
addCriterion("tpl_download_url <", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlLessThanOrEqualTo(String value) { |
|||
addCriterion("tpl_download_url <=", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlLike(String value) { |
|||
addCriterion("tpl_download_url like", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlNotLike(String value) { |
|||
addCriterion("tpl_download_url not like", value, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlIn(List<String> values) { |
|||
addCriterion("tpl_download_url in", values, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlNotIn(List<String> values) { |
|||
addCriterion("tpl_download_url not in", values, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlBetween(String value1, String value2) { |
|||
addCriterion("tpl_download_url between", value1, value2, "tplDownloadUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTplDownloadUrlNotBetween(String value1, String value2) { |
|||
addCriterion("tpl_download_url not between", value1, value2, "tplDownloadUrl"); |
|||
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 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); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.research.system.domain.vo; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/16 17:24 |
|||
* @description: |
|||
*/ |
|||
public class ResResearchIntegrityVo { |
|||
|
|||
@Data |
|||
public static class Result { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private Long tplId; |
|||
|
|||
private Byte category; |
|||
|
|||
private Long businessId; |
|||
|
|||
private String title; |
|||
|
|||
private String signUsername; |
|||
|
|||
private String signTime; |
|||
|
|||
private String tplDownloadUrl; |
|||
} |
|||
|
|||
@Data |
|||
public static class TemplateResult{ |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private String title; |
|||
|
|||
private String version; |
|||
|
|||
private String tplDownloadUrl; |
|||
|
|||
private Byte status; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.research.system.persist.dao; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ResResearchIntegrityDto; |
|||
import com.research.system.domain.vo.ResResearchIntegrityVo; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.persist.dao |
|||
* @Date 2025/8/16 17:49 |
|||
* @description: |
|||
*/ |
|||
public interface ResResearchIntegrityDao { |
|||
|
|||
List<ResResearchIntegrityVo.Result> query(@Param("dto") ResResearchIntegrityDto.Query dto, @Param("projId") Long projId); |
|||
|
|||
List<ResResearchIntegrityVo.TemplateResult> queryTemplate(@Param("dto") ResResearchIntegrityDto.TemplateQuery dto, @Param("projId") Long projId); |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ResResearchIntegrity; |
|||
import com.research.system.domain.po.ResResearchIntegrityExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ResResearchIntegrityMapper { |
|||
long countByExample(ResResearchIntegrityExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ResResearchIntegrity record); |
|||
|
|||
int insertSelective(ResResearchIntegrity record); |
|||
|
|||
List<ResResearchIntegrity> selectByExample(ResResearchIntegrityExample example); |
|||
|
|||
ResResearchIntegrity selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ResResearchIntegrity record, @Param("example") ResResearchIntegrityExample example); |
|||
|
|||
int updateByExample(@Param("record") ResResearchIntegrity record, @Param("example") ResResearchIntegrityExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ResResearchIntegrity record); |
|||
|
|||
int updateByPrimaryKey(ResResearchIntegrity record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ResResearchIntegrityTemplate; |
|||
import com.research.system.domain.po.ResResearchIntegrityTemplateExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ResResearchIntegrityTemplateMapper { |
|||
long countByExample(ResResearchIntegrityTemplateExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ResResearchIntegrityTemplate record); |
|||
|
|||
int insertSelective(ResResearchIntegrityTemplate record); |
|||
|
|||
List<ResResearchIntegrityTemplate> selectByExample(ResResearchIntegrityTemplateExample example); |
|||
|
|||
ResResearchIntegrityTemplate selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ResResearchIntegrityTemplate record, @Param("example") ResResearchIntegrityTemplateExample example); |
|||
|
|||
int updateByExample(@Param("record") ResResearchIntegrityTemplate record, @Param("example") ResResearchIntegrityTemplateExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ResResearchIntegrityTemplate record); |
|||
|
|||
int updateByPrimaryKey(ResResearchIntegrityTemplate record); |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.research.system.service; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ResResearchIntegrityDto; |
|||
import com.research.system.domain.vo.ResResearchIntegrityVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/8/16 17:40 |
|||
* @description: |
|||
*/ |
|||
public interface ResResearchIntegrityService { |
|||
|
|||
List<ResResearchIntegrityVo.Result> query(ResResearchIntegrityDto.Query dto); |
|||
|
|||
Integer add(ResResearchIntegrityDto.Add dto); |
|||
|
|||
Integer del(CommonDto.DelDto dto); |
|||
|
|||
List<ResResearchIntegrityVo.TemplateResult> queryTemplate(ResResearchIntegrityDto.TemplateQuery dto); |
|||
|
|||
Integer addTemplate(ResResearchIntegrityDto.TemplateAdd dto); |
|||
|
|||
Integer delTemplate(CommonDto.DelDto dto); |
|||
|
|||
} |
@ -0,0 +1,115 @@ |
|||
package com.research.system.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.util.IdUtil; |
|||
import com.research.common.exception.base.BaseException; |
|||
import com.research.common.utils.SecurityUtils; |
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ResResearchIntegrityDto; |
|||
import com.research.system.domain.po.*; |
|||
import com.research.system.domain.vo.ResResearchIntegrityVo; |
|||
import com.research.system.persist.dao.ResResearchIntegrityDao; |
|||
import com.research.system.persist.mapper.ResResearchIntegrityMapper; |
|||
import com.research.system.persist.mapper.ResResearchIntegrityTemplateMapper; |
|||
import com.research.system.service.ClientPrjProjInfoService; |
|||
import com.research.system.service.ResResearchIntegrityService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service.impl |
|||
* @Date 2025/8/16 17:44 |
|||
* @description: |
|||
*/ |
|||
@Service |
|||
public class ResResearchIntegrityServiceImpl implements ResResearchIntegrityService { |
|||
|
|||
@Resource |
|||
private ResResearchIntegrityMapper resResearchIntegrityMapper; |
|||
@Resource |
|||
private ResResearchIntegrityTemplateMapper resResearchIntegrityTemplateMapper; |
|||
@Resource |
|||
private ClientPrjProjInfoService clientPrjProjInfoService; |
|||
@Resource |
|||
private ResResearchIntegrityDao resResearchIntegrityDao; |
|||
|
|||
@Override |
|||
public List<ResResearchIntegrityVo.Result> query(ResResearchIntegrityDto.Query dto) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new BaseException("未查询到项目"); |
|||
} |
|||
return resResearchIntegrityDao.query(dto, proInfoByTenantId.getId()); |
|||
} |
|||
|
|||
@Override |
|||
public Integer add(ResResearchIntegrityDto.Add dto) { |
|||
ResResearchIntegrity resResearchIntegrity = BeanUtil.copyProperties(dto, ResResearchIntegrity.class); |
|||
if (dto.getId() == null) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new BaseException("未查询到项目"); |
|||
} |
|||
resResearchIntegrity.setId(IdUtil.getSnowflakeNextId()); |
|||
resResearchIntegrity.setProjId(proInfoByTenantId.getId()); |
|||
resResearchIntegrity.setCreateBy(SecurityUtils.getUsername()); |
|||
resResearchIntegrity.setCreateTime(new Date()); |
|||
return resResearchIntegrityMapper.insertSelective(resResearchIntegrity); |
|||
}else { |
|||
resResearchIntegrity.setUpdateBy(SecurityUtils.getUsername()); |
|||
resResearchIntegrity.setUpdateTime(new Date()); |
|||
return resResearchIntegrityMapper.updateByPrimaryKeySelective(resResearchIntegrity); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public Integer del(CommonDto.DelDto dto) { |
|||
ResResearchIntegrity resResearchIntegrity = new ResResearchIntegrity(); |
|||
resResearchIntegrity.setDelFlag((byte) 1); |
|||
ResResearchIntegrityExample resResearchIntegrityExample = new ResResearchIntegrityExample(); |
|||
resResearchIntegrityExample.createCriteria().andIdIn(dto.getIdList()); |
|||
return resResearchIntegrityMapper.updateByExampleSelective(resResearchIntegrity, resResearchIntegrityExample); |
|||
} |
|||
|
|||
@Override |
|||
public List<ResResearchIntegrityVo.TemplateResult> queryTemplate(ResResearchIntegrityDto.TemplateQuery dto) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new BaseException("未查询到项目"); |
|||
} |
|||
return resResearchIntegrityDao.queryTemplate(dto, proInfoByTenantId.getId()); |
|||
} |
|||
|
|||
@Override |
|||
public Integer addTemplate(ResResearchIntegrityDto.TemplateAdd dto) { |
|||
ResResearchIntegrityTemplate resResearchIntegrity = BeanUtil.copyProperties(dto, ResResearchIntegrityTemplate.class); |
|||
if (dto.getId() == null) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new BaseException("未查询到项目"); |
|||
} |
|||
resResearchIntegrity.setId(IdUtil.getSnowflakeNextId()); |
|||
resResearchIntegrity.setProjId(proInfoByTenantId.getId()); |
|||
resResearchIntegrity.setCreateBy(SecurityUtils.getUsername()); |
|||
resResearchIntegrity.setCreateTime(new Date()); |
|||
return resResearchIntegrityTemplateMapper.insertSelective(resResearchIntegrity); |
|||
}else { |
|||
resResearchIntegrity.setUpdateBy(SecurityUtils.getUsername()); |
|||
resResearchIntegrity.setUpdateTime(new Date()); |
|||
return resResearchIntegrityTemplateMapper.updateByPrimaryKeySelective(resResearchIntegrity); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public Integer delTemplate(CommonDto.DelDto dto) { |
|||
ResResearchIntegrityTemplate resResearchIntegrity = new ResResearchIntegrityTemplate(); |
|||
resResearchIntegrity.setDelFlag((byte) 1); |
|||
ResResearchIntegrityTemplateExample resResearchIntegrityExample = new ResResearchIntegrityTemplateExample(); |
|||
resResearchIntegrityExample.createCriteria().andIdIn(dto.getIdList()); |
|||
return resResearchIntegrityTemplateMapper.updateByExampleSelective(resResearchIntegrity, resResearchIntegrityExample); |
|||
} |
|||
} |
@ -0,0 +1,56 @@ |
|||
<?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.dao.ResResearchIntegrityDao"> |
|||
|
|||
<select id="query" resultType="com.research.system.domain.vo.ResResearchIntegrityVo$Result"> |
|||
select |
|||
id, |
|||
proj_id as projId, |
|||
proj_org_id as projOrgId, |
|||
kt_group_id as ktGroupId, |
|||
tpl_id as tplId, |
|||
category, |
|||
business_id as businessId, |
|||
title, |
|||
sign_username as signUsername, |
|||
sign_time as signTime, |
|||
tpl_download_url as tplDownloadUrl |
|||
from |
|||
res_research_integrity |
|||
where |
|||
del_flag = 0 |
|||
<if test="projId != null"> |
|||
and proj_id = #{projId} |
|||
</if> |
|||
<if test="dto.title != null and dto.title != ''"> |
|||
and title like concat('%',#{dto.title},'%') |
|||
</if> |
|||
</select> |
|||
|
|||
<select id="queryTemplate" resultType="com.research.system.domain.vo.ResResearchIntegrityVo$TemplateResult"> |
|||
select |
|||
id, |
|||
proj_id as projId, |
|||
title, |
|||
version, |
|||
tpl_download_url as tplDownloadUrl, |
|||
status, |
|||
create_by as createBy, |
|||
create_time as createTime |
|||
from |
|||
res_research_integrity_template |
|||
where |
|||
del_flag = 0 |
|||
<if test="projId != null"> |
|||
and proj_id = #{projId} |
|||
</if> |
|||
<if test="dto.title != null and dto.title != ''"> |
|||
and title like concat('%',#{dto.title},'%') |
|||
</if> |
|||
<if test="dto.version != null and dto.version != ''"> |
|||
and version like concat('%',#{dto.version},'%') |
|||
</if> |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,379 @@ |
|||
<?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.ResResearchIntegrityMapper"> |
|||
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ResResearchIntegrity"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="proj_id" jdbcType="BIGINT" property="projId" /> |
|||
<result column="proj_org_id" jdbcType="BIGINT" property="projOrgId" /> |
|||
<result column="kt_group_id" jdbcType="BIGINT" property="ktGroupId" /> |
|||
<result column="tpl_id" jdbcType="BIGINT" property="tplId" /> |
|||
<result column="category" jdbcType="TINYINT" property="category" /> |
|||
<result column="business_id" jdbcType="BIGINT" property="businessId" /> |
|||
<result column="title" jdbcType="VARCHAR" property="title" /> |
|||
<result column="sign_username" jdbcType="VARCHAR" property="signUsername" /> |
|||
<result column="sign_time" jdbcType="VARCHAR" property="signTime" /> |
|||
<result column="tpl_download_url" jdbcType="VARCHAR" property="tplDownloadUrl" /> |
|||
<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" /> |
|||
</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, proj_id, proj_org_id, kt_group_id, tpl_id, category, business_id, title, sign_username, |
|||
sign_time, tpl_download_url, del_flag, create_by, create_time, update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.research.system.domain.po.ResResearchIntegrityExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from res_research_integrity |
|||
<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 res_research_integrity |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from res_research_integrity |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.research.system.domain.po.ResResearchIntegrity"> |
|||
insert into res_research_integrity (id, proj_id, proj_org_id, |
|||
kt_group_id, tpl_id, category, |
|||
business_id, title, sign_username, |
|||
sign_time, tpl_download_url, del_flag, |
|||
create_by, create_time, update_by, |
|||
update_time) |
|||
values (#{id,jdbcType=BIGINT}, #{projId,jdbcType=BIGINT}, #{projOrgId,jdbcType=BIGINT}, |
|||
#{ktGroupId,jdbcType=BIGINT}, #{tplId,jdbcType=BIGINT}, #{category,jdbcType=TINYINT}, |
|||
#{businessId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{signUsername,jdbcType=VARCHAR}, |
|||
#{signTime,jdbcType=VARCHAR}, #{tplDownloadUrl,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.research.system.domain.po.ResResearchIntegrity"> |
|||
insert into res_research_integrity |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="projId != null"> |
|||
proj_id, |
|||
</if> |
|||
<if test="projOrgId != null"> |
|||
proj_org_id, |
|||
</if> |
|||
<if test="ktGroupId != null"> |
|||
kt_group_id, |
|||
</if> |
|||
<if test="tplId != null"> |
|||
tpl_id, |
|||
</if> |
|||
<if test="category != null"> |
|||
category, |
|||
</if> |
|||
<if test="businessId != null"> |
|||
business_id, |
|||
</if> |
|||
<if test="title != null"> |
|||
title, |
|||
</if> |
|||
<if test="signUsername != null"> |
|||
sign_username, |
|||
</if> |
|||
<if test="signTime != null"> |
|||
sign_time, |
|||
</if> |
|||
<if test="tplDownloadUrl != null"> |
|||
tpl_download_url, |
|||
</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> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projId != null"> |
|||
#{projId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projOrgId != null"> |
|||
#{projOrgId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ktGroupId != null"> |
|||
#{ktGroupId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="tplId != null"> |
|||
#{tplId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="category != null"> |
|||
#{category,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="businessId != null"> |
|||
#{businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="title != null"> |
|||
#{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="signUsername != null"> |
|||
#{signUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="signTime != null"> |
|||
#{signTime,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tplDownloadUrl != null"> |
|||
#{tplDownloadUrl,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> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.research.system.domain.po.ResResearchIntegrityExample" resultType="java.lang.Long"> |
|||
select count(*) from res_research_integrity |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update res_research_integrity |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projId != null"> |
|||
proj_id = #{record.projId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projOrgId != null"> |
|||
proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.ktGroupId != null"> |
|||
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.tplId != null"> |
|||
tpl_id = #{record.tplId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.category != null"> |
|||
category = #{record.category,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.businessId != null"> |
|||
business_id = #{record.businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.title != null"> |
|||
title = #{record.title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.signUsername != null"> |
|||
sign_username = #{record.signUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.signTime != null"> |
|||
sign_time = #{record.signTime,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tplDownloadUrl != null"> |
|||
tpl_download_url = #{record.tplDownloadUrl,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> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update res_research_integrity |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
proj_id = #{record.projId,jdbcType=BIGINT}, |
|||
proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, |
|||
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT}, |
|||
tpl_id = #{record.tplId,jdbcType=BIGINT}, |
|||
category = #{record.category,jdbcType=TINYINT}, |
|||
business_id = #{record.businessId,jdbcType=BIGINT}, |
|||
title = #{record.title,jdbcType=VARCHAR}, |
|||
sign_username = #{record.signUsername,jdbcType=VARCHAR}, |
|||
sign_time = #{record.signTime,jdbcType=VARCHAR}, |
|||
tpl_download_url = #{record.tplDownloadUrl,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.ResResearchIntegrity"> |
|||
update res_research_integrity |
|||
<set> |
|||
<if test="projId != null"> |
|||
proj_id = #{projId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projOrgId != null"> |
|||
proj_org_id = #{projOrgId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ktGroupId != null"> |
|||
kt_group_id = #{ktGroupId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="tplId != null"> |
|||
tpl_id = #{tplId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="category != null"> |
|||
category = #{category,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="businessId != null"> |
|||
business_id = #{businessId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="title != null"> |
|||
title = #{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="signUsername != null"> |
|||
sign_username = #{signUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="signTime != null"> |
|||
sign_time = #{signTime,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tplDownloadUrl != null"> |
|||
tpl_download_url = #{tplDownloadUrl,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> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.ResResearchIntegrity"> |
|||
update res_research_integrity |
|||
set proj_id = #{projId,jdbcType=BIGINT}, |
|||
proj_org_id = #{projOrgId,jdbcType=BIGINT}, |
|||
kt_group_id = #{ktGroupId,jdbcType=BIGINT}, |
|||
tpl_id = #{tplId,jdbcType=BIGINT}, |
|||
category = #{category,jdbcType=TINYINT}, |
|||
business_id = #{businessId,jdbcType=BIGINT}, |
|||
title = #{title,jdbcType=VARCHAR}, |
|||
sign_username = #{signUsername,jdbcType=VARCHAR}, |
|||
sign_time = #{signTime,jdbcType=VARCHAR}, |
|||
tpl_download_url = #{tplDownloadUrl,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} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,300 @@ |
|||
<?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.ResResearchIntegrityTemplateMapper"> |
|||
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ResResearchIntegrityTemplate"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="proj_id" jdbcType="BIGINT" property="projId" /> |
|||
<result column="title" jdbcType="VARCHAR" property="title" /> |
|||
<result column="version" jdbcType="VARCHAR" property="version" /> |
|||
<result column="tpl_download_url" jdbcType="VARCHAR" property="tplDownloadUrl" /> |
|||
<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" /> |
|||
</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, proj_id, title, version, tpl_download_url, status, del_flag, create_by, create_time, |
|||
update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.research.system.domain.po.ResResearchIntegrityTemplateExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from res_research_integrity_template |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from res_research_integrity_template |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from res_research_integrity_template |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.research.system.domain.po.ResResearchIntegrityTemplate"> |
|||
insert into res_research_integrity_template (id, proj_id, title, |
|||
version, tpl_download_url, status, |
|||
del_flag, create_by, create_time, |
|||
update_by, update_time) |
|||
values (#{id,jdbcType=BIGINT}, #{projId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, |
|||
#{version,jdbcType=VARCHAR}, #{tplDownloadUrl,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, |
|||
#{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.research.system.domain.po.ResResearchIntegrityTemplate"> |
|||
insert into res_research_integrity_template |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="projId != null"> |
|||
proj_id, |
|||
</if> |
|||
<if test="title != null"> |
|||
title, |
|||
</if> |
|||
<if test="version != null"> |
|||
version, |
|||
</if> |
|||
<if test="tplDownloadUrl != null"> |
|||
tpl_download_url, |
|||
</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> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projId != null"> |
|||
#{projId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="title != null"> |
|||
#{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="version != null"> |
|||
#{version,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tplDownloadUrl != null"> |
|||
#{tplDownloadUrl,jdbcType=VARCHAR}, |
|||
</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> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.research.system.domain.po.ResResearchIntegrityTemplateExample" resultType="java.lang.Long"> |
|||
select count(*) from res_research_integrity_template |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update res_research_integrity_template |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projId != null"> |
|||
proj_id = #{record.projId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.title != null"> |
|||
title = #{record.title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.version != null"> |
|||
version = #{record.version,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tplDownloadUrl != null"> |
|||
tpl_download_url = #{record.tplDownloadUrl,jdbcType=VARCHAR}, |
|||
</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> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update res_research_integrity_template |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
proj_id = #{record.projId,jdbcType=BIGINT}, |
|||
title = #{record.title,jdbcType=VARCHAR}, |
|||
version = #{record.version,jdbcType=VARCHAR}, |
|||
tpl_download_url = #{record.tplDownloadUrl,jdbcType=VARCHAR}, |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.ResResearchIntegrityTemplate"> |
|||
update res_research_integrity_template |
|||
<set> |
|||
<if test="projId != null"> |
|||
proj_id = #{projId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="title != null"> |
|||
title = #{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="version != null"> |
|||
version = #{version,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tplDownloadUrl != null"> |
|||
tpl_download_url = #{tplDownloadUrl,jdbcType=VARCHAR}, |
|||
</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> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.ResResearchIntegrityTemplate"> |
|||
update res_research_integrity_template |
|||
set proj_id = #{projId,jdbcType=BIGINT}, |
|||
title = #{title,jdbcType=VARCHAR}, |
|||
version = #{version,jdbcType=VARCHAR}, |
|||
tpl_download_url = #{tplDownloadUrl,jdbcType=VARCHAR}, |
|||
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} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue