Browse Source

油站mapper文件添加图片字段

jk-GitHub-coder 4 years ago
parent
commit
ff1132d6cf
1 changed files with 10 additions and 9 deletions
  1. 10 9
      YijiaRestful/src/main/resources/mapper/StationInfoMapper.xml

+ 10 - 9
YijiaRestful/src/main/resources/mapper/StationInfoMapper.xml

@@ -16,6 +16,7 @@
     <result column="station_group_name" jdbcType="VARCHAR" property="stationGroupName" />
     <result column="station_longitude" jdbcType="VARCHAR" property="stationLongitude" />
     <result column="station_latitude" jdbcType="VARCHAR" property="stationLatitude" />
+    <result column="station_pic" jdbcType="VARCHAR" property="stationPic" />
     <result column="mno" jdbcType="INTEGER" property="mno" />
   </resultMap>
   <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.platform.yijia.pojo.StationInfo">
@@ -96,7 +97,7 @@
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
-    station_id, station_name, station_address, oil_gun_num, contacts, phone, station_group_id, 
+    station_id, station_name, station_address, oil_gun_num, contacts, phone, station_group_id,
     station_group_name, station_longitude, station_latitude, mno
   </sql>
   <sql id="Blob_Column_List">
@@ -149,7 +150,7 @@
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
-    select 
+    select
     <include refid="Base_Column_List" />
     ,
     <include refid="Blob_Column_List" />
@@ -179,14 +180,14 @@
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
     -->
-    insert into station_info (station_id, station_name, station_address, 
-      oil_gun_num, contacts, phone, 
-      station_group_id, station_group_name, station_longitude, 
+    insert into station_info (station_id, station_name, station_address,
+      oil_gun_num, contacts, phone,
+      station_group_id, station_group_name, station_longitude,
       station_latitude, mno, station_pic
       )
-    values (#{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, #{stationAddress,jdbcType=VARCHAR}, 
-      #{oilGunNum,jdbcType=INTEGER}, #{contacts,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, 
-      #{stationGroupId,jdbcType=INTEGER}, #{stationGroupName,jdbcType=VARCHAR}, #{stationLongitude,jdbcType=VARCHAR}, 
+    values (#{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, #{stationAddress,jdbcType=VARCHAR},
+      #{oilGunNum,jdbcType=INTEGER}, #{contacts,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
+      #{stationGroupId,jdbcType=INTEGER}, #{stationGroupName,jdbcType=VARCHAR}, #{stationLongitude,jdbcType=VARCHAR},
       #{stationLatitude,jdbcType=VARCHAR}, #{mno,jdbcType=INTEGER}, #{stationPic,jdbcType=LONGVARBINARY}
       )
   </insert>
@@ -454,4 +455,4 @@
       mno = #{mno,jdbcType=INTEGER}
     where station_id = #{stationId,jdbcType=INTEGER}
   </update>
-</mapper>
+</mapper>