mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-01 08:30:05 +08:00
82 lines
2.9 KiB
XML
82 lines
2.9 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="com.jsowell.pile.mapper.OrderMonitorDataMapper">
|
|
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.OrderMonitorData">
|
|
<!--@mbg.generated-->
|
|
<!--@Table order_monitor_data-->
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="order_code" jdbcType="VARCHAR" property="orderCode" />
|
|
<result column="transaction_code" jdbcType="VARCHAR" property="transactionCode" />
|
|
<result column="monitor_data" jdbcType="VARCHAR" property="monitorData" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--@mbg.generated-->
|
|
id, order_code, transaction_code, monitor_data, create_time
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
<!--@mbg.generated-->
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from order_monitor_data
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
<!--@mbg.generated-->
|
|
delete from order_monitor_data
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
|
|
<insert id="insertSelective" parameterType="com.jsowell.pile.domain.OrderMonitorData">
|
|
<!--@mbg.generated-->
|
|
insert into order_monitor_data
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="orderCode != null and orderCode != ''">
|
|
order_code,
|
|
</if>
|
|
<if test="transactionCode != null and transactionCode != ''">
|
|
transaction_code,
|
|
</if>
|
|
<if test="monitorData != null and monitorData != ''">
|
|
monitor_data,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="orderCode != null and orderCode != ''">
|
|
#{orderCode,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="transactionCode != null and transactionCode != ''">
|
|
#{transactionCode,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="monitorData != null and monitorData != ''">
|
|
#{monitorData,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<select id="selectByOrderCode" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from order_monitor_data
|
|
where order_code = #{orderCode,jdbcType=VARCHAR}
|
|
</select>
|
|
|
|
<select id="selectByTransactionCode" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from order_monitor_data
|
|
where transaction_code = #{transactionCode,jdbcType=VARCHAR}
|
|
</select>
|
|
</mapper> |