|
|
@@ -570,15 +570,13 @@ public class SqljcServ extends Serv {
|
|
|
int code = rdIntValue(item.get("sqljcxmm"), 0);
|
|
|
boolean countItem = SqljcC.isCountItem(code);
|
|
|
Integer mfz = rdIntObj(item.get("mfz"));
|
|
|
- Integer ckz = rdIntObj(item.get("ckz"));
|
|
|
item.put("valueType", countItem ? "count" : "score");
|
|
|
item.put("minValue", 0);
|
|
|
if (countItem) {
|
|
|
item.put("mfz", null);
|
|
|
item.put("defaultValue", countDefaults.getOrDefault(code, 0));
|
|
|
} else {
|
|
|
- item.put("defaultValue", ckz != null ? ckz
|
|
|
- : (mfz == null ? 0 : mfz));
|
|
|
+ item.put("defaultValue", mfz == null ? 0 : mfz);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -611,9 +609,7 @@ public class SqljcServ extends Serv {
|
|
|
|
|
|
Integer maxObj = rdIntObj(config.get("mfz"));
|
|
|
int max = maxObj == null ? 0 : maxObj;
|
|
|
- Integer ckz = rdIntObj(config.get("ckz"));
|
|
|
- int value = raw == null ? (ckz == null ? max : ckz)
|
|
|
- : Integer.parseInt(raw);
|
|
|
+ int value = raw == null ? max : Integer.parseInt(raw);
|
|
|
if (value < 0 || value > max)
|
|
|
throw new IllegalArgumentException(
|
|
|
config.get("mc") + "必须在0到" + max + "之间");
|