平台件-认证清单
This commit is contained in:
+376
@@ -0,0 +1,376 @@
|
||||
package com.jero.modules.projectPlatform.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.modules.project.entity.ProjectCertificationInventoryEO;
|
||||
import com.jero.modules.projectPlatform.service.IPlatformProjectCertificationInventoryEOService;
|
||||
import com.jero.modules.system.entity.SysRole;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
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.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 项目库-认证清单表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-03-03
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="平台件项目库-认证清单表")
|
||||
@RestController
|
||||
@RequestMapping("/project/platformProjectCertificationInventoryEO")
|
||||
@Slf4j
|
||||
public class PlatformProjectCertificationInventoryEOController extends JeroController<ProjectCertificationInventoryEO, IPlatformProjectCertificationInventoryEOService> {
|
||||
@Autowired
|
||||
private IPlatformProjectCertificationInventoryEOService platformProjectCertificationInventoryEOService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param projectCertificationInventoryEO
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-分页列表查询")
|
||||
@ApiOperation(value="项目库-认证清单表-分页列表查询", notes="项目库-认证清单表-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<?> queryPageList(ProjectCertificationInventoryEO projectCertificationInventoryEO,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
@RequestParam(name="cut", defaultValue="cn") String cut,
|
||||
HttpServletRequest req) {
|
||||
String flowStatusStr = "";
|
||||
if (StringUtils.isNotEmpty(projectCertificationInventoryEO.getFlowStatus())) {
|
||||
flowStatusStr = projectCertificationInventoryEO.getFlowStatus();
|
||||
projectCertificationInventoryEO.setFlowStatus(null);
|
||||
}
|
||||
QueryWrapper<ProjectCertificationInventoryEO> queryWrapper = QueryGenerator.initQueryWrapper(projectCertificationInventoryEO, req.getParameterMap());
|
||||
if (StringUtils.isNotEmpty(flowStatusStr)) {
|
||||
String finalflowStatusStr = flowStatusStr.replaceAll("\\*","");
|
||||
queryWrapper.and(query -> {
|
||||
query.lambda().like(ProjectCertificationInventoryEO::getFlowStatus, finalflowStatusStr);
|
||||
if(StringUtils.contains(finalflowStatusStr,",")){
|
||||
String[] flowStatusArr = finalflowStatusStr.split(",");
|
||||
for (String fs : flowStatusArr) {
|
||||
query.or(q -> {
|
||||
q.like("flow_status",fs);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
Page<ProjectCertificationInventoryEO> page = new Page<ProjectCertificationInventoryEO>(pageNo, pageSize);
|
||||
IPage<ProjectCertificationInventoryEO> pageList = this.platformProjectCertificationInventoryEOService.queryPage(queryWrapper,page,projectCertificationInventoryEO,cut);
|
||||
return Result.OK(cut,pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-列表查询")
|
||||
@ApiOperation(value="项目库-认证清单表-列表查询", notes="项目库-认证清单表-列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<ProjectCertificationInventoryEO>> queryList() {
|
||||
List<ProjectCertificationInventoryEO> list = platformProjectCertificationInventoryEOService.queryList();
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param projectCertificationInventoryEO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-添加")
|
||||
@ApiOperation(value="项目库-认证清单表-添加", notes="项目库-认证清单表-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<?> add(@Validated @RequestBody ProjectCertificationInventoryEO projectCertificationInventoryEO) {
|
||||
platformProjectCertificationInventoryEOService.add(projectCertificationInventoryEO);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param projectCertificationInventoryEO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-编辑")
|
||||
@ApiOperation(value="项目库-认证清单表-编辑", notes="项目库-认证清单表-编辑")
|
||||
@PutMapping(value = "/edit")
|
||||
public Result<?> edit(@Validated @RequestBody ProjectCertificationInventoryEO projectCertificationInventoryEO) {
|
||||
platformProjectCertificationInventoryEOService.editById(projectCertificationInventoryEO);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-通过id删除")
|
||||
@ApiOperation(value="项目库-认证清单表-通过id删除", notes="项目库-认证清单表-通过id删除")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||
platformProjectCertificationInventoryEOService.deleteById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-批量删除")
|
||||
@ApiOperation(value="项目库-认证清单表-批量删除", notes="项目库-认证清单表-批量删除")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.platformProjectCertificationInventoryEOService.deleteByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-通过id查询")
|
||||
@ApiOperation(value="项目库-认证清单表-通过id查询", notes="项目库-认证清单表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ProjectCertificationInventoryEO projectCertificationInventoryEO = platformProjectCertificationInventoryEOService.queryById(id);
|
||||
if(projectCertificationInventoryEO==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(projectCertificationInventoryEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param projectCertificationInventoryEO
|
||||
*/
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ProjectCertificationInventoryEO projectCertificationInventoryEO) {
|
||||
return super.exportXls(request, projectCertificationInventoryEO, ProjectCertificationInventoryEO.class, "项目库-认证清单表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ProjectCertificationInventoryEO.class);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-批量添加")
|
||||
@ApiOperation(value="项目库-认证清单表-批量添加", notes="项目库-认证清单表-批量添加")
|
||||
@PostMapping(value = "/batchAdd")
|
||||
public Result<?> batchAdd(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.batchAdd(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-批量设置")
|
||||
@ApiOperation(value="项目库-认证清单表-批量设置", notes="项目库-认证清单表-批量设置")
|
||||
@PostMapping(value = "/setBatch")
|
||||
public Result<?> setBatch(@RequestBody ProjectCertificationInventoryEO projectCertificationInventoryEO) {
|
||||
return this.platformProjectCertificationInventoryEOService.setBatch(projectCertificationInventoryEO);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-studio发布")
|
||||
@ApiOperation(value="项目库-认证清单表-studio发布", notes="项目库-认证清单表-studio发布")
|
||||
@PostMapping(value = "/issue")
|
||||
public Result<?> issue(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.issue(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-当前登录用户角色")
|
||||
@ApiOperation(value="项目库-认证清单表-当前登录用户角色", notes="项目库-认证清单表-当前登录用户角色")
|
||||
@GetMapping(value = "/getRoleByUserId")
|
||||
public Result<List<SysRole>> getRoleByUserId(@RequestParam Map<String,Object> params) {
|
||||
return this.platformProjectCertificationInventoryEOService.getRoleByUserId(params);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-获取流程状态列表")
|
||||
@ApiOperation(value="项目库-认证清单表-获取流程状态列表", notes="项目库-认证清单表-获取流程状态列表")
|
||||
@GetMapping(value = "/getFlowStatusList")
|
||||
public Result<?> getFlowStatusList(@RequestParam("cut") String cut) {
|
||||
return this.platformProjectCertificationInventoryEOService.getFlowStatusList(cut);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-认证流程统一提交任务接口")
|
||||
@ApiOperation(value="项目库-认证清单表-认证流程统一提交任务接口", notes="项目库-认证清单表-认证流程统一提交任务接口")
|
||||
@PostMapping(value = "/submitTask")
|
||||
public Result<?> submitTask(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.submitTask(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-批量保存")
|
||||
@ApiOperation(value="项目库-认证清单表-批量保存", notes="项目库-认证清单表-批量保存")
|
||||
@PostMapping(value = "/saveBatch")
|
||||
public Result<?> saveBatch(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.saveBatch(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-流程重置")
|
||||
@ApiOperation(value="项目库-认证清单表-流程重置", notes="项目库-认证清单表-流程重置")
|
||||
@PostMapping(value = "/resetFlow")
|
||||
public Result<?> resetFlow(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.resetFlow(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-转办")
|
||||
@ApiOperation(value="项目库-认证清单表-转办", notes="项目库-认证清单表-转办")
|
||||
@PostMapping(value = "/transferTask")
|
||||
public Result<?> transferTask(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.transferTask(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-催办")
|
||||
@ApiOperation(value="项目库-认证清单表-催办", notes="项目库-认证清单表-催办")
|
||||
@PostMapping(value = "/expediting")
|
||||
public Result<?> expediting(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.expediting(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-批量修改配置项")
|
||||
@ApiOperation(value="项目库-认证清单表-批量修改配置项", notes="项目库-认证清单表-批量修改配置项")
|
||||
@PostMapping(value = "/updateConfigItemBatch")
|
||||
public Result<?> updateConfigItemBatch(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.updateConfigItemBatch(json);
|
||||
}
|
||||
|
||||
@ApiOperation(value="项目库-认证清单表-模板下载", notes="项目库-认证清单表-模板下载")
|
||||
@GetMapping(value = "/exportTemplate")
|
||||
public void exportTemplate(ProjectCertificationInventoryEO projectCertificationInventoryEO, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
platformProjectCertificationInventoryEOService.exportTemplate(projectCertificationInventoryEO,response,request);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入数据
|
||||
*
|
||||
* @param file
|
||||
* @param projectCertificationInventoryEO
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="项目库-认证清单表-导入数据", notes="项目库-认证清单表-导入数据")
|
||||
@RequestMapping(value = "/importData", method = RequestMethod.POST)
|
||||
public Result<?> importData(@RequestParam(value = "file", required = false) MultipartFile file,
|
||||
ProjectCertificationInventoryEO projectCertificationInventoryEO) {
|
||||
platformProjectCertificationInventoryEOService.importData(file,projectCertificationInventoryEO);
|
||||
return Result.OK("导入成功");
|
||||
}
|
||||
/**
|
||||
* 导出数据
|
||||
* @param request
|
||||
* @param projectCertificationInventoryEO
|
||||
*/
|
||||
@ApiOperation(value="项目库-认证清单表-导出数据", notes="项目库-认证清单表-导出数据")
|
||||
@RequestMapping(value = "/exportData",method = RequestMethod.GET)
|
||||
// @RequiresPermissions("projectLawsInventory:exportData")
|
||||
public void exportData(HttpServletResponse response,
|
||||
HttpServletRequest request,
|
||||
ProjectCertificationInventoryEO projectCertificationInventoryEO) {
|
||||
platformProjectCertificationInventoryEOService.exportData(response,request, projectCertificationInventoryEO);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-调取添加")
|
||||
@ApiOperation(value="项目库-认证清单表-调取添加", notes="项目库-认证清单表-调取添加")
|
||||
@PostMapping(value = "/callAdd")
|
||||
public Result<?> callAdd(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.callAdd(json);
|
||||
}
|
||||
|
||||
@AutoLog(value = "项目库-认证清单表-引用交付物")
|
||||
@ApiOperation(value="项目库-认证清单表-引用交付物", notes="项目库-认证清单表-引用交付物")
|
||||
@PostMapping(value = "/citeDeliverable")
|
||||
public Result<?> citeDeliverable(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.citeDeliverable(json);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新法规清单状态
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-批量更新流程状态")
|
||||
@ApiOperation(value="项目库-认证清单表-批量更新流程状态", notes="项目库-认证清单表-批量更新流程状态")
|
||||
@PostMapping(value = "/updateStatusBatch")
|
||||
public Result<?> updateStatusBatch(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.updateStatusBatch(json);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加配置 等同于 复制
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-添加配置")
|
||||
@ApiOperation(value="项目库-认证清单表-添加配置", notes="项目库-认证清单表-添加配置")
|
||||
@PostMapping(value = "/addConfigByIds")
|
||||
public Result<?> addConfigByIds(@RequestBody JSONObject json) {
|
||||
return this.platformProjectCertificationInventoryEOService.addConfigByIds(json);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取责任人和接口人
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-获取责任人和接口人")
|
||||
@ApiOperation(value="项目库-认证清单表-获取责任人和接口人", notes="项目库-认证清单表-获取责任人和接口人")
|
||||
@GetMapping(value = "/queryDutyPersonByProjectId")
|
||||
public Result<?> queryDutyPersonByProjectId(@RequestParam Map<String,Object> params) {
|
||||
return Result.OK(this.platformProjectCertificationInventoryEOService.queryDutyPersonByProjectId(params));
|
||||
}
|
||||
|
||||
/**
|
||||
* 匹配相关人员
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "项目库-认证清单表-匹配相关人员")
|
||||
@ApiOperation(value="项目库-认证清单表-匹配相关人员", notes="项目库-法规清单表-匹配相关人员")
|
||||
@PostMapping(value = "/matchRelevantPeople")
|
||||
public Result<?> matchRelevantPeople(@RequestBody Map<String,Object> params){
|
||||
return this.platformProjectCertificationInventoryEOService.matchRelevantPeople(params);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.jero.modules.projectPlatform.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.project.entity.ProjectCertificationInventoryEO;
|
||||
|
||||
/**
|
||||
* @Description: 项目库-认证清单表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-03-03
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface PlatformProjectCertificationInventoryEOMapper extends BaseMapper<ProjectCertificationInventoryEO> {
|
||||
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.projectPlatform.mapper.PlatformProjectCertificationInventoryEOMapper">
|
||||
<resultMap id="ProjectCertificationInventoryEOResultMap" type="com.jero.modules.project.entity.ProjectCertificationInventoryEO">
|
||||
<id column="id" property="id" />
|
||||
<result column="create_by" property="createBy" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="update_by" property="updateBy" />
|
||||
<result column="update_time" property="updateTime" />
|
||||
<result column="sys_org_code" property="sysOrgCode" />
|
||||
<result column="category" property="category" />
|
||||
<result column="inspection_item" property="inspectionItem" />
|
||||
<result column="config_item" property="configItem" />
|
||||
<result column="wvta_id" property="wvtaId" />
|
||||
<result column="serial_number" property="serialNumber" />
|
||||
<result column="duty_territory" property="dutyTerritory" />
|
||||
<result column="deliverable" property="deliverable" />
|
||||
<result column="buss_document_library_id" property="bussDocumentLibraryId" />
|
||||
<result column="sdt" property="sdt" />
|
||||
<result column="duty_person" property="dutyPerson" />
|
||||
<result column="deliverable_type" property="deliverableType" />
|
||||
<result column="deliverable_template" property="deliverableTemplate" />
|
||||
<result column="delivery_result" property="deliveryResult" />
|
||||
<result column="end_time" property="endTime" />
|
||||
<result column="flow_status" property="flowStatus" />
|
||||
<result column="report_number" property="reportNumber" />
|
||||
<result column="product_model" property="productModel" />
|
||||
<result column="production_enterprise_name" property="productionEnterpriseName" />
|
||||
<result column="certification_progress" property="certificationProgress" />
|
||||
</resultMap>
|
||||
</mapper>
|
||||
+341
@@ -0,0 +1,341 @@
|
||||
package com.jero.modules.projectPlatform.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.modules.project.entity.ProjectCertificationInventoryEO;
|
||||
import com.jero.modules.system.entity.SysCategory;
|
||||
import com.jero.modules.system.entity.SysDictItem;
|
||||
import com.jero.modules.system.entity.SysRole;
|
||||
import com.jero.modules.system.entity.SysUser;
|
||||
import com.jero.modules.todoCenter.entity.ProcessInfoDetailEO;
|
||||
import com.jero.modules.todoCenter.entity.ProcessInfoEO;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: 项目库-认证清单表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-03-03
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IPlatformProjectCertificationInventoryEOService extends IService<ProjectCertificationInventoryEO> {
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*
|
||||
* @param projectCertificationInventoryEO
|
||||
* @return
|
||||
*/
|
||||
void add(ProjectCertificationInventoryEO projectCertificationInventoryEO);
|
||||
|
||||
/**
|
||||
* 更新
|
||||
*
|
||||
* @param projectCertificationInventoryEO
|
||||
* @return
|
||||
*/
|
||||
void editById(ProjectCertificationInventoryEO projectCertificationInventoryEO);
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
void deleteById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
void deleteByIds(List<String> ids);
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
ProjectCertificationInventoryEO queryById(String id);
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<ProjectCertificationInventoryEO> queryList();
|
||||
|
||||
/**
|
||||
* 批量添加
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> batchAdd(JSONObject json);
|
||||
|
||||
/**
|
||||
* 批量设置
|
||||
* @param projectCertificationInventoryEO
|
||||
* @return
|
||||
*/
|
||||
Result<?> setBatch(ProjectCertificationInventoryEO projectCertificationInventoryEO);
|
||||
|
||||
/**
|
||||
* 处理数据
|
||||
* @param datas
|
||||
* @param cut
|
||||
*/
|
||||
void disposeData(List<ProjectCertificationInventoryEO> datas, String cut);
|
||||
|
||||
/**
|
||||
* 导入时的数据处理
|
||||
* @param datas
|
||||
* @param cut
|
||||
*/
|
||||
void importDisposeData(List<ProjectCertificationInventoryEO> datas, String cut);
|
||||
|
||||
String getTreeNameImport(String cut, List<SysCategory> categoryList, List<String> technologyTerritoryList);
|
||||
|
||||
String getTreeName(String cut, List<SysCategory> categoryList, List<String> technologyTerritoryList);
|
||||
|
||||
/**
|
||||
* studio发布
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> issue(JSONObject json);
|
||||
|
||||
void addProcessInfoEO(ProcessInfoEO processInfoEO, String projectLibraryId);
|
||||
|
||||
void addProcessInfoDetailEO(List<ProcessInfoDetailEO> processInfoDetailEOList, String processInfoId, String taskDefinitionKey);
|
||||
|
||||
Result<List<SysRole>> getRoleByUserId(Map<String, Object> params);
|
||||
|
||||
Result<?> getFlowStatusList(String cut);
|
||||
|
||||
IPage<ProjectCertificationInventoryEO> queryPage(QueryWrapper<ProjectCertificationInventoryEO> queryWrapper,
|
||||
Page<ProjectCertificationInventoryEO> page,
|
||||
ProjectCertificationInventoryEO projectCertificationInventoryEO,
|
||||
String cut);
|
||||
|
||||
void createQueryPermission(QueryWrapper<ProjectCertificationInventoryEO> queryWrapper, String roleCode);
|
||||
|
||||
/**
|
||||
* 认证流程统一提交任务
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> submitTask(JSONObject json);
|
||||
|
||||
/**
|
||||
* 认证工程师发起任务
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> certificationInitiatingTask(JSONObject json);
|
||||
|
||||
/**
|
||||
* 批量保存
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> saveBatch(JSONObject json);
|
||||
|
||||
/**
|
||||
* 流程重置
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> resetFlow(JSONObject json);
|
||||
|
||||
/**
|
||||
* 转办任务
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> transferTask(JSONObject json);
|
||||
|
||||
/**
|
||||
* 催办任务
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> expediting(JSONObject json);
|
||||
|
||||
Map<String,Object> getCertificationInventoryLinkHrefFeishu(String projectLibraryId,String PRN_CN,String PRN_EN);
|
||||
|
||||
Map<String,Object> getStandNameAndItemName(List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList);
|
||||
|
||||
/**
|
||||
* 模板下载
|
||||
* @param projectCertificationInventoryEO
|
||||
* @param response
|
||||
* @param request
|
||||
*/
|
||||
void exportTemplate(ProjectCertificationInventoryEO projectCertificationInventoryEO, HttpServletResponse response, HttpServletRequest request);
|
||||
|
||||
/**
|
||||
* 批量修改配置项
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> updateConfigItemBatch(JSONObject json);
|
||||
|
||||
/**
|
||||
* 调取添加
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> callAdd(JSONObject json);
|
||||
|
||||
/**
|
||||
* 导入数据
|
||||
* @param file
|
||||
* @param projectCertificationInventoryEO
|
||||
*/
|
||||
void importData(MultipartFile file, ProjectCertificationInventoryEO projectCertificationInventoryEO);
|
||||
|
||||
/**
|
||||
* projectCertificationInventoryEO
|
||||
* @param response
|
||||
* @param request
|
||||
* @param projectCertificationInventoryEO
|
||||
*/
|
||||
void exportData(HttpServletResponse response, HttpServletRequest request, ProjectCertificationInventoryEO projectCertificationInventoryEO);
|
||||
|
||||
/**
|
||||
* 引用交付物
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> citeDeliverable(JSONObject json);
|
||||
|
||||
/**
|
||||
* 根据模板返送消息
|
||||
* @param projectCertificationInventoryEOS
|
||||
* @param templeteId
|
||||
* @param userIdList
|
||||
* @param userInfoList
|
||||
*/
|
||||
void sendMessageByTemplateId(List<ProjectCertificationInventoryEO> projectCertificationInventoryEOS, String templeteId, List<String> userIdList, List<SysUser> userInfoList, Date endTimeString, String taskDefinitionKey);
|
||||
|
||||
/**
|
||||
* 数据唯一校验。
|
||||
* @param projectCertificationInventoryEOList
|
||||
* @param cut
|
||||
* @return
|
||||
*/
|
||||
List<ProjectCertificationInventoryEO> dataUniqueCheck(List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList, String cut,List<String> result,String projectLibraryId);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> updateStatusBatch(JSONObject json);
|
||||
|
||||
/**
|
||||
* 添加配置
|
||||
* @param json
|
||||
* @return
|
||||
*/
|
||||
Result<?> addConfigByIds(JSONObject json);
|
||||
String handlePhoneLink(String id, String prn_cn, String key);
|
||||
void certificationInventoryEOListSortByEndTimeAsc(List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList);
|
||||
void certificationInventoryEOListSortByInventoryVerifyEndTimeAsc(List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList);
|
||||
void certificationInventoryEOListSortByTaskConfirmEndTimeAsc(List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList);
|
||||
Map<String, List<Map<String, Object>>> queryDutyPersonByProjectId(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 获取任务确认统计信息
|
||||
* @param pciEoList
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getTaskToConfirmStatistics(List<ProjectCertificationInventoryEO> pciEoList);
|
||||
|
||||
/**
|
||||
* 获取Pre-Homo统计信息
|
||||
* @param pciEoList
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getPrehomoStatistice(List<ProjectCertificationInventoryEO> pciEoList);
|
||||
|
||||
/**
|
||||
* 获取认证进度统计信息 全部
|
||||
* @param pciEoList
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getAllCertificationProgressStatistics(List<ProjectCertificationInventoryEO> pciEoList);
|
||||
|
||||
/**
|
||||
* 获取认证进度统计信息 整车
|
||||
* @param pciEoList
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getCarCertificationProgressStatistics(List<ProjectCertificationInventoryEO> pciEoList);
|
||||
|
||||
/**
|
||||
* 获取认证进度统计信息 零部件
|
||||
* @param pciEoList
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getPartCertificationProgressStatistics(List<ProjectCertificationInventoryEO> pciEoList);
|
||||
|
||||
/**
|
||||
* 按照认证任务确认状态分组
|
||||
* @param pciEos
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> groupByFGRwqrStatus(List<ProjectCertificationInventoryEO> pciEos);
|
||||
|
||||
/**
|
||||
* 按照preHomo确认状态分组
|
||||
* @param pciEos
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> groupByPreHomoStatus(List<ProjectCertificationInventoryEO> pciEos);
|
||||
|
||||
/**
|
||||
* 根据认证进度分组
|
||||
* @param pciEos
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> groupByCertificationProgress(List<ProjectCertificationInventoryEO> pciEos);
|
||||
|
||||
/**
|
||||
* 同步待办中心明细数据-认证清单 截止日期
|
||||
* @param endTime
|
||||
* @param editEndTimeCertificationInventoryEOS
|
||||
*/
|
||||
void syncProcessInfoDetailEndTime(Date endTime, List<ProjectCertificationInventoryEO> editEndTimeCertificationInventoryEOS);
|
||||
|
||||
/**
|
||||
* 获取用户的责任领域数组
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<SysDictItem> getUserDutyTerritoryList(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 替换用户
|
||||
* @param json
|
||||
*/
|
||||
void replacementUser(JSONObject json);
|
||||
|
||||
/**
|
||||
* 匹配相关人员
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Result<?> matchRelevantPeople(Map<String, Object> params);
|
||||
}
|
||||
+6847
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user