海南bug修改提交
This commit is contained in:
@@ -54,7 +54,7 @@ public class SensitiveReportExcel implements Serializable {
|
||||
// private String orgId;
|
||||
|
||||
|
||||
@Excel(name = "工程预期投产日期(yyyy-MM-dd)", width = 30)
|
||||
@Excel(name = "*工程预期投产日期(yyyy-MM-dd)", width = 30)
|
||||
private String expectedProductionDate;
|
||||
|
||||
@Excel(name = "电压等级", width = 30)
|
||||
|
||||
@@ -57,7 +57,7 @@ public class SensitiveUserSExcel implements Serializable {
|
||||
// private String orgId;
|
||||
|
||||
|
||||
@Excel(name = "工程预期投产日期(yyyy-MM-dd)", width = 30)
|
||||
@Excel(name = "*工程预期投产日期(yyyy-MM-dd)", width = 30)
|
||||
@NotBlank(message = "工程预期投产日期不能为空")
|
||||
private String expectedProductionDate;
|
||||
|
||||
|
||||
@@ -209,14 +209,14 @@ public class SupervisionDevMainReportExcel {
|
||||
private String timeSyncFunction = "0";
|
||||
|
||||
/**
|
||||
* 电镀功能
|
||||
* 电度功能
|
||||
*/
|
||||
@Excel(name = "电度功能", width = 30, replace = {"关闭_0", "开启_1"})
|
||||
private String electroplatingFunction = "0";
|
||||
|
||||
|
||||
/**
|
||||
* 召换标志
|
||||
* 召唤标志
|
||||
*/
|
||||
@Excel(name = "召唤标志", width = 30, replace = {"周期触发_0", "变位触发_1"})
|
||||
private String summonFlag = "0";
|
||||
|
||||
@@ -206,9 +206,9 @@ public class SupervisionTempDeviceReportParam {
|
||||
private Integer timeSyncFunction;
|
||||
|
||||
/**
|
||||
* 电镀功能
|
||||
* 电度功能
|
||||
*/
|
||||
@ApiModelProperty(value="电镀功能")
|
||||
@ApiModelProperty(value="电度功能")
|
||||
private Integer electroplatingFunction;
|
||||
|
||||
/**
|
||||
@@ -218,9 +218,9 @@ public class SupervisionTempDeviceReportParam {
|
||||
private String monitoringDeviceInstallationPosition;
|
||||
|
||||
/**
|
||||
* 召换标志
|
||||
* 召唤标志
|
||||
*/
|
||||
@ApiModelProperty(value="召换标志")
|
||||
@ApiModelProperty(value="召唤标志")
|
||||
private String summonFlag;
|
||||
|
||||
/**
|
||||
|
||||
@@ -204,7 +204,7 @@ public class SupervisionTempDeviceReport {
|
||||
private Integer timeSyncFunction;
|
||||
|
||||
/**
|
||||
* 电镀功能
|
||||
* 电度功能
|
||||
*/
|
||||
@TableField(value = "electroplating_function")
|
||||
private Integer electroplatingFunction;
|
||||
@@ -216,7 +216,7 @@ public class SupervisionTempDeviceReport {
|
||||
private String monitoringDeviceInstallationPosition;
|
||||
|
||||
/**
|
||||
* 召换标志
|
||||
* 召唤标志
|
||||
*/
|
||||
@TableField(value = "summon_flag")
|
||||
private String summonFlag;
|
||||
|
||||
@@ -56,6 +56,7 @@ import com.njcn.web.factory.PageFactory;
|
||||
import com.njcn.web.utils.RequestUtil;
|
||||
import com.njcn.web.utils.WebUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
@@ -65,6 +66,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
@@ -78,6 +80,7 @@ import java.util.stream.Stream;
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class SupervisionDevMainReportPOServiceImpl extends ServiceImpl<SupervisionDevMainReportPOMapper, SupervisionDevMainReportPO> implements SupervisionDevMainReportPOService {
|
||||
|
||||
|
||||
@@ -502,6 +505,7 @@ public class SupervisionDevMainReportPOServiceImpl extends ServiceImpl<Supervisi
|
||||
|
||||
@Override
|
||||
public void importDevData(MultipartFile file, HttpServletResponse response) {
|
||||
log.info("beginImport-------------------"+ LocalDateTime.now());
|
||||
ImportParams params = new ImportParams();
|
||||
//表头
|
||||
params.setHeadRows(1);
|
||||
@@ -528,8 +532,11 @@ public class SupervisionDevMainReportPOServiceImpl extends ServiceImpl<Supervisi
|
||||
throw new BusinessException(SupervisionResponseEnum.IMPORT_DEV_ERROR);
|
||||
}
|
||||
List<SupervisionDevMainReportExcel.ExcelMsg> devMsgList = new ArrayList<>();
|
||||
log.info("beginqueryjiBeiArea-------------------"+ LocalDateTime.now());
|
||||
|
||||
//所属地市
|
||||
List<DictData> jiBeiArea = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.JIBEI_AREA.getCode()).getData();
|
||||
log.info("beginquerydeptS-------------------"+ LocalDateTime.now());
|
||||
|
||||
//所属供电公司
|
||||
List<DeptDTO> deptS = deptFeignClient.getDeptDescendantIndexes(RequestUtil.getDeptIndex(), WebUtil.filterDeptType()).getData();
|
||||
@@ -542,6 +549,7 @@ public class SupervisionDevMainReportPOServiceImpl extends ServiceImpl<Supervisi
|
||||
//获取所有前置机
|
||||
List<Node> nodes = nodeClient.nodeAllList().getData();
|
||||
Map<String, String> nodeMap = nodes.stream().collect(Collectors.toMap(Node::getName, Node::getId, (k1, k2) -> k1));
|
||||
log.info("beginquerydevConnect-------------------"+ LocalDateTime.now());
|
||||
|
||||
//接线方式
|
||||
List<DictData> devConnect = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.DEV_CONNECT.getCode()).getData();
|
||||
@@ -552,10 +560,14 @@ public class SupervisionDevMainReportPOServiceImpl extends ServiceImpl<Supervisi
|
||||
List<DictData> voltageTransformer = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.VOLTAGE_TRANSFORMER.getCode()).getData();
|
||||
//中性点接线方式
|
||||
List<DictData> neutralPoint = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.Neutral_Point.getCode()).getData();
|
||||
log.info("beginqueryneutralPoint-------------------"+ LocalDateTime.now());
|
||||
|
||||
SubstationParam substationParam=new SubstationParam();
|
||||
substationParam.setOrgIds(deptS.stream().map(DeptDTO::getId).distinct().collect(Collectors.toList()));
|
||||
log.info("beginquerySubGetBase-------------------"+ LocalDateTime.now());
|
||||
|
||||
List<SubGetBase> data = commterminalGeneralClient.tagOrIdGetSub(substationParam).getData();
|
||||
log.info("endquerySubGetBase-------------------"+ LocalDateTime.now());
|
||||
|
||||
SupervisionDevMainReportPO po;
|
||||
if (CollectionUtil.isNotEmpty(devExcels)) {
|
||||
|
||||
@@ -793,8 +793,9 @@ public class UserReportPOServiceImpl extends ServiceImpl<UserReportPOMapper, Use
|
||||
params.setHeadRows(1);
|
||||
//标题
|
||||
params.setTitleRows(1);
|
||||
params.setNeedVerify(true);
|
||||
params.setNeedVerify(false);
|
||||
params.setStartSheetIndex(0);
|
||||
params.setReadRows(100); // 最多读取100行数据
|
||||
params.setSheetNum(1);
|
||||
List<SensitiveUserSExcel> sensitiveUserExcels;
|
||||
try {
|
||||
@@ -1018,6 +1019,7 @@ public class UserReportPOServiceImpl extends ServiceImpl<UserReportPOMapper, Use
|
||||
params.setTitleRows(1);
|
||||
params.setNeedVerify(false); // 关闭校验,避免校验导致的性能问题
|
||||
params.setStartSheetIndex(0);
|
||||
params.setReadRows(100); // 最多读取100行数据
|
||||
params.setSheetNum(1);
|
||||
// 限制最大读取行数,防止Excel模板带下拉列表导致读取大量空行
|
||||
// 如果实际数据超过此限制,需要分批导入或调整此参数
|
||||
@@ -1055,7 +1057,7 @@ public class UserReportPOServiceImpl extends ServiceImpl<UserReportPOMapper, Use
|
||||
//评估类型
|
||||
List<DictData> evaluationType = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.EVALUATION_TYPE.getCode()).getData();
|
||||
//解决填报部门问题
|
||||
List<DeptDTO> data = deptFeignClient.getDeptDescendantIndexes(RequestUtil.getUserIndex(), WebUtil.filterDeptType()).getData();
|
||||
List<DeptDTO> data = deptFeignClient.getDeptDescendantIndexes(RequestUtil.getDeptIndex(), WebUtil.filterDeptType()).getData();
|
||||
|
||||
//执行批量导入敏感及重要用户,入库过程中会进行数据校验
|
||||
List<SensitiveReportExcel.SensitiveReportExcelMsg> sensitiveUserExcelMsgs = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user