@@ -7,6 +7,7 @@ import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil ;
import cn.hutool.core.util.IdUtil ;
import cn.hutool.core.util.ObjectUtil ;
import cn.hutool.core.util.ObjectUtil ;
import cn.hutool.core.util.StrUtil ;
import cn.hutool.core.util.StrUtil ;
import cn.hutool.json.JSONConfig ;
import cn.hutool.json.JSONObject ;
import cn.hutool.json.JSONObject ;
import cn.hutool.json.JSONUtil ;
import cn.hutool.json.JSONUtil ;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper ;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper ;
@@ -941,13 +942,16 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
CsLinePO finalCsLinePO = csLineFeignClient . getById ( fittingDataQueryParam . getLineId ( ) ) . getData ( ) ;
CsLinePO finalCsLinePO = csLineFeignClient . getById ( fittingDataQueryParam . getLineId ( ) ) . getData ( ) ;
CsDataSet csDataSet = csDataSetMapper . selectOne ( new LambdaQueryWrapper < CsDataSet > ( ) . eq ( CsDataSet : : getId , finalCsLinePO . getDataSetId ( ) ) ) ;
CsDataSet csDataSet = csDataSetMapper . selectOne ( new LambdaQueryWrapper < CsDataSet > ( ) . eq ( CsDataSet : : getId , finalCsLinePO . getDataSetId ( ) ) ) ;
if ( Objects . isNull ( csDataSet ) | | StrUtil . isBlank ( csDataSet . getDataLevel ( ) ) ) {
if ( Objects . isNull ( csDataSet ) | | StrUtil . isBlank ( csDataSet . getDataLevel ( ) ) ) {
throw new BusinessException ( " 当前测点数据集主要信息缺失, 请联系管理员排查(测点表里面数据集id缺失) " ) ;
throw new BusinessException ( " 当前测点数据集主要信息缺失, 请联系管理员排查(测点表里面数据集id缺失) " ) ;
}
}
Double ct = finalCsLinePO . getCtRatio ( ) ;
Double ct = finalCsLinePO . getCtRatio ( ) ;
Double pt = finalCsLinePO . getPtRatio ( ) ;
Double pt = finalCsLinePO . getPtRatio ( ) ;
// String position = finalCsLinePO.getPosition();
// String position = finalCsLinePO.getPosition();
Overlimit overlimit = overlimitMapper . selectById ( finalCsLinePO . getLineId ( ) ) ;
Overlimit overlimit = overlimitMapper . selectById ( finalCsLinePO . getLineId ( ) ) ;
JSONObject entries = JSONUtil . parseObj ( overlimit ) ;
if ( Objects . isNull ( overlimit ) ) {
throw new BusinessException ( " 当前测点限值信息缺失,请联系管理员排查 " ) ;
}
JSONObject entries = JSONUtil . parseObj ( overlimit , new JSONConfig ( ) . setIgnoreNullValue ( false ) ) ;
if ( CollectionUtil . isNotEmpty ( fittingDataQueryParam . getList ( ) ) ) {
if ( CollectionUtil . isNotEmpty ( fittingDataQueryParam . getList ( ) ) ) {
for ( FittingDataQueryParam param : fittingDataQueryParam . getList ( ) ) {
for ( FittingDataQueryParam param : fittingDataQueryParam . getList ( ) ) {
String dictCode = dictTreeFeignClient . queryById ( param . getStatisticalId ( ) ) . getData ( ) . getCode ( ) ;
String dictCode = dictTreeFeignClient . queryById ( param . getStatisticalId ( ) ) . getData ( ) . getCode ( ) ;