parent
f67aafa7ec
commit
d28f35e328
|
@ -0,0 +1,74 @@
|
|||
package tech.unissense.pms.web.controller.business.examine.config;
|
||||
|
||||
import tech.unissense.pms.business.examine.config.domain.ExamineConfig;
|
||||
import tech.unissense.pms.business.examine.config.service.ExamineConfigService;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核配置表(ExamineConfig)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:17:37
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("examineConfig")
|
||||
public class ExamineConfigController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private ExamineConfigService examineConfigService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("{id}")
|
||||
public ResponseEntity<ExamineConfig> queryById(@PathVariable("id") Integer id) {
|
||||
return ResponseEntity.ok(this.examineConfigService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineConfig 实体
|
||||
* @return 新增结果
|
||||
*/
|
||||
@PostMapping
|
||||
public ResponseEntity<ExamineConfig> add(ExamineConfig examineConfig) {
|
||||
return ResponseEntity.ok(this.examineConfigService.insert(examineConfig));
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑数据
|
||||
*
|
||||
* @param examineConfig 实体
|
||||
* @return 编辑结果
|
||||
*/
|
||||
@PutMapping
|
||||
public ResponseEntity<ExamineConfig> edit(ExamineConfig examineConfig) {
|
||||
return ResponseEntity.ok(this.examineConfigService.update(examineConfig));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 删除是否成功
|
||||
*/
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Boolean> deleteById(Integer id) {
|
||||
return ResponseEntity.ok(this.examineConfigService.deleteById(id));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package tech.unissense.pms.web.controller.business.examine.detail;
|
||||
|
||||
import tech.unissense.pms.business.examine.detail.domain.ExamineDetail;
|
||||
import tech.unissense.pms.business.examine.detail.service.ExamineDetailService;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核人员详情表(ExamineDetail)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("examineDetail")
|
||||
public class ExamineDetailController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private ExamineDetailService examineDetailService;
|
||||
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("{id}")
|
||||
public ResponseEntity<ExamineDetail> queryById(@PathVariable("id") Integer id) {
|
||||
return ResponseEntity.ok(this.examineDetailService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineDetail 实体
|
||||
* @return 新增结果
|
||||
*/
|
||||
@PostMapping
|
||||
public ResponseEntity<ExamineDetail> add(ExamineDetail examineDetail) {
|
||||
return ResponseEntity.ok(this.examineDetailService.insert(examineDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑数据
|
||||
*
|
||||
* @param examineDetail 实体
|
||||
* @return 编辑结果
|
||||
*/
|
||||
@PutMapping
|
||||
public ResponseEntity<ExamineDetail> edit(ExamineDetail examineDetail) {
|
||||
return ResponseEntity.ok(this.examineDetailService.update(examineDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 删除是否成功
|
||||
*/
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Boolean> deleteById(Integer id) {
|
||||
return ResponseEntity.ok(this.examineDetailService.deleteById(id));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package tech.unissense.pms.web.controller.business.examine.task;
|
||||
|
||||
import tech.unissense.pms.business.examine.task.domain.ExamineTask;
|
||||
import tech.unissense.pms.business.examine.task.service.ExamineTaskService;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核任务表 (ExamineTask)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("examineTask")
|
||||
public class ExamineTaskController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private ExamineTaskService examineTaskService;
|
||||
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("{id}")
|
||||
public ResponseEntity<ExamineTask> queryById(@PathVariable("id") Integer id) {
|
||||
return ResponseEntity.ok(this.examineTaskService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineTask 实体
|
||||
* @return 新增结果
|
||||
*/
|
||||
@PostMapping
|
||||
public ResponseEntity<ExamineTask> add(ExamineTask examineTask) {
|
||||
return ResponseEntity.ok(this.examineTaskService.insert(examineTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑数据
|
||||
*
|
||||
* @param examineTask 实体
|
||||
* @return 编辑结果
|
||||
*/
|
||||
@PutMapping
|
||||
public ResponseEntity<ExamineTask> edit(ExamineTask examineTask) {
|
||||
return ResponseEntity.ok(this.examineTaskService.update(examineTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 删除是否成功
|
||||
*/
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Boolean> deleteById(Integer id) {
|
||||
return ResponseEntity.ok(this.examineTaskService.deleteById(id));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package tech.unissense.pms.web.controller.business.examine.user;
|
||||
|
||||
import tech.unissense.pms.business.examine.user.domain.ExamineUser;
|
||||
import tech.unissense.pms.business.examine.user.service.ExamineUserService;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核人员表(ExamineUser)表控制层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:52
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("examineUser")
|
||||
public class ExamineUserController {
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private ExamineUserService examineUserService;
|
||||
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("{id}")
|
||||
public ResponseEntity<ExamineUser> queryById(@PathVariable("id") Integer id) {
|
||||
return ResponseEntity.ok(this.examineUserService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineUser 实体
|
||||
* @return 新增结果
|
||||
*/
|
||||
@PostMapping
|
||||
public ResponseEntity<ExamineUser> add(ExamineUser examineUser) {
|
||||
return ResponseEntity.ok(this.examineUserService.insert(examineUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑数据
|
||||
*
|
||||
* @param examineUser 实体
|
||||
* @return 编辑结果
|
||||
*/
|
||||
@PutMapping
|
||||
public ResponseEntity<ExamineUser> edit(ExamineUser examineUser) {
|
||||
return ResponseEntity.ok(this.examineUserService.update(examineUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 删除是否成功
|
||||
*/
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Boolean> deleteById(Integer id) {
|
||||
return ResponseEntity.ok(this.examineUserService.deleteById(id));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package tech.unissense.pms.business.examine.config.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 考核配置表(ExamineConfig)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:17:38
|
||||
*/
|
||||
@Data
|
||||
public class ExamineConfig implements Serializable {
|
||||
private static final long serialVersionUID = 580184465217250056L;
|
||||
|
||||
private Integer id;
|
||||
/**
|
||||
* 评审类型 0:组长评审 1:个人评估 2:系统核算
|
||||
*/
|
||||
private String reviewType;
|
||||
/**
|
||||
* 评审类别
|
||||
*/
|
||||
private String reviewCategory;
|
||||
/**
|
||||
* 评审项
|
||||
*/
|
||||
private String reviewItem;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remarks;
|
||||
/**
|
||||
* 权重
|
||||
*/
|
||||
private Double weight;
|
||||
/**
|
||||
* 考核id
|
||||
*/
|
||||
private Integer examineTaskId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package tech.unissense.pms.business.examine.config.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import tech.unissense.pms.business.examine.config.domain.ExamineConfig;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 考核配置表(ExamineConfig)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:17:37
|
||||
*/
|
||||
@Mapper
|
||||
public interface ExamineConfigDao {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineConfig queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询指定行数据
|
||||
*
|
||||
* @param examineConfig 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<ExamineConfig> queryAllByLimit(ExamineConfig examineConfig, @Param("pageable") Pageable pageable);
|
||||
|
||||
/**
|
||||
* 统计总行数
|
||||
*
|
||||
* @param examineConfig 查询条件
|
||||
* @return 总行数
|
||||
*/
|
||||
long count(ExamineConfig examineConfig);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineConfig 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(ExamineConfig examineConfig);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineConfig> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<ExamineConfig> entities);
|
||||
|
||||
/**
|
||||
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineConfig> 实例对象列表
|
||||
* @return 影响行数
|
||||
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
|
||||
*/
|
||||
int insertOrUpdateBatch(@Param("entities") List<ExamineConfig> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineConfig 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(ExamineConfig examineConfig);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
package tech.unissense.pms.business.examine.config.service;
|
||||
|
||||
import tech.unissense.pms.business.examine.config.domain.ExamineConfig;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
|
||||
/**
|
||||
* 考核配置表(ExamineConfig)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:17:39
|
||||
*/
|
||||
public interface ExamineConfigService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineConfig queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineConfig 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineConfig insert(ExamineConfig examineConfig);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineConfig 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineConfig update(ExamineConfig examineConfig);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Integer id);
|
||||
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
package tech.unissense.pms.business.examine.config.service.impl;
|
||||
|
||||
import tech.unissense.pms.business.examine.config.domain.ExamineConfig;
|
||||
import tech.unissense.pms.business.examine.config.mapper.ExamineConfigDao;
|
||||
import tech.unissense.pms.business.examine.config.service.ExamineConfigService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核配置表(ExamineConfig)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:17:39
|
||||
*/
|
||||
@Service("examineConfigService")
|
||||
public class ExamineConfigServiceImpl implements ExamineConfigService {
|
||||
@Resource
|
||||
private ExamineConfigDao examineConfigDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineConfig queryById(Integer id) {
|
||||
return this.examineConfigDao.queryById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineConfig 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineConfig insert(ExamineConfig examineConfig) {
|
||||
this.examineConfigDao.insert(examineConfig);
|
||||
return examineConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineConfig 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineConfig update(ExamineConfig examineConfig) {
|
||||
this.examineConfigDao.update(examineConfig);
|
||||
return this.queryById(examineConfig.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Integer id) {
|
||||
return this.examineConfigDao.deleteById(id) > 0;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package tech.unissense.pms.business.examine.detail.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 考核人员详情表(ExamineDetail)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:05
|
||||
*/
|
||||
@Data
|
||||
public class ExamineDetail implements Serializable {
|
||||
private static final long serialVersionUID = -30214803434515215L;
|
||||
|
||||
private Integer id;
|
||||
/**
|
||||
* 考核id
|
||||
*/
|
||||
private Integer examineId;
|
||||
/**
|
||||
* 考核分数(原始分数)
|
||||
*/
|
||||
private Integer score;
|
||||
/**
|
||||
* 评价备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 考核标准id
|
||||
*/
|
||||
private Integer configId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package tech.unissense.pms.business.examine.detail.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import tech.unissense.pms.business.examine.detail.domain.ExamineDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 考核人员详情表(ExamineDetail)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:05
|
||||
*/
|
||||
@Mapper
|
||||
public interface ExamineDetailDao {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineDetail queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询指定行数据
|
||||
*
|
||||
* @param examineDetail 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<ExamineDetail> queryAllByLimit(ExamineDetail examineDetail, @Param("pageable") Pageable pageable);
|
||||
|
||||
/**
|
||||
* 统计总行数
|
||||
*
|
||||
* @param examineDetail 查询条件
|
||||
* @return 总行数
|
||||
*/
|
||||
long count(ExamineDetail examineDetail);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineDetail 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(ExamineDetail examineDetail);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineDetail> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<ExamineDetail> entities);
|
||||
|
||||
/**
|
||||
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineDetail> 实例对象列表
|
||||
* @return 影响行数
|
||||
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
|
||||
*/
|
||||
int insertOrUpdateBatch(@Param("entities") List<ExamineDetail> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineDetail 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(ExamineDetail examineDetail);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package tech.unissense.pms.business.examine.detail.service;
|
||||
|
||||
import tech.unissense.pms.business.examine.detail.domain.ExamineDetail;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
|
||||
/**
|
||||
* 考核人员详情表(ExamineDetail)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:05
|
||||
*/
|
||||
public interface ExamineDetailService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineDetail queryById(Integer id);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineDetail 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineDetail insert(ExamineDetail examineDetail);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineDetail 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineDetail update(ExamineDetail examineDetail);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Integer id);
|
||||
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
package tech.unissense.pms.business.examine.detail.service.impl;
|
||||
|
||||
import tech.unissense.pms.business.examine.detail.domain.ExamineDetail;
|
||||
import tech.unissense.pms.business.examine.detail.mapper.ExamineDetailDao;
|
||||
import tech.unissense.pms.business.examine.detail.service.ExamineDetailService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核人员详情表(ExamineDetail)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:06
|
||||
*/
|
||||
@Service("examineDetailService")
|
||||
public class ExamineDetailServiceImpl implements ExamineDetailService {
|
||||
@Resource
|
||||
private ExamineDetailDao examineDetailDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineDetail queryById(Integer id) {
|
||||
return this.examineDetailDao.queryById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineDetail 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineDetail insert(ExamineDetail examineDetail) {
|
||||
this.examineDetailDao.insert(examineDetail);
|
||||
return examineDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineDetail 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineDetail update(ExamineDetail examineDetail) {
|
||||
this.examineDetailDao.update(examineDetail);
|
||||
return this.queryById(examineDetail.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Integer id) {
|
||||
return this.examineDetailDao.deleteById(id) > 0;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
package tech.unissense.pms.business.examine.task.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 考核任务表 (ExamineTask)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:29
|
||||
*/
|
||||
@Data
|
||||
public class ExamineTask implements Serializable {
|
||||
private static final long serialVersionUID = -72205614757391876L;
|
||||
|
||||
private Integer id;
|
||||
/**
|
||||
* 考核任务名
|
||||
*/
|
||||
private String taskName;
|
||||
/**
|
||||
* 考核任务状态 0:进行中 2:已过期
|
||||
*/
|
||||
private String taskStatus;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
/**
|
||||
* 截止时间
|
||||
*/
|
||||
private Date endTime;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package tech.unissense.pms.business.examine.task.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import tech.unissense.pms.business.examine.task.domain.ExamineTask;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 考核任务表 (ExamineTask)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:28
|
||||
*/
|
||||
@Mapper
|
||||
public interface ExamineTaskDao {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineTask queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询指定行数据
|
||||
*
|
||||
* @param examineTask 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<ExamineTask> queryAllByLimit(ExamineTask examineTask, @Param("pageable") Pageable pageable);
|
||||
|
||||
/**
|
||||
* 统计总行数
|
||||
*
|
||||
* @param examineTask 查询条件
|
||||
* @return 总行数
|
||||
*/
|
||||
long count(ExamineTask examineTask);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineTask 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(ExamineTask examineTask);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineTask> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<ExamineTask> entities);
|
||||
|
||||
/**
|
||||
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineTask> 实例对象列表
|
||||
* @return 影响行数
|
||||
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
|
||||
*/
|
||||
int insertOrUpdateBatch(@Param("entities") List<ExamineTask> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineTask 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(ExamineTask examineTask);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package tech.unissense.pms.business.examine.task.service;
|
||||
|
||||
import tech.unissense.pms.business.examine.task.domain.ExamineTask;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
|
||||
/**
|
||||
* 考核任务表 (ExamineTask)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:29
|
||||
*/
|
||||
public interface ExamineTaskService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineTask queryById(Integer id);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineTask 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineTask insert(ExamineTask examineTask);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineTask 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineTask update(ExamineTask examineTask);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Integer id);
|
||||
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
package tech.unissense.pms.business.examine.task.service.impl;
|
||||
|
||||
import tech.unissense.pms.business.examine.task.domain.ExamineTask;
|
||||
import tech.unissense.pms.business.examine.task.mapper.ExamineTaskDao;
|
||||
import tech.unissense.pms.business.examine.task.service.ExamineTaskService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核任务表 (ExamineTask)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:29
|
||||
*/
|
||||
@Service("examineTaskService")
|
||||
public class ExamineTaskServiceImpl implements ExamineTaskService {
|
||||
@Resource
|
||||
private ExamineTaskDao examineTaskDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineTask queryById(Integer id) {
|
||||
return this.examineTaskDao.queryById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineTask 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineTask insert(ExamineTask examineTask) {
|
||||
this.examineTaskDao.insert(examineTask);
|
||||
return examineTask;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineTask 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineTask update(ExamineTask examineTask) {
|
||||
this.examineTaskDao.update(examineTask);
|
||||
return this.queryById(examineTask.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Integer id) {
|
||||
return this.examineTaskDao.deleteById(id) > 0;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package tech.unissense.pms.business.examine.user.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 考核人员表(ExamineUser)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:52
|
||||
*/
|
||||
@Data
|
||||
public class ExamineUser implements Serializable {
|
||||
private static final long serialVersionUID = -48380572616355554L;
|
||||
|
||||
private Integer id;
|
||||
/**
|
||||
* 考核任务名
|
||||
*/
|
||||
private Integer taskId;
|
||||
/**
|
||||
* 考核人
|
||||
*/
|
||||
private Integer userId;
|
||||
/**
|
||||
* 考核分数(权重后分数)
|
||||
*/
|
||||
private Integer score;
|
||||
/**
|
||||
* 总体评价
|
||||
*/
|
||||
private String judgeContent;
|
||||
/**
|
||||
* 主管评分(权重计算后)
|
||||
*/
|
||||
private Integer manageScore;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package tech.unissense.pms.business.examine.user.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import tech.unissense.pms.business.examine.user.domain.ExamineUser;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 考核人员表(ExamineUser)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:52
|
||||
*/
|
||||
@Mapper
|
||||
public interface ExamineUserDao {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineUser queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询指定行数据
|
||||
*
|
||||
* @param examineUser 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<ExamineUser> queryAllByLimit(ExamineUser examineUser, @Param("pageable") Pageable pageable);
|
||||
|
||||
/**
|
||||
* 统计总行数
|
||||
*
|
||||
* @param examineUser 查询条件
|
||||
* @return 总行数
|
||||
*/
|
||||
long count(ExamineUser examineUser);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineUser 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(ExamineUser examineUser);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineUser> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<ExamineUser> entities);
|
||||
|
||||
/**
|
||||
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<ExamineUser> 实例对象列表
|
||||
* @return 影响行数
|
||||
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
|
||||
*/
|
||||
int insertOrUpdateBatch(@Param("entities") List<ExamineUser> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineUser 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(ExamineUser examineUser);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package tech.unissense.pms.business.examine.user.service;
|
||||
|
||||
import tech.unissense.pms.business.examine.user.domain.ExamineUser;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
|
||||
/**
|
||||
* 考核人员表(ExamineUser)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:53
|
||||
*/
|
||||
public interface ExamineUserService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineUser queryById(Integer id);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineUser insert(ExamineUser examineUser);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
ExamineUser update(ExamineUser examineUser);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Integer id);
|
||||
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
package tech.unissense.pms.business.examine.user.service.impl;
|
||||
|
||||
import tech.unissense.pms.business.examine.user.domain.ExamineUser;
|
||||
import tech.unissense.pms.business.examine.user.mapper.ExamineUserDao;
|
||||
import tech.unissense.pms.business.examine.user.service.ExamineUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 考核人员表(ExamineUser)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2025-01-02 10:18:53
|
||||
*/
|
||||
@Service("examineUserService")
|
||||
public class ExamineUserServiceImpl implements ExamineUserService {
|
||||
@Resource
|
||||
private ExamineUserDao examineUserDao;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineUser queryById(Integer id) {
|
||||
return this.examineUserDao.queryById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param examineUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineUser insert(ExamineUser examineUser) {
|
||||
this.examineUserDao.insert(examineUser);
|
||||
return examineUser;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param examineUser 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
public ExamineUser update(ExamineUser examineUser) {
|
||||
this.examineUserDao.update(examineUser);
|
||||
return this.queryById(examineUser.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@Override
|
||||
public boolean deleteById(Integer id) {
|
||||
return this.examineUserDao.deleteById(id) > 0;
|
||||
}
|
||||
}
|
|
@ -275,8 +275,11 @@ public class ProjectServiceImpl implements IProjectService {
|
|||
.filter(item -> {
|
||||
Date date = item.getLoggerDate();
|
||||
Integer userId = item.getUserId();
|
||||
return (date != null && !date.before(queryDto.getStartDate()) && !date.after(queryDto.getEndDate())) &&
|
||||
(queryDto.getUserId() != null && queryDto.getUserId().equals(userId));
|
||||
boolean flag=(date != null && !date.before(queryDto.getStartDate()) && !date.after(queryDto.getEndDate()));
|
||||
if (queryDto.getUserId() != null){
|
||||
flag=flag&&queryDto.getUserId().equals(userId);
|
||||
}
|
||||
return flag;
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
|
||||
|
|
|
@ -0,0 +1,153 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="tech.unissense.pms.business.examine.config.mapper.ExamineConfigDao">
|
||||
|
||||
<resultMap type="tech.unissense.pms.business.examine.config.domain.ExamineConfig" id="ExamineConfigMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="reviewType" column="review_type" jdbcType="VARCHAR"/>
|
||||
<result property="reviewCategory" column="review_category" jdbcType="VARCHAR"/>
|
||||
<result property="reviewItem" column="review_item" jdbcType="VARCHAR"/>
|
||||
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
||||
<result property="weight" column="weight" jdbcType="NUMERIC"/>
|
||||
<result property="examineTaskId" column="examine_task_id" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="ExamineConfigMap">
|
||||
select id,
|
||||
review_type,
|
||||
review_category,
|
||||
review_item,
|
||||
remarks,
|
||||
weight,
|
||||
examine_task_id
|
||||
from pms_examine_config
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<!--查询指定行数据-->
|
||||
<select id="queryAllByLimit" resultMap="ExamineConfigMap">
|
||||
select
|
||||
id, review_type, review_category, review_item, remarks, weight, examine_task_id
|
||||
from pms_examine_config
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="reviewType != null and reviewType != ''">
|
||||
and review_type = #{reviewType}
|
||||
</if>
|
||||
<if test="reviewCategory != null and reviewCategory != ''">
|
||||
and review_category = #{reviewCategory}
|
||||
</if>
|
||||
<if test="reviewItem != null and reviewItem != ''">
|
||||
and review_item = #{reviewItem}
|
||||
</if>
|
||||
<if test="remarks != null and remarks != ''">
|
||||
and remarks = #{remarks}
|
||||
</if>
|
||||
<if test="weight != null">
|
||||
and weight = #{weight}
|
||||
</if>
|
||||
<if test="examineTaskId != null">
|
||||
and examine_task_id = #{examineTaskId}
|
||||
</if>
|
||||
</where>
|
||||
limit #{pageable.offset}, #{pageable.pageSize}
|
||||
</select>
|
||||
|
||||
<!--统计总行数-->
|
||||
<select id="count" resultType="java.lang.Long">
|
||||
select count(1)
|
||||
from pms_examine_config
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="reviewType != null and reviewType != ''">
|
||||
and review_type = #{reviewType}
|
||||
</if>
|
||||
<if test="reviewCategory != null and reviewCategory != ''">
|
||||
and review_category = #{reviewCategory}
|
||||
</if>
|
||||
<if test="reviewItem != null and reviewItem != ''">
|
||||
and review_item = #{reviewItem}
|
||||
</if>
|
||||
<if test="remarks != null and remarks != ''">
|
||||
and remarks = #{remarks}
|
||||
</if>
|
||||
<if test="weight != null">
|
||||
and weight = #{weight}
|
||||
</if>
|
||||
<if test="examineTaskId != null">
|
||||
and examine_task_id = #{examineTaskId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_config(review_type, review_category, review_item, remarks, weight, examine_task_id)
|
||||
values (#{reviewType}, #{reviewCategory}, #{reviewItem}, #{remarks}, #{weight}, #{examineTaskId})
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_config(review_type, review_category, review_item, remarks, weight, examine_task_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.reviewType}, #{entity.reviewCategory}, #{entity.reviewItem}, #{entity.remarks}, #{entity.weight},
|
||||
#{entity.examineTaskId})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_config(review_type, review_category, review_item, remarks, weight, examine_task_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.reviewType}, #{entity.reviewCategory}, #{entity.reviewItem}, #{entity.remarks}, #{entity.weight},
|
||||
#{entity.examineTaskId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
review_type = values(review_type),
|
||||
review_category = values(review_category),
|
||||
review_item = values(review_item),
|
||||
remarks = values(remarks),
|
||||
weight = values(weight),
|
||||
examine_task_id = values(examine_task_id)
|
||||
</insert>
|
||||
|
||||
<!--通过主键修改数据-->
|
||||
<update id="update">
|
||||
update pms_examine_config
|
||||
<set>
|
||||
<if test="reviewType != null and reviewType != ''">
|
||||
review_type = #{reviewType},
|
||||
</if>
|
||||
<if test="reviewCategory != null and reviewCategory != ''">
|
||||
review_category = #{reviewCategory},
|
||||
</if>
|
||||
<if test="reviewItem != null and reviewItem != ''">
|
||||
review_item = #{reviewItem},
|
||||
</if>
|
||||
<if test="remarks != null and remarks != ''">
|
||||
remarks = #{remarks},
|
||||
</if>
|
||||
<if test="weight != null">
|
||||
weight = #{weight},
|
||||
</if>
|
||||
<if test="examineTaskId != null">
|
||||
examine_task_id = #{examineTaskId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="deleteById">
|
||||
delete
|
||||
from pms_examine_config
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="tech.unissense.pms.business.examine.detail.mapper.ExamineDetailDao">
|
||||
|
||||
<resultMap type="tech.unissense.pms.business.examine.detail.domain.ExamineDetail" id="ExamineDetailMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="examineId" column="examine_id" jdbcType="INTEGER"/>
|
||||
<result property="score" column="score" jdbcType="INTEGER"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="configId" column="config_id" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="ExamineDetailMap">
|
||||
select id,
|
||||
examine_id,
|
||||
score,
|
||||
remark,
|
||||
config_id
|
||||
from pms_examine_detail
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<!--查询指定行数据-->
|
||||
<select id="queryAllByLimit" resultMap="ExamineDetailMap">
|
||||
select
|
||||
id, examine_id, score, remark, config_id
|
||||
from pms_examine_detail
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="examineId != null">
|
||||
and examine_id = #{examineId}
|
||||
</if>
|
||||
<if test="score != null">
|
||||
and score = #{score}
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and remark = #{remark}
|
||||
</if>
|
||||
<if test="configId != null">
|
||||
and config_id = #{configId}
|
||||
</if>
|
||||
</where>
|
||||
limit #{pageable.offset}, #{pageable.pageSize}
|
||||
</select>
|
||||
|
||||
<!--统计总行数-->
|
||||
<select id="count" resultType="java.lang.Long">
|
||||
select count(1)
|
||||
from pms_examine_detail
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="examineId != null">
|
||||
and examine_id = #{examineId}
|
||||
</if>
|
||||
<if test="score != null">
|
||||
and score = #{score}
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and remark = #{remark}
|
||||
</if>
|
||||
<if test="configId != null">
|
||||
and config_id = #{configId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_detail(examine_id, score, remark, config_id)
|
||||
values (#{examineId}, #{score}, #{remark}, #{configId})
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_detail(examine_id, score, remark, config_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.examineId}, #{entity.score}, #{entity.remark}, #{entity.configId})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_detail(examine_id, score, remark, config_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.examineId}, #{entity.score}, #{entity.remark}, #{entity.configId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
examine_id = values(examine_id),
|
||||
score = values(score),
|
||||
remark = values(remark),
|
||||
config_id = values(config_id)
|
||||
</insert>
|
||||
|
||||
<!--通过主键修改数据-->
|
||||
<update id="update">
|
||||
update pms_examine_detail
|
||||
<set>
|
||||
<if test="examineId != null">
|
||||
examine_id = #{examineId},
|
||||
</if>
|
||||
<if test="score != null">
|
||||
score = #{score},
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
remark = #{remark},
|
||||
</if>
|
||||
<if test="configId != null">
|
||||
config_id = #{configId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="deleteById">
|
||||
delete
|
||||
from pms_examine_detail
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="tech.unissense.pms.business.examine.task.mapper.ExamineTaskDao">
|
||||
|
||||
<resultMap type="tech.unissense.pms.business.examine.task.domain.ExamineTask" id="ExamineTaskMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="taskName" column="task_name" jdbcType="VARCHAR"/>
|
||||
<result property="taskStatus" column="task_status" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="ExamineTaskMap">
|
||||
select id,
|
||||
task_name,
|
||||
task_status,
|
||||
create_time,
|
||||
end_time
|
||||
from pms_examine_task
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<!--查询指定行数据-->
|
||||
<select id="queryAllByLimit" resultMap="ExamineTaskMap">
|
||||
select
|
||||
id, task_name, task_status, create_time, end_time
|
||||
from pms_examine_task
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="taskName != null and taskName != ''">
|
||||
and task_name = #{taskName}
|
||||
</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">
|
||||
and task_status = #{taskStatus}
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
and create_time = #{createTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
and end_time = #{endTime}
|
||||
</if>
|
||||
</where>
|
||||
limit #{pageable.offset}, #{pageable.pageSize}
|
||||
</select>
|
||||
|
||||
<!--统计总行数-->
|
||||
<select id="count" resultType="java.lang.Long">
|
||||
select count(1)
|
||||
from pms_examine_task
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="taskName != null and taskName != ''">
|
||||
and task_name = #{taskName}
|
||||
</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">
|
||||
and task_status = #{taskStatus}
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
and create_time = #{createTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
and end_time = #{endTime}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_task(task_name, task_status, create_time, end_time)
|
||||
values (#{taskName}, #{taskStatus}, #{createTime}, #{endTime})
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_task(task_name, task_status, create_time, end_time)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.taskName}, #{entity.taskStatus}, #{entity.createTime}, #{entity.endTime})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_task(task_name, task_status, create_time, end_time)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.taskName}, #{entity.taskStatus}, #{entity.createTime}, #{entity.endTime})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
task_name = values(task_name),
|
||||
task_status = values(task_status),
|
||||
create_time = values(create_time),
|
||||
end_time = values(end_time)
|
||||
</insert>
|
||||
|
||||
<!--通过主键修改数据-->
|
||||
<update id="update">
|
||||
update pms_examine_task
|
||||
<set>
|
||||
<if test="taskName != null and taskName != ''">
|
||||
task_name = #{taskName},
|
||||
</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">
|
||||
task_status = #{taskStatus},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime},
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
end_time = #{endTime},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="deleteById">
|
||||
delete
|
||||
from pms_examine_task
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,139 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="tech.unissense.pms.business.examine.user.mapper.ExamineUserDao">
|
||||
|
||||
<resultMap type="tech.unissense.pms.business.examine.user.domain.ExamineUser" id="ExamineUserMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="taskId" column="task_id" jdbcType="INTEGER"/>
|
||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
||||
<result property="score" column="score" jdbcType="INTEGER"/>
|
||||
<result property="judgeContent" column="judge_content" jdbcType="VARCHAR"/>
|
||||
<result property="manageScore" column="manage_score" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="ExamineUserMap">
|
||||
select id,
|
||||
task_id,
|
||||
user_id,
|
||||
score,
|
||||
judge_content,
|
||||
manage_score
|
||||
from pms_examine_user
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<!--查询指定行数据-->
|
||||
<select id="queryAllByLimit" resultMap="ExamineUserMap">
|
||||
select
|
||||
id, task_id, user_id, score, judge_content, manage_score
|
||||
from pms_examine_user
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="taskId != null">
|
||||
and task_id = #{taskId}
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
<if test="score != null">
|
||||
and score = #{score}
|
||||
</if>
|
||||
<if test="judgeContent != null and judgeContent != ''">
|
||||
and judge_content = #{judgeContent}
|
||||
</if>
|
||||
<if test="manageScore != null">
|
||||
and manage_score = #{manageScore}
|
||||
</if>
|
||||
</where>
|
||||
limit #{pageable.offset}, #{pageable.pageSize}
|
||||
</select>
|
||||
|
||||
<!--统计总行数-->
|
||||
<select id="count" resultType="java.lang.Long">
|
||||
select count(1)
|
||||
from pms_examine_user
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="taskId != null">
|
||||
and task_id = #{taskId}
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
<if test="score != null">
|
||||
and score = #{score}
|
||||
</if>
|
||||
<if test="judgeContent != null and judgeContent != ''">
|
||||
and judge_content = #{judgeContent}
|
||||
</if>
|
||||
<if test="manageScore != null">
|
||||
and manage_score = #{manageScore}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_user(task_id, user_id, score, judge_content, manage_score)
|
||||
values (#{taskId}, #{userId}, #{score}, #{judgeContent}, #{manageScore})
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_user(task_id, user_id, score, judge_content, manage_score)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.taskId}, #{entity.userId}, #{entity.score}, #{entity.judgeContent}, #{entity.manageScore})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into pms_examine_user(task_id, user_id, score, judge_content, manage_score)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.taskId}, #{entity.userId}, #{entity.score}, #{entity.judgeContent}, #{entity.manageScore})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
task_id = values(task_id),
|
||||
user_id = values(user_id),
|
||||
score = values(score),
|
||||
judge_content = values(judge_content),
|
||||
manage_score = values(manage_score)
|
||||
</insert>
|
||||
|
||||
<!--通过主键修改数据-->
|
||||
<update id="update">
|
||||
update pms_examine_user
|
||||
<set>
|
||||
<if test="taskId != null">
|
||||
task_id = #{taskId},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId},
|
||||
</if>
|
||||
<if test="score != null">
|
||||
score = #{score},
|
||||
</if>
|
||||
<if test="judgeContent != null and judgeContent != ''">
|
||||
judge_content = #{judgeContent},
|
||||
</if>
|
||||
<if test="manageScore != null">
|
||||
manage_score = #{manageScore},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="deleteById">
|
||||
delete
|
||||
from pms_examine_user
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue