Merge remote-tracking branch 'origin/fix_20230911_UAT' into fix_20230911_UAT
This commit is contained in:
+61
-5
@@ -25,11 +25,23 @@ import com.jero.modules.cert.collect.enums.ConfigDataTypeEnum;
|
||||
import com.jero.modules.cert.collect.enums.ExportStateEnum;
|
||||
import com.jero.modules.cert.collect.service.IParamsCollectExportService;
|
||||
import com.jero.modules.cert.collect.vo.ParamsConfigDataVO;
|
||||
import com.jero.modules.cert.report.entity.*;
|
||||
import com.jero.modules.cert.report.entity.ParamsExportTemplateEO;
|
||||
import com.jero.modules.cert.report.entity.ParamsReportConfigDataEO;
|
||||
import com.jero.modules.cert.report.entity.ParamsReportConfigEO;
|
||||
import com.jero.modules.cert.report.entity.ParamsReportDetailEO;
|
||||
import com.jero.modules.cert.report.entity.ParamsReportDetailLogEO;
|
||||
import com.jero.modules.cert.report.entity.ParamsReportExportHistoryEO;
|
||||
import com.jero.modules.cert.report.entity.ReportCertCategoryParamsInfoEO;
|
||||
import com.jero.modules.cert.report.enums.ExportTemplateStateEnum;
|
||||
import com.jero.modules.cert.report.enums.ExportTypeEnum;
|
||||
import com.jero.modules.cert.report.mapper.ParamsReportDetailEOMapper;
|
||||
import com.jero.modules.cert.report.service.*;
|
||||
import com.jero.modules.cert.report.service.IParamsExportTemplateEOService;
|
||||
import com.jero.modules.cert.report.service.IParamsReportConfigDataEOService;
|
||||
import com.jero.modules.cert.report.service.IParamsReportConfigEOService;
|
||||
import com.jero.modules.cert.report.service.IParamsReportDetailEOService;
|
||||
import com.jero.modules.cert.report.service.IParamsReportDetailLogEOService;
|
||||
import com.jero.modules.cert.report.service.IParamsReportExportHistoryEOService;
|
||||
import com.jero.modules.cert.report.service.IReportCertCategoryParamsInfoEOService;
|
||||
import com.jero.modules.cert.report.vo.ParamsReportDetailVO;
|
||||
import com.jero.modules.cert.template.enums.ControlTypeEnum;
|
||||
import com.jero.modules.cert.template.enums.ParamsIsMustEnum;
|
||||
@@ -50,7 +62,13 @@ import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.poi.xssf.usermodel.*;
|
||||
import org.apache.poi.xssf.usermodel.XSSFCell;
|
||||
import org.apache.poi.xssf.usermodel.XSSFCellStyle;
|
||||
import org.apache.poi.xssf.usermodel.XSSFFont;
|
||||
import org.apache.poi.xssf.usermodel.XSSFRichTextString;
|
||||
import org.apache.poi.xssf.usermodel.XSSFRow;
|
||||
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.aspectj.util.FileUtil;
|
||||
import org.docx4j.Docx4J;
|
||||
@@ -68,14 +86,32 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.*;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.lang.reflect.Field;
|
||||
import java.math.BigDecimal;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.TreeSet;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -1824,6 +1860,8 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl<ParamsReportDet
|
||||
List<ParamsReportConfigDataEO> paramsReportConfigDataEOList = paramsReportConfigDataEOService.queryListByConfigIdList(paramsReportConfigIdList); // 查询所有配置数据
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
|
||||
// List<String> idList = configDataList.stream().map(e -> e.get("id").toString()).collect(Collectors.toList());
|
||||
// List<ParamsReportDetailEO> paramsReportDetailEOS = this.listByIds(idList);
|
||||
// 处理数据
|
||||
for (Map<String, Object> map : configDataList) {
|
||||
|
||||
@@ -2041,10 +2079,28 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl<ParamsReportDet
|
||||
this.paramsReportConfigDataEOService.remove(removeConfigDataWrap);
|
||||
}
|
||||
ParamsReportDetailLogEO insertLogEO = new ParamsReportDetailLogEO();
|
||||
|
||||
String ramarks = "";
|
||||
if(map.get("remarks") != null){
|
||||
ramarks = map.get("remarks").toString();
|
||||
}
|
||||
boolean remarkFlag = false;
|
||||
// List<ParamsReportDetailEO> collect = paramsReportDetailEOS.stream().filter(e -> paramsCollectManifestId.equals(e.getId())).collect(Collectors.toList());
|
||||
// if(ObjectUtils.isNotEmpty(collect)){
|
||||
// String remark = collect.get(0).getRemarks();
|
||||
// if(StringUtils.isNotBlank(remark)
|
||||
// && StringUtils.isNotBlank(ramarks)
|
||||
// && !ramarks.equals(remark)){
|
||||
// remarkFlag = true;
|
||||
// }
|
||||
// if(StringUtils.isBlank(remark) && StringUtils.isNotBlank(ramarks)){
|
||||
// remarkFlag = true;
|
||||
// }
|
||||
// if(StringUtils.isNotBlank(remark) && StringUtils.isBlank(ramarks)){
|
||||
// remarkFlag = true;
|
||||
// }
|
||||
// }
|
||||
|
||||
if(!loginUser.getUsername().equals(logCnContent.toString()) && !loginUser.getUsername().equals(logEnContent.toString())){
|
||||
insertLogEO.setLogCnContent(logCnContent.toString().substring(0, logCnContent.length()-1));
|
||||
insertLogEO.setLogEnContent(logEnContent.toString().substring(0, logCnContent.length()-1));
|
||||
|
||||
+6
@@ -354,4 +354,10 @@ public class ProjectLibraryBaseController extends JeroController<ProjectLibraryB
|
||||
public Result<?> overallReplacementUser(@RequestBody JSONObject json){
|
||||
return this.projectLibraryBaseService.overallReplacementUser(json);
|
||||
}
|
||||
@AutoLog(value = "查询数字平台或车型平台")
|
||||
@ApiOperation(value="查询数字平台或车型平台", notes="查询数字平台或车型平台")
|
||||
@GetMapping(value = "/getPlatform")
|
||||
public List<String> getPlatform(String platform){
|
||||
return projectLibraryBaseService.getPlatform(platform);
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -175,4 +175,9 @@ public class ProblemManagementEO implements Serializable {
|
||||
@ApiModelProperty(value = "旧数据->old,新数据->new")
|
||||
private String flag;
|
||||
|
||||
@ApiModelProperty(value = "相关项目类型")
|
||||
private String projectType;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package com.jero.modules.project.enums;
|
||||
|
||||
/**
|
||||
* 任务状态枚举类
|
||||
*/
|
||||
public enum PlatformEnum {
|
||||
NUMBER_PLATFORM("数字平台","numberPlatform"),
|
||||
CAR_PLATFORM("车型平台","carPlatform"),
|
||||
;
|
||||
|
||||
|
||||
String name;
|
||||
String value;
|
||||
|
||||
private PlatformEnum(String name, String value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static String getTextByValue(String value) {
|
||||
PlatformEnum[] values = values();
|
||||
for (PlatformEnum taskStatusEnum : values) {
|
||||
if (taskStatusEnum.value.equals(value)) {
|
||||
return taskStatusEnum.name;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+2
@@ -204,4 +204,6 @@ public interface IProjectLibraryBaseService extends IService<ProjectLibraryBase>
|
||||
List<ProjectLibraryBase> queryList(List<String> projectIdList);
|
||||
|
||||
List<ProjectLibraryBase> getListByIds(List<String> projectIdList);
|
||||
|
||||
List<String> getPlatform(String platform);
|
||||
}
|
||||
|
||||
-14
@@ -116,20 +116,6 @@ public class NcrTrackServiceImpl extends ServiceImpl<NcrTrackMapper, NcrTrackVO>
|
||||
public List<NcrTrackVO> getPageInfo(NcrTrackVO ncrTrackVO) {
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
ncrTrackVO.setUserId(loginUser.getId());
|
||||
// if(StringUtils.isNotBlank(ncrTrackVO.getSerialNumber())){
|
||||
// if(ncrTrackVO.getSerialNumber().contains("%")){
|
||||
// ncrTrackVO.setSerialNumber(ncrTrackVO.getSerialNumber().replaceAll("%", "/%"));
|
||||
// }
|
||||
// ncrTrackVO.setSerialNumber(ncrTrackVO.getSerialNumber().replace("*",""));
|
||||
// }
|
||||
// if(StringUtils.isNotBlank(ncrTrackVO.getTitle())){
|
||||
// if(ncrTrackVO.getTitle().contains("%")){
|
||||
// ncrTrackVO.setTitle(ncrTrackVO.getTitle().replace("%","/%"));
|
||||
// }
|
||||
// ncrTrackVO.setTitle(ncrTrackVO.getTitle().replace("*",""));
|
||||
// }
|
||||
// List<SysUser> sysUserList = sysUserService.list();
|
||||
|
||||
|
||||
ncrTrackVO.setInconformity(ReviewResultEnum.INCONFORMITY.getValue());
|
||||
ncrTrackVO.setTrack(ReviewResultEnum.TO_TRACK.getValue());
|
||||
|
||||
+10
@@ -10979,9 +10979,14 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
|
||||
@NotNull
|
||||
private List<Map<String, Object>> getNewData(Map<String, Object> params, String cut,boolean administrator) {
|
||||
// params.put("numberPlatform","NT2");
|
||||
// params.put("carPlatform","NT2");
|
||||
|
||||
//新数据
|
||||
LambdaQueryWrapper<ProblemManagementEO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.like(ProblemManagementEO::getProjectId,params.get("projectLibraryId"));
|
||||
wrapper.or().eq(ProblemManagementEO::getProjectId,params.get("numberPlatform"));
|
||||
wrapper.or().eq(ProblemManagementEO::getProjectId, params.get("carPlatform"));
|
||||
List<ProblemManagementEO> managementEOList = problemManagementEOService.list(wrapper);
|
||||
//法规
|
||||
List<String> lawsIdList = managementEOList.stream()
|
||||
@@ -11051,6 +11056,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
map.put("id",problemManagementEO.getId());
|
||||
map.put("flag",DataEnum.NEW.getValue());
|
||||
map.put("administrator",administrator ? "true" : "false");
|
||||
map.put("projectType",problemManagementEO.getProjectType());
|
||||
|
||||
List<DictModel> dictModelList = problemTypeList.stream().filter(e -> e.getValue().equals(problemManagementEO.getProblemType())).collect(Collectors.toList());
|
||||
|
||||
@@ -11078,6 +11084,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
List<ProjectLibraryBase> projectLibraryBaseListTemp = projectLibraryBaseList.stream()
|
||||
.filter(e->StringUtils.isNotBlank(problemManagementEO.getProjectId())
|
||||
&& problemManagementEO.getProjectId().contains(e.getId())).collect(Collectors.toList());
|
||||
if(ObjectUtils.isEmpty(projectLibraryBaseListTemp)){
|
||||
map.put("projectName",problemManagementEO.getProjectId());
|
||||
map.put("projectId",problemManagementEO.getProjectId());
|
||||
}
|
||||
//目标市场数据字典
|
||||
List<DictModel> targetMarketList = sysDictService.queryDictItemsByCode(DicCodeEnum.REGION.getCode());
|
||||
List<String> projectNameList = new ArrayList<>();
|
||||
|
||||
+18
@@ -42,6 +42,7 @@ import com.jero.modules.project.enums.FlowStateEnum;
|
||||
import com.jero.modules.project.enums.HSStatisticalNodesEnum;
|
||||
import com.jero.modules.project.enums.OperatorTypeEnum;
|
||||
import com.jero.modules.project.enums.PermissionDescriptionEnum;
|
||||
import com.jero.modules.project.enums.PlatformEnum;
|
||||
import com.jero.modules.project.enums.ProjectRoleEnum;
|
||||
import com.jero.modules.project.enums.ProjectTaskPlanningNameEnum;
|
||||
import com.jero.modules.project.enums.ProjectUserLocationEnum;
|
||||
@@ -4219,6 +4220,23 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getPlatform(String platform) {
|
||||
List<ProjectLibraryBase> projectLibraryBaseList = this.list();
|
||||
List<String> platformList = new ArrayList<>();
|
||||
if(PlatformEnum.NUMBER_PLATFORM.getValue().equals(platform)){
|
||||
platformList = projectLibraryBaseList.stream()
|
||||
.filter(e -> StringUtils.isNotBlank(e.getDigitalPlatform()))
|
||||
.map(ProjectLibraryBase::getDigitalPlatform).distinct().collect(Collectors.toList());
|
||||
}
|
||||
if(PlatformEnum.CAR_PLATFORM.getValue().equals(platform)){
|
||||
platformList = projectLibraryBaseList.stream()
|
||||
.filter(e -> StringUtils.isNotBlank(e.getVehiclePlatform()))
|
||||
.map(ProjectLibraryBase::getVehiclePlatform).distinct().collect(Collectors.toList());
|
||||
}
|
||||
return platformList;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -258,6 +258,9 @@ public class NcrTrackVO implements Serializable {
|
||||
|
||||
private String platform;
|
||||
|
||||
//相关项目类型
|
||||
private String projectType;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user