原因:在mybatis的xml文件的sql语句中,set后面更改不止一个字段,用了and连接
<update id="updateMerchantPushedAndTimes">
update ouser.merchant_org_info
<if test="pushedFlag == true">
set is_pushed = 'Y' and pushe_times = pushe_times+1
</if>
<if test="pushedFlag == false ">
set is_pushed = 'N' and pushe_times = pushe_times+1
</if>
where id = #{id,jdbcType=BIGINT}
</update>
解决:and改为逗号
<update id="updateMerchantPushedAndTimes">
update ouser.merchant_org_info
<if test="pushedFlag == true">
set is_pushed = 'Y' , pushe_times = pushe_times+1
</if>
<if test="pushedFlag == false ">
set is_pushed = 'N' , pushe_times = pushe_times+1
</if>
where id = #{id,jdbcType=BIGINT}
</update>