diff --git a/search-tool/src/main/java/com/bonus/tool/dto/TbCompanyPerfVo.java b/search-tool/src/main/java/com/bonus/tool/dto/TbCompanyPerfVo.java index 6fe836d..03cac70 100644 --- a/search-tool/src/main/java/com/bonus/tool/dto/TbCompanyPerfVo.java +++ b/search-tool/src/main/java/com/bonus/tool/dto/TbCompanyPerfVo.java @@ -124,4 +124,6 @@ public class TbCompanyPerfVo { private String personName; private List perfIds; + + private Long perfId; } diff --git a/search-tool/src/main/java/com/bonus/tool/service/impl/EpcServiceImpl.java b/search-tool/src/main/java/com/bonus/tool/service/impl/EpcServiceImpl.java index 7f77221..93e7525 100644 --- a/search-tool/src/main/java/com/bonus/tool/service/impl/EpcServiceImpl.java +++ b/search-tool/src/main/java/com/bonus/tool/service/impl/EpcServiceImpl.java @@ -10,6 +10,7 @@ import com.bonus.tool.mapper.StateGridMapper; import com.bonus.tool.mapper.TbCompanyPerfMapper; import com.bonus.tool.service.EpcService; import com.bonus.tool.template.util.FreeMarkerUtil; +import com.bonus.tool.template.util.SnowflakeIdWorker; import com.bonus.tool.template.util.WordUtils; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; @@ -38,6 +39,8 @@ public class EpcServiceImpl implements EpcService { @Resource private StateGridMapper stateGridMapper; + SnowflakeIdWorker idWorker = new SnowflakeIdWorker(2, 2); + /** * Epc模版列表查询 * @@ -180,6 +183,11 @@ public class EpcServiceImpl implements EpcService { String[] split = perfId.split(","); tbCompanyPerfVo.setPerfIds(Arrays.asList(split)); List personPerfList = tbCompanyPerfMapper.getTbCompanyPerfListByPersonId(tbCompanyPerfVo); + //业绩还有图片 + personPerfList.forEach(perfItem -> { + List perfList = stateGridMapper.getFileSourceList(perfItem.getPerfId(),TableType.TB_COMPANY_PERF_REL.getCode()); + perfItem.setTbFileSourceVoList(perfList); + }); item.setPeoplePerfList(personPerfList); } }); @@ -236,7 +244,7 @@ public class EpcServiceImpl implements EpcService { map.put("level", item.getLevel() != null ? item.getLevel() : ""); map.put("zh", item.getDiplomaNum() != null ? item.getDiplomaNum() : ""); map.put("zy", item.getMajor() != null ? item.getMajor() : ""); - map.put("ylbx", item.getIsNormal() != null ? (item.getIsNormal() == 1 ? "异常" : "正常") : "异常"); + map.put("ylbx", item.getIsNormal() != null ? (item.getIsNormal() == 1 ? "异常" : "正常") : ""); map.put("bz", ""); list.add(map); } @@ -255,7 +263,7 @@ public class EpcServiceImpl implements EpcService { map.put("level", item.getLevel() != null ? item.getLevel() : ""); map.put("zh", item.getDiplomaNum() != null ? item.getDiplomaNum() : ""); map.put("zy", item.getMajor() != null ? item.getMajor() : ""); - map.put("ylbx", item.getIsNormal() != null ? (item.getIsNormal() == 1 ? "异常" : "正常") : "异常"); + map.put("ylbx", item.getIsNormal() != null ? (item.getIsNormal() == 1 ? "异常" : "正常") : ""); map.put("bz", ""); list.add(map); } @@ -274,7 +282,7 @@ public class EpcServiceImpl implements EpcService { map.put("level", item.getLevel() != null ? item.getLevel() : ""); map.put("zh", item.getDiplomaNum() != null ? item.getDiplomaNum() : ""); map.put("zy", item.getMajor() != null ? item.getMajor() : ""); - map.put("ylbx", item.getIsNormal() != null ? (item.getIsNormal() == 1 ? "异常" : "正常") : "异常"); + map.put("ylbx", item.getIsNormal() != null ? (item.getIsNormal() == 1 ? "异常" : "正常") : ""); map.put("bz", ""); list.add(map); } @@ -310,14 +318,13 @@ public class EpcServiceImpl implements EpcService { } // 处理证件图片 List> imgList = new ArrayList<>(); - int imgIndex = 1; // 处理身份证图片 if (item.getIdCardFileList() != null) { for (TbFileSourceVo file : item.getIdCardFileList()) { Map imgMap = new HashMap<>(); imgMap.put("width", "375.35"); imgMap.put("height", "207.85"); - imgMap.put("index", (100 * (i + 1)) + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath + file.getFilePath()) : ""); imgList.add(imgMap); @@ -329,7 +336,7 @@ public class EpcServiceImpl implements EpcService { Map imgMap = new HashMap<>(); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); - imgMap.put("index", (100 * (i + 1)) + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath + file.getFilePath()) : ""); imgList.add(imgMap); @@ -342,7 +349,7 @@ public class EpcServiceImpl implements EpcService { Map imgMap = new HashMap<>(); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); - imgMap.put("index", (100 * (i + 1)) + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath + file.getFilePath()) : ""); imgList.add(imgMap); @@ -351,18 +358,19 @@ public class EpcServiceImpl implements EpcService { // 处理业绩信息 map.put("yjTitle", item.getPostName() != null ? item.getPostName() + "业绩" : "项目经理业绩"); List> yjList = new ArrayList<>(); - if (item.getProPerf() != null && !item.getProPerf().isEmpty()) { - String[] perfList = item.getProPerf().split(","); - for (int j = 0; j < perfList.length; j++) { + if (item.getPeoplePerfList() != null && !item.getPeoplePerfList().isEmpty()) { + List perfList = item.getPeoplePerfList(); + for (int j = 0; j < perfList.size(); j++) { + TbCompanyPerfVo tbCompanyPerfVo = perfList.get(j); Map yjMap = new HashMap<>(); - yjMap.put("yj", "业绩" + (j + 1) + ":" + perfList[j]); + yjMap.put("yj", "业绩" + (j + 1) + ":" + tbCompanyPerfVo.getProName()); // 业绩相关图片 - 如果没有特定的业绩图片,可以复用证书图片或者不添加 List> imgList2 = new ArrayList<>(); - if (item.getOtherFileList() != null) { - for (int k = 0; k < item.getOtherFileList().size(); k++) { - TbFileSourceVo file = item.getOtherFileList().get(k); + if (tbCompanyPerfVo.getTbFileSourceVoList() != null) { + for (int k = 0; k < tbCompanyPerfVo.getTbFileSourceVoList().size(); k++) { + TbFileSourceVo file = tbCompanyPerfVo.getTbFileSourceVoList().get(k); Map imgMap = new HashMap<>(); - imgMap.put("index", (10000 * (j + 1)) + (k + 1)); + imgMap.put("index", idWorker.nextId()); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); imgMap.put("base64Url", file.getFilePath() != null ? @@ -401,7 +409,7 @@ public class EpcServiceImpl implements EpcService { Map imgMap = new HashMap<>(); imgMap.put("width", "375.35"); imgMap.put("height", "207.85"); - imgMap.put("index", (100 * (i + 1)) + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath + file.getFilePath()) : ""); imgList.add(imgMap); @@ -413,7 +421,7 @@ public class EpcServiceImpl implements EpcService { Map imgMap = new HashMap<>(); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); - imgMap.put("index", (100 * (i + 1)) + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath + file.getFilePath()) : ""); imgList.add(imgMap); @@ -425,7 +433,7 @@ public class EpcServiceImpl implements EpcService { Map imgMap = new HashMap<>(); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); - imgMap.put("index", (100 * (i + 1)) + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath + file.getFilePath()) : ""); imgList.add(imgMap); @@ -439,7 +447,7 @@ public class EpcServiceImpl implements EpcService { // 业绩相关图片 - 如果没有特定的业绩图片,可以复用证书图片或者不添加 List> imgList2 = new ArrayList<>(); Map imgMap = new HashMap<>(); - imgMap.put("index", 10000) ; + imgMap.put("index", idWorker.nextId()) ; imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); imgMap.put("base64Url", ""); @@ -477,12 +485,13 @@ public class EpcServiceImpl implements EpcService { int fileType = Integer.parseInt(file.getFileType()); switch (fileType) { case 1: + case 2: type1List.add(file); break; - case 2: + case 3: type2List.add(file); break; - case 3: + case 4: type3List.add(file); break; default: diff --git a/search-tool/src/main/java/com/bonus/tool/service/impl/SouthServiceImpl.java b/search-tool/src/main/java/com/bonus/tool/service/impl/SouthServiceImpl.java index 5e3e6de..029e0ba 100644 --- a/search-tool/src/main/java/com/bonus/tool/service/impl/SouthServiceImpl.java +++ b/search-tool/src/main/java/com/bonus/tool/service/impl/SouthServiceImpl.java @@ -183,6 +183,11 @@ public class SouthServiceImpl implements SouthService { String[] split = perfId.split(","); tbCompanyPerfVo.setPerfIds(Arrays.asList(split)); List personPerfList = tbCompanyPerfMapper.getTbCompanyPerfListByPersonId(tbCompanyPerfVo); + //业绩还有图片 + personPerfList.forEach(perfItem -> { + List perfList = stateGridMapper.getFileSourceList(perfItem.getPerfId(),TableType.TB_COMPANY_PERF_REL.getCode()); + perfItem.setTbFileSourceVoList(perfList); + }); item.setPeoplePerfList(personPerfList); } }); @@ -217,12 +222,13 @@ public class SouthServiceImpl implements SouthService { int fileType = Integer.parseInt(file.getFileType()); switch (fileType) { case 1: + case 2: type1List.add(file); break; - case 2: + case 3: type2List.add(file); break; - case 3: + case 4: type3List.add(file); break; default: diff --git a/search-tool/src/main/java/com/bonus/tool/service/impl/StateGridServiceImpl.java b/search-tool/src/main/java/com/bonus/tool/service/impl/StateGridServiceImpl.java index 1ab9594..de8e319 100644 --- a/search-tool/src/main/java/com/bonus/tool/service/impl/StateGridServiceImpl.java +++ b/search-tool/src/main/java/com/bonus/tool/service/impl/StateGridServiceImpl.java @@ -291,10 +291,10 @@ public class StateGridServiceImpl implements StateGridService { data.put("title", tbData.getName()); // 处理公司业绩数据(近年完成的类似项目情况表) if (tbData.getComPerfList() != null && !tbData.getComPerfList().isEmpty()) { - int index = 1; + int index = 0; for (ComPerformanceBean item : tbData.getComPerfList()) { Map map = new HashMap<>(); - map.put("i", index++); + map.put("i", ++index); map.put("proName", item.getProName() != null ? item.getProName() : ""); map.put("dy", item.getVoltage() != null ? item.getVoltage() : ""); map.put("num", item.getStationNum() != null ? item.getStationNum() : ""); @@ -310,10 +310,9 @@ public class StateGridServiceImpl implements StateGridService { Map perfImgMap = new HashMap<>(); perfImgMap.put("proName", index + "." + item.getProName()); List> imgList = new ArrayList<>(); - int imgIndex = 1; for (TbFileSourceVo file : item.getFileList()) { Map imgMap = new HashMap<>(); - imgMap.put("index", 100 * index + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); String bast64=FreeMarkerUtil.getImageBase(filePath+file.getFilePath()); @@ -369,7 +368,6 @@ public class StateGridServiceImpl implements StateGridService { map3.put("index", idWorker.nextId()); map3.put("width", "481.15"); map3.put("height", "634.5"); - System.err.println("处理业绩证明材料图片:"+filePath+file.getFilePath()); map3.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); imgList.add(map3); } @@ -383,7 +381,7 @@ public class StateGridServiceImpl implements StateGridService { int zzIndex = 1; for (TbFileSourceVo file : item.getSubFileList()) { Map zzMap = new HashMap<>(); - zzMap.put("index", 1000 * subIndex + zzIndex++); + zzMap.put("index", idWorker.nextId()); zzMap.put("width", "481.15"); zzMap.put("height", "634.5"); zzMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); @@ -406,57 +404,13 @@ public class StateGridServiceImpl implements StateGridService { personList.add(personMap); // 处理拟派人员证件图片 Map personImgMap = new HashMap<>(); - personImgMap.put("userType", personItem.getPostName() != null ? personItem.getPostName() : ""); + personImgMap.put("userType", personItem.getPostName() != null ? personItem.getPostName() + "---" + personItem.getUserName() : ""); List> imgList = new ArrayList<>(); int imgIndex = 1; // 处理身份证 if (personItem.getIdCardFileList() != null && !personItem.getIdCardFileList().isEmpty()) { for (TbFileSourceVo file : personItem.getIdCardFileList()) { Map imgMap = new HashMap<>(); - imgMap.put("index", 10000 * personIndex + imgIndex++); - imgMap.put("width", "375.35"); - imgMap.put("height", "207.85"); - imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); - imgList.add(imgMap); - } - } - // 处理资格证书 - if (personItem.getDiplomaFileList() != null && !personItem.getDiplomaFileList().isEmpty()) { - for (TbFileSourceVo file : personItem.getDiplomaFileList()) { - Map imgMap = new HashMap<>(); - imgMap.put("index", 10000 * personIndex + imgIndex++); - imgMap.put("width", "481.15"); - imgMap.put("height", "634.5"); - imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); - imgList.add(imgMap); - } - } - // 处理其他资质 - if (personItem.getOtherFileList() != null && !personItem.getOtherFileList().isEmpty()) { - for (TbFileSourceVo file : personItem.getOtherFileList()) { - Map imgMap = new HashMap<>(); - imgMap.put("index", 10000 * personIndex + imgIndex++); - imgMap.put("width", "481.15"); - imgMap.put("height", "634.5"); - imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); - imgList.add(imgMap); - } - } - if (!imgList.isEmpty()) { - personImgMap.put("imgList", imgList); - personImgList.add(personImgMap); - } - } - //再循环图片 - for (SubOtherPeopleBean personItem : item.getSubPersonList()) { - // 处理拟派人员证件图片 - Map personImgMap = new HashMap<>(); - personImgMap.put("userType", personItem.getPostName() != null ? personItem.getPostName() : ""); - List> imgList = new ArrayList<>(); - Map imgMap = new HashMap<>(); - // 处理身份证 - if (personItem.getIdCardFileList() != null && !personItem.getIdCardFileList().isEmpty()) { - for (TbFileSourceVo file : personItem.getIdCardFileList()) { imgMap.put("index", idWorker.nextId()); imgMap.put("width", "375.35"); imgMap.put("height", "207.85"); @@ -467,6 +421,7 @@ public class StateGridServiceImpl implements StateGridService { // 处理资格证书 if (personItem.getDiplomaFileList() != null && !personItem.getDiplomaFileList().isEmpty()) { for (TbFileSourceVo file : personItem.getDiplomaFileList()) { + Map imgMap = new HashMap<>(); imgMap.put("index", idWorker.nextId()); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); @@ -477,6 +432,7 @@ public class StateGridServiceImpl implements StateGridService { // 处理其他资质 if (personItem.getOtherFileList() != null && !personItem.getOtherFileList().isEmpty()) { for (TbFileSourceVo file : personItem.getOtherFileList()) { + Map imgMap = new HashMap<>(); imgMap.put("index", idWorker.nextId()); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); @@ -489,6 +445,48 @@ public class StateGridServiceImpl implements StateGridService { personImgList.add(personImgMap); } } +// //再循环图片 +// for (SubOtherPeopleBean personItem : item.getSubPersonList()) { +// // 处理拟派人员证件图片 +// Map personImgMap = new HashMap<>(); +// personImgMap.put("userType", personItem.getPostName() != null ? personItem.getPostName()+personItem.getUserName() : ""); +// List> imgList = new ArrayList<>(); +// Map imgMap = new HashMap<>(); +// // 处理身份证 +// if (personItem.getIdCardFileList() != null && !personItem.getIdCardFileList().isEmpty()) { +// for (TbFileSourceVo file : personItem.getIdCardFileList()) { +// imgMap.put("index", idWorker.nextId()); +// imgMap.put("width", "375.35"); +// imgMap.put("height", "207.85"); +// imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); +// imgList.add(imgMap); +// } +// } +// // 处理资格证书 +// if (personItem.getDiplomaFileList() != null && !personItem.getDiplomaFileList().isEmpty()) { +// for (TbFileSourceVo file : personItem.getDiplomaFileList()) { +// imgMap.put("index", idWorker.nextId()); +// imgMap.put("width", "481.15"); +// imgMap.put("height", "634.5"); +// imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); +// imgList.add(imgMap); +// } +// } +// // 处理其他资质 +// if (personItem.getOtherFileList() != null && !personItem.getOtherFileList().isEmpty()) { +// for (TbFileSourceVo file : personItem.getOtherFileList()) { +// imgMap.put("index", idWorker.nextId()); +// imgMap.put("width", "481.15"); +// imgMap.put("height", "634.5"); +// imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); +// imgList.add(imgMap); +// } +// } +// if (!imgList.isEmpty()) { +// personImgMap.put("imgList", imgList); +// personImgList.add(personImgMap); +// } +// } } subMap.put("yjList", yjList); @@ -519,15 +517,16 @@ public class StateGridServiceImpl implements StateGridService { otherMap.put("bh", ""); // 处理证书列表 List> zsList = new ArrayList<>(); - if (item.getDiploma() != null || item.getDiplomaNum() != null || item.getMajor() != null || item.getLevel() != null) { - Map zsMap = new HashMap<>(); - zsMap.put("zs", item.getDiploma() != null ? item.getDiploma() : ""); - zsMap.put("jb", item.getLevel() != null ? item.getLevel() : ""); - zsMap.put("zh", item.getDiplomaNum() != null ? item.getDiplomaNum() : ""); - zsMap.put("zy", item.getMajor() != null ? item.getMajor() : ""); - zsMap.put("bh", ""); - zsList.add(zsMap); - } + //表设计是不可能有两个证件,后续修改,将item.getDiploma()改成集合存储 +// if (item.getDiploma() != null || item.getDiplomaNum() != null || item.getMajor() != null || item.getLevel() != null) { +// Map zsMap = new HashMap<>(); +// zsMap.put("zs", item.getDiploma() != null ? item.getDiploma() : ""); +// zsMap.put("jb", item.getLevel() != null ? item.getLevel() : ""); +// zsMap.put("zh", item.getDiplomaNum() != null ? item.getDiplomaNum() : ""); +// zsMap.put("zy", item.getMajor() != null ? item.getMajor() : ""); +// zsMap.put("bh", ""); +// zsList.add(zsMap); +// } otherMap.put("zsList", zsList); otherUserList.add(otherMap); // 处理人员证件图片 @@ -537,7 +536,7 @@ public class StateGridServiceImpl implements StateGridService { if (item.getIdCardFileList() != null) { for (TbFileSourceVo file : item.getIdCardFileList()) { Map imgMap = new HashMap<>(); - imgMap.put("index", 1000000 * otherIndex + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("width", "375.35"); imgMap.put("height", "207.85"); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); @@ -554,7 +553,7 @@ public class StateGridServiceImpl implements StateGridService { for (TbFileSourceVo file : allImages) { Map imgMap = new HashMap<>(); - imgMap.put("index", 1000000 * otherIndex + imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); @@ -650,12 +649,8 @@ public class StateGridServiceImpl implements StateGridService { jlMap.put("yjList", yjList); jlList.add(jlMap); // 处理人员证件图片 - int imgIndex = 1; // 处理身份证、资格证书和其他资质的图片 List allImages = new ArrayList<>(); - if (item.getIdCardFileList() != null) { - allImages.addAll(item.getIdCardFileList()); - } if (item.getDiplomaFileList() != null) { allImages.addAll(item.getDiplomaFileList()); } @@ -664,6 +659,16 @@ public class StateGridServiceImpl implements StateGridService { } Map map2 = new HashMap<>(); List> imgList = new ArrayList<>(); + if (item.getIdCardFileList() != null) { + for (TbFileSourceVo file : item.getIdCardFileList()) { + Map imgMap = new HashMap<>(); + imgMap.put("index", idWorker.nextId()); + imgMap.put("width", "375.35"); + imgMap.put("height", "207.85"); + imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); + imgList.add(imgMap); + } + } // 根据分组人数设置zmcl if (personList.size() == 1) { map2.put("zmcl", ""); @@ -672,7 +677,7 @@ public class StateGridServiceImpl implements StateGridService { } for (TbFileSourceVo file : allImages) { Map imgMap = new HashMap<>(); - imgMap.put("index", imgIndex++); + imgMap.put("index", idWorker.nextId()); imgMap.put("width", "481.15"); imgMap.put("height", "634.5"); imgMap.put("base64Url", file.getFilePath() != null ? FreeMarkerUtil.getImageBase(filePath+file.getFilePath()) : ""); diff --git a/search-tool/src/main/java/com/bonus/tool/template/TestEPCDOC.java b/search-tool/src/main/java/com/bonus/tool/template/TestEPCDOC.java index 9545330..5edcbb8 100644 --- a/search-tool/src/main/java/com/bonus/tool/template/TestEPCDOC.java +++ b/search-tool/src/main/java/com/bonus/tool/template/TestEPCDOC.java @@ -75,7 +75,6 @@ public class TestEPCDOC { Map map3 = new HashMap<>(); map3.put("width", "375.35"); map3.put("height", "207.85"); - map3.put("index",(100 * (i + 1)) + (j + 1)); if(j == 0){ map3.put("base64Url", FreeMarkerUtil.getImageBase("C:\\Users\\10488\\Desktop\\图片3.png")); diff --git a/search-tool/src/main/resources/mapper/EpcMapper.xml b/search-tool/src/main/resources/mapper/EpcMapper.xml index 1bf180c..933256f 100644 --- a/search-tool/src/main/resources/mapper/EpcMapper.xml +++ b/search-tool/src/main/resources/mapper/EpcMapper.xml @@ -96,7 +96,7 @@ from tb_epc_mdel where del_flag =0 - and name = #{name} + and locate(#{name},name) and STR_TO_DATE(create_time, '%Y-%m-%d') between #{startDate} and #{endDate} @@ -137,6 +137,7 @@ tgku.position as post_name, tkp.major, tkp.`level`, + tkp.is_normal, tgku.perf_id, tgku.pro_perf FROM tb_epc_company_user tgku diff --git a/search-tool/src/main/resources/mapper/SouthMapper.xml b/search-tool/src/main/resources/mapper/SouthMapper.xml index 6476a88..43ae0f7 100644 --- a/search-tool/src/main/resources/mapper/SouthMapper.xml +++ b/search-tool/src/main/resources/mapper/SouthMapper.xml @@ -96,7 +96,7 @@ from tb_south_mdel where del_flag =0 - and name = #{name} + and locate(#{name},name) and STR_TO_DATE(create_time, '%Y-%m-%d') between #{startDate} and #{endDate} @@ -137,6 +137,7 @@ tgku.position as post_name, tkp.major, tkp.`level`, + tkp.is_normal, tgku.perf_id, tgku.pro_perf FROM tb_south_company_user tgku diff --git a/search-tool/src/main/resources/mapper/StateGridMapper.xml b/search-tool/src/main/resources/mapper/StateGridMapper.xml index 6dbb923..8af8cfb 100644 --- a/search-tool/src/main/resources/mapper/StateGridMapper.xml +++ b/search-tool/src/main/resources/mapper/StateGridMapper.xml @@ -147,7 +147,7 @@ from tb_gw_model where del_flag =0 - and name = #{name} + and locate(#{name},name) and STR_TO_DATE(create_time, '%Y-%m-%d') between #{startDate} and #{endDate} diff --git a/search-tool/src/main/resources/mapper/TbCompanyPerfMapper.xml b/search-tool/src/main/resources/mapper/TbCompanyPerfMapper.xml index ed09f51..5e07f3e 100644 --- a/search-tool/src/main/resources/mapper/TbCompanyPerfMapper.xml +++ b/search-tool/src/main/resources/mapper/TbCompanyPerfMapper.xml @@ -89,7 +89,8 @@ tcp.contract_rang, tcp.owner_unit, tcp.owner_phone, - tcp.voltage + tcp.voltage, + tcpr.id as perfId FROM tb_key_people tkp LEFT JOIN tb_company_perf_rel tcpr ON tcpr.key_user = tkp.id and tcpr.source = '1'