1、如果是传入多个字符串的参数。parameterType="java.lang.String"
<select id="getMaxNum" parameterType="java.lang.String" resultType="java.lang.Integer"> select MAXNUM from 表名 where ITEMID = #{itemIdHead} and CUSTOMERDRAWINGNO = #{customerDrawingNo} </select>
public Integer getMaxNum(@Param("itemIdHead") String itemIdHead, @Param("customerDrawingNo") String drawingNo);
2、如果传入的参数是有字符串,整型...这种多个类型的。则parameterType=“map”
<update id="updateMaxNum" parameterType="map"> update 表名 set MAXNUM = #{maxNum} where ITEMID = #{itemIdHead} and CUSTOMERDRAWINGNO = #{customerDrawingNo} </update>
public int updateMaxNum(Map<String, Object> params);
标签:xml,parameterType,String,传入,itemIdHead,参数,customerDrawingNo,mybatis,写法 From: https://www.cnblogs.com/wwssgg/p/17097382.html