|
@@ -14,6 +14,7 @@
|
|
|
<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">
|
|
|
<!--
|
|
@@ -86,7 +87,7 @@
|
|
|
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_id, oil_gun_no, oil_name, oil_price, station_id, station_name, date, status, oil_gun_type
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.platform.yijia.pojo.StationOilGunExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
@@ -140,10 +141,10 @@
|
|
|
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_price, station_id, station_name, oil_gun_type,
|
|
|
date, status)
|
|
|
values (#{oilGunId,jdbcType=INTEGER}, #{oilGunNo,jdbcType=VARCHAR}, #{oilName,jdbcType=VARCHAR},
|
|
|
- #{oilPrice,jdbcType=DECIMAL}, #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR},
|
|
|
+ #{oilPrice,jdbcType=DECIMAL}, #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, #{oilGunType,jdbcType=VARCHAR},
|
|
|
#{date,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationOilGun">
|
|
@@ -177,6 +178,9 @@
|
|
|
<if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
|
+ <if test="oilGunType != null">
|
|
|
+ oil_gun_type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="oilGunId != null">
|
|
@@ -203,6 +207,9 @@
|
|
|
<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">
|
|
@@ -246,6 +253,9 @@
|
|
|
<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" />
|
|
@@ -264,7 +274,8 @@
|
|
|
station_id = #{record.stationId,jdbcType=INTEGER},
|
|
|
station_name = #{record.stationName,jdbcType=VARCHAR},
|
|
|
date = #{record.date,jdbcType=TIMESTAMP},
|
|
|
- status = #{record.status,jdbcType=VARCHAR}
|
|
|
+ status = #{record.status,jdbcType=VARCHAR},
|
|
|
+ oil_gun_type = #{record.oilGunType,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -297,6 +308,9 @@
|
|
|
<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>
|
|
@@ -312,7 +326,8 @@
|
|
|
station_id = #{stationId,jdbcType=INTEGER},
|
|
|
station_name = #{stationName,jdbcType=VARCHAR},
|
|
|
date = #{date,jdbcType=TIMESTAMP},
|
|
|
- status = #{status,jdbcType=VARCHAR}
|
|
|
+ status = #{status,jdbcType=VARCHAR},
|
|
|
+ oil_gun_type = #{oilGunType,jdbcType=VARCHAR}
|
|
|
where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|