map接受查询多个字段

221 阅读1分钟
@Select("select f.xmid,x.xmmc,x.zxmmc from xm x, fkb f where f.fksj=#{sj} and x.xmid=f.xmid")
Map getMysql(String sj);
@Test
public void testMysql() {
    Map map =  xmMapper.getMysql("2018-08-15");
    System.out.println(map.get("xmid"));
    System.out.println(map.get("xmmc"));
    System.out.println(map.get("zxmmc"));
}