Merge remote-tracking branch 'origin/master'

This commit is contained in:
牛子源 2025-05-23 09:36:06 +08:00
commit aa8362d944
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.syjiaer.clinic.server.common.api.input;
import com.alibaba.fastjson.JSONObject;
import com.syjiaer.clinic.server.common.api.annotations.IMField;
import com.syjiaer.clinic.server.common.exception.MessageException;
import com.syjiaer.clinic.server.common.util.DebugUtil;
@ -49,7 +50,7 @@ public abstract class BaseInputModel {
if (item instanceof BaseInputModel) {
mappedList.add(((BaseInputModel) item).buildToMap());
} else {
mappedList.add((Map<String, Object>) item); // 假设基本类型已为 Map
mappedList.add((Map<String, Object>) JSONObject.parseObject(JSONObject.toJSONString(item),Map.class)); // 假设基本类型已为 Map
}
}
map.put(mapKey, mappedList);