|
@@ -388,7 +388,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
for (Map.Entry<String, List<FormWidgetMetadataParam>> entry : formWidgetMetadataParamLinkedMultiValueMap.entrySet()) {
|
|
|
List<FormWidgetMetadataParam> formWidgetMetadataParamList = entry.getValue();
|
|
|
if (formWidgetMetadataParamList.size() > 1) {
|
|
|
- StringJoiner conditionJoin = new StringJoiner("").add(SystemConstant.AND).add(" ( ");
|
|
|
+ StringJoiner conditionJoin = new StringJoiner("").add(sopInfoListParam.getFormWidgetMetadataOperation().getCode()).add(" ( ");
|
|
|
for (int y = 0; y < formWidgetMetadataParamList.size(); y++) {
|
|
|
FormWidgetMetadataParam f = formWidgetMetadataParamList.get(y);
|
|
|
if (f.getOperator() == FormWidgetMetadataOperator.LIKE) {
|
|
@@ -399,7 +399,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
conditionJoin.add(f.getFieldId()).add(f.getOperator().getCode()).add("'").add(f.getFieldValue()).add("'");
|
|
|
}
|
|
|
if (y < formWidgetMetadataParamList.size() - 1) {
|
|
|
- conditionJoin.add(SystemConstant.OR);
|
|
|
+ conditionJoin.add(FormWidgetMetadataOperation.OR.getCode());
|
|
|
}
|
|
|
}
|
|
|
conditionJoin.add(" ) ");
|
|
@@ -407,11 +407,11 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
} else {
|
|
|
for (FormWidgetMetadataParam f : formWidgetMetadataParamList) {
|
|
|
if (f.getOperator() == FormWidgetMetadataOperator.LIKE) {
|
|
|
- stringJoinerCondition.add(SystemConstant.AND).add(f.getFieldId()).add(f.getOperator().getCode()).add("('%','").add(f.getFieldValue()).add("','%')").add("\r\n");
|
|
|
+ stringJoinerCondition.add(sopInfoListParam.getFormWidgetMetadataOperation().getCode()).add(f.getFieldId()).add(f.getOperator().getCode()).add("('%','").add(f.getFieldValue()).add("','%')").add("\r\n");
|
|
|
} else if (f.getOperator() == FormWidgetMetadataOperator.IN || f.getOperator() == FormWidgetMetadataOperator.NOT_IN) {
|
|
|
- stringJoinerCondition.add(SystemConstant.AND).add(f.getFieldId()).add(f.getOperator().getCode()).add(f.getFieldValue()).add("\r\n");
|
|
|
+ stringJoinerCondition.add(sopInfoListParam.getFormWidgetMetadataOperation().getCode()).add(f.getFieldId()).add(f.getOperator().getCode()).add(f.getFieldValue()).add("\r\n");
|
|
|
} else {
|
|
|
- stringJoinerCondition.add(SystemConstant.AND).add(f.getFieldId()).add(f.getOperator().getCode()).add("'").add(f.getFieldValue()).add("'").add("\r\n");
|
|
|
+ stringJoinerCondition.add(sopInfoListParam.getFormWidgetMetadataOperation().getCode()).add(f.getFieldId()).add(f.getOperator().getCode()).add("'").add(f.getFieldValue()).add("'").add("\r\n");
|
|
|
}
|
|
|
}
|
|
|
}
|