Commit c22688d3 by s_guodong

check中的X改为true

parent 674da1c5
package com.brilliance.mda.runtime.mda.snapshot;
import com.brilliance.mda.runtime.mda.Constants;
import com.brilliance.mda.runtime.mda.IModule;
import com.brilliance.mda.runtime.mda.IPanel;
import com.brilliance.mda.runtime.mda.impl.ModuleList;
......@@ -420,7 +421,7 @@ public class SnapshotServiceImpl implements SnapshotService {
if (StringUtils.isNotBlank(fieldUrl)) {
data.setChecked("${" + fieldUrl + "}");
keySet.add(new ValueVo(fieldUrl));
keySet.add(new ValueVo(fieldUrl, "X", null));
} else {
data.setChecked("");
}
......@@ -672,9 +673,14 @@ public class SnapshotServiceImpl implements SnapshotService {
if (StringUtils.isNotBlank(codeTable)) {
value = MdaUtils.getCodetableLabel(codeTable, (String) value);
}
// 时间格式化
if (StringUtils.isNotBlank(format) && value instanceof Date) {
value = DateUtils.format((Date) value, format.replaceAll("/", "-"));
if (StringUtils.isNotBlank(format)) {
if (value instanceof Date) {
// 时间格式化
value = DateUtils.format((Date) value, format.replaceAll("/", "-"));
} else if (value instanceof String && Constants.TRUE.equals(value)) {
// checkbox中的x
value = "true";
}
}
// boolean 类型转换为String
if (value instanceof Boolean) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment