一.单个参数: public List<XXBean> getXXBeanList(String xxCode); <select id="getXXXBeanList" parameterType="java.lang.String" resultType="XXBean"> select t.* from tableName t where t.id= #{id} </select> 其中方法名和ID一致,…
<!--付款 批量 修改账单状态--><update id="editbillpayALL" parameterType="java.util.List"> UPDATE tb_bill SET STATE = 'eda58d7280554dd9918207d27e2d4654' WHERE ID IN <foreach item="item" index="index" collection=&…
String ids = "1,2,3,4,5,6",如ids作为参数传递,查询list返回.mybatis用foreach处理并返回. SELECT * FROM yp_popup_store_info store WHERE store.store_id in <foreach item="item" index="index" collection="ids.split(',')" open="(&quo…
<if test="valiStatus==null || valiStatus=='' || valiStatus==4 "> b.work_permit_card_cert is not null and b.work_permit_card_cert!=1 and b.delete_flag =0 </if> <if test="valiStatus==0"> u.user_type = 0 and b.work_permi…