错误的(String)("1"==(mapList.get(i).get("sex").toString())?"男":"女")
更正之后的 (String)("1".equals(mapList.get(i).get("sex").toString())?"男":"女")