<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('monitorCertificate') or colPickMode == 1 and data.containsKey('monitorCertificate')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('monitorCertificate') or colPickMode == 1 and data.containsKey('monitorCertificate')))">
a.monitorCertificate,
a.monitorCertificate,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('appointmentStatus') or colPickMode == 1 and data.containsKey('appointmentStatus')))">
a.appointmentStatus,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('flowNum') or colPickMode == 1 and data.containsKey('flowNum')))">
a.flowNum,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('flowTime') or colPickMode == 1 and data.containsKey('flowTime')))">
a.flowTime,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('picUri') or colPickMode == 1 and data.containsKey('picUri')))">
a.picUri,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('serverIndexCode') or colPickMode == 1 and data.containsKey('serverIndexCode')))">
a.serverIndexCode,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
<whentest="(colPickMode==0 and item.containsKey('appointmentStatus')) or (colPickMode==1 and !item.containsKey('appointmentStatus'))">
when a.id=#{item.id} then #{item.appointmentStatus}
</when>
<whentest="(colPickMode==0 and item.containsKey('appointmentStatusIncrement')) or (colPickMode==1 and !item.containsKey('appointmentStatusIncrement'))">
when a.id=#{item.id} then ifnull(a.appointmentStatus,0) + #{item.appointmentStatusIncrement}