亲测:
SELECT DEPTNO as \"deptno\ FROM VMGR_DEPT
ORDER BY DEPTGRADE,DEPTNO
别⼈案例:
纯java实现⽅法(推荐):
public class Snippet {
public static Map if (orgMap == null || orgMap.isEmpty()) { return resultMap; } Set String newKey = key.toLowerCase(); newKey = newKey.replace(\"_\ resultMap.put(newKey, orgMap.get(key)); } return resultMap; }} mybatis映射map返回的全是⼤写 解决⽅法 在查询的字段后加别名 user_id as “userId” 注意:别名必须加双引号 以上为个⼈经验,希望能给⼤家⼀个参考,也希望⼤家多多⽀持。 因篇幅问题不能全部显示,请点此查看更多更全内容