119 changed files with 14336 additions and 158 deletions
@ -0,0 +1,68 @@ |
|||
package com.research.web.controller.client; |
|||
|
|||
import com.research.common.core.domain.JsonResponse; |
|||
import com.research.system.domain.vo.HomeVo; |
|||
import com.research.system.service.HomeService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.web.controller.client |
|||
* @Date 2025/8/21 13:57 |
|||
* @description: |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/home") |
|||
@Api(tags = "首页统计") |
|||
@Slf4j |
|||
public class HomeController { |
|||
|
|||
@Resource |
|||
private HomeService homeService; |
|||
|
|||
@ApiOperation(value = "查询项目统计") |
|||
@RequestMapping(value = "/queryHomeInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<HomeVo.Result> queryHomeInfo(){ |
|||
return JsonResponse.ok(homeService.queryHomeInfo()); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询课题统计") |
|||
@RequestMapping(value = "/queryGroupList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<HomeVo.GroupResult>> queryGroupList(){ |
|||
return JsonResponse.ok(homeService.queryGroupList()); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询任务统计") |
|||
@RequestMapping(value = "/queryTaskList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<HomeVo.TaskResult>> queryTaskList(){ |
|||
return JsonResponse.ok(homeService.queryTaskList()); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询合作单位成员统计") |
|||
@RequestMapping(value = "/queryProjressMemberList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<HomeVo.ProjressMemberResult> queryProjressMemberList(){ |
|||
return JsonResponse.ok(homeService.queryProjressMemberList()); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询科研成功统计") |
|||
@RequestMapping(value = "/queryAchievementList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<HomeVo.AchievementResult>> queryAchievementList(){ |
|||
return JsonResponse.ok(homeService.queryAchievementList()); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询会议统计") |
|||
@RequestMapping(value = "/queryMeetingList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<HomeVo.MeetingResult>> queryMeetingList(){ |
|||
return JsonResponse.ok(homeService.queryMeetingList()); |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -1,4 +1,4 @@ |
|||
package com.research.flowable.controller; |
|||
package com.research.web.controller.client.flow; |
|||
|
|||
import com.research.common.annotation.Log; |
|||
import com.research.common.core.controller.BaseController; |
|||
@ -1,4 +1,4 @@ |
|||
package com.research.flowable.controller; |
|||
package com.research.web.controller.client.flow; |
|||
|
|||
|
|||
import com.research.common.annotation.Log; |
|||
@ -1,9 +1,11 @@ |
|||
package com.research.flowable.controller; |
|||
package com.research.web.controller.client.flow; |
|||
|
|||
import com.research.common.annotation.DataSource; |
|||
import com.research.common.annotation.Log; |
|||
import com.research.common.core.controller.BaseController; |
|||
import com.research.common.core.domain.AjaxResult; |
|||
import com.research.common.enums.BusinessType; |
|||
import com.research.common.enums.DataSourceType; |
|||
import com.research.flowable.domain.dto.FlowTaskDto; |
|||
import com.research.flowable.domain.vo.FlowQueryVo; |
|||
import com.research.flowable.domain.vo.FlowTaskVo; |
|||
@ -1,4 +1,4 @@ |
|||
package com.research.flowable.controller; |
|||
package com.research.web.controller.client.flow; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
@ -1,4 +1,4 @@ |
|||
package com.research.flowable.controller; |
|||
package com.research.web.controller.client.flow; |
|||
|
|||
import java.util.List; |
|||
|
|||
@ -1,4 +1,4 @@ |
|||
package com.research.flowable.controller; |
|||
package com.research.web.controller.client.flow; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
@ -0,0 +1,64 @@ |
|||
package com.research.web.controller.client.pro; |
|||
|
|||
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.ProProgressDto; |
|||
import com.research.system.domain.vo.ProProgressVo; |
|||
import com.research.system.service.ProgressService; |
|||
import io.swagger.annotations.Api; |
|||
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; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.web.controller.client.pro |
|||
* @Date 2025/8/20 16:06 |
|||
* @description: |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "项目") |
|||
@RestController |
|||
@RequestMapping("/progress") |
|||
public class ProgressController { |
|||
|
|||
@Resource |
|||
private ProgressService progressService; |
|||
|
|||
@PostMapping("/query") |
|||
public JsonResponse<PageInfo<ProProgressVo.Result>> queryProgressList(@RequestBody @Validated BaseDto<ProProgressDto.Query> query){ |
|||
if (query.getPageNum() >0) { |
|||
PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(progressService.queryProgressList(query.getParam()))); |
|||
} |
|||
|
|||
@PostMapping("/queryProgressOrgList") |
|||
public JsonResponse<PageInfo<ProProgressVo.OrgResult>> queryProgressOrgList(@RequestBody @Validated BaseDto<ProProgressDto.Query> query){ |
|||
if (query.getPageNum() >0) { |
|||
PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(progressService.queryProgressOrgList(query.getParam()))); |
|||
} |
|||
|
|||
@PostMapping("/add") |
|||
public JsonResponse<Integer> addProgress(@RequestBody @Validated ProProgressDto.Add dto){ |
|||
return JsonResponse.ok(progressService.addProgress(dto)); |
|||
|
|||
} |
|||
|
|||
@PostMapping("/del") |
|||
public JsonResponse<Integer> delProgress(@RequestBody @Validated CommonDto.DelDto dto){ |
|||
return JsonResponse.ok(progressService.delProgress(dto)); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,58 @@ |
|||
package com.research.web.controller.client.project; |
|||
|
|||
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.DocumentDto; |
|||
import com.research.system.domain.vo.DocumentVo; |
|||
import com.research.system.service.ProjDocumentService; |
|||
import io.swagger.annotations.Api; |
|||
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; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.web.controller.client.pro |
|||
* @Date 2025/8/25 14:22 |
|||
* @description: |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "项目文书") |
|||
@RestController |
|||
@RequestMapping("/document") |
|||
public class ProjDocumentController { |
|||
|
|||
@Resource |
|||
private ProjDocumentService projDocumentService; |
|||
|
|||
@PostMapping("/query") |
|||
public JsonResponse<PageInfo<DocumentVo.Result>> query(@RequestBody @Validated BaseDto<DocumentDto.Query> dto){ |
|||
if (dto.getPageNum() > 0) { |
|||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(projDocumentService.query(dto.getParam()))); |
|||
} |
|||
|
|||
@PostMapping("/add") |
|||
public JsonResponse add(@RequestBody @Validated DocumentDto.Add dto){ |
|||
projDocumentService.add(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
@PostMapping("/del") |
|||
public JsonResponse del(@RequestBody @Validated CommonDto.DelDto dto){ |
|||
projDocumentService.del(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,82 @@ |
|||
package com.research.web.controller.client.shs; |
|||
|
|||
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.ShsSyffCategoryDto; |
|||
import com.research.system.domain.vo.ShsSyffCategoryVo; |
|||
import com.research.system.service.ShsSyffCategoryService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.web.controller.client.shs |
|||
* @Date 2025/8/18 17:30 |
|||
* @description: |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/method") |
|||
@Api(tags = "实验方法") |
|||
@Slf4j |
|||
public class ShsSyffCategoryController { |
|||
|
|||
@Resource |
|||
private ShsSyffCategoryService shsSyffCategoryService; |
|||
|
|||
@ApiOperation(value = "查询") |
|||
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<ShsSyffCategoryVo.Result>> query(@ApiParam @Validated @RequestBody BaseDto<ShsSyffCategoryDto.Query> query){ |
|||
if (query.getPageNum() > 0) { |
|||
PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(shsSyffCategoryService.query(query.getParam()))); |
|||
} |
|||
|
|||
@ApiOperation(value = "新增") |
|||
@RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> add(@ApiParam @Validated @RequestBody ShsSyffCategoryDto.Add add){ |
|||
return JsonResponse.ok(shsSyffCategoryService.add(add)); |
|||
} |
|||
|
|||
@ApiOperation(value = "删除") |
|||
@RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> del(@ApiParam @Validated @RequestBody CommonDto.DelDto dto){ |
|||
return JsonResponse.ok(shsSyffCategoryService.del(dto)); |
|||
} |
|||
|
|||
@ApiOperation(value = "分类查询") |
|||
@RequestMapping(value = "/classify/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<ShsSyffCategoryVo.CategoryResult>> queryCategory(@ApiParam @Validated @RequestBody BaseDto<ShsSyffCategoryDto.CategoryQuery> query){ |
|||
if (query.getPageNum() > 0) { |
|||
PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(shsSyffCategoryService.queryCategory(query.getParam()))); |
|||
} |
|||
|
|||
@ApiOperation(value = "分类新增") |
|||
@RequestMapping(value = "/classify/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> addCategory(@ApiParam @Validated @RequestBody ShsSyffCategoryDto.CategoryAdd add){ |
|||
return JsonResponse.ok(shsSyffCategoryService.addCategory(add)); |
|||
} |
|||
|
|||
@ApiOperation(value = "分类删除") |
|||
@RequestMapping(value = "/classify/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> delCategory(@ApiParam @Validated @RequestBody CommonDto.DelDto dto){ |
|||
return JsonResponse.ok(shsSyffCategoryService.delCategory(dto)); |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,109 @@ |
|||
package com.research.web.controller.client.task; |
|||
|
|||
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.TaskDto; |
|||
import com.research.system.domain.vo.TaskVo; |
|||
import com.research.system.service.TaskService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import liquibase.pro.packaged.J; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.web.controller.client |
|||
* @Date 2025/8/17 15:49 |
|||
* @description: |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/task") |
|||
@Api(tags = "任务相关") |
|||
@Slf4j |
|||
public class TaskController { |
|||
|
|||
@Resource |
|||
private TaskService taskService; |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<TaskVo.TaskResult>> queryList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryTask> query) { |
|||
if (query.getPageNum() > 0) { |
|||
PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(taskService.queryList(query.getParam()))); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> add(@ApiParam @Validated @RequestBody TaskDto.AddTask dto) { |
|||
taskService.add(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> del(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|||
taskService.del(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/queryExecutorList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<TaskVo.ExecutorResult>> queryExecutorList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryExecutor> query) { |
|||
if (query.getPageNum() > 0) { |
|||
PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(taskService.queryExecutorList(query.getParam()))); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/addExecutor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> addExecutor(@ApiParam @Validated @RequestBody TaskDto.AddExecutor dto) { |
|||
taskService.addExecutor(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/delExecutor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> delExecutor(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|||
taskService.delExecutor(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/queryDeliverableList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<TaskVo.DeliverableResult>> queryDeliverableList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryDeliverable> query) { |
|||
if (query.getPageNum() > 0) { |
|||
PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(taskService.queryDeliverableList(query.getParam()))); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/addDeliverable", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> addDeliverable(@ApiParam @Validated @RequestBody TaskDto.AddDeliverable dto) { |
|||
taskService.addDeliverable(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
@ApiOperation(value = "查询实验室") |
|||
@RequestMapping(value = "/delDeliverable", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> delDeliverable(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|||
taskService.delDeliverable(dto); |
|||
return JsonResponse.ok(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,64 @@ |
|||
# 数据源配置 |
|||
spring: |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
driverClassName: com.mysql.cj.jdbc.Driver |
|||
druid: |
|||
# 主库数据源 |
|||
master: |
|||
url: jdbc:mysql://127.0.0.1:3306/open_research?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true |
|||
username: root |
|||
password: Sxinf18aA! |
|||
# 从库数据源 |
|||
slave: |
|||
# 从数据源开关/默认关闭 |
|||
enabled: false |
|||
url: |
|||
username: |
|||
password: |
|||
# 初始连接数 |
|||
initialSize: 5 |
|||
# 最小连接池数量 |
|||
minIdle: 10 |
|||
# 最大连接池数量 |
|||
maxActive: 20 |
|||
# 配置获取连接等待超时的时间 |
|||
maxWait: 60000 |
|||
# 配置连接超时时间 |
|||
connectTimeout: 30000 |
|||
# 配置网络超时时间 |
|||
socketTimeout: 60000 |
|||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
|||
timeBetweenEvictionRunsMillis: 60000 |
|||
# 配置一个连接在池中最小生存的时间,单位是毫秒 |
|||
minEvictableIdleTimeMillis: 300000 |
|||
# 配置一个连接在池中最大生存的时间,单位是毫秒 |
|||
maxEvictableIdleTimeMillis: 900000 |
|||
# 配置检测连接是否有效 |
|||
validationQuery: SELECT 1 FROM DUAL |
|||
testWhileIdle: true |
|||
testOnBorrow: false |
|||
testOnReturn: false |
|||
webStatFilter: |
|||
enabled: true |
|||
statViewServlet: |
|||
enabled: true |
|||
# 设置白名单,不填则允许所有访问 |
|||
allow: |
|||
url-pattern: /druid/* |
|||
# 控制台管理用户名和密码 |
|||
login-username: research |
|||
login-password: 123456 |
|||
filter: |
|||
stat: |
|||
enabled: true |
|||
# 慢SQL记录 |
|||
log-slow-sql: true |
|||
slow-sql-millis: 1000 |
|||
merge-sql: true |
|||
wall: |
|||
config: |
|||
multi-statement-allow: true |
|||
server: |
|||
# 服务器的HTTP端口,默认为8080 |
|||
port: 38081 |
|||
@ -0,0 +1,48 @@ |
|||
package com.research.system.domain.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.vo |
|||
* @Date 2025/8/25 14:12 |
|||
* @description: |
|||
*/ |
|||
public class DocumentDto { |
|||
|
|||
@Data |
|||
public static class Query{ |
|||
private Long projId; |
|||
protected String docName; |
|||
} |
|||
|
|||
@Data |
|||
public static class Add { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private String docName; |
|||
|
|||
private String docType; |
|||
|
|||
private String docVisitPath; |
|||
|
|||
private String docPreviewImg; |
|||
|
|||
private String docLabels; |
|||
|
|||
private String uploader; |
|||
|
|||
private String uploadTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package com.research.system.domain.dto; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/21 13:58 |
|||
* @description: |
|||
*/ |
|||
public class HomeDto { |
|||
} |
|||
@ -0,0 +1,57 @@ |
|||
package com.research.system.domain.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.research.system.domain.po.ProProgress; |
|||
import com.research.system.domain.po.ProProgressWithBLOBs; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/20 9:00 |
|||
* @description: |
|||
*/ |
|||
public class ProProgressDto { |
|||
|
|||
@Data |
|||
public static class Query { |
|||
private Long projId; |
|||
} |
|||
|
|||
@Data |
|||
public static class Add{ |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private Long parentId; |
|||
|
|||
private String projectName; |
|||
private String fzr; |
|||
|
|||
private String stageName; |
|||
private String stageGoal; |
|||
|
|||
private String stageResult; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date startDate; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date plannedEndDate; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date actualEndDate; |
|||
|
|||
private String completionPercentage; |
|||
|
|||
private Byte status = 0; |
|||
} |
|||
|
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,90 @@ |
|||
package com.research.system.domain.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.research.system.domain.po.ShsCkwxCategory; |
|||
import com.research.system.domain.po.ShsSyffCategory; |
|||
import com.research.system.domain.po.ShsSyffInfo; |
|||
import com.research.system.domain.po.ShsSyffInfoWithBLOBs; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/18 17:31 |
|||
* @description: |
|||
*/ |
|||
public class ShsSyffCategoryDto { |
|||
|
|||
@Data |
|||
public static class Query{ |
|||
private String categoryCode; |
|||
|
|||
private String categoryName; |
|||
} |
|||
|
|||
@Data |
|||
public static class Add { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long categoryId; |
|||
|
|||
private String title; |
|||
|
|||
private String code; |
|||
|
|||
private String version; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date validDate; |
|||
|
|||
private String authors; |
|||
|
|||
private String authorsOrg; |
|||
|
|||
private String purpose; |
|||
|
|||
private String principle; |
|||
|
|||
private String parameters; |
|||
|
|||
private String pdfDownloadUrl; |
|||
|
|||
private Long uploaderName; |
|||
|
|||
private Long uploaderOrg; |
|||
private String materialList; |
|||
|
|||
private String steps; |
|||
|
|||
private String result; |
|||
} |
|||
|
|||
@Data |
|||
public static class CategoryQuery { |
|||
private String categoryCode; |
|||
|
|||
private String categoryName; |
|||
} |
|||
|
|||
@Data |
|||
public static class CategoryAdd { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long parentId; |
|||
|
|||
private String categoryCode; |
|||
|
|||
private String categoryName; |
|||
|
|||
private Integer sort; |
|||
|
|||
private String remark; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,124 @@ |
|||
package com.research.system.domain.dto; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.research.system.domain.po.TaskDeliverable; |
|||
import com.research.system.domain.po.TaskExecutor; |
|||
import com.research.system.domain.po.TaskList; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/17 15:49 |
|||
* @description: |
|||
*/ |
|||
public class TaskDto { |
|||
|
|||
@Data |
|||
public static class QueryTask{ |
|||
private String taskName; |
|||
} |
|||
|
|||
@Data |
|||
public static class AddTask{ |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private String taskName; |
|||
|
|||
private String taskType; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date cycleStart; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date cycleEnd; |
|||
|
|||
private String cyclePeriod; |
|||
|
|||
private String generationCycle; |
|||
|
|||
private Integer batchSize; |
|||
|
|||
private Integer parentId; |
|||
|
|||
private String relatedProject; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date startTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date endTime; |
|||
|
|||
private String initiator; |
|||
|
|||
private Integer priority; |
|||
|
|||
private Byte status; |
|||
private String description; |
|||
private List<AddExecutor> executorList; |
|||
|
|||
@ApiModelProperty("应交付物") |
|||
private List<String> deliverables; |
|||
|
|||
public String getDeliverables() { |
|||
if (CollectionUtil.isNotEmpty(deliverables)) { |
|||
StringBuilder sb = new StringBuilder(); |
|||
for (String deliverable : deliverables) { |
|||
sb.append(deliverable).append(","); |
|||
} |
|||
return sb.toString(); |
|||
} |
|||
return null; |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
public static class QueryExecutor{ |
|||
|
|||
} |
|||
|
|||
@Data |
|||
public static class AddExecutor{ |
|||
private Long id; |
|||
|
|||
private Long taskId; |
|||
|
|||
private Long executorId; |
|||
|
|||
} |
|||
|
|||
@Data |
|||
public static class QueryDeliverable{ |
|||
private Long taskId; |
|||
} |
|||
|
|||
@Data |
|||
public static class AddDeliverable{ |
|||
private Long id; |
|||
|
|||
private String taskId; |
|||
|
|||
private String deliverableName; |
|||
|
|||
private String deliverableUrl; |
|||
|
|||
private Byte deliveryStatus; |
|||
|
|||
private String submitterAccount; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date submissionTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private String reviewerAccount; |
|||
|
|||
private Date reviewTime; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,216 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProProgress implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private Long parentId; |
|||
|
|||
private String projectName; |
|||
|
|||
private String fzr; |
|||
|
|||
private String stageName; |
|||
|
|||
private Date startDate; |
|||
|
|||
private Date plannedEndDate; |
|||
|
|||
private Date actualEndDate; |
|||
|
|||
private String completionPercentage; |
|||
|
|||
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 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 getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(Long parentId) { |
|||
this.parentId = parentId; |
|||
} |
|||
|
|||
public String getProjectName() { |
|||
return projectName; |
|||
} |
|||
|
|||
public void setProjectName(String projectName) { |
|||
this.projectName = projectName == null ? null : projectName.trim(); |
|||
} |
|||
|
|||
public String getFzr() { |
|||
return fzr; |
|||
} |
|||
|
|||
public void setFzr(String fzr) { |
|||
this.fzr = fzr == null ? null : fzr.trim(); |
|||
} |
|||
|
|||
public String getStageName() { |
|||
return stageName; |
|||
} |
|||
|
|||
public void setStageName(String stageName) { |
|||
this.stageName = stageName == null ? null : stageName.trim(); |
|||
} |
|||
|
|||
public Date getStartDate() { |
|||
return startDate; |
|||
} |
|||
|
|||
public void setStartDate(Date startDate) { |
|||
this.startDate = startDate; |
|||
} |
|||
|
|||
public Date getPlannedEndDate() { |
|||
return plannedEndDate; |
|||
} |
|||
|
|||
public void setPlannedEndDate(Date plannedEndDate) { |
|||
this.plannedEndDate = plannedEndDate; |
|||
} |
|||
|
|||
public Date getActualEndDate() { |
|||
return actualEndDate; |
|||
} |
|||
|
|||
public void setActualEndDate(Date actualEndDate) { |
|||
this.actualEndDate = actualEndDate; |
|||
} |
|||
|
|||
public String getCompletionPercentage() { |
|||
return completionPercentage; |
|||
} |
|||
|
|||
public void setCompletionPercentage(String completionPercentage) { |
|||
this.completionPercentage = completionPercentage == null ? null : completionPercentage.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(", projOrgId=").append(projOrgId); |
|||
sb.append(", ktGroupId=").append(ktGroupId); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", projectName=").append(projectName); |
|||
sb.append(", fzr=").append(fzr); |
|||
sb.append(", stageName=").append(stageName); |
|||
sb.append(", startDate=").append(startDate); |
|||
sb.append(", plannedEndDate=").append(plannedEndDate); |
|||
sb.append(", actualEndDate=").append(actualEndDate); |
|||
sb.append(", completionPercentage=").append(completionPercentage); |
|||
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(); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,39 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class ProProgressWithBLOBs extends ProProgress implements Serializable { |
|||
private String stageGoal; |
|||
|
|||
private String stageResult; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public String getStageGoal() { |
|||
return stageGoal; |
|||
} |
|||
|
|||
public void setStageGoal(String stageGoal) { |
|||
this.stageGoal = stageGoal == null ? null : stageGoal.trim(); |
|||
} |
|||
|
|||
public String getStageResult() { |
|||
return stageResult; |
|||
} |
|||
|
|||
public void setStageResult(String stageResult) { |
|||
this.stageResult = stageResult == null ? null : stageResult.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", stageGoal=").append(stageGoal); |
|||
sb.append(", stageResult=").append(stageResult); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,106 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ShsDevicePic implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long deviceId; |
|||
|
|||
private String imgUrl; |
|||
|
|||
private Integer primaryStatus; |
|||
|
|||
private String operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte delStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getDeviceId() { |
|||
return deviceId; |
|||
} |
|||
|
|||
public void setDeviceId(Long deviceId) { |
|||
this.deviceId = deviceId; |
|||
} |
|||
|
|||
public String getImgUrl() { |
|||
return imgUrl; |
|||
} |
|||
|
|||
public void setImgUrl(String imgUrl) { |
|||
this.imgUrl = imgUrl == null ? null : imgUrl.trim(); |
|||
} |
|||
|
|||
public Integer getPrimaryStatus() { |
|||
return primaryStatus; |
|||
} |
|||
|
|||
public void setPrimaryStatus(Integer primaryStatus) { |
|||
this.primaryStatus = primaryStatus; |
|||
} |
|||
|
|||
public String getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(String operator) { |
|||
this.operator = operator == null ? null : operator.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getDelStatus() { |
|||
return delStatus; |
|||
} |
|||
|
|||
public void setDelStatus(Byte delStatus) { |
|||
this.delStatus = delStatus; |
|||
} |
|||
|
|||
@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(", deviceId=").append(deviceId); |
|||
sb.append(", imgUrl=").append(imgUrl); |
|||
sb.append(", primaryStatus=").append(primaryStatus); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", delStatus=").append(delStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,701 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ShsDevicePicExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ShsDevicePicExample() { |
|||
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 andDeviceIdIsNull() { |
|||
addCriterion("device_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdIsNotNull() { |
|||
addCriterion("device_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdEqualTo(Long value) { |
|||
addCriterion("device_id =", value, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdNotEqualTo(Long value) { |
|||
addCriterion("device_id <>", value, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdGreaterThan(Long value) { |
|||
addCriterion("device_id >", value, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("device_id >=", value, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdLessThan(Long value) { |
|||
addCriterion("device_id <", value, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("device_id <=", value, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdIn(List<Long> values) { |
|||
addCriterion("device_id in", values, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdNotIn(List<Long> values) { |
|||
addCriterion("device_id not in", values, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdBetween(Long value1, Long value2) { |
|||
addCriterion("device_id between", value1, value2, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("device_id not between", value1, value2, "deviceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlIsNull() { |
|||
addCriterion("img_url is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlIsNotNull() { |
|||
addCriterion("img_url is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlEqualTo(String value) { |
|||
addCriterion("img_url =", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlNotEqualTo(String value) { |
|||
addCriterion("img_url <>", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlGreaterThan(String value) { |
|||
addCriterion("img_url >", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlGreaterThanOrEqualTo(String value) { |
|||
addCriterion("img_url >=", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlLessThan(String value) { |
|||
addCriterion("img_url <", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlLessThanOrEqualTo(String value) { |
|||
addCriterion("img_url <=", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlLike(String value) { |
|||
addCriterion("img_url like", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlNotLike(String value) { |
|||
addCriterion("img_url not like", value, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlIn(List<String> values) { |
|||
addCriterion("img_url in", values, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlNotIn(List<String> values) { |
|||
addCriterion("img_url not in", values, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlBetween(String value1, String value2) { |
|||
addCriterion("img_url between", value1, value2, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andImgUrlNotBetween(String value1, String value2) { |
|||
addCriterion("img_url not between", value1, value2, "imgUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusIsNull() { |
|||
addCriterion("primary_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusIsNotNull() { |
|||
addCriterion("primary_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusEqualTo(Integer value) { |
|||
addCriterion("primary_status =", value, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusNotEqualTo(Integer value) { |
|||
addCriterion("primary_status <>", value, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusGreaterThan(Integer value) { |
|||
addCriterion("primary_status >", value, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("primary_status >=", value, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusLessThan(Integer value) { |
|||
addCriterion("primary_status <", value, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusLessThanOrEqualTo(Integer value) { |
|||
addCriterion("primary_status <=", value, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusIn(List<Integer> values) { |
|||
addCriterion("primary_status in", values, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusNotIn(List<Integer> values) { |
|||
addCriterion("primary_status not in", values, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusBetween(Integer value1, Integer value2) { |
|||
addCriterion("primary_status between", value1, value2, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPrimaryStatusNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("primary_status not between", value1, value2, "primaryStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(String value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(String value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(String value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(String value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(String value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(String value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLike(String value) { |
|||
addCriterion("operator like", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotLike(String value) { |
|||
addCriterion("operator not like", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<String> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<String> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(String value1, String value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(String value1, String value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusIsNull() { |
|||
addCriterion("del_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusIsNotNull() { |
|||
addCriterion("del_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusEqualTo(Byte value) { |
|||
addCriterion("del_status =", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusNotEqualTo(Byte value) { |
|||
addCriterion("del_status <>", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusGreaterThan(Byte value) { |
|||
addCriterion("del_status >", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_status >=", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusLessThan(Byte value) { |
|||
addCriterion("del_status <", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_status <=", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusIn(List<Byte> values) { |
|||
addCriterion("del_status in", values, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusNotIn(List<Byte> values) { |
|||
addCriterion("del_status not in", values, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_status between", value1, value2, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_status not between", value1, value2, "delStatus"); |
|||
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,238 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ShsSyffInfo implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long categoryId; |
|||
|
|||
private String title; |
|||
|
|||
private String code; |
|||
|
|||
private String version; |
|||
|
|||
private Date validDate; |
|||
|
|||
private String authors; |
|||
|
|||
private String authorsOrg; |
|||
|
|||
private String purpose; |
|||
|
|||
private String principle; |
|||
|
|||
private String parameters; |
|||
|
|||
private String pdfDownloadUrl; |
|||
|
|||
private Long uploaderName; |
|||
|
|||
private Long uploaderOrg; |
|||
|
|||
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 getCategoryId() { |
|||
return categoryId; |
|||
} |
|||
|
|||
public void setCategoryId(Long categoryId) { |
|||
this.categoryId = categoryId; |
|||
} |
|||
|
|||
public String getTitle() { |
|||
return title; |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
this.title = title == null ? null : title.trim(); |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public String getVersion() { |
|||
return version; |
|||
} |
|||
|
|||
public void setVersion(String version) { |
|||
this.version = version == null ? null : version.trim(); |
|||
} |
|||
|
|||
public Date getValidDate() { |
|||
return validDate; |
|||
} |
|||
|
|||
public void setValidDate(Date validDate) { |
|||
this.validDate = validDate; |
|||
} |
|||
|
|||
public String getAuthors() { |
|||
return authors; |
|||
} |
|||
|
|||
public void setAuthors(String authors) { |
|||
this.authors = authors == null ? null : authors.trim(); |
|||
} |
|||
|
|||
public String getAuthorsOrg() { |
|||
return authorsOrg; |
|||
} |
|||
|
|||
public void setAuthorsOrg(String authorsOrg) { |
|||
this.authorsOrg = authorsOrg == null ? null : authorsOrg.trim(); |
|||
} |
|||
|
|||
public String getPurpose() { |
|||
return purpose; |
|||
} |
|||
|
|||
public void setPurpose(String purpose) { |
|||
this.purpose = purpose == null ? null : purpose.trim(); |
|||
} |
|||
|
|||
public String getPrinciple() { |
|||
return principle; |
|||
} |
|||
|
|||
public void setPrinciple(String principle) { |
|||
this.principle = principle == null ? null : principle.trim(); |
|||
} |
|||
|
|||
public String getParameters() { |
|||
return parameters; |
|||
} |
|||
|
|||
public void setParameters(String parameters) { |
|||
this.parameters = parameters == null ? null : parameters.trim(); |
|||
} |
|||
|
|||
public String getPdfDownloadUrl() { |
|||
return pdfDownloadUrl; |
|||
} |
|||
|
|||
public void setPdfDownloadUrl(String pdfDownloadUrl) { |
|||
this.pdfDownloadUrl = pdfDownloadUrl == null ? null : pdfDownloadUrl.trim(); |
|||
} |
|||
|
|||
public Long getUploaderName() { |
|||
return uploaderName; |
|||
} |
|||
|
|||
public void setUploaderName(Long uploaderName) { |
|||
this.uploaderName = uploaderName; |
|||
} |
|||
|
|||
public Long getUploaderOrg() { |
|||
return uploaderOrg; |
|||
} |
|||
|
|||
public void setUploaderOrg(Long uploaderOrg) { |
|||
this.uploaderOrg = uploaderOrg; |
|||
} |
|||
|
|||
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(", categoryId=").append(categoryId); |
|||
sb.append(", title=").append(title); |
|||
sb.append(", code=").append(code); |
|||
sb.append(", version=").append(version); |
|||
sb.append(", validDate=").append(validDate); |
|||
sb.append(", authors=").append(authors); |
|||
sb.append(", authorsOrg=").append(authorsOrg); |
|||
sb.append(", purpose=").append(purpose); |
|||
sb.append(", principle=").append(principle); |
|||
sb.append(", parameters=").append(parameters); |
|||
sb.append(", pdfDownloadUrl=").append(pdfDownloadUrl); |
|||
sb.append(", uploaderName=").append(uploaderName); |
|||
sb.append(", uploaderOrg=").append(uploaderOrg); |
|||
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,50 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class ShsSyffInfoWithBLOBs extends ShsSyffInfo implements Serializable { |
|||
private String materialList; |
|||
|
|||
private String steps; |
|||
|
|||
private String result; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public String getMaterialList() { |
|||
return materialList; |
|||
} |
|||
|
|||
public void setMaterialList(String materialList) { |
|||
this.materialList = materialList == null ? null : materialList.trim(); |
|||
} |
|||
|
|||
public String getSteps() { |
|||
return steps; |
|||
} |
|||
|
|||
public void setSteps(String steps) { |
|||
this.steps = steps == null ? null : steps.trim(); |
|||
} |
|||
|
|||
public String getResult() { |
|||
return result; |
|||
} |
|||
|
|||
public void setResult(String result) { |
|||
this.result = result == null ? null : result.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", materialList=").append(materialList); |
|||
sb.append(", steps=").append(steps); |
|||
sb.append(", result=").append(result); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,172 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class TaskDeliverable implements Serializable { |
|||
private Long id; |
|||
|
|||
private String taskId; |
|||
|
|||
private String deliverableName; |
|||
|
|||
private String deliverableUrl; |
|||
|
|||
private Byte deliveryStatus; |
|||
|
|||
private String submitterAccount; |
|||
|
|||
private Date submissionTime; |
|||
|
|||
private String reviewerAccount; |
|||
|
|||
private Date reviewTime; |
|||
|
|||
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 String getTaskId() { |
|||
return taskId; |
|||
} |
|||
|
|||
public void setTaskId(String taskId) { |
|||
this.taskId = taskId == null ? null : taskId.trim(); |
|||
} |
|||
|
|||
public String getDeliverableName() { |
|||
return deliverableName; |
|||
} |
|||
|
|||
public void setDeliverableName(String deliverableName) { |
|||
this.deliverableName = deliverableName == null ? null : deliverableName.trim(); |
|||
} |
|||
|
|||
public String getDeliverableUrl() { |
|||
return deliverableUrl; |
|||
} |
|||
|
|||
public void setDeliverableUrl(String deliverableUrl) { |
|||
this.deliverableUrl = deliverableUrl == null ? null : deliverableUrl.trim(); |
|||
} |
|||
|
|||
public Byte getDeliveryStatus() { |
|||
return deliveryStatus; |
|||
} |
|||
|
|||
public void setDeliveryStatus(Byte deliveryStatus) { |
|||
this.deliveryStatus = deliveryStatus; |
|||
} |
|||
|
|||
public String getSubmitterAccount() { |
|||
return submitterAccount; |
|||
} |
|||
|
|||
public void setSubmitterAccount(String submitterAccount) { |
|||
this.submitterAccount = submitterAccount == null ? null : submitterAccount.trim(); |
|||
} |
|||
|
|||
public Date getSubmissionTime() { |
|||
return submissionTime; |
|||
} |
|||
|
|||
public void setSubmissionTime(Date submissionTime) { |
|||
this.submissionTime = submissionTime; |
|||
} |
|||
|
|||
public String getReviewerAccount() { |
|||
return reviewerAccount; |
|||
} |
|||
|
|||
public void setReviewerAccount(String reviewerAccount) { |
|||
this.reviewerAccount = reviewerAccount == null ? null : reviewerAccount.trim(); |
|||
} |
|||
|
|||
public Date getReviewTime() { |
|||
return reviewTime; |
|||
} |
|||
|
|||
public void setReviewTime(Date reviewTime) { |
|||
this.reviewTime = reviewTime; |
|||
} |
|||
|
|||
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(", taskId=").append(taskId); |
|||
sb.append(", deliverableName=").append(deliverableName); |
|||
sb.append(", deliverableUrl=").append(deliverableUrl); |
|||
sb.append(", deliveryStatus=").append(deliveryStatus); |
|||
sb.append(", submitterAccount=").append(submitterAccount); |
|||
sb.append(", submissionTime=").append(submissionTime); |
|||
sb.append(", reviewerAccount=").append(reviewerAccount); |
|||
sb.append(", reviewTime=").append(reviewTime); |
|||
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,39 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class TaskDeliverableWithBLOBs extends TaskDeliverable implements Serializable { |
|||
private String referenceMaterials; |
|||
|
|||
private String deliveryInstructions; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public String getReferenceMaterials() { |
|||
return referenceMaterials; |
|||
} |
|||
|
|||
public void setReferenceMaterials(String referenceMaterials) { |
|||
this.referenceMaterials = referenceMaterials == null ? null : referenceMaterials.trim(); |
|||
} |
|||
|
|||
public String getDeliveryInstructions() { |
|||
return deliveryInstructions; |
|||
} |
|||
|
|||
public void setDeliveryInstructions(String deliveryInstructions) { |
|||
this.deliveryInstructions = deliveryInstructions == null ? null : deliveryInstructions.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", referenceMaterials=").append(referenceMaterials); |
|||
sb.append(", deliveryInstructions=").append(deliveryInstructions); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,106 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class TaskExecutor implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long taskId; |
|||
|
|||
private Long executorId; |
|||
|
|||
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 getTaskId() { |
|||
return taskId; |
|||
} |
|||
|
|||
public void setTaskId(Long taskId) { |
|||
this.taskId = taskId; |
|||
} |
|||
|
|||
public Long getExecutorId() { |
|||
return executorId; |
|||
} |
|||
|
|||
public void setExecutorId(Long executorId) { |
|||
this.executorId = executorId; |
|||
} |
|||
|
|||
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(", taskId=").append(taskId); |
|||
sb.append(", executorId=").append(executorId); |
|||
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,701 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class TaskExecutorExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public TaskExecutorExample() { |
|||
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 andTaskIdIsNull() { |
|||
addCriterion("task_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdIsNotNull() { |
|||
addCriterion("task_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdEqualTo(Long value) { |
|||
addCriterion("task_id =", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdNotEqualTo(Long value) { |
|||
addCriterion("task_id <>", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdGreaterThan(Long value) { |
|||
addCriterion("task_id >", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("task_id >=", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdLessThan(Long value) { |
|||
addCriterion("task_id <", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("task_id <=", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdIn(List<Long> values) { |
|||
addCriterion("task_id in", values, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdNotIn(List<Long> values) { |
|||
addCriterion("task_id not in", values, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdBetween(Long value1, Long value2) { |
|||
addCriterion("task_id between", value1, value2, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("task_id not between", value1, value2, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdIsNull() { |
|||
addCriterion("executor_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdIsNotNull() { |
|||
addCriterion("executor_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdEqualTo(Long value) { |
|||
addCriterion("executor_id =", value, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdNotEqualTo(Long value) { |
|||
addCriterion("executor_id <>", value, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdGreaterThan(Long value) { |
|||
addCriterion("executor_id >", value, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("executor_id >=", value, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdLessThan(Long value) { |
|||
addCriterion("executor_id <", value, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("executor_id <=", value, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdIn(List<Long> values) { |
|||
addCriterion("executor_id in", values, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdNotIn(List<Long> values) { |
|||
addCriterion("executor_id not in", values, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdBetween(Long value1, Long value2) { |
|||
addCriterion("executor_id between", value1, value2, "executorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andExecutorIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("executor_id not between", value1, value2, "executorId"); |
|||
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,227 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class TaskList implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private String taskName; |
|||
|
|||
private Integer taskType; |
|||
|
|||
private Integer parentId; |
|||
|
|||
private Date startTime; |
|||
|
|||
private Date endTime; |
|||
|
|||
private String initiator; |
|||
|
|||
private Integer priority; |
|||
|
|||
private String deliverables; |
|||
|
|||
private Byte status; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String description; |
|||
|
|||
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 String getTaskName() { |
|||
return taskName; |
|||
} |
|||
|
|||
public void setTaskName(String taskName) { |
|||
this.taskName = taskName == null ? null : taskName.trim(); |
|||
} |
|||
|
|||
public Integer getTaskType() { |
|||
return taskType; |
|||
} |
|||
|
|||
public void setTaskType(Integer taskType) { |
|||
this.taskType = taskType; |
|||
} |
|||
|
|||
public Integer getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(Integer parentId) { |
|||
this.parentId = parentId; |
|||
} |
|||
|
|||
public Date getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Date startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Date getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Date endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public String getInitiator() { |
|||
return initiator; |
|||
} |
|||
|
|||
public void setInitiator(String initiator) { |
|||
this.initiator = initiator == null ? null : initiator.trim(); |
|||
} |
|||
|
|||
public Integer getPriority() { |
|||
return priority; |
|||
} |
|||
|
|||
public void setPriority(Integer priority) { |
|||
this.priority = priority; |
|||
} |
|||
|
|||
public String getDeliverables() { |
|||
return deliverables; |
|||
} |
|||
|
|||
public void setDeliverables(String deliverables) { |
|||
this.deliverables = deliverables == null ? null : deliverables.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; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.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(", projId=").append(projId); |
|||
sb.append(", projOrgId=").append(projOrgId); |
|||
sb.append(", ktGroupId=").append(ktGroupId); |
|||
sb.append(", taskName=").append(taskName); |
|||
sb.append(", taskType=").append(taskType); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", initiator=").append(initiator); |
|||
sb.append(", priority=").append(priority); |
|||
sb.append(", deliverables=").append(deliverables); |
|||
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(", description=").append(description); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,72 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class TaskListWithBLOBs extends TaskList implements Serializable { |
|||
private String description; |
|||
|
|||
private String executors; |
|||
|
|||
private String reviewers; |
|||
|
|||
private String deliverables; |
|||
|
|||
private String references; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.trim(); |
|||
} |
|||
|
|||
public String getExecutors() { |
|||
return executors; |
|||
} |
|||
|
|||
public void setExecutors(String executors) { |
|||
this.executors = executors == null ? null : executors.trim(); |
|||
} |
|||
|
|||
public String getReviewers() { |
|||
return reviewers; |
|||
} |
|||
|
|||
public void setReviewers(String reviewers) { |
|||
this.reviewers = reviewers == null ? null : reviewers.trim(); |
|||
} |
|||
|
|||
public String getDeliverables() { |
|||
return deliverables; |
|||
} |
|||
|
|||
public void setDeliverables(String deliverables) { |
|||
this.deliverables = deliverables == null ? null : deliverables.trim(); |
|||
} |
|||
|
|||
public String getReferences() { |
|||
return references; |
|||
} |
|||
|
|||
public void setReferences(String references) { |
|||
this.references = references == null ? null : references.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", description=").append(description); |
|||
sb.append(", executors=").append(executors); |
|||
sb.append(", reviewers=").append(reviewers); |
|||
sb.append(", deliverables=").append(deliverables); |
|||
sb.append(", references=").append(references); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
package com.research.system.domain.vo; |
|||
|
|||
import com.research.system.domain.po.PrjProjDocument; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.vo |
|||
* @Date 2025/8/25 14:12 |
|||
* @description: |
|||
*/ |
|||
public class DocumentVo { |
|||
|
|||
@Data |
|||
public static class Result { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private String docName; |
|||
|
|||
private String docType; |
|||
|
|||
private String docVisitPath; |
|||
|
|||
private String docPreviewImg; |
|||
|
|||
private String docLabels; |
|||
|
|||
private String uploader; |
|||
|
|||
private String uploadTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,155 @@ |
|||
package com.research.system.domain.vo; |
|||
|
|||
import com.research.system.domain.dto.GroupDto; |
|||
import com.research.system.domain.po.PrjProjInfo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.vo |
|||
* @Date 2025/8/21 13:59 |
|||
* @description: |
|||
*/ |
|||
public class HomeVo { |
|||
|
|||
@Data |
|||
public static class Result { |
|||
private Long id; |
|||
private String title; |
|||
private String titleEn; |
|||
|
|||
private String code; |
|||
|
|||
private String org; |
|||
private Date beginTime; |
|||
|
|||
private Date endTime; |
|||
|
|||
private String intro; |
|||
|
|||
private List<OrgVO> orgList; |
|||
|
|||
@Data |
|||
public static class OrgVO { |
|||
private Long id; |
|||
private String orgName; |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
public static class GroupResult { |
|||
private Long id; |
|||
private String ktGroupName; |
|||
private String orgName; |
|||
private String completionPercentage = "0"; |
|||
private List<GroupVO.Result> groupList; |
|||
} |
|||
|
|||
@Data |
|||
public static class TaskResult { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private String taskName; |
|||
|
|||
private String taskType; |
|||
|
|||
private Date cycleStart; |
|||
|
|||
private Date cycleEnd; |
|||
|
|||
private String cyclePeriod; |
|||
|
|||
private String generationCycle; |
|||
|
|||
private Integer batchSize; |
|||
|
|||
private Integer parentId; |
|||
|
|||
private String relatedProject; |
|||
|
|||
private Date startTime; |
|||
|
|||
private Date endTime; |
|||
|
|||
private String initiator; |
|||
|
|||
private Integer priority; |
|||
|
|||
private Byte status; |
|||
private String description; |
|||
|
|||
private String executors; |
|||
|
|||
private String reviewers; |
|||
|
|||
private String deliverables; |
|||
|
|||
private String references; |
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
} |
|||
|
|||
@Data |
|||
public static class ProjressMemberResult{ |
|||
|
|||
private List<OrgMemberResult> orgMemberList; |
|||
private List<TitleResult> titleList; |
|||
private List<XlResult> xlList; |
|||
|
|||
@Data |
|||
public static class OrgMemberResult { |
|||
private String orgName; |
|||
private Integer num; |
|||
} |
|||
|
|||
@Data |
|||
public static class TitleResult { |
|||
private String title; |
|||
private Integer num; |
|||
} |
|||
|
|||
@Data |
|||
public static class XlResult { |
|||
private String xl; |
|||
private Integer num; |
|||
} |
|||
|
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("科研成果统计") |
|||
public static class AchievementResult{ |
|||
private String categoryName; |
|||
private Integer num; |
|||
|
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("会议统计") |
|||
public static class MeetingResult{ |
|||
|
|||
private String yearMonth; |
|||
private Integer num; |
|||
|
|||
private String year; |
|||
private String month; |
|||
|
|||
public String getYearMonth() { |
|||
return year + "-" + month; |
|||
} |
|||
|
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,105 @@ |
|||
package com.research.system.domain.vo; |
|||
|
|||
import cn.hutool.core.date.DateUtil; |
|||
import com.research.system.domain.po.ProProgress; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.vo |
|||
* @Date 2025/8/20 9:05 |
|||
* @description: |
|||
*/ |
|||
public class ProProgressVo { |
|||
|
|||
@Data |
|||
public static class Result{ |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private Long ktGroupId; |
|||
|
|||
private Long parentId; |
|||
|
|||
private String projectName; |
|||
|
|||
private String fzr; |
|||
|
|||
private String stageName; |
|||
|
|||
private Date startDate; |
|||
|
|||
private Date plannedEndDate; |
|||
|
|||
private Date actualEndDate; |
|||
|
|||
private String completionPercentage; |
|||
|
|||
private Byte status; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
private String ktGroupName; |
|||
private String stageGoal; |
|||
private String stageResult; |
|||
|
|||
public Byte getStatus() { |
|||
if (actualEndDate != null && DateUtil.compare(new Date(), actualEndDate) > 0) { |
|||
return 2; |
|||
} |
|||
if (startDate != null) { |
|||
if (DateUtil.compare(new Date(), startDate) > 0) { |
|||
return 1; |
|||
}else { |
|||
return 0; |
|||
} |
|||
} |
|||
return status; |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
public static class OrgResult{ |
|||
private Integer orgId; |
|||
private String orgName; |
|||
private Integer xslw; |
|||
|
|||
private Integer zlsqysq; |
|||
|
|||
private Integer rjzzq; |
|||
|
|||
private Integer xszz; |
|||
|
|||
private Integer bzzd; |
|||
|
|||
private Integer yskt; |
|||
|
|||
private Integer jscgzh; |
|||
|
|||
private Integer xsjl; |
|||
|
|||
private Integer xslwNum; |
|||
|
|||
private Integer zlsqysqNum; |
|||
|
|||
private Integer rjzzqNum; |
|||
|
|||
private Integer xszzNum; |
|||
|
|||
private Integer bzzdNum; |
|||
|
|||
private Integer ysktNum; |
|||
|
|||
private Integer jscgzhNum; |
|||
|
|||
private Integer xsjlNum; |
|||
|
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,85 @@ |
|||
package com.research.system.domain.vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/18 17:31 |
|||
* @description: |
|||
*/ |
|||
public class ShsSyffCategoryVo { |
|||
|
|||
@Data |
|||
public static class Result { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long categoryId; |
|||
|
|||
private String title; |
|||
|
|||
private String code; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private String version; |
|||
|
|||
private Date validDate; |
|||
|
|||
private String authors; |
|||
|
|||
private String authorsOrg; |
|||
|
|||
private String purpose; |
|||
|
|||
private String principle; |
|||
|
|||
private String parameters; |
|||
|
|||
private String pdfDownloadUrl; |
|||
|
|||
private Long uploaderName; |
|||
|
|||
private Long uploaderOrg; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
private String categoryName; |
|||
private String materialList; |
|||
|
|||
private String steps; |
|||
|
|||
private String result; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
public static class CategoryResult { |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long parentId; |
|||
|
|||
private String categoryCode; |
|||
|
|||
private String categoryName; |
|||
|
|||
private Integer sort; |
|||
|
|||
private String remark; |
|||
|
|||
@ApiModelProperty("") |
|||
private String createBy; |
|||
@ApiModelProperty("") |
|||
private Date createTime; |
|||
private String parentCategoryName; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,104 @@ |
|||
package com.research.system.domain.vo; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.collection.ListUtil; |
|||
import cn.hutool.core.util.ArrayUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.research.system.domain.po.TaskList; |
|||
import com.research.system.domain.po.TaskListWithBLOBs; |
|||
import lombok.Data; |
|||
import org.apache.poi.hssf.record.WSBoolRecord; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/8/17 15:49 |
|||
* @description: |
|||
*/ |
|||
public class TaskVo { |
|||
|
|||
@Data |
|||
public static class TaskResult{ |
|||
private Long id; |
|||
|
|||
private Long projId; |
|||
|
|||
private Long projOrgId; |
|||
|
|||
private String taskName; |
|||
|
|||
private Integer taskType; |
|||
private Integer parentId; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT") |
|||
private Date startTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT") |
|||
private Date endTime; |
|||
|
|||
private String ktGroupName; |
|||
|
|||
private String initiator; |
|||
|
|||
private Integer priority; |
|||
|
|||
private Byte status; |
|||
private String description; |
|||
|
|||
private String createBy; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT") |
|||
private Date createTime; |
|||
|
|||
//实际完成时间
|
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT") |
|||
private Date actualEndTime; |
|||
|
|||
private List<ExecutorResult> executorList; |
|||
|
|||
private List<DeliverableResult> deliverableList; |
|||
|
|||
private String deliverables; |
|||
|
|||
public List<String> getDeliverables() { |
|||
if (StrUtil.isNotEmpty(deliverables)) { |
|||
return ListUtil.toList(deliverables.split(",")); |
|||
} |
|||
return CollectionUtil.newArrayList(); |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
public static class ExecutorResult{ |
|||
private Long id; |
|||
|
|||
private Long taskId; |
|||
|
|||
private Long executorId; |
|||
|
|||
private String memberName; |
|||
|
|||
} |
|||
@Data |
|||
public static class DeliverableResult{ |
|||
private Long id; |
|||
|
|||
private String taskId; |
|||
|
|||
private String deliverableName; |
|||
|
|||
private String deliverableUrl; |
|||
|
|||
private Byte deliveryStatus; |
|||
|
|||
private String submitterAccount; |
|||
|
|||
private Date submissionTime; |
|||
|
|||
private String reviewerAccount; |
|||
|
|||
private Date reviewTime; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.dao; |
|||
|
|||
import com.research.system.domain.vo.HomeVo; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.persist.dao |
|||
* @Date 2025/8/21 14:24 |
|||
* @description: |
|||
*/ |
|||
public interface HomeDao { |
|||
HomeVo.Result queryHomeInfo(); |
|||
|
|||
List<HomeVo.GroupResult> queryGroupList(); |
|||
|
|||
List<HomeVo.TaskResult> queryTaskList(@Param("userId")Long userId); |
|||
|
|||
List<HomeVo.ProjressMemberResult.OrgMemberResult> orgMemberList(); |
|||
List<HomeVo.ProjressMemberResult.TitleResult> titleList(); |
|||
List<HomeVo.ProjressMemberResult.XlResult> resultList(); |
|||
|
|||
List<HomeVo.AchievementResult> queryAchievementList(); |
|||
|
|||
List<HomeVo.MeetingResult> queryMeetingList(); |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
package com.research.system.persist.dao; |
|||
|
|||
import com.research.system.domain.dto.ProProgressDto; |
|||
import com.research.system.domain.vo.ProProgressVo; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.persist.dao |
|||
* @Date 2025/8/20 14:19 |
|||
* @description: |
|||
*/ |
|||
public interface ProgressDao { |
|||
|
|||
List<ProProgressVo.Result> queryProgressList(@Param("dto") ProProgressDto.Query dto); |
|||
|
|||
List<ProProgressVo.OrgResult> queryProgressOrgList(@Param("dto") ProProgressDto.Query dto); |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
package com.research.system.persist.dao; |
|||
|
|||
import com.research.system.domain.dto.DocumentDto; |
|||
import com.research.system.domain.vo.DocumentVo; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.persist.dao |
|||
* @Date 2025/8/25 14:19 |
|||
* @description: |
|||
*/ |
|||
public interface ProjDocumentDao { |
|||
|
|||
public List<DocumentVo.Result> query(@Param("dto") DocumentDto.Query dto); |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
package com.research.system.persist.dao; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ShsSyffCategoryDto; |
|||
import com.research.system.domain.vo.ShsSyffCategoryVo; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.persist.dao |
|||
* @Date 2025/8/19 8:57 |
|||
* @description: |
|||
*/ |
|||
public interface ShsSyffDao { |
|||
|
|||
List<ShsSyffCategoryVo.Result> query(@Param("dto") ShsSyffCategoryDto.Query dto); |
|||
|
|||
List<ShsSyffCategoryVo.CategoryResult> queryCategory(@Param("dto") ShsSyffCategoryDto.CategoryQuery dto); |
|||
|
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
package com.research.system.persist.dao; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.TaskDto; |
|||
import com.research.system.domain.vo.TaskVo; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.persist.dao |
|||
* @Date 2025/8/18 16:04 |
|||
* @description: |
|||
*/ |
|||
public interface TaskDao { |
|||
|
|||
List<TaskVo.TaskResult> queryList(@Param("dto") TaskDto.QueryTask dto); |
|||
|
|||
List<TaskVo.ExecutorResult> queryExecutorList(@Param("dto") TaskDto.QueryExecutor dto); |
|||
|
|||
List<TaskVo.DeliverableResult> queryDeliverableList(@Param("id") Long id); |
|||
|
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ProProgress; |
|||
import com.research.system.domain.po.ProProgressExample; |
|||
import com.research.system.domain.po.ProProgressWithBLOBs; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProProgressMapper { |
|||
long countByExample(ProProgressExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProProgressWithBLOBs record); |
|||
|
|||
int insertSelective(ProProgressWithBLOBs record); |
|||
|
|||
List<ProProgressWithBLOBs> selectByExampleWithBLOBs(ProProgressExample example); |
|||
|
|||
List<ProProgress> selectByExample(ProProgressExample example); |
|||
|
|||
ProProgressWithBLOBs selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProProgressWithBLOBs record, @Param("example") ProProgressExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") ProProgressWithBLOBs record, @Param("example") ProProgressExample example); |
|||
|
|||
int updateByExample(@Param("record") ProProgress record, @Param("example") ProProgressExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProProgressWithBLOBs record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(ProProgressWithBLOBs record); |
|||
|
|||
int updateByPrimaryKey(ProProgress record); |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ShsDevicePic; |
|||
import com.research.system.domain.po.ShsDevicePicExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ShsDevicePicMapper { |
|||
long countByExample(ShsDevicePicExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ShsDevicePic record); |
|||
|
|||
int insertSelective(ShsDevicePic record); |
|||
|
|||
List<ShsDevicePic> selectByExample(ShsDevicePicExample example); |
|||
|
|||
ShsDevicePic selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ShsDevicePic record, @Param("example") ShsDevicePicExample example); |
|||
|
|||
int updateByExample(@Param("record") ShsDevicePic record, @Param("example") ShsDevicePicExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ShsDevicePic record); |
|||
|
|||
int updateByPrimaryKey(ShsDevicePic record); |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ShsSyffInfo; |
|||
import com.research.system.domain.po.ShsSyffInfoExample; |
|||
import com.research.system.domain.po.ShsSyffInfoWithBLOBs; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ShsSyffInfoMapper { |
|||
long countByExample(ShsSyffInfoExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ShsSyffInfoWithBLOBs record); |
|||
|
|||
int insertSelective(ShsSyffInfoWithBLOBs record); |
|||
|
|||
List<ShsSyffInfoWithBLOBs> selectByExampleWithBLOBs(ShsSyffInfoExample example); |
|||
|
|||
List<ShsSyffInfo> selectByExample(ShsSyffInfoExample example); |
|||
|
|||
ShsSyffInfoWithBLOBs selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ShsSyffInfoWithBLOBs record, @Param("example") ShsSyffInfoExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") ShsSyffInfoWithBLOBs record, @Param("example") ShsSyffInfoExample example); |
|||
|
|||
int updateByExample(@Param("record") ShsSyffInfo record, @Param("example") ShsSyffInfoExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ShsSyffInfoWithBLOBs record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(ShsSyffInfoWithBLOBs record); |
|||
|
|||
int updateByPrimaryKey(ShsSyffInfo record); |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.TaskDeliverable; |
|||
import com.research.system.domain.po.TaskDeliverableExample; |
|||
import com.research.system.domain.po.TaskDeliverableWithBLOBs; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface TaskDeliverableMapper { |
|||
long countByExample(TaskDeliverableExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(TaskDeliverableWithBLOBs record); |
|||
|
|||
int insertSelective(TaskDeliverableWithBLOBs record); |
|||
|
|||
List<TaskDeliverableWithBLOBs> selectByExampleWithBLOBs(TaskDeliverableExample example); |
|||
|
|||
List<TaskDeliverable> selectByExample(TaskDeliverableExample example); |
|||
|
|||
TaskDeliverableWithBLOBs selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") TaskDeliverableWithBLOBs record, @Param("example") TaskDeliverableExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") TaskDeliverableWithBLOBs record, @Param("example") TaskDeliverableExample example); |
|||
|
|||
int updateByExample(@Param("record") TaskDeliverable record, @Param("example") TaskDeliverableExample example); |
|||
|
|||
int updateByPrimaryKeySelective(TaskDeliverableWithBLOBs record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(TaskDeliverableWithBLOBs record); |
|||
|
|||
int updateByPrimaryKey(TaskDeliverable record); |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.TaskExecutor; |
|||
import com.research.system.domain.po.TaskExecutorExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface TaskExecutorMapper { |
|||
long countByExample(TaskExecutorExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(TaskExecutor record); |
|||
|
|||
int insertSelective(TaskExecutor record); |
|||
|
|||
List<TaskExecutor> selectByExample(TaskExecutorExample example); |
|||
|
|||
TaskExecutor selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") TaskExecutor record, @Param("example") TaskExecutorExample example); |
|||
|
|||
int updateByExample(@Param("record") TaskExecutor record, @Param("example") TaskExecutorExample example); |
|||
|
|||
int updateByPrimaryKeySelective(TaskExecutor record); |
|||
|
|||
int updateByPrimaryKey(TaskExecutor record); |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.TaskList; |
|||
import com.research.system.domain.po.TaskListExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface TaskListMapper { |
|||
long countByExample(TaskListExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(TaskList record); |
|||
|
|||
int insertSelective(TaskList record); |
|||
|
|||
List<TaskList> selectByExampleWithBLOBs(TaskListExample example); |
|||
|
|||
List<TaskList> selectByExample(TaskListExample example); |
|||
|
|||
TaskList selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") TaskList record, @Param("example") TaskListExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") TaskList record, @Param("example") TaskListExample example); |
|||
|
|||
int updateByExample(@Param("record") TaskList record, @Param("example") TaskListExample example); |
|||
|
|||
int updateByPrimaryKeySelective(TaskList record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(TaskList record); |
|||
|
|||
int updateByPrimaryKey(TaskList record); |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package com.research.system.service; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/8/26 10:58 |
|||
* @description: |
|||
*/ |
|||
public interface FlowService { |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
package com.research.system.service; |
|||
|
|||
import com.research.system.domain.vo.HomeVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/8/21 13:58 |
|||
* @description: |
|||
*/ |
|||
public interface HomeService { |
|||
|
|||
HomeVo.Result queryHomeInfo(); |
|||
|
|||
List<HomeVo.GroupResult> queryGroupList(); |
|||
|
|||
List<HomeVo.TaskResult> queryTaskList(); |
|||
|
|||
HomeVo.ProjressMemberResult queryProjressMemberList(); |
|||
|
|||
List<HomeVo.AchievementResult> queryAchievementList(); |
|||
|
|||
List<HomeVo.MeetingResult> queryMeetingList(); |
|||
|
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
package com.research.system.service; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ProProgressDto; |
|||
import com.research.system.domain.vo.ProProgressVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/8/20 9:20 |
|||
* @description: |
|||
*/ |
|||
public interface ProgressService { |
|||
|
|||
List<ProProgressVo.Result> queryProgressList(ProProgressDto.Query query); |
|||
|
|||
List<ProProgressVo.OrgResult> queryProgressOrgList(ProProgressDto.Query query); |
|||
|
|||
Integer addProgress(ProProgressDto.Add dto); |
|||
|
|||
Integer delProgress(CommonDto.DelDto dto); |
|||
|
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
package com.research.system.service; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.DocumentDto; |
|||
import com.research.system.domain.vo.DocumentVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/8/25 14:15 |
|||
* @description: |
|||
*/ |
|||
public interface ProjDocumentService { |
|||
|
|||
List<DocumentVo.Result> query(DocumentDto.Query dto); |
|||
|
|||
void add(DocumentDto.Add dto); |
|||
|
|||
void del(CommonDto.DelDto dto); |
|||
|
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
package com.research.system.service; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ShsSyffCategoryDto; |
|||
import com.research.system.domain.vo.ShsSyffCategoryVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/8/18 17:31 |
|||
* @description: |
|||
*/ |
|||
public interface ShsSyffCategoryService { |
|||
|
|||
List<ShsSyffCategoryVo.Result> query(ShsSyffCategoryDto.Query query); |
|||
|
|||
Integer add(ShsSyffCategoryDto.Add add); |
|||
|
|||
Integer del(CommonDto.DelDto dto); |
|||
|
|||
List<ShsSyffCategoryVo.CategoryResult> queryCategory(ShsSyffCategoryDto.CategoryQuery query); |
|||
|
|||
Integer addCategory(ShsSyffCategoryDto.CategoryAdd add); |
|||
|
|||
Integer delCategory(CommonDto.DelDto dto); |
|||
|
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
package com.research.system.service; |
|||
|
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.TaskDto; |
|||
import com.research.system.domain.vo.TaskVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/8/17 15:52 |
|||
* @description: |
|||
*/ |
|||
public interface TaskService { |
|||
|
|||
List<TaskVo.TaskResult> queryList(TaskDto.QueryTask query); |
|||
|
|||
void add(TaskDto.AddTask dto); |
|||
|
|||
void del(CommonDto.DelDto dto); |
|||
|
|||
List<TaskVo.ExecutorResult> queryExecutorList(TaskDto.QueryExecutor query); |
|||
|
|||
void addExecutor(TaskDto.AddExecutor dto); |
|||
|
|||
void delExecutor(CommonDto.DelDto dto); |
|||
|
|||
List<TaskVo.DeliverableResult> queryDeliverableList(TaskDto.QueryDeliverable query); |
|||
|
|||
void addDeliverable(TaskDto.AddDeliverable dto); |
|||
|
|||
void delDeliverable(CommonDto.DelDto dto); |
|||
|
|||
} |
|||
@ -0,0 +1,105 @@ |
|||
package com.research.system.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.collection.CollUtil; |
|||
import com.research.common.utils.SecurityUtils; |
|||
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.HomeDao; |
|||
import com.research.system.persist.mapper.KtsKtGroupMapper; |
|||
import com.research.system.persist.mapper.PrjProjOrgMapper; |
|||
import com.research.system.persist.mapper.ProProgressMapper; |
|||
import com.research.system.service.HomeService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
import java.util.stream.Collectors; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service.impl |
|||
* @Date 2025/8/21 14:24 |
|||
* @description: |
|||
*/ |
|||
@Service |
|||
public class HomeServiceImpl implements HomeService { |
|||
//
|
|||
@Resource |
|||
private HomeDao homeDao; |
|||
@Resource |
|||
private PrjProjOrgMapper prjProjOrgMapper; |
|||
@Resource |
|||
private ProProgressMapper proProgressMapper; |
|||
@Resource |
|||
private KtsKtGroupMapper ktsKtGroupMapper; |
|||
|
|||
@Override |
|||
public HomeVo.Result queryHomeInfo() { |
|||
HomeVo.Result result = homeDao.queryHomeInfo(); |
|||
if (result != null && result.getId() != null) { |
|||
PrjProjOrgExample prjProjOrgExample = new PrjProjOrgExample(); |
|||
prjProjOrgExample.createCriteria().andProjIdEqualTo(result.getId()).andDelFlagEqualTo((byte) 0); |
|||
prjProjOrgExample.setOrderByClause("sort"); |
|||
List<PrjProjOrg> prjProjOrgs = prjProjOrgMapper.selectByExample(prjProjOrgExample); |
|||
if (CollUtil.isNotEmpty(prjProjOrgs)) { |
|||
result.setOrgList(BeanUtil.copyToList(prjProjOrgs, HomeVo.Result.OrgVO.class)); |
|||
} |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
@Override |
|||
public List<HomeVo.GroupResult> queryGroupList() { |
|||
List<HomeVo.GroupResult> groupResults = homeDao.queryGroupList(); |
|||
if (CollUtil.isNotEmpty(groupResults)) { |
|||
for (HomeVo.GroupResult groupResult : groupResults) { |
|||
//查询子课题组
|
|||
KtsKtGroupExample ktsKtGroupExample = new KtsKtGroupExample(); |
|||
ktsKtGroupExample.createCriteria().andParentKtIdEqualTo(groupResult.getId()).andDelFlagEqualTo((byte) 0); |
|||
List<KtsKtGroup> ktsKtGroups = ktsKtGroupMapper.selectByExample(ktsKtGroupExample); |
|||
if (CollUtil.isNotEmpty(ktsKtGroups)) { |
|||
List<GroupVO.Result> results = BeanUtil.copyToList(ktsKtGroups, GroupVO.Result.class); |
|||
if (CollUtil.isNotEmpty(results)) { |
|||
for (GroupVO.Result result : results) { |
|||
//查询进度
|
|||
ProProgressExample proProgressExample = new ProProgressExample(); |
|||
proProgressExample.createCriteria().andKtGroupIdEqualTo(result.getId()).andDelFlagEqualTo((byte) 0); |
|||
List<ProProgress> proProgresses = proProgressMapper.selectByExample(proProgressExample); |
|||
if (CollUtil.isNotEmpty(proProgresses)) { |
|||
result.setCompletionPercentage(proProgresses.get(0).getCompletionPercentage()); |
|||
} |
|||
} |
|||
} |
|||
groupResult.setGroupList(results); |
|||
} |
|||
} |
|||
} |
|||
return groupResults; |
|||
} |
|||
|
|||
@Override |
|||
public List<HomeVo.TaskResult> queryTaskList() { |
|||
return homeDao.queryTaskList(SecurityUtils.getUserId()); |
|||
} |
|||
|
|||
@Override |
|||
public HomeVo.ProjressMemberResult queryProjressMemberList() { |
|||
HomeVo.ProjressMemberResult projressMemberResult = new HomeVo.ProjressMemberResult(); |
|||
projressMemberResult.setOrgMemberList(homeDao.orgMemberList()); |
|||
projressMemberResult.setXlList(homeDao.resultList()); |
|||
projressMemberResult.setTitleList(homeDao.titleList()); |
|||
return projressMemberResult; |
|||
} |
|||
|
|||
@Override |
|||
public List<HomeVo.AchievementResult> queryAchievementList() { |
|||
return homeDao.queryAchievementList(); |
|||
} |
|||
|
|||
@Override |
|||
public List<HomeVo.MeetingResult> queryMeetingList() { |
|||
return homeDao.queryMeetingList(); |
|||
} |
|||
} |
|||
@ -0,0 +1,80 @@ |
|||
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.ProProgressDto; |
|||
import com.research.system.domain.po.PrjProjInfo; |
|||
import com.research.system.domain.po.ProProgress; |
|||
import com.research.system.domain.po.ProProgressExample; |
|||
import com.research.system.domain.po.ProProgressWithBLOBs; |
|||
import com.research.system.domain.vo.ProProgressVo; |
|||
import com.research.system.persist.dao.ProgressDao; |
|||
import com.research.system.persist.mapper.ProProgressMapper; |
|||
import com.research.system.service.ClientPrjProjInfoService; |
|||
import com.research.system.service.ProgressService; |
|||
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/20 9:32 |
|||
* @description: |
|||
*/ |
|||
@Service |
|||
public class ProgressServiceImpl implements ProgressService { |
|||
|
|||
@Resource |
|||
private ProProgressMapper proProgressMapper; |
|||
@Resource |
|||
private ClientPrjProjInfoService clientPrjProjInfoService; |
|||
@Resource |
|||
private ProgressDao progressDao; |
|||
|
|||
@Override |
|||
public List<ProProgressVo.Result> queryProgressList(ProProgressDto.Query query) { |
|||
return progressDao.queryProgressList( query); |
|||
} |
|||
|
|||
@Override |
|||
public List<ProProgressVo.OrgResult> queryProgressOrgList(ProProgressDto.Query query) { |
|||
return progressDao.queryProgressOrgList( query); |
|||
} |
|||
|
|||
@Override |
|||
public Integer addProgress(ProProgressDto.Add dto) { |
|||
ProProgressWithBLOBs proProgress = BeanUtil.copyProperties(dto, ProProgressWithBLOBs.class); |
|||
if (dto.getId() == null) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new BaseException("未查询到项目"); |
|||
} |
|||
proProgress.setCreateBy(SecurityUtils.getUsername()); |
|||
proProgress.setProjId(proInfoByTenantId.getId()); |
|||
proProgress.setCreateTime(new Date()); |
|||
proProgress.setId(IdUtil.getSnowflakeNextId()); |
|||
return proProgressMapper.insertSelective(proProgress); |
|||
}else { |
|||
proProgress.setUpdateBy(SecurityUtils.getUsername()); |
|||
proProgress.setUpdateTime(new Date()); |
|||
proProgress.setId(dto.getId()); |
|||
proProgress.setDelFlag((byte) 0); |
|||
return proProgressMapper.updateByPrimaryKeyWithBLOBs(proProgress); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public Integer delProgress(CommonDto.DelDto dto) { |
|||
ProProgressWithBLOBs proProgress = new ProProgressWithBLOBs(); |
|||
proProgress.setDelFlag((byte) 1); |
|||
ProProgressExample proProgressExample = new ProProgressExample(); |
|||
proProgressExample.createCriteria().andIdIn(dto.getIdList()); |
|||
return proProgressMapper.updateByExampleSelective(proProgress, proProgressExample); |
|||
} |
|||
} |
|||
@ -0,0 +1,72 @@ |
|||
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.DocumentDto; |
|||
import com.research.system.domain.po.PrjProjDocument; |
|||
import com.research.system.domain.po.PrjProjDocumentExample; |
|||
import com.research.system.domain.po.PrjProjInfo; |
|||
import com.research.system.domain.vo.DocumentVo; |
|||
import com.research.system.persist.dao.ProjDocumentDao; |
|||
import com.research.system.persist.mapper.PrjProjDocumentMapper; |
|||
import com.research.system.service.ClientPrjProjInfoService; |
|||
import com.research.system.service.ProjDocumentService; |
|||
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/25 14:16 |
|||
* @description: |
|||
*/ |
|||
@Service |
|||
public class ProjDocumentServiceImpl implements ProjDocumentService { |
|||
|
|||
@Resource |
|||
private PrjProjDocumentMapper projDocumentMapper; |
|||
@Resource |
|||
private ClientPrjProjInfoService clientPrjProjInfoService; |
|||
@Resource |
|||
private ProjDocumentDao projDocumentDao; |
|||
|
|||
@Override |
|||
public List<DocumentVo.Result> query(DocumentDto.Query dto) { |
|||
return projDocumentDao.query(dto); |
|||
} |
|||
|
|||
@Override |
|||
public void add(DocumentDto.Add dto) { |
|||
PrjProjDocument prjProjDocument = BeanUtil.copyProperties(dto, PrjProjDocument.class); |
|||
if (dto.getId() == null) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new BaseException("未查询到项目"); |
|||
} |
|||
prjProjDocument.setProjId(proInfoByTenantId.getId()); |
|||
prjProjDocument.setCreateBy(SecurityUtils.getUsername()); |
|||
prjProjDocument.setCreateTime(new Date()); |
|||
prjProjDocument.setId(IdUtil.getSnowflake().nextId()); |
|||
projDocumentMapper.insertSelective(prjProjDocument); |
|||
}else { |
|||
prjProjDocument.setUpdateBy(SecurityUtils.getUsername()); |
|||
prjProjDocument.setUpdateTime(new Date()); |
|||
projDocumentMapper.updateByPrimaryKeySelective(prjProjDocument); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public void del(CommonDto.DelDto dto) { |
|||
PrjProjDocument prjProjDocument = new PrjProjDocument(); |
|||
prjProjDocument.setDelFlag((byte) 1); |
|||
PrjProjDocumentExample prjProjDocumentExample = new PrjProjDocumentExample(); |
|||
prjProjDocumentExample.createCriteria().andIdIn(dto.getIdList()); |
|||
projDocumentMapper.updateByExampleSelective(prjProjDocument, prjProjDocumentExample); |
|||
} |
|||
} |
|||
@ -0,0 +1,107 @@ |
|||
package com.research.system.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.util.IdUtil; |
|||
import com.research.common.utils.SecurityUtils; |
|||
import com.research.system.domain.dto.CommonDto; |
|||
import com.research.system.domain.dto.ShsSyffCategoryDto; |
|||
import com.research.system.domain.po.*; |
|||
import com.research.system.domain.vo.ShsSyffCategoryVo; |
|||
import com.research.system.persist.dao.ShsSyffDao; |
|||
import com.research.system.persist.mapper.ShsSyffCategoryMapper; |
|||
import com.research.system.persist.mapper.ShsSyffInfoMapper; |
|||
import com.research.system.service.ClientPrjProjInfoService; |
|||
import com.research.system.service.ShsSyffCategoryService; |
|||
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/19 8:51 |
|||
* @description: |
|||
*/ |
|||
@Service |
|||
public class ShsSyffCategoryServiceImpl implements ShsSyffCategoryService { |
|||
|
|||
@Resource |
|||
private ShsSyffCategoryMapper shsSyffCategoryMapper; |
|||
@Resource |
|||
private ShsSyffInfoMapper shsSyffInfoMapper; |
|||
@Resource |
|||
private ClientPrjProjInfoService clientPrjProjInfoService; |
|||
@Resource |
|||
private ShsSyffDao shsSyffDao; |
|||
|
|||
@Override |
|||
public List<ShsSyffCategoryVo.Result> query(ShsSyffCategoryDto.Query query) { |
|||
return shsSyffDao.query(query); |
|||
} |
|||
|
|||
@Override |
|||
public Integer add(ShsSyffCategoryDto.Add add) { |
|||
ShsSyffInfoWithBLOBs shsSyffInfo = BeanUtil.copyProperties(add, ShsSyffInfoWithBLOBs.class); |
|||
if (add.getId() == null) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new RuntimeException("未查询到项目"); |
|||
} |
|||
shsSyffInfo.setId(IdUtil.getSnowflakeNextId()); |
|||
shsSyffInfo.setProjId(proInfoByTenantId.getId()); |
|||
shsSyffInfo.setCreateBy(SecurityUtils.getUsername()); |
|||
shsSyffInfo.setCreateTime(new Date()); |
|||
return shsSyffInfoMapper.insertSelective(shsSyffInfo); |
|||
} else { |
|||
shsSyffInfo.setUpdateBy(SecurityUtils.getUsername()); |
|||
shsSyffInfo.setDelFlag((byte) 0); |
|||
shsSyffInfo.setUpdateTime(new Date()); |
|||
return shsSyffInfoMapper.updateByPrimaryKeyWithBLOBs(shsSyffInfo); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public Integer del(CommonDto.DelDto dto) { |
|||
ShsSyffInfoWithBLOBs shsSyffInfo = new ShsSyffInfoWithBLOBs(); |
|||
shsSyffInfo.setDelFlag((byte) 1); |
|||
ShsSyffInfoExample shsSyffInfoExample = new ShsSyffInfoExample(); |
|||
shsSyffInfoExample.createCriteria().andIdIn(dto.getIdList()); |
|||
return shsSyffInfoMapper.updateByExampleSelective(shsSyffInfo, shsSyffInfoExample); |
|||
} |
|||
|
|||
@Override |
|||
public List<ShsSyffCategoryVo.CategoryResult> queryCategory(ShsSyffCategoryDto.CategoryQuery query) { |
|||
return shsSyffDao.queryCategory(query); |
|||
} |
|||
|
|||
@Override |
|||
public Integer addCategory(ShsSyffCategoryDto.CategoryAdd add) { |
|||
ShsSyffCategory shsSyffCategory = BeanUtil.copyProperties(add, ShsSyffCategory.class); |
|||
if (add.getId() == null) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new RuntimeException("未查询到项目"); |
|||
} |
|||
shsSyffCategory.setId(IdUtil.getSnowflakeNextId()); |
|||
shsSyffCategory.setProjId(proInfoByTenantId.getId()); |
|||
shsSyffCategory.setCreateBy(SecurityUtils.getUsername()); |
|||
shsSyffCategory.setCreateTime(new Date()); |
|||
return shsSyffCategoryMapper.insertSelective(shsSyffCategory); |
|||
} else { |
|||
shsSyffCategory.setUpdateBy(SecurityUtils.getUsername()); |
|||
shsSyffCategory.setUpdateTime(new Date()); |
|||
return shsSyffCategoryMapper.updateByPrimaryKeySelective(shsSyffCategory); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public Integer delCategory(CommonDto.DelDto dto) { |
|||
ShsSyffCategory shsSyffInfo = new ShsSyffCategory(); |
|||
shsSyffInfo.setDelFlag((byte) 1); |
|||
ShsSyffCategoryExample shsSyffCategoryExample = new ShsSyffCategoryExample(); |
|||
shsSyffCategoryExample.createCriteria().andIdIn(dto.getIdList()); |
|||
return shsSyffCategoryMapper.updateByExampleSelective(shsSyffInfo, shsSyffCategoryExample); |
|||
} |
|||
} |
|||
@ -0,0 +1,171 @@ |
|||
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.TaskDto; |
|||
import com.research.system.domain.po.*; |
|||
import com.research.system.domain.vo.TaskVo; |
|||
import com.research.system.persist.dao.TaskDao; |
|||
import com.research.system.persist.mapper.TaskDeliverableMapper; |
|||
import com.research.system.persist.mapper.TaskExecutorMapper; |
|||
import com.research.system.persist.mapper.TaskListMapper; |
|||
import com.research.system.service.ClientPrjProjInfoService; |
|||
import com.research.system.service.TaskService; |
|||
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/17 15:53 |
|||
* @description: |
|||
*/ |
|||
@Service |
|||
public class TaskServiceImpl implements TaskService { |
|||
|
|||
@Resource |
|||
private TaskListMapper taskListMapper; |
|||
@Resource |
|||
private TaskExecutorMapper taskExecutorMapper; |
|||
@Resource |
|||
private TaskDeliverableMapper taskDeliverableMapper; |
|||
@Resource |
|||
private ClientPrjProjInfoService clientPrjProjInfoService; |
|||
@Resource |
|||
private TaskDao taskDao; |
|||
|
|||
@Override |
|||
public List<TaskVo.TaskResult> queryList(TaskDto.QueryTask query) { |
|||
return taskDao.queryList(query); |
|||
} |
|||
|
|||
@Override |
|||
public void add(TaskDto.AddTask dto) { |
|||
TaskListWithBLOBs taskList = BeanUtil.copyProperties(dto, TaskListWithBLOBs.class); |
|||
if (dto.getId() == null) { |
|||
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId()); |
|||
if (proInfoByTenantId == null) { |
|||
throw new BaseException("未查询到项目"); |
|||
} |
|||
taskList.setCreateBy(SecurityUtils.getUsername()); |
|||
taskList.setCreateTime(new Date()); |
|||
taskList.setProjId(proInfoByTenantId.getId()); |
|||
taskList.setDelFlag((byte) 0); |
|||
taskList.setInitiator(SecurityUtils.getUsername()); |
|||
taskList.setId(IdUtil.getSnowflake().nextId()); |
|||
taskListMapper.insertSelective(taskList); |
|||
|
|||
if (dto.getExecutorList() != null) { |
|||
for (TaskDto.AddExecutor addExecutor : dto.getExecutorList()) { |
|||
TaskExecutor taskExecutor = new TaskExecutor(); |
|||
taskExecutor.setTaskId(taskList.getId()); |
|||
taskExecutor.setExecutorId(addExecutor.getExecutorId()); |
|||
taskExecutor.setCreateBy(SecurityUtils.getUsername()); |
|||
taskExecutor.setCreateTime(new Date()); |
|||
taskExecutor.setId(IdUtil.getSnowflake().nextId()); |
|||
taskExecutor.setDelFlag((byte) 0); |
|||
taskExecutorMapper.insertSelective(taskExecutor); |
|||
} |
|||
} |
|||
}else { |
|||
taskList.setUpdateBy(SecurityUtils.getUsername()); |
|||
taskList.setUpdateTime(new Date()); |
|||
taskList.setDelFlag((byte) 0); |
|||
taskListMapper.updateByPrimaryKeyWithBLOBs(taskList); |
|||
|
|||
TaskExecutor taskExecutor1 = new TaskExecutor(); |
|||
taskExecutor1.setDelFlag((byte) 0); |
|||
TaskExecutorExample taskExecutorExample = new TaskExecutorExample(); |
|||
taskExecutorExample.createCriteria().andTaskIdEqualTo(taskList.getId()); |
|||
taskExecutorMapper.updateByExampleSelective(taskExecutor1, taskExecutorExample); |
|||
|
|||
if (dto.getExecutorList() != null) { |
|||
for (TaskDto.AddExecutor addExecutor : dto.getExecutorList()) { |
|||
TaskExecutor taskExecutor = new TaskExecutor(); |
|||
taskExecutor.setTaskId(taskList.getId()); |
|||
taskExecutor.setExecutorId(addExecutor.getExecutorId()); |
|||
taskExecutor.setCreateBy(SecurityUtils.getUsername()); |
|||
taskExecutor.setCreateTime(new Date()); |
|||
taskExecutor.setDelFlag((byte) 0); |
|||
taskExecutorMapper.insertSelective(taskExecutor); |
|||
} |
|||
} |
|||
|
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public void del(CommonDto.DelDto dto) { |
|||
TaskListExample taskListExample = new TaskListExample(); |
|||
taskListExample.createCriteria().andIdIn(dto.getIdList()); |
|||
TaskListWithBLOBs taskListWithBLOBs = new TaskListWithBLOBs(); |
|||
taskListWithBLOBs.setDelFlag(Byte.valueOf("1")); |
|||
taskListMapper.updateByExampleSelective(taskListWithBLOBs, taskListExample); |
|||
} |
|||
|
|||
@Override |
|||
public List<TaskVo.ExecutorResult> queryExecutorList(TaskDto.QueryExecutor query) { |
|||
return taskDao.queryExecutorList( query); |
|||
} |
|||
|
|||
@Override |
|||
public void addExecutor(TaskDto.AddExecutor dto) { |
|||
TaskExecutor taskExecutor = BeanUtil.copyProperties(dto, TaskExecutor.class); |
|||
if (taskExecutor.getId() == null) { |
|||
taskExecutor.setDelFlag(Byte.valueOf("0")); |
|||
taskExecutor.setCreateBy(SecurityUtils.getUsername()); |
|||
taskExecutor.setCreateTime(new Date()); |
|||
taskExecutorMapper.insertSelective(taskExecutor); |
|||
}else { |
|||
taskExecutor.setUpdateBy(SecurityUtils.getUsername()); |
|||
taskExecutor.setUpdateTime(new Date()); |
|||
taskExecutorMapper.updateByPrimaryKeySelective(taskExecutor); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public void delExecutor(CommonDto.DelDto dto) { |
|||
TaskExecutor taskExecutor1 = new TaskExecutor(); |
|||
taskExecutor1.setDelFlag((byte) 0); |
|||
TaskExecutorExample taskExecutorExample = new TaskExecutorExample(); |
|||
taskExecutorExample.createCriteria().andIdIn(dto.getIdList()); |
|||
taskExecutorMapper.updateByExampleSelective(taskExecutor1, taskExecutorExample); |
|||
|
|||
} |
|||
|
|||
@Override |
|||
public List<TaskVo.DeliverableResult> queryDeliverableList(TaskDto.QueryDeliverable query) { |
|||
return taskDao.queryDeliverableList( query.getTaskId()); |
|||
} |
|||
|
|||
@Override |
|||
public void addDeliverable(TaskDto.AddDeliverable dto) { |
|||
TaskDeliverableWithBLOBs taskDeliverable = BeanUtil.copyProperties(dto, TaskDeliverableWithBLOBs.class); |
|||
if (taskDeliverable.getId() == null) { |
|||
taskDeliverable.setDelFlag(Byte.valueOf("0")); |
|||
taskDeliverable.setCreateBy(SecurityUtils.getUsername()); |
|||
taskDeliverable.setCreateTime(new Date()); |
|||
taskDeliverableMapper.insertSelective(taskDeliverable); |
|||
}else { |
|||
taskDeliverable.setUpdateBy(SecurityUtils.getUsername()); |
|||
taskDeliverable.setUpdateTime(new Date()); |
|||
taskDeliverableMapper.updateByPrimaryKeySelective(taskDeliverable); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public void delDeliverable(CommonDto.DelDto dto) { |
|||
TaskDeliverableWithBLOBs taskDeliverableWithBLOBs = new TaskDeliverableWithBLOBs(); |
|||
taskDeliverableWithBLOBs.setDelFlag((byte) 0); |
|||
TaskDeliverableExample taskDeliverableExample = new TaskDeliverableExample(); |
|||
taskDeliverableExample.createCriteria().andIdIn(dto.getIdList()); |
|||
taskDeliverableMapper.updateByExampleSelective(taskDeliverableWithBLOBs, taskDeliverableExample); |
|||
|
|||
} |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue