zbj//1.台账信息只有修改台账重要参数才需要记录日志 代码修改
This commit is contained in:
@@ -424,7 +424,6 @@ public class TerminalBaseServiceImpl extends ServiceImpl<LineMapper, Line> imple
|
||||
overlimitMapper.insert(overlimit);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -719,6 +718,10 @@ public class TerminalBaseServiceImpl extends ServiceImpl<LineMapper, Line> imple
|
||||
overlimit.setUvoltageDev(updateLineBO.getUvoltageDev());
|
||||
overlimitMapper.insert(overlimit);
|
||||
}
|
||||
if (!Objects.equals(lineDetail.getCt1(), lineDetailRes.getCt1()) || !Objects.equals(lineDetail.getCt2(), lineDetailRes.getCt2())
|
||||
|| !Objects.equals(lineDetail.getPt1(), lineDetailRes.getPt1()) || !Objects.equals(lineDetail.getPt2(), lineDetailRes.getPt2())
|
||||
|| !Objects.equals(lineDetail.getDevCapacity(), lineDetailRes.getDevCapacity()) || !Objects.equals(lineDetail.getShortCapacity(), lineDetailRes.getShortCapacity())
|
||||
|| !Objects.equals(lineDetail.getStandardCapacity(), lineDetailRes.getStandardCapacity()) || !Objects.equals(lineDetail.getDealCapacity(), lineDetailRes.getDealCapacity())) {
|
||||
//获取用户信息
|
||||
String userName = RequestUtil.getUsername();
|
||||
String index = RequestUtil.getUserIndex();
|
||||
@@ -729,6 +732,7 @@ public class TerminalBaseServiceImpl extends ServiceImpl<LineMapper, Line> imple
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -762,9 +766,9 @@ public class TerminalBaseServiceImpl extends ServiceImpl<LineMapper, Line> imple
|
||||
sbOld.append("ct变比: ").append(oldLine.getCt1()).append(" : ").append(oldLine.getCt2()).append(";");
|
||||
}
|
||||
//设备容量
|
||||
if (!Objects.equals(newLine.getDealCapacity(), oldLine.getDealCapacity())) {
|
||||
sbNew.append("设备容量: ").append(newLine.getDealCapacity()).append(";");
|
||||
sbOld.append("设备容量: ").append(oldLine.getDealCapacity()).append(";");
|
||||
if (!Objects.equals(newLine.getDevCapacity(), oldLine.getDevCapacity())) {
|
||||
sbNew.append("设备容量: ").append(newLine.getDevCapacity()).append(";");
|
||||
sbOld.append("设备容量: ").append(oldLine.getDevCapacity()).append(";");
|
||||
}
|
||||
//短路容量
|
||||
if (!Objects.equals(newLine.getShortCapacity(), oldLine.getShortCapacity())) {
|
||||
|
||||
Reference in New Issue
Block a user