| <?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="com.dy.pipIrrGlobal.daoSe.SeWechatpayMapper"> | 
|   <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSe.SeWechatpay"> | 
|     <!--@mbg.generated--> | 
|     <!--@Table se_wechatpay--> | 
|     <id column="id" jdbcType="BIGINT" property="id" /> | 
|     <result column="app_id" jdbcType="VARCHAR" property="appId" /> | 
|     <result column="app_secret" jdbcType="VARCHAR" property="appSecret" /> | 
|     <result column="mch_id" jdbcType="VARCHAR" property="mchId" /> | 
|     <result column="mch_key" jdbcType="VARCHAR" property="mchKey" /> | 
|     <result column="serial_no" jdbcType="VARCHAR" property="serialNo" /> | 
|     <result column="remarks" jdbcType="VARCHAR" property="remarks" /> | 
|     <result column="notify_url" jdbcType="VARCHAR" property="notifyUrl" /> | 
|   </resultMap> | 
|   <sql id="Base_Column_List"> | 
|     <!--@mbg.generated--> | 
|     id, app_id, app_secret, mch_id, mch_key, serial_no, remarks, notify_url | 
|   </sql> | 
|   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
|     <!--@mbg.generated--> | 
|     select  | 
|     <include refid="Base_Column_List" /> | 
|     from se_wechatpay | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </select> | 
|   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | 
|     <!--@mbg.generated--> | 
|     delete from se_wechatpay | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </delete> | 
|   <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSe.SeWechatpay"> | 
|     <!--@mbg.generated--> | 
|     insert into se_wechatpay (id, app_id, app_secret,  | 
|       mch_id, mch_key, serial_no,  | 
|       remarks, notify_url) | 
|     values (#{id,jdbcType=BIGINT}, #{appId,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR},  | 
|       #{mchId,jdbcType=VARCHAR}, #{mchKey,jdbcType=VARCHAR}, #{serialNo,jdbcType=VARCHAR},  | 
|       #{remarks,jdbcType=VARCHAR}, #{notifyUrl,jdbcType=VARCHAR}) | 
|   </insert> | 
|   <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSe.SeWechatpay"> | 
|     <!--@mbg.generated--> | 
|     insert into se_wechatpay | 
|     <trim prefix="(" suffix=")" suffixOverrides=","> | 
|       <if test="id != null"> | 
|         id, | 
|       </if> | 
|       <if test="appId != null"> | 
|         app_id, | 
|       </if> | 
|       <if test="appSecret != null"> | 
|         app_secret, | 
|       </if> | 
|       <if test="mchId != null"> | 
|         mch_id, | 
|       </if> | 
|       <if test="mchKey != null"> | 
|         mch_key, | 
|       </if> | 
|       <if test="serialNo != null"> | 
|         serial_no, | 
|       </if> | 
|       <if test="remarks != null"> | 
|         remarks, | 
|       </if> | 
|       <if test="notifyUrl != null"> | 
|         notify_url, | 
|       </if> | 
|     </trim> | 
|     <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|       <if test="id != null"> | 
|         #{id,jdbcType=BIGINT}, | 
|       </if> | 
|       <if test="appId != null"> | 
|         #{appId,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="appSecret != null"> | 
|         #{appSecret,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="mchId != null"> | 
|         #{mchId,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="mchKey != null"> | 
|         #{mchKey,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="serialNo != null"> | 
|         #{serialNo,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="remarks != null"> | 
|         #{remarks,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="notifyUrl != null"> | 
|         #{notifyUrl,jdbcType=VARCHAR}, | 
|       </if> | 
|     </trim> | 
|   </insert> | 
|   <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSe.SeWechatpay"> | 
|     <!--@mbg.generated--> | 
|     update se_wechatpay | 
|     <set> | 
|       <if test="appId != null"> | 
|         app_id = #{appId,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="appSecret != null"> | 
|         app_secret = #{appSecret,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="mchId != null"> | 
|         mch_id = #{mchId,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="mchKey != null"> | 
|         mch_key = #{mchKey,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="serialNo != null"> | 
|         serial_no = #{serialNo,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="remarks != null"> | 
|         remarks = #{remarks,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="notifyUrl != null"> | 
|         notify_url = #{notifyUrl,jdbcType=VARCHAR}, | 
|       </if> | 
|     </set> | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </update> | 
|   <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSe.SeWechatpay"> | 
|     <!--@mbg.generated--> | 
|     update se_wechatpay | 
|     set app_id = #{appId,jdbcType=VARCHAR}, | 
|       app_secret = #{appSecret,jdbcType=VARCHAR}, | 
|       mch_id = #{mchId,jdbcType=VARCHAR}, | 
|       mch_key = #{mchKey,jdbcType=VARCHAR}, | 
|       serial_no = #{serialNo,jdbcType=VARCHAR}, | 
|       remarks = #{remarks,jdbcType=VARCHAR}, | 
|       notify_url = #{notifyUrl,jdbcType=VARCHAR} | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </update> | 
|   | 
|   <!--根据AppId获取微信支付对象--> | 
|   <select id="getWechatpayByAppId" resultType="com.dy.pipIrrGlobal.pojoSe.SeWechatpay"> | 
|     SELECT * FROM se_wechatpay WHERE app_id = #{appId} | 
|   </select> | 
| </mapper> |