1.解决误差为0是不符合问题

2.优化检测脚本回显和通讯脚本默认值问题
3.调整三相不平衡度公式工具类
This commit is contained in:
wr
2025-02-25 20:57:41 +08:00
parent d65b68bbf4
commit 5ee33fabdf
10 changed files with 371 additions and 270 deletions

View File

@@ -79,4 +79,6 @@ public interface IDictTreeService extends IService<DictTree> {
* @return
*/
List<DictTree> getDictTreeById(List<String> ids);
DictTree getDictTreeByCode(String code);
}

View File

@@ -69,7 +69,7 @@ public class DictTreeServiceImpl extends ServiceImpl<DictTreeMapper, DictTree> i
@Override
@Transactional(rollbackFor = {Exception.class})
public boolean addDictTree(DictTreeParam dictTreeParam) {
checkRepeat(dictTreeParam,false);
checkRepeat(dictTreeParam, false);
boolean result;
DictTree dictTree = new DictTree();
BeanUtils.copyProperties(dictTreeParam, dictTree);
@@ -92,7 +92,7 @@ public class DictTreeServiceImpl extends ServiceImpl<DictTreeMapper, DictTree> i
@Override
@Transactional(rollbackFor = {Exception.class})
public boolean updateDictTree(DictTreeParam.UpdateParam param) {
checkRepeat(param,true);
checkRepeat(param, true);
boolean result;
DictTree dictTree = new DictTree();
BeanUtils.copyProperties(param, dictTree);
@@ -179,6 +179,13 @@ public class DictTreeServiceImpl extends ServiceImpl<DictTreeMapper, DictTree> i
);
}
@Override
public DictTree getDictTreeByCode(String code) {
return this.getOne(new LambdaQueryWrapper<DictTree>()
.eq(DictTree::getCode, code)
);
}
// @Override
// public List<DictTree> queryAll() {
// LambdaQueryWrapper<DictTree> lambdaQueryWrapper = new LambdaQueryWrapper<>();