From ecef3df4890be54c1da2a8a4fc1c8c1f50f1c263 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期一, 07 四月 2025 15:41:47 +0800 Subject: [PATCH] 式样代码管理 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeWechatpayMapper.xml | 142 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 142 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeWechatpayMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeWechatpayMapper.xml new file mode 100644 index 0000000..3d748ef --- /dev/null +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeWechatpayMapper.xml @@ -0,0 +1,142 @@ +<?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> \ No newline at end of file -- Gitblit v1.8.0