1.解决误差为0是不符合问题
2.优化检测脚本回显和通讯脚本默认值问题 3.调整三相不平衡度公式工具类
This commit is contained in:
@@ -79,4 +79,6 @@ public interface IDictTreeService extends IService<DictTree> {
|
||||
* @return
|
||||
*/
|
||||
List<DictTree> getDictTreeById(List<String> ids);
|
||||
|
||||
DictTree getDictTreeByCode(String code);
|
||||
}
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user