| | |
| | | List<JSONObject> result = FaceUtil.getFaceControlList(fse, fieldPropertyDt); |
| | | Map<String, Object> other = new HashMap<>(); |
| | | other.put("drawingList", result); |
| | | DataTableEntity faceCustomField = fse.getSubDataTable("product_sys_face_custom_field"); |
| | | if (!DataTableEntity.isEmpty(faceCustomField)) { |
| | | for (int i = 0; i < faceCustomField.getRows(); i++) { |
| | | faceCustomField.setFieldValue(i, "customField", true); |
| | | faceCustomField.setFieldValue(i, "added", true); |
| | | } |
| | | other.put("product_sys_face_custom_field", BaseUtil.dataTableEntityToJson(faceCustomField)); |
| | | } else { |
| | | other.put("product_sys_face_custom_field", new String[]{}); |
| | | } |
| | | fse.getSubData().clear(); |
| | | return BaseUtil.success(fse, other); |
| | | } |
| | |
| | | for (int i = 0; i < fields.getRows(); i++) { |
| | | if (fields.getBoolean(i, "event_property")) { |
| | | DataTableEntity subDataTable = fields.getFieldSetEntity(i).getSubDataTable("event_array"); |
| | | if(DataTableEntity.isEmpty(subDataTable)){ |
| | | if (DataTableEntity.isEmpty(subDataTable)) { |
| | | continue; |
| | | } |
| | | fields.setFieldValue(i, "event_array", BaseUtil.dataTableEntityToJson(subDataTable)); |