|
@@ -1,14 +1,12 @@
|
|
package cn.com.qmth.stmms.biz.mark.model;
|
|
package cn.com.qmth.stmms.biz.mark.model;
|
|
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
+
|
|
import java.util.LinkedList;
|
|
import java.util.LinkedList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 单个评卷区设置模型
|
|
* 单个评卷区设置模型
|
|
- *
|
|
|
|
- *
|
|
|
|
*/
|
|
*/
|
|
public class MarkConfigItem {
|
|
public class MarkConfigItem {
|
|
|
|
|
|
@@ -41,18 +39,18 @@ public class MarkConfigItem {
|
|
text = StringUtils.trimToEmpty(text);
|
|
text = StringUtils.trimToEmpty(text);
|
|
String[] values = StringUtils.split(text, DB_FIELD_JOINER);
|
|
String[] values = StringUtils.split(text, DB_FIELD_JOINER);
|
|
try {
|
|
try {
|
|
- i = Integer.valueOf(values[0]);
|
|
|
|
|
|
+ i = Integer.parseInt(values[0]);
|
|
if (values.length > 1) {
|
|
if (values.length > 1) {
|
|
- x = Integer.valueOf(values[1]);
|
|
|
|
|
|
+ x = Double.parseDouble(values[1]);
|
|
}
|
|
}
|
|
if (values.length > 2) {
|
|
if (values.length > 2) {
|
|
- y = Integer.valueOf(values[2]);
|
|
|
|
|
|
+ y = Double.parseDouble(values[2]);
|
|
}
|
|
}
|
|
if (values.length > 3) {
|
|
if (values.length > 3) {
|
|
- w = Integer.valueOf(values[3]);
|
|
|
|
|
|
+ w = Double.parseDouble(values[3]);
|
|
}
|
|
}
|
|
if (values.length > 4) {
|
|
if (values.length > 4) {
|
|
- h = Integer.valueOf(values[4]);
|
|
|
|
|
|
+ h = Double.parseDouble(values[4]);
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new IllegalArgumentException("Invalid PictureConfigItem init text:" + text);
|
|
throw new IllegalArgumentException("Invalid PictureConfigItem init text:" + text);
|