|
|
|
@ -249,7 +249,7 @@ func (n *NodePublicInfoES) ResolveRouting(step int, creater modelshr.ManCont, or |
|
|
|
default: |
|
|
|
} |
|
|
|
} |
|
|
|
// fmt.Printf("termAry:%v----->%v\n", len(n.ConditionList), termAry)
|
|
|
|
fmt.Printf("termAry:%v----->%v\n", len(n.ConditionList), termAry) |
|
|
|
// if len(termAry) == len(n.ConditionList) {
|
|
|
|
if termAry == len(n.ConditionList) { |
|
|
|
if n.ChildNode != nil { |
|
|
|
@ -401,7 +401,7 @@ func JudgingCustomConditions(customFields []CustomFieldsInfo, presetVal []Condit |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// fmt.Printf("处理自定义条件-->%v-->%v\n", isOk, len(customFields))
|
|
|
|
fmt.Printf("处理自定义条件-->%v-->%v\n", isOk, len(customFields)) |
|
|
|
if isOk == len(customFields) { |
|
|
|
isTrue = true |
|
|
|
} |
|
|
|
@ -435,6 +435,7 @@ func ProcessMultipleSelectionResults(judging ConditionListInfo, presetVal []Cond |
|
|
|
|
|
|
|
if v.Types == 3 && judging.Factorid == v.Factorid { |
|
|
|
if judging.IsCheckbox { |
|
|
|
fmt.Printf("termAry:%v----->%v----->%v\n", v.Answers, judging.Answers, len(v.Answers) <= len(judging.Answers)) |
|
|
|
//多选
|
|
|
|
if len(v.Answers) <= len(judging.Answers) { //判断答案个数是否小于等于设定条件值个数
|
|
|
|
isTrue = true |
|
|
|
@ -445,14 +446,18 @@ func ProcessMultipleSelectionResults(judging ConditionListInfo, presetVal []Cond |
|
|
|
} |
|
|
|
} |
|
|
|
} else { //单选
|
|
|
|
if len(v.Answers) == len(judging.Answers) { |
|
|
|
fmt.Printf("termAry:%v----->%v----->%v\n", v.Oneanswer, judging.Oneanswer, v.Oneanswer == judging.Oneanswer) |
|
|
|
// if len(v.Answers) == len(judging.Answers) {
|
|
|
|
// isTrue = false
|
|
|
|
// for i := 0; i < len(v.Answers); i++ {
|
|
|
|
// if !publicmethod.IsInTrue[string](v.Answers[i], judging.Answers) {
|
|
|
|
// isTrue = false
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if v.Oneanswer == judging.Oneanswer { |
|
|
|
isTrue = true |
|
|
|
for i := 0; i < len(v.Answers); i++ { |
|
|
|
if !publicmethod.IsInTrue[string](v.Answers[i], judging.Answers) { |
|
|
|
isTrue = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|