將:
<!--根據(jù)wxCode和templateId查詢-->
<select id="getByWxCodeAndTemplateId" resultType="com.ylb.domain.MessageUser">
select * from sntas_message_user where wxCode = #{wxCode} and templateId = #{templateId} order by id desc
</select>
改為:
<!--根據(jù)wxCode和templateId查詢-->
<select id="getByWxCodeAndTemplateId" resultType="com.ylb.domain.MessageUser">
select * from sntas_message_user where wxCode = #{arg0} and templateId = #{arg1} order by id desc
</select>