|
@@ -9,9 +9,11 @@
|
|
|
<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" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
@@ -84,7 +86,7 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- oil_gun_id, oil_gun_no, oil_name, station_id, station_name, date
|
|
|
+ oil_gun_id, oil_gun_no, oil_name, oil_price, station_id, station_name, date, status
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.platform.yijia.pojo.StationOilGunExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
@@ -109,7 +111,7 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from station_oil_gun
|
|
|
where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
|
|
@@ -137,12 +139,12 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- insert into station_oil_gun (oil_gun_id, oil_gun_no, oil_name,
|
|
|
- station_id, station_name, date
|
|
|
- )
|
|
|
- values (#{oilGunId,jdbcType=INTEGER}, #{oilGunNo,jdbcType=VARCHAR}, #{oilName,jdbcType=VARCHAR},
|
|
|
- #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, #{date,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ insert into station_oil_gun (oil_gun_id, oil_gun_no, oil_name,
|
|
|
+ oil_price, station_id, station_name,
|
|
|
+ date, status)
|
|
|
+ values (#{oilGunId,jdbcType=INTEGER}, #{oilGunNo,jdbcType=VARCHAR}, #{oilName,jdbcType=VARCHAR},
|
|
|
+ #{oilPrice,jdbcType=DECIMAL}, #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR},
|
|
|
+ #{date,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationOilGun">
|
|
|
<!--
|
|
@@ -160,6 +162,9 @@
|
|
|
<if test="oilName != null">
|
|
|
oil_name,
|
|
|
</if>
|
|
|
+ <if test="oilPrice != null">
|
|
|
+ oil_price,
|
|
|
+ </if>
|
|
|
<if test="stationId != null">
|
|
|
station_id,
|
|
|
</if>
|
|
@@ -169,6 +174,9 @@
|
|
|
<if test="date != null">
|
|
|
date,
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ status,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="oilGunId != null">
|
|
@@ -180,6 +188,9 @@
|
|
|
<if test="oilName != null">
|
|
|
#{oilName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="oilPrice != null">
|
|
|
+ #{oilPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
<if test="stationId != null">
|
|
|
#{stationId,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -189,6 +200,9 @@
|
|
|
<if test="date != null">
|
|
|
#{date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ #{status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.platform.yijia.pojo.StationOilGunExample" resultType="java.lang.Long">
|
|
@@ -217,6 +231,9 @@
|
|
|
<if test="record.oilName != null">
|
|
|
oil_name = #{record.oilName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.oilPrice != null">
|
|
|
+ oil_price = #{record.oilPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
<if test="record.stationId != null">
|
|
|
station_id = #{record.stationId,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -226,6 +243,9 @@
|
|
|
<if test="record.date != null">
|
|
|
date = #{record.date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="record.status != null">
|
|
|
+ status = #{record.status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -240,9 +260,11 @@
|
|
|
set oil_gun_id = #{record.oilGunId,jdbcType=INTEGER},
|
|
|
oil_gun_no = #{record.oilGunNo,jdbcType=VARCHAR},
|
|
|
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}
|
|
|
+ date = #{record.date,jdbcType=TIMESTAMP},
|
|
|
+ status = #{record.status,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -260,6 +282,9 @@
|
|
|
<if test="oilName != null">
|
|
|
oil_name = #{oilName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="oilPrice != null">
|
|
|
+ oil_price = #{oilPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
<if test="stationId != null">
|
|
|
station_id = #{stationId,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -269,6 +294,9 @@
|
|
|
<if test="date != null">
|
|
|
date = #{date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="status != null">
|
|
|
+ status = #{status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
|
|
|
</update>
|
|
@@ -280,9 +308,11 @@
|
|
|
update station_oil_gun
|
|
|
set oil_gun_no = #{oilGunNo,jdbcType=VARCHAR},
|
|
|
oil_name = #{oilName,jdbcType=VARCHAR},
|
|
|
+ oil_price = #{oilPrice,jdbcType=DECIMAL},
|
|
|
station_id = #{stationId,jdbcType=INTEGER},
|
|
|
station_name = #{stationName,jdbcType=VARCHAR},
|
|
|
- date = #{date,jdbcType=TIMESTAMP}
|
|
|
+ date = #{date,jdbcType=TIMESTAMP},
|
|
|
+ status = #{status,jdbcType=VARCHAR}
|
|
|
where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
@@ -304,4 +334,4 @@
|
|
|
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|