微调
This commit is contained in:
@@ -7,5 +7,5 @@ package com.njcn.gather.script.pojo.constant;
|
||||
public interface PqScriptValidMessage {
|
||||
String INDEX_NOT_NULL = "index不能为空";
|
||||
|
||||
String VALUE_TYPE_NOT_NULL = "脚本值类型不能为空";
|
||||
String VALUE_TYPE_NOT_BLANK = "脚本值类型不能为空";
|
||||
}
|
||||
|
||||
@@ -39,8 +39,4 @@ public class PqScriptIssueParam {
|
||||
|
||||
@ApiModelProperty("脚本下发类型")
|
||||
private int type;
|
||||
|
||||
@ApiModelProperty("脚本值类型")
|
||||
private int valueType;
|
||||
|
||||
}
|
||||
|
||||
@@ -830,12 +830,7 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
|
||||
queryWrapper.eq(PqScriptDtls::getScriptId, param.getScriptId());
|
||||
pqScriptDtls = this.getBaseMapper().selectJoinList(PqScriptDtls.class, queryWrapper);
|
||||
if (CollUtil.isNotEmpty(param.getDevIds()) || (ObjectUtil.isNotNull(param.getType()) && param.getType() == 1)) {
|
||||
Boolean isValueType;
|
||||
if (ObjectUtil.isNotNull(param.getValueType()) && param.getValueType() == 2) {
|
||||
isValueType = true; //相对值脚本
|
||||
} else {
|
||||
isValueType = pqScriptMapper.selectScriptIsValueType(param.getScriptId());
|
||||
}
|
||||
Boolean isValueType = pqScriptMapper.selectScriptIsValueType(param.getScriptId());
|
||||
if (isValueType) {
|
||||
for (PqScriptDtls pqScriptDtl : pqScriptDtls) {
|
||||
if (VOL.equals(pqScriptDtl.getValueType())) {
|
||||
|
||||
Reference in New Issue
Block a user