1.台账编号添加160前缀
This commit is contained in:
@@ -31,4 +31,12 @@ public interface DisPhotovoltaicService {
|
||||
*/
|
||||
void SavaPmsPowerGenerationUser380KV(List<DisPhotovoltaic380Excel> list, HttpServletResponse response);
|
||||
|
||||
/**
|
||||
* @Description: 配网表数据新增
|
||||
* @param
|
||||
* @return: java.lang.Boolean
|
||||
* @Author: wr
|
||||
* @Date: 2023/10/11 14:31
|
||||
*/
|
||||
Boolean savePmsDistributionMonitor();
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ public class DisPhotovoltaicServiceImpl implements DisPhotovoltaicService {
|
||||
}
|
||||
|
||||
user = new PmsPowerGenerationUser();
|
||||
user.setId(excel.getGenerationUserID());
|
||||
user.setId("160"+excel.getGenerationUserID());
|
||||
user.setName(excel.getGenerationUserName());
|
||||
//todo 部门信息
|
||||
user.setOrgName("国网" + excel.getOrgName());
|
||||
@@ -188,7 +188,7 @@ public class DisPhotovoltaicServiceImpl implements DisPhotovoltaicService {
|
||||
}
|
||||
|
||||
user = new PmsPowerGenerationUser();
|
||||
user.setId(excel.getGenerationUserID());
|
||||
user.setId("160"+excel.getGenerationUserID());
|
||||
user.setName(excel.getGenerationUserName());
|
||||
//todo 部门信息
|
||||
user.setOrgName(replace);
|
||||
@@ -239,6 +239,15 @@ public class DisPhotovoltaicServiceImpl implements DisPhotovoltaicService {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean savePmsDistributionMonitor() {
|
||||
Boolean aBoolean = dictDataMapper.deletePmsDistributionMonitor(null);
|
||||
if(aBoolean){
|
||||
return dictDataMapper.insertPmsDistributionMonitor();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getAlgoDescribe(String name, List<DictData> dictData) {
|
||||
List<DictData> dictDataList = dictData.stream().filter(x -> x.getName().indexOf(name) != -1).collect(Collectors.toList());
|
||||
if (CollUtil.isNotEmpty(dictDataList)) {
|
||||
|
||||
Reference in New Issue
Block a user