代码调整
This commit is contained in:
@@ -37,6 +37,6 @@ public class PqScriptIssueParam {
|
||||
@ApiModelProperty("表明指标类型(例如:Freq频率下的影响、Base额定下的影响、VOL电压下的影响)")
|
||||
private String scriptSubType;
|
||||
|
||||
@ApiModelProperty("脚本下发类型")
|
||||
@ApiModelProperty("脚本下发类型") //在程控源功能中使用。因为在程控源功能中,不知道装置的类型,即不知道额定电压、额定电流;而在正式检测时,知道装置的类型。为了区分,0表示正式检测,1表示程控源功能。
|
||||
private int type;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.gather.detection.pojo.enums.DetectionCodeEnum;
|
||||
import com.njcn.gather.detection.pojo.enums.DetectionResponseEnum;
|
||||
import com.njcn.gather.script.mapper.PqScriptCheckDataMapper;
|
||||
import com.njcn.gather.script.pojo.param.PqScriptCheckDataParam;
|
||||
import com.njcn.gather.script.pojo.po.PqScriptCheckData;
|
||||
@@ -80,7 +81,8 @@ public class PqScriptCheckDataServiceImpl extends ServiceImpl<PqScriptCheckDataM
|
||||
.eq(PqScriptCheckData::getEnable, DataStateEnum.ENABLE.getCode());
|
||||
List<PqScriptCheckData> pqScriptCheckData = this.baseMapper.selectList(queryWrapper);
|
||||
if(CollUtil.isEmpty(pqScriptCheckData)){
|
||||
throw new BusinessException(CommonResponseEnum.FAIL,"测试脚本项暂无配置");
|
||||
// throw new BusinessException(CommonResponseEnum.FAIL,"测试脚本项暂无配置");
|
||||
throw new BusinessException(DetectionResponseEnum.SCRIPT_CHECK_DATA_NOT_EXIST);
|
||||
}
|
||||
List<String> valueTypeList = pqScriptCheckData.stream().map(PqScriptCheckData::getValueType).distinct().collect(Collectors.toList());
|
||||
LambdaQueryWrapper<DictTree> dictTreeLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
Reference in New Issue
Block a user