|
@@ -111,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}
|
|
@@ -139,11 +139,11 @@
|
|
|
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,
|
|
|
- oil_price, station_id, station_name,
|
|
|
+ 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},
|
|
|
+ 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">
|
|
@@ -324,7 +324,7 @@
|
|
|
device_no AS printerSn
|
|
|
FROM station_device_manage
|
|
|
<where>
|
|
|
- <if test="oilGunNo != null oilGunNo !=''">
|
|
|
+ <if test="oilGunNo != null and oilGunNo !=''">
|
|
|
gun_no = #{oilGunNo}
|
|
|
</if>
|
|
|
<if test="stationId != null and stationId !=''">
|
|
@@ -334,4 +334,4 @@
|
|
|
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|