<choose>
<when test="groupBy!=null and groupBy==1">
p_id areaId,
</when>
<when test="groupBy!=null and groupBy==2">
c_id areaId,
</when>
<when test="groupBy!=null and groupBy==3">
r_id areaId,
</when>
</choose>
test 中 用 == 不能用 = ,否则报错。