fix: 核素分析规则 解决null值无法入库的问题
This commit is contained in:
parent
decc80fadf
commit
5317fe2b56
|
@ -1,5 +1,6 @@
|
||||||
package org.jeecg.modules.base.entity.postgre;
|
package org.jeecg.modules.base.entity.postgre;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
@ -43,38 +44,43 @@ public class AlarmAnalysisRule extends JeecgEntity {
|
||||||
|
|
||||||
private Integer coefficient;
|
private Integer coefficient;
|
||||||
|
|
||||||
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||||
private String colTime;
|
private String colTime;
|
||||||
|
|
||||||
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||||
private String acqTime;
|
private String acqTime;
|
||||||
|
|
||||||
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Double airFlow;
|
private Double airFlow;
|
||||||
|
|
||||||
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Double decayTime;
|
private Double decayTime;
|
||||||
|
|
||||||
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Double sampVol;
|
private Double sampVol;
|
||||||
|
|
||||||
@TableField("ba140_mdc")
|
@TableField(value = "ba140_mdc", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Double ba140MDC;
|
private Double ba140MDC;
|
||||||
|
|
||||||
@TableField("be7_fwhm")
|
@TableField(value = "be7_fwhm", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Double be7FWHM;
|
private Double be7FWHM;
|
||||||
|
|
||||||
@TableField("xe133_mdc")
|
@TableField(value = "xe133_mdc", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private String xe133MDC;
|
private String xe133MDC;
|
||||||
|
|
||||||
@TableField("xe_vol")
|
@TableField(value = "xe_vol", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Double xeVol;
|
private Double xeVol;
|
||||||
|
|
||||||
@TableField("xe131m_flag")
|
@TableField(value = "xe131m_flag", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Integer xe131mFlag;
|
private Integer xe131mFlag;
|
||||||
|
|
||||||
@TableField("xe133m_flag")
|
@TableField(value = "xe133m_flag", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Integer xe133mFlag;
|
private Integer xe133mFlag;
|
||||||
|
|
||||||
@TableField("xe133_flag")
|
@TableField(value = "xe133_flag", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Integer xe133Flag;
|
private Integer xe133Flag;
|
||||||
|
|
||||||
@TableField("xe135_flag")
|
@TableField(value = "xe135_flag", updateStrategy = FieldStrategy.IGNORED)
|
||||||
private Integer xe135Flag;
|
private Integer xe135Flag;
|
||||||
/** 备注 */
|
/** 备注 */
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
|
@ -184,17 +184,23 @@ public class AlarmAnalysisRuleServiceImpl extends ServiceImpl<AlarmAnalysisRuleM
|
||||||
.toList(analysisRule.getConditions().split(comma));
|
.toList(analysisRule.getConditions().split(comma));
|
||||||
analysisRuleInfo.setConditionChecked(conditionChecked);
|
analysisRuleInfo.setConditionChecked(conditionChecked);
|
||||||
|
|
||||||
List<String> colTimes = ListUtil
|
if (null != analysisRule.getColTime()) {
|
||||||
.toList(analysisRule.getColTime().split(comma));
|
List<String> colTimes = ListUtil
|
||||||
analysisRuleInfo.setColTime(colTimes);
|
.toList(analysisRule.getColTime().split(comma));
|
||||||
|
analysisRuleInfo.setColTime(colTimes);
|
||||||
|
}
|
||||||
|
|
||||||
List<String> acqTimes = ListUtil
|
if (null != analysisRule.getAcqTime()) {
|
||||||
.toList(analysisRule.getAcqTime().split(comma));
|
List<String> acqTimes = ListUtil
|
||||||
analysisRuleInfo.setColTime(acqTimes);
|
.toList(analysisRule.getAcqTime().split(comma));
|
||||||
|
analysisRuleInfo.setColTime(acqTimes);
|
||||||
|
}
|
||||||
|
|
||||||
List<String> xe133MDC = ListUtil
|
if (null != analysisRule.getXe133MDC()) {
|
||||||
.toList(analysisRule.getXe133MDC().split(comma));
|
List<String> xe133MDC = ListUtil
|
||||||
analysisRuleInfo.setColTime(xe133MDC);
|
.toList(analysisRule.getXe133MDC().split(comma));
|
||||||
|
analysisRuleInfo.setColTime(xe133MDC);
|
||||||
|
}
|
||||||
return Result.OK(analysisRuleInfo);
|
return Result.OK(analysisRuleInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user