package com.thunisoft.maybee.engine.utils; import java.util.HashMap; import java.util.Map; /** * Map 相关工具类 */ public class MapUtils { /** * 向原始参数中添加新参数 * * @param originParams * @param newParams * @return */ public static Map<String, Object> addParams(Map<String, Object> originParams, Map<String, Object> newParams) { Map<String, Object> mergeParams = new HashMap<String, Object>(); mergeParams.putAll(originParams); mergeParams.putAll(newParams); return mergeParams; } }