1. 程式人生 > >springmvc+spring+mybatis+sqlserver----查詢sqlserver----有返回參數

springmvc+spring+mybatis+sqlserver----查詢sqlserver----有返回參數

cal sql mod spring varchar type arc tty server

    <resultMap type="java.util.HashMap" id="resultMap">
       <result column="USERID" property="userid" javaType="java.lang.String" jdbcType="VARCHAR"/>
       <result column="PASSWORD" property="password" javaType="java.lang.String" jdbcType="VARCHAR"/>
       <result column="DLBZ" property="dlbz" javaType="java.lang.String" jdbcType="VARCHAR"/>
    </resultMap>
    
    <select id="getNextSeq" statementType="CALLABLE" parameterType="java.util.HashMap" resultMap="resultMap">
    	<![CDATA[
           {#{dlbz,mode=OUT,jdbcType=VARCHAR}=call PDA_JWL_LOGIN(
              #{userid,mode=IN,jdbcType=VARCHAR},
              #{password,mode=IN,jdbcType=VARCHAR},
              #{dlbz,mode=OUT,jdbcType=VARCHAR}
           )}    
     	]]> 
    </select>

  

springmvc+spring+mybatis+sqlserver----查詢sqlserver----有返回參數