112 lines
3.2 KiB
XML
112 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="cn.pluss.platform.mapper.WxBankCodeMapper">
|
|
|
|
<insert id="saveWxBankCode" parameterType="cn.pluss.platform.entity.WxBankCode">
|
|
insert into tb_pluss_wx_bank_code(bankName,bankCode,remark)VALUES(#{bankName},#{bankCode},#{remark})
|
|
</insert>
|
|
|
|
<insert id="saveWxBankCodeBatch">
|
|
insert into tb_pluss_wx_bank_code(bankName,bankCode,remark) VALUES
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
(#{bankName},#{bankCode},#{remark} )
|
|
</foreach>
|
|
</insert>
|
|
|
|
<select id="queryWxBankCode" parameterType="cn.pluss.platform.entity.WxBankCode" resultType="cn.pluss.platform.entity.WxBankCode">
|
|
SELECT * from tb_pluss_wx_bank_code
|
|
<where>
|
|
<if test="id!= null">
|
|
and id = #{id}
|
|
</if>
|
|
<if test="bankName!= null">
|
|
and bankName = #{bankName}
|
|
</if>
|
|
<if test="bankCode!= null">
|
|
and bankCode = #{bankCode}
|
|
</if>
|
|
<if test="remark!= null">
|
|
and remark = #{remark}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="queryWxBankCodeList" parameterType="cn.pluss.platform.entity.WxBankCode" resultType="cn.pluss.platform.entity.WxBankCode">
|
|
SELECT * from tb_pluss_wx_bank_code
|
|
<where>
|
|
<if test="id!= null">
|
|
and id = #{id}
|
|
</if>
|
|
<if test="bankName!= null">
|
|
and bankName = #{bankName}
|
|
</if>
|
|
<if test="bankCode!= null">
|
|
and bankCode = #{bankCode}
|
|
</if>
|
|
<if test="remark!= null">
|
|
and remark = #{remark}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<update id="updateWxBankCode" parameterType="cn.pluss.platform.entity.WxBankCode" >
|
|
update tb_pluss_wx_bank_code
|
|
<set>
|
|
<if test="bankName!= null">
|
|
bankName = #{bankName},
|
|
</if>
|
|
<if test="bankCode!= null">
|
|
bankCode = #{bankCode},
|
|
</if>
|
|
<if test="remark!= null">
|
|
remark = #{remark}
|
|
</if>
|
|
</set>
|
|
where id=#{id}
|
|
</update>
|
|
|
|
<delete id="deleteWxBankCode" parameterType="cn.pluss.platform.entity.WxBankCode" >
|
|
DELETE FROM tb_pluss_wx_bank_code where id=#{id}
|
|
</delete>
|
|
|
|
<select id="queryWxBankCodePage" parameterType="java.util.Map" resultType="cn.pluss.platform.entity.WxBankCode">
|
|
SELECT * from tb_pluss_wx_bank_code
|
|
<where>
|
|
<if test="id!= null">
|
|
and id = #{id}
|
|
</if>
|
|
<if test="bankName!= null">
|
|
and bankName = #{bankName}
|
|
</if>
|
|
<if test="bankCode!= null">
|
|
and bankCode = #{bankCode}
|
|
</if>
|
|
<if test="remark!= null">
|
|
and remark = #{remark}
|
|
</if>
|
|
</where>
|
|
order by id desc limit #{pageSize} offset #{offset}
|
|
</select>
|
|
|
|
<select id="queryWxBankCodePageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
|
|
SELECT count(*) from tb_pluss_wx_bank_code
|
|
<where>
|
|
<if test="id!= null">
|
|
and id = #{id}
|
|
</if>
|
|
<if test="bankName!= null">
|
|
and bankName = #{bankName}
|
|
</if>
|
|
<if test="bankCode!= null">
|
|
and bankCode = #{bankCode}
|
|
</if>
|
|
<if test="remark!= null">
|
|
and remark = #{remark}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
</mapper>
|