<sqlMap><parameterMap id="gwParameters" class="map">
<parameter property="did" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
<parameter property="emp" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
<parameter property="org" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
<parameter property="file" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
    <parameter property="ret" jdbcType="VARCHAR" javaType="java.lang.String" mode="OUT"/>
    <parameter property="msg" jdbcType="VARCHAR" javaType="java.lang.String" mode="OUT"/>
    <parameter property="retcount" jdbcType="BIGINT" javaType="java.lang.Long" mode="OUT"/>
</parameterMap><procedure id="YD_GW_SEND" parameterMap="gwParameters">
{call YD_GW.YD_GW_SEND(?,?,?,?,?,?,?)}
</procedure><!--查询是否阅读 -->
    <select id="isread" parameterClass="java.util.HashMap" resultClass="com.yd.soa.comm.mydocument.mydocument.CountMyDoc">
    <![CDATA[
     select (select count(did)
          from yd_gw_inceptdoc ygi, YD_GW_inceptRelation ygr
         where ygi.incepter =#incepter#
           and ygi.inceptid = ygr.inceptid
           and toid = #incepter#
           and ygr.isread = #isread#
           and ygi.turningtype = 1) sp,
       (select count(did)
          from yd_gw_inceptdoc ygi, YD_GW_inceptRelation ygr
         where ygi.incepter = #incepter#
           and ygi.inceptid = ygr.inceptid
           and toid =#incepter#
           and ygr.isread =  #isread#
           and ygi.turningtype = 2) cb,
       (select count(did)
          from yd_gw_inceptdoc ygi, YD_GW_inceptRelation ygr
         where ygi.incepter = #incepter#
           and ygi.inceptid = ygr.inceptid
           and toid = #incepter#
           and ygr.isread =  #isread#
           and ygi.turningtype = 3) gz,
       (select count(did)
          from yd_gw_inceptdoc ygi, YD_GW_inceptRelation ygr
         where ygi.incepter = #incepter#
           and ygi.inceptid = ygr.inceptid
           and toid = #incepter#
           and ygr.isread =  #isread#) hj
  from dual
    ]]></select>

解决方案 »

  1.   

    <sqlMap><parameterMap id="gwParameters" class="map"></parameterMap>我想的话应该是一个什么标签之类的,而后面的列是调用一个HashMap,然后再用数据库操作,本人不明白的是这是用的什么语言,SQL吧又不是那么纯粹,貌似还应用了些JAVA包之类的。烦死了,大侠们多多指教哈。
     
      

  2.   

    难道是传说中的ibatis?呵呵,竟然自己记得一点啊,多少年不搞JAVA了,太佩服自己了