ibatis配置文件中循环标记

<select id="searchWorkFlowListWithOperatorSql_Filter"
  parameterClass="java.util.Map" resultMap="WorkFlowListResult">
  <![CDATA[
  SELECT distinct s.*,l.name1,l.description1,l.type1,l.value1,l.name2,l.description2,l.type2,l.value2,l.name3,l.description3,l.type3,l.value3,to_number(s.workflow_no) as wfno FROM adc_workflow_session s,adc_workflow_right r,adc_workflow_paramlist l,adc_workflow_out_param p where s.workflow_no=r.workflow_no and s.workflow_no=p.workflow_no and s.step=r.step and s.workflow_no=l.workflow_no(+) and s.workflow_no=r.workflow_no and s.workflow_no=l.workflow_no(+) and s.step=r.step and (s.status=1 or s.status=2 or s.status =4 )
  ]]>


  <isPropertyAvailable prepend="AND" property="activity_id">
   <iterate property="activity_id" close=")" open="("
    conjunction="or">
    s.activity_id=#activity_id[]#
   </iterate>
  </isPropertyAvailable>
  <isPropertyAvailable prepend="and" property="workflowname">
   s.name=#workflowname#
  </isPropertyAvailable>

</select>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值