|
|
|
@ -96,8 +96,13 @@ public class I2syncController extends BasicController {
|
|
|
|
|
public Response<String> prewXml(String tablename) throws Exception {
|
|
|
|
|
List<I2syncField> fieldList = service.listFieldConfig(tablename);
|
|
|
|
|
List<Attr> attrs = new ArrayList<>();
|
|
|
|
|
for (I2syncField field : fieldList) {
|
|
|
|
|
Attr attr = new Attr();
|
|
|
|
|
attr.setName("Phase");
|
|
|
|
|
attr.setValue("A相");
|
|
|
|
|
attr.setAlarm("FALSE");
|
|
|
|
|
attrs.add(attr);
|
|
|
|
|
for (I2syncField field : fieldList) {
|
|
|
|
|
attr = new Attr();
|
|
|
|
|
attr.setName(field.getDestFieldName());
|
|
|
|
|
attr.setValue("100.0");
|
|
|
|
|
attr.setAlarm("FALSE");
|
|
|
|
|