ibatis in的用法
<dynamic-mapped-statement name="queryLabelservicecodeLogSize" result-class="java.lang.Integer">
select
count(*)
from OPERATION_LOG
where opr_type='8822'
<dynamic>
<isNotEmpty prepend="and" property="serviceCodes">
substr(opr_com, instr(opr_com,'|')+1, 10) in
<iterate property="serviceCodes" open="(" conjunction="," close=")">
#serviceCodes[]#
</iterate>
</isNotEmpty>
</dynamic>
</dynamic-mapped-statement>