|
@@ -2,19 +2,12 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.platform.yijia.dao.StationOilGunMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationOilGun">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
<id column="oil_gun_id" jdbcType="INTEGER" property="oilGunId" />
|
|
|
<result column="oil_gun_no" jdbcType="VARCHAR" property="oilGunNo" />
|
|
|
<result column="oil_name" jdbcType="VARCHAR" property="oilName" />
|
|
|
<result column="oil_price" jdbcType="DECIMAL" property="oilPrice" />
|
|
|
<result column="station_id" jdbcType="INTEGER" property="stationId" />
|
|
|
- <result column="station_name" jdbcType="VARCHAR" property="stationName" />
|
|
|
<result column="date" jdbcType="TIMESTAMP" property="date" />
|
|
|
- <result column="status" jdbcType="VARCHAR" property="status" />
|
|
|
- <result column="oil_gun_type" jdbcType="VARCHAR" property="oilGunType" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
@@ -83,17 +76,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
- oil_gun_id, oil_gun_no, oil_name, oil_price, station_id, station_name, date, status, oil_gun_type
|
|
|
+ oil_gun_id, oil_gun_no, oil_name, oil_price, station_id, date
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.platform.yijia.pojo.StationOilGunExample" resultMap="BaseResultMap">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
select
|
|
|
<if test="distinct">
|
|
|
distinct
|
|
@@ -108,10 +93,6 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- -->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from station_oil_gun
|
|
@@ -141,11 +122,11 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
insert into station_oil_gun (oil_gun_id, oil_gun_no, oil_name,
|
|
|
- oil_price, station_id, station_name, oil_gun_type,
|
|
|
- date, status)
|
|
|
+ oil_price, station_id,
|
|
|
+ date)
|
|
|
values (#{oilGunId,jdbcType=INTEGER}, #{oilGunNo,jdbcType=VARCHAR}, #{oilName,jdbcType=VARCHAR},
|
|
|
- #{oilPrice,jdbcType=DECIMAL}, #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, #{oilGunType,jdbcType=VARCHAR},
|
|
|
- #{date,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR})
|
|
|
+ #{oilPrice,jdbcType=DECIMAL}, #{stationId,jdbcType=INTEGER},
|
|
|
+ #{date,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationOilGun">
|
|
|
<!--
|
|
@@ -169,18 +150,10 @@
|
|
|
<if test="stationId != null">
|
|
|
station_id,
|
|
|
</if>
|
|
|
- <if test="stationName != null">
|
|
|
- station_name,
|
|
|
- </if>
|
|
|
+
|
|
|
<if test="date != null">
|
|
|
date,
|
|
|
</if>
|
|
|
- <if test="status != null">
|
|
|
- status,
|
|
|
- </if>
|
|
|
- <if test="oilGunType != null">
|
|
|
- oil_gun_type,
|
|
|
- </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="oilGunId != null">
|
|
@@ -198,18 +171,9 @@
|
|
|
<if test="stationId != null">
|
|
|
#{stationId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="stationName != null">
|
|
|
- #{stationName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="date != null">
|
|
|
#{date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="status != null">
|
|
|
- #{status,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="oilGunType != null">
|
|
|
- #{oilGunType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.platform.yijia.pojo.StationOilGunExample" resultType="java.lang.Long">
|
|
@@ -244,18 +208,9 @@
|
|
|
<if test="record.stationId != null">
|
|
|
station_id = #{record.stationId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.stationName != null">
|
|
|
- station_name = #{record.stationName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.date != null">
|
|
|
date = #{record.date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="record.status != null">
|
|
|
- status = #{record.status,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.oilGunType != null">
|
|
|
- oil_gun_type = #{record.oilGunType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -272,10 +227,7 @@
|
|
|
oil_name = #{record.oilName,jdbcType=VARCHAR},
|
|
|
oil_price = #{record.oilPrice,jdbcType=DECIMAL},
|
|
|
station_id = #{record.stationId,jdbcType=INTEGER},
|
|
|
- station_name = #{record.stationName,jdbcType=VARCHAR},
|
|
|
- date = #{record.date,jdbcType=TIMESTAMP},
|
|
|
- status = #{record.status,jdbcType=VARCHAR},
|
|
|
- oil_gun_type = #{record.oilGunType,jdbcType=VARCHAR}
|
|
|
+ date = #{record.date,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -299,18 +251,9 @@
|
|
|
<if test="stationId != null">
|
|
|
station_id = #{stationId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="stationName != null">
|
|
|
- station_name = #{stationName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="date != null">
|
|
|
date = #{date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="status != null">
|
|
|
- status = #{status,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="oilGunType != null">
|
|
|
- oil_gun_type = #{oilGunType,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</set>
|
|
|
where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
|
|
|
</update>
|
|
@@ -324,10 +267,7 @@
|
|
|
oil_name = #{oilName,jdbcType=VARCHAR},
|
|
|
oil_price = #{oilPrice,jdbcType=DECIMAL},
|
|
|
station_id = #{stationId,jdbcType=INTEGER},
|
|
|
- station_name = #{stationName,jdbcType=VARCHAR},
|
|
|
- date = #{date,jdbcType=TIMESTAMP},
|
|
|
- status = #{status,jdbcType=VARCHAR},
|
|
|
- oil_gun_type = #{oilGunType,jdbcType=VARCHAR}
|
|
|
+ date = #{date,jdbcType=TIMESTAMP}
|
|
|
where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|