| | |
| | | if (DataTableEntity.isEmpty(fieldPropertyDt)) { |
| | | throw new BaseException(ErrorCode.GET_FACE_CONFIG_FAIL); |
| | | } |
| | | List<JSONObject> result = FaceUtil.getFaceControlList(fieldPropertyDt); |
| | | List<JSONObject> result = FaceUtil.getFaceControlList(fse, fieldPropertyDt); |
| | | Map<String, Object> other = new HashMap<>(); |
| | | other.put("drawingList", result); |
| | | fse.getSubData().clear(); |
| | |
| | | } |
| | | List<FieldSetEntity> fieldSetEntityList = new ArrayList<>(); |
| | | 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)){ |
| | | continue; |
| | | } |
| | | fields.setFieldValue(i, "event_array", BaseUtil.dataTableEntityToJson(subDataTable)); |
| | | } |
| | | fieldSetEntityList.addAll(controlTraverse(new JSONObject((Map) fields.getFieldSetEntity(i).getValues()), null, i)); |
| | | } |
| | | fse.removeSubData(FaceConst.FACE_FIELD); |
| | |
| | | if (!StringUtils.isEmpty(fse.getUUID())) { |
| | | getBaseDao().delete(FaceConst.TABLE_FACE_FIELD_CONTROL_PROPERTY, "master_uuid=?", new Object[]{fse.getUUID()}); |
| | | } |
| | | if (StringUtils.isEmpty(fse.getString("terminal_type"))) { |
| | | fse.setValue("terminal_type", 1); |
| | | } |
| | | getBaseDao().saveFieldSetEntity(fse); |
| | | fse.getSubData().clear(); |
| | | return fse; |