Pārlūkot izejas kodu

增加油站管理对应的表结构,订单表结构

XF--LRQYEJOKYDS\Administrator 4 gadi atpakaļ
vecāks
revīzija
9ed3545e8f

+ 383 - 0
YijiaRestful/src/main/resources/mapper/AppUserInfoMapper.xml

@@ -0,0 +1,383 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.AppUserInfoMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.AppUserInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="user_id" jdbcType="INTEGER" property="userId" />
+    <result column="user_type" jdbcType="VARCHAR" property="userType" />
+    <result column="blog_openid" jdbcType="VARCHAR" property="blogOpenid" />
+    <result column="mina_openid" jdbcType="VARCHAR" property="minaOpenid" />
+    <result column="mobile_phone" jdbcType="VARCHAR" property="mobilePhone" />
+    <result column="blog_nick_name" jdbcType="VARCHAR" property="blogNickName" />
+    <result column="sex_flag" jdbcType="VARCHAR" property="sexFlag" />
+    <result column="registe_date" jdbcType="TIMESTAMP" property="registeDate" />
+    <result column="blog_token" jdbcType="VARCHAR" property="blogToken" />
+    <result column="mina_token" jdbcType="VARCHAR" property="minaToken" />
+    <result column="blog_profile_photo" jdbcType="VARCHAR" property="blogProfilePhoto" />
+    <result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    user_id, user_type, blog_openid, mina_openid, mobile_phone, blog_nick_name, sex_flag, 
+    registe_date, blog_token, mina_token, blog_profile_photo, update_date
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.AppUserInfoExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from app_user_info
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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 app_user_info
+    where user_id = #{userId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from app_user_info
+    where user_id = #{userId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.AppUserInfoExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from app_user_info
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.AppUserInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into app_user_info (user_id, user_type, blog_openid, 
+      mina_openid, mobile_phone, blog_nick_name, 
+      sex_flag, registe_date, blog_token, 
+      mina_token, blog_profile_photo, update_date
+      )
+    values (#{userId,jdbcType=INTEGER}, #{userType,jdbcType=VARCHAR}, #{blogOpenid,jdbcType=VARCHAR}, 
+      #{minaOpenid,jdbcType=VARCHAR}, #{mobilePhone,jdbcType=VARCHAR}, #{blogNickName,jdbcType=VARCHAR}, 
+      #{sexFlag,jdbcType=VARCHAR}, #{registeDate,jdbcType=TIMESTAMP}, #{blogToken,jdbcType=VARCHAR}, 
+      #{minaToken,jdbcType=VARCHAR}, #{blogProfilePhoto,jdbcType=VARCHAR}, #{updateDate,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.AppUserInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into app_user_info
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="userId != null">
+        user_id,
+      </if>
+      <if test="userType != null">
+        user_type,
+      </if>
+      <if test="blogOpenid != null">
+        blog_openid,
+      </if>
+      <if test="minaOpenid != null">
+        mina_openid,
+      </if>
+      <if test="mobilePhone != null">
+        mobile_phone,
+      </if>
+      <if test="blogNickName != null">
+        blog_nick_name,
+      </if>
+      <if test="sexFlag != null">
+        sex_flag,
+      </if>
+      <if test="registeDate != null">
+        registe_date,
+      </if>
+      <if test="blogToken != null">
+        blog_token,
+      </if>
+      <if test="minaToken != null">
+        mina_token,
+      </if>
+      <if test="blogProfilePhoto != null">
+        blog_profile_photo,
+      </if>
+      <if test="updateDate != null">
+        update_date,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="userId != null">
+        #{userId,jdbcType=INTEGER},
+      </if>
+      <if test="userType != null">
+        #{userType,jdbcType=VARCHAR},
+      </if>
+      <if test="blogOpenid != null">
+        #{blogOpenid,jdbcType=VARCHAR},
+      </if>
+      <if test="minaOpenid != null">
+        #{minaOpenid,jdbcType=VARCHAR},
+      </if>
+      <if test="mobilePhone != null">
+        #{mobilePhone,jdbcType=VARCHAR},
+      </if>
+      <if test="blogNickName != null">
+        #{blogNickName,jdbcType=VARCHAR},
+      </if>
+      <if test="sexFlag != null">
+        #{sexFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="registeDate != null">
+        #{registeDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="blogToken != null">
+        #{blogToken,jdbcType=VARCHAR},
+      </if>
+      <if test="minaToken != null">
+        #{minaToken,jdbcType=VARCHAR},
+      </if>
+      <if test="blogProfilePhoto != null">
+        #{blogProfilePhoto,jdbcType=VARCHAR},
+      </if>
+      <if test="updateDate != null">
+        #{updateDate,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.AppUserInfoExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from app_user_info
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update app_user_info
+    <set>
+      <if test="record.userId != null">
+        user_id = #{record.userId,jdbcType=INTEGER},
+      </if>
+      <if test="record.userType != null">
+        user_type = #{record.userType,jdbcType=VARCHAR},
+      </if>
+      <if test="record.blogOpenid != null">
+        blog_openid = #{record.blogOpenid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.minaOpenid != null">
+        mina_openid = #{record.minaOpenid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.mobilePhone != null">
+        mobile_phone = #{record.mobilePhone,jdbcType=VARCHAR},
+      </if>
+      <if test="record.blogNickName != null">
+        blog_nick_name = #{record.blogNickName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.sexFlag != null">
+        sex_flag = #{record.sexFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="record.registeDate != null">
+        registe_date = #{record.registeDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.blogToken != null">
+        blog_token = #{record.blogToken,jdbcType=VARCHAR},
+      </if>
+      <if test="record.minaToken != null">
+        mina_token = #{record.minaToken,jdbcType=VARCHAR},
+      </if>
+      <if test="record.blogProfilePhoto != null">
+        blog_profile_photo = #{record.blogProfilePhoto,jdbcType=VARCHAR},
+      </if>
+      <if test="record.updateDate != null">
+        update_date = #{record.updateDate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update app_user_info
+    set user_id = #{record.userId,jdbcType=INTEGER},
+      user_type = #{record.userType,jdbcType=VARCHAR},
+      blog_openid = #{record.blogOpenid,jdbcType=VARCHAR},
+      mina_openid = #{record.minaOpenid,jdbcType=VARCHAR},
+      mobile_phone = #{record.mobilePhone,jdbcType=VARCHAR},
+      blog_nick_name = #{record.blogNickName,jdbcType=VARCHAR},
+      sex_flag = #{record.sexFlag,jdbcType=VARCHAR},
+      registe_date = #{record.registeDate,jdbcType=TIMESTAMP},
+      blog_token = #{record.blogToken,jdbcType=VARCHAR},
+      mina_token = #{record.minaToken,jdbcType=VARCHAR},
+      blog_profile_photo = #{record.blogProfilePhoto,jdbcType=VARCHAR},
+      update_date = #{record.updateDate,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.AppUserInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update app_user_info
+    <set>
+      <if test="userType != null">
+        user_type = #{userType,jdbcType=VARCHAR},
+      </if>
+      <if test="blogOpenid != null">
+        blog_openid = #{blogOpenid,jdbcType=VARCHAR},
+      </if>
+      <if test="minaOpenid != null">
+        mina_openid = #{minaOpenid,jdbcType=VARCHAR},
+      </if>
+      <if test="mobilePhone != null">
+        mobile_phone = #{mobilePhone,jdbcType=VARCHAR},
+      </if>
+      <if test="blogNickName != null">
+        blog_nick_name = #{blogNickName,jdbcType=VARCHAR},
+      </if>
+      <if test="sexFlag != null">
+        sex_flag = #{sexFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="registeDate != null">
+        registe_date = #{registeDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="blogToken != null">
+        blog_token = #{blogToken,jdbcType=VARCHAR},
+      </if>
+      <if test="minaToken != null">
+        mina_token = #{minaToken,jdbcType=VARCHAR},
+      </if>
+      <if test="blogProfilePhoto != null">
+        blog_profile_photo = #{blogProfilePhoto,jdbcType=VARCHAR},
+      </if>
+      <if test="updateDate != null">
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where user_id = #{userId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.AppUserInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update app_user_info
+    set user_type = #{userType,jdbcType=VARCHAR},
+      blog_openid = #{blogOpenid,jdbcType=VARCHAR},
+      mina_openid = #{minaOpenid,jdbcType=VARCHAR},
+      mobile_phone = #{mobilePhone,jdbcType=VARCHAR},
+      blog_nick_name = #{blogNickName,jdbcType=VARCHAR},
+      sex_flag = #{sexFlag,jdbcType=VARCHAR},
+      registe_date = #{registeDate,jdbcType=TIMESTAMP},
+      blog_token = #{blogToken,jdbcType=VARCHAR},
+      mina_token = #{minaToken,jdbcType=VARCHAR},
+      blog_profile_photo = #{blogProfilePhoto,jdbcType=VARCHAR},
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
+    where user_id = #{userId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 351 - 0
YijiaRestful/src/main/resources/mapper/CouponMapper.xml

@@ -0,0 +1,351 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.CouponMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.Coupon">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="coupon_id" jdbcType="INTEGER" property="couponId" />
+    <result column="station_no" jdbcType="VARCHAR" property="stationNo" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+    <result column="coupon_name" jdbcType="VARCHAR" property="couponName" />
+    <result column="coupon_rule" jdbcType="VARCHAR" property="couponRule" />
+    <result column="coupon_type" jdbcType="CHAR" property="couponType" />
+    <result column="coupon_amt" jdbcType="DOUBLE" property="couponAmt" />
+    <result column="coupon_reul_amt" jdbcType="DOUBLE" property="couponReulAmt" />
+    <result column="coupon_oil" jdbcType="VARCHAR" property="couponOil" />
+    <result column="validity_date" jdbcType="DATE" property="validityDate" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    coupon_id, station_no, station_name, coupon_name, coupon_rule, coupon_type, coupon_amt, 
+    coupon_reul_amt, coupon_oil, validity_date
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.CouponExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from coupon
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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 coupon
+    where coupon_id = #{couponId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from coupon
+    where coupon_id = #{couponId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.CouponExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from coupon
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.Coupon">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into coupon (coupon_id, station_no, station_name, 
+      coupon_name, coupon_rule, coupon_type, 
+      coupon_amt, coupon_reul_amt, coupon_oil, 
+      validity_date)
+    values (#{couponId,jdbcType=INTEGER}, #{stationNo,jdbcType=VARCHAR}, #{stationName,jdbcType=VARCHAR}, 
+      #{couponName,jdbcType=VARCHAR}, #{couponRule,jdbcType=VARCHAR}, #{couponType,jdbcType=CHAR}, 
+      #{couponAmt,jdbcType=DOUBLE}, #{couponReulAmt,jdbcType=DOUBLE}, #{couponOil,jdbcType=VARCHAR}, 
+      #{validityDate,jdbcType=DATE})
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.Coupon">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into coupon
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="couponId != null">
+        coupon_id,
+      </if>
+      <if test="stationNo != null">
+        station_no,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+      <if test="couponName != null">
+        coupon_name,
+      </if>
+      <if test="couponRule != null">
+        coupon_rule,
+      </if>
+      <if test="couponType != null">
+        coupon_type,
+      </if>
+      <if test="couponAmt != null">
+        coupon_amt,
+      </if>
+      <if test="couponReulAmt != null">
+        coupon_reul_amt,
+      </if>
+      <if test="couponOil != null">
+        coupon_oil,
+      </if>
+      <if test="validityDate != null">
+        validity_date,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="couponId != null">
+        #{couponId,jdbcType=INTEGER},
+      </if>
+      <if test="stationNo != null">
+        #{stationNo,jdbcType=VARCHAR},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="couponName != null">
+        #{couponName,jdbcType=VARCHAR},
+      </if>
+      <if test="couponRule != null">
+        #{couponRule,jdbcType=VARCHAR},
+      </if>
+      <if test="couponType != null">
+        #{couponType,jdbcType=CHAR},
+      </if>
+      <if test="couponAmt != null">
+        #{couponAmt,jdbcType=DOUBLE},
+      </if>
+      <if test="couponReulAmt != null">
+        #{couponReulAmt,jdbcType=DOUBLE},
+      </if>
+      <if test="couponOil != null">
+        #{couponOil,jdbcType=VARCHAR},
+      </if>
+      <if test="validityDate != null">
+        #{validityDate,jdbcType=DATE},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.CouponExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from coupon
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update coupon
+    <set>
+      <if test="record.couponId != null">
+        coupon_id = #{record.couponId,jdbcType=INTEGER},
+      </if>
+      <if test="record.stationNo != null">
+        station_no = #{record.stationNo,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationName != null">
+        station_name = #{record.stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.couponName != null">
+        coupon_name = #{record.couponName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.couponRule != null">
+        coupon_rule = #{record.couponRule,jdbcType=VARCHAR},
+      </if>
+      <if test="record.couponType != null">
+        coupon_type = #{record.couponType,jdbcType=CHAR},
+      </if>
+      <if test="record.couponAmt != null">
+        coupon_amt = #{record.couponAmt,jdbcType=DOUBLE},
+      </if>
+      <if test="record.couponReulAmt != null">
+        coupon_reul_amt = #{record.couponReulAmt,jdbcType=DOUBLE},
+      </if>
+      <if test="record.couponOil != null">
+        coupon_oil = #{record.couponOil,jdbcType=VARCHAR},
+      </if>
+      <if test="record.validityDate != null">
+        validity_date = #{record.validityDate,jdbcType=DATE},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update coupon
+    set coupon_id = #{record.couponId,jdbcType=INTEGER},
+      station_no = #{record.stationNo,jdbcType=VARCHAR},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      coupon_name = #{record.couponName,jdbcType=VARCHAR},
+      coupon_rule = #{record.couponRule,jdbcType=VARCHAR},
+      coupon_type = #{record.couponType,jdbcType=CHAR},
+      coupon_amt = #{record.couponAmt,jdbcType=DOUBLE},
+      coupon_reul_amt = #{record.couponReulAmt,jdbcType=DOUBLE},
+      coupon_oil = #{record.couponOil,jdbcType=VARCHAR},
+      validity_date = #{record.validityDate,jdbcType=DATE}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.Coupon">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update coupon
+    <set>
+      <if test="stationNo != null">
+        station_no = #{stationNo,jdbcType=VARCHAR},
+      </if>
+      <if test="stationName != null">
+        station_name = #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="couponName != null">
+        coupon_name = #{couponName,jdbcType=VARCHAR},
+      </if>
+      <if test="couponRule != null">
+        coupon_rule = #{couponRule,jdbcType=VARCHAR},
+      </if>
+      <if test="couponType != null">
+        coupon_type = #{couponType,jdbcType=CHAR},
+      </if>
+      <if test="couponAmt != null">
+        coupon_amt = #{couponAmt,jdbcType=DOUBLE},
+      </if>
+      <if test="couponReulAmt != null">
+        coupon_reul_amt = #{couponReulAmt,jdbcType=DOUBLE},
+      </if>
+      <if test="couponOil != null">
+        coupon_oil = #{couponOil,jdbcType=VARCHAR},
+      </if>
+      <if test="validityDate != null">
+        validity_date = #{validityDate,jdbcType=DATE},
+      </if>
+    </set>
+    where coupon_id = #{couponId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.Coupon">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update coupon
+    set station_no = #{stationNo,jdbcType=VARCHAR},
+      station_name = #{stationName,jdbcType=VARCHAR},
+      coupon_name = #{couponName,jdbcType=VARCHAR},
+      coupon_rule = #{couponRule,jdbcType=VARCHAR},
+      coupon_type = #{couponType,jdbcType=CHAR},
+      coupon_amt = #{couponAmt,jdbcType=DOUBLE},
+      coupon_reul_amt = #{couponReulAmt,jdbcType=DOUBLE},
+      coupon_oil = #{couponOil,jdbcType=VARCHAR},
+      validity_date = #{validityDate,jdbcType=DATE}
+    where coupon_id = #{couponId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 445 - 0
YijiaRestful/src/main/resources/mapper/PayOrderMapper.xml

@@ -0,0 +1,445 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.PayOrderMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.PayOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="order_id" jdbcType="INTEGER" property="orderId" />
+    <result column="order_no" jdbcType="VARCHAR" property="orderNo" />
+    <result column="oil_gun" jdbcType="VARCHAR" property="oilGun" />
+    <result column="oil_name" jdbcType="VARCHAR" property="oilName" />
+    <result column="consumer_id" jdbcType="INTEGER" property="consumerId" />
+    <result column="consumer" jdbcType="VARCHAR" property="consumer" />
+    <result column="amt" jdbcType="VARCHAR" property="amt" />
+    <result column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="status" jdbcType="VARCHAR" property="status" />
+    <result column="order_liters" jdbcType="VARCHAR" property="orderLiters" />
+    <result column="pay_type" jdbcType="VARCHAR" property="payType" />
+    <result column="pay_way" jdbcType="VARCHAR" property="payWay" />
+    <result column="pay_date" jdbcType="TIMESTAMP" property="payDate" />
+    <result column="oil_personnel" jdbcType="VARCHAR" property="oilPersonnel" />
+    <result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
+    <result column="order_type" jdbcType="CHAR" property="orderType" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    order_id, order_no, oil_gun, oil_name, consumer_id, consumer, amt, station_id, status, 
+    order_liters, pay_type, pay_way, pay_date, oil_personnel, created_date, order_type
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.PayOrderExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pay_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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 pay_order
+    where order_id = #{orderId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from pay_order
+    where order_id = #{orderId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.PayOrderExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from pay_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.PayOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into pay_order (order_id, order_no, oil_gun, 
+      oil_name, consumer_id, consumer, 
+      amt, station_id, status, 
+      order_liters, pay_type, pay_way, 
+      pay_date, oil_personnel, created_date, 
+      order_type)
+    values (#{orderId,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{oilGun,jdbcType=VARCHAR}, 
+      #{oilName,jdbcType=VARCHAR}, #{consumerId,jdbcType=INTEGER}, #{consumer,jdbcType=VARCHAR}, 
+      #{amt,jdbcType=VARCHAR}, #{stationId,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR}, 
+      #{orderLiters,jdbcType=VARCHAR}, #{payType,jdbcType=VARCHAR}, #{payWay,jdbcType=VARCHAR}, 
+      #{payDate,jdbcType=TIMESTAMP}, #{oilPersonnel,jdbcType=VARCHAR}, #{createdDate,jdbcType=TIMESTAMP}, 
+      #{orderType,jdbcType=CHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.PayOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into pay_order
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="orderId != null">
+        order_id,
+      </if>
+      <if test="orderNo != null">
+        order_no,
+      </if>
+      <if test="oilGun != null">
+        oil_gun,
+      </if>
+      <if test="oilName != null">
+        oil_name,
+      </if>
+      <if test="consumerId != null">
+        consumer_id,
+      </if>
+      <if test="consumer != null">
+        consumer,
+      </if>
+      <if test="amt != null">
+        amt,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="status != null">
+        status,
+      </if>
+      <if test="orderLiters != null">
+        order_liters,
+      </if>
+      <if test="payType != null">
+        pay_type,
+      </if>
+      <if test="payWay != null">
+        pay_way,
+      </if>
+      <if test="payDate != null">
+        pay_date,
+      </if>
+      <if test="oilPersonnel != null">
+        oil_personnel,
+      </if>
+      <if test="createdDate != null">
+        created_date,
+      </if>
+      <if test="orderType != null">
+        order_type,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="orderId != null">
+        #{orderId,jdbcType=INTEGER},
+      </if>
+      <if test="orderNo != null">
+        #{orderNo,jdbcType=VARCHAR},
+      </if>
+      <if test="oilGun != null">
+        #{oilGun,jdbcType=VARCHAR},
+      </if>
+      <if test="oilName != null">
+        #{oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="consumerId != null">
+        #{consumerId,jdbcType=INTEGER},
+      </if>
+      <if test="consumer != null">
+        #{consumer,jdbcType=VARCHAR},
+      </if>
+      <if test="amt != null">
+        #{amt,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        #{status,jdbcType=VARCHAR},
+      </if>
+      <if test="orderLiters != null">
+        #{orderLiters,jdbcType=VARCHAR},
+      </if>
+      <if test="payType != null">
+        #{payType,jdbcType=VARCHAR},
+      </if>
+      <if test="payWay != null">
+        #{payWay,jdbcType=VARCHAR},
+      </if>
+      <if test="payDate != null">
+        #{payDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="oilPersonnel != null">
+        #{oilPersonnel,jdbcType=VARCHAR},
+      </if>
+      <if test="createdDate != null">
+        #{createdDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="orderType != null">
+        #{orderType,jdbcType=CHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.PayOrderExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from pay_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update pay_order
+    <set>
+      <if test="record.orderId != null">
+        order_id = #{record.orderId,jdbcType=INTEGER},
+      </if>
+      <if test="record.orderNo != null">
+        order_no = #{record.orderNo,jdbcType=VARCHAR},
+      </if>
+      <if test="record.oilGun != null">
+        oil_gun = #{record.oilGun,jdbcType=VARCHAR},
+      </if>
+      <if test="record.oilName != null">
+        oil_name = #{record.oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.consumerId != null">
+        consumer_id = #{record.consumerId,jdbcType=INTEGER},
+      </if>
+      <if test="record.consumer != null">
+        consumer = #{record.consumer,jdbcType=VARCHAR},
+      </if>
+      <if test="record.amt != null">
+        amt = #{record.amt,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationId != null">
+        station_id = #{record.stationId,jdbcType=INTEGER},
+      </if>
+      <if test="record.status != null">
+        status = #{record.status,jdbcType=VARCHAR},
+      </if>
+      <if test="record.orderLiters != null">
+        order_liters = #{record.orderLiters,jdbcType=VARCHAR},
+      </if>
+      <if test="record.payType != null">
+        pay_type = #{record.payType,jdbcType=VARCHAR},
+      </if>
+      <if test="record.payWay != null">
+        pay_way = #{record.payWay,jdbcType=VARCHAR},
+      </if>
+      <if test="record.payDate != null">
+        pay_date = #{record.payDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.oilPersonnel != null">
+        oil_personnel = #{record.oilPersonnel,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createdDate != null">
+        created_date = #{record.createdDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.orderType != null">
+        order_type = #{record.orderType,jdbcType=CHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update pay_order
+    set order_id = #{record.orderId,jdbcType=INTEGER},
+      order_no = #{record.orderNo,jdbcType=VARCHAR},
+      oil_gun = #{record.oilGun,jdbcType=VARCHAR},
+      oil_name = #{record.oilName,jdbcType=VARCHAR},
+      consumer_id = #{record.consumerId,jdbcType=INTEGER},
+      consumer = #{record.consumer,jdbcType=VARCHAR},
+      amt = #{record.amt,jdbcType=VARCHAR},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      status = #{record.status,jdbcType=VARCHAR},
+      order_liters = #{record.orderLiters,jdbcType=VARCHAR},
+      pay_type = #{record.payType,jdbcType=VARCHAR},
+      pay_way = #{record.payWay,jdbcType=VARCHAR},
+      pay_date = #{record.payDate,jdbcType=TIMESTAMP},
+      oil_personnel = #{record.oilPersonnel,jdbcType=VARCHAR},
+      created_date = #{record.createdDate,jdbcType=TIMESTAMP},
+      order_type = #{record.orderType,jdbcType=CHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.PayOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update pay_order
+    <set>
+      <if test="orderNo != null">
+        order_no = #{orderNo,jdbcType=VARCHAR},
+      </if>
+      <if test="oilGun != null">
+        oil_gun = #{oilGun,jdbcType=VARCHAR},
+      </if>
+      <if test="oilName != null">
+        oil_name = #{oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="consumerId != null">
+        consumer_id = #{consumerId,jdbcType=INTEGER},
+      </if>
+      <if test="consumer != null">
+        consumer = #{consumer,jdbcType=VARCHAR},
+      </if>
+      <if test="amt != null">
+        amt = #{amt,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        station_id = #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        status = #{status,jdbcType=VARCHAR},
+      </if>
+      <if test="orderLiters != null">
+        order_liters = #{orderLiters,jdbcType=VARCHAR},
+      </if>
+      <if test="payType != null">
+        pay_type = #{payType,jdbcType=VARCHAR},
+      </if>
+      <if test="payWay != null">
+        pay_way = #{payWay,jdbcType=VARCHAR},
+      </if>
+      <if test="payDate != null">
+        pay_date = #{payDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="oilPersonnel != null">
+        oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
+      </if>
+      <if test="createdDate != null">
+        created_date = #{createdDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="orderType != null">
+        order_type = #{orderType,jdbcType=CHAR},
+      </if>
+    </set>
+    where order_id = #{orderId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.PayOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update pay_order
+    set order_no = #{orderNo,jdbcType=VARCHAR},
+      oil_gun = #{oilGun,jdbcType=VARCHAR},
+      oil_name = #{oilName,jdbcType=VARCHAR},
+      consumer_id = #{consumerId,jdbcType=INTEGER},
+      consumer = #{consumer,jdbcType=VARCHAR},
+      amt = #{amt,jdbcType=VARCHAR},
+      station_id = #{stationId,jdbcType=INTEGER},
+      status = #{status,jdbcType=VARCHAR},
+      order_liters = #{orderLiters,jdbcType=VARCHAR},
+      pay_type = #{payType,jdbcType=VARCHAR},
+      pay_way = #{payWay,jdbcType=VARCHAR},
+      pay_date = #{payDate,jdbcType=TIMESTAMP},
+      oil_personnel = #{oilPersonnel,jdbcType=VARCHAR},
+      created_date = #{createdDate,jdbcType=TIMESTAMP},
+      order_type = #{orderType,jdbcType=CHAR}
+    where order_id = #{orderId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 438 - 0
YijiaRestful/src/main/resources/mapper/StationInfoMapper.xml

@@ -0,0 +1,438 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.StationInfoMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+    <result column="station_address" jdbcType="VARCHAR" property="stationAddress" />
+    <result column="oil_gun_num" jdbcType="INTEGER" property="oilGunNum" />
+    <result column="contacts" jdbcType="VARCHAR" property="contacts" />
+    <result column="phone" jdbcType="VARCHAR" property="phone" />
+    <result column="station_group_id" jdbcType="INTEGER" property="stationGroupId" />
+    <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" />
+  </resultMap>
+  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.platform.yijia.pojo.StationInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <result column="station_pic" jdbcType="LONGVARBINARY" property="stationPic" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      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_group_name, station_longitude, station_latitude
+  </sql>
+  <sql id="Blob_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    station_pic
+  </sql>
+  <select id="selectByExampleWithBLOBs" parameterType="com.platform.yijia.pojo.StationInfoExample" resultMap="ResultMapWithBLOBs">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from station_info
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.StationInfoExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from station_info
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from station_info
+    where station_id = #{stationId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_info
+    where station_id = #{stationId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationInfoExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_info
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationInfo">
+    <!--
+      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, 
+      station_latitude, 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}, 
+      #{stationLatitude,jdbcType=VARCHAR}, #{stationPic,jdbcType=LONGVARBINARY})
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_info
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+      <if test="stationAddress != null">
+        station_address,
+      </if>
+      <if test="oilGunNum != null">
+        oil_gun_num,
+      </if>
+      <if test="contacts != null">
+        contacts,
+      </if>
+      <if test="phone != null">
+        phone,
+      </if>
+      <if test="stationGroupId != null">
+        station_group_id,
+      </if>
+      <if test="stationGroupName != null">
+        station_group_name,
+      </if>
+      <if test="stationLongitude != null">
+        station_longitude,
+      </if>
+      <if test="stationLatitude != null">
+        station_latitude,
+      </if>
+      <if test="stationPic != null">
+        station_pic,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="stationAddress != null">
+        #{stationAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="oilGunNum != null">
+        #{oilGunNum,jdbcType=INTEGER},
+      </if>
+      <if test="contacts != null">
+        #{contacts,jdbcType=VARCHAR},
+      </if>
+      <if test="phone != null">
+        #{phone,jdbcType=VARCHAR},
+      </if>
+      <if test="stationGroupId != null">
+        #{stationGroupId,jdbcType=INTEGER},
+      </if>
+      <if test="stationGroupName != null">
+        #{stationGroupName,jdbcType=VARCHAR},
+      </if>
+      <if test="stationLongitude != null">
+        #{stationLongitude,jdbcType=VARCHAR},
+      </if>
+      <if test="stationLatitude != null">
+        #{stationLatitude,jdbcType=VARCHAR},
+      </if>
+      <if test="stationPic != null">
+        #{stationPic,jdbcType=LONGVARBINARY},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationInfoExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_info
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_info
+    <set>
+      <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.stationAddress != null">
+        station_address = #{record.stationAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="record.oilGunNum != null">
+        oil_gun_num = #{record.oilGunNum,jdbcType=INTEGER},
+      </if>
+      <if test="record.contacts != null">
+        contacts = #{record.contacts,jdbcType=VARCHAR},
+      </if>
+      <if test="record.phone != null">
+        phone = #{record.phone,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationGroupId != null">
+        station_group_id = #{record.stationGroupId,jdbcType=INTEGER},
+      </if>
+      <if test="record.stationGroupName != null">
+        station_group_name = #{record.stationGroupName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationLongitude != null">
+        station_longitude = #{record.stationLongitude,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationLatitude != null">
+        station_latitude = #{record.stationLatitude,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationPic != null">
+        station_pic = #{record.stationPic,jdbcType=LONGVARBINARY},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExampleWithBLOBs" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_info
+    set station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      station_address = #{record.stationAddress,jdbcType=VARCHAR},
+      oil_gun_num = #{record.oilGunNum,jdbcType=INTEGER},
+      contacts = #{record.contacts,jdbcType=VARCHAR},
+      phone = #{record.phone,jdbcType=VARCHAR},
+      station_group_id = #{record.stationGroupId,jdbcType=INTEGER},
+      station_group_name = #{record.stationGroupName,jdbcType=VARCHAR},
+      station_longitude = #{record.stationLongitude,jdbcType=VARCHAR},
+      station_latitude = #{record.stationLatitude,jdbcType=VARCHAR},
+      station_pic = #{record.stationPic,jdbcType=LONGVARBINARY}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_info
+    set station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      station_address = #{record.stationAddress,jdbcType=VARCHAR},
+      oil_gun_num = #{record.oilGunNum,jdbcType=INTEGER},
+      contacts = #{record.contacts,jdbcType=VARCHAR},
+      phone = #{record.phone,jdbcType=VARCHAR},
+      station_group_id = #{record.stationGroupId,jdbcType=INTEGER},
+      station_group_name = #{record.stationGroupName,jdbcType=VARCHAR},
+      station_longitude = #{record.stationLongitude,jdbcType=VARCHAR},
+      station_latitude = #{record.stationLatitude,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_info
+    <set>
+      <if test="stationName != null">
+        station_name = #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="stationAddress != null">
+        station_address = #{stationAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="oilGunNum != null">
+        oil_gun_num = #{oilGunNum,jdbcType=INTEGER},
+      </if>
+      <if test="contacts != null">
+        contacts = #{contacts,jdbcType=VARCHAR},
+      </if>
+      <if test="phone != null">
+        phone = #{phone,jdbcType=VARCHAR},
+      </if>
+      <if test="stationGroupId != null">
+        station_group_id = #{stationGroupId,jdbcType=INTEGER},
+      </if>
+      <if test="stationGroupName != null">
+        station_group_name = #{stationGroupName,jdbcType=VARCHAR},
+      </if>
+      <if test="stationLongitude != null">
+        station_longitude = #{stationLongitude,jdbcType=VARCHAR},
+      </if>
+      <if test="stationLatitude != null">
+        station_latitude = #{stationLatitude,jdbcType=VARCHAR},
+      </if>
+      <if test="stationPic != null">
+        station_pic = #{stationPic,jdbcType=LONGVARBINARY},
+      </if>
+    </set>
+    where station_id = #{stationId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.platform.yijia.pojo.StationInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_info
+    set station_name = #{stationName,jdbcType=VARCHAR},
+      station_address = #{stationAddress,jdbcType=VARCHAR},
+      oil_gun_num = #{oilGunNum,jdbcType=INTEGER},
+      contacts = #{contacts,jdbcType=VARCHAR},
+      phone = #{phone,jdbcType=VARCHAR},
+      station_group_id = #{stationGroupId,jdbcType=INTEGER},
+      station_group_name = #{stationGroupName,jdbcType=VARCHAR},
+      station_longitude = #{stationLongitude,jdbcType=VARCHAR},
+      station_latitude = #{stationLatitude,jdbcType=VARCHAR},
+      station_pic = #{stationPic,jdbcType=LONGVARBINARY}
+    where station_id = #{stationId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationInfo">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_info
+    set station_name = #{stationName,jdbcType=VARCHAR},
+      station_address = #{stationAddress,jdbcType=VARCHAR},
+      oil_gun_num = #{oilGunNum,jdbcType=INTEGER},
+      contacts = #{contacts,jdbcType=VARCHAR},
+      phone = #{phone,jdbcType=VARCHAR},
+      station_group_id = #{stationGroupId,jdbcType=INTEGER},
+      station_group_name = #{stationGroupName,jdbcType=VARCHAR},
+      station_longitude = #{stationLongitude,jdbcType=VARCHAR},
+      station_latitude = #{stationLatitude,jdbcType=VARCHAR}
+    where station_id = #{stationId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 318 - 0
YijiaRestful/src/main/resources/mapper/StationNoticeManageMapper.xml

@@ -0,0 +1,318 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.StationNoticeManageMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationNoticeManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="notice_id" jdbcType="INTEGER" property="noticeId" />
+    <result column="full_name" jdbcType="VARCHAR" property="fullName" />
+    <result column="phone" jdbcType="VARCHAR" property="phone" />
+    <result column="bind_date" jdbcType="DATE" property="bindDate" />
+    <result column="bind_status" jdbcType="CHAR" property="bindStatus" />
+    <result column="wx_full_name" jdbcType="VARCHAR" property="wxFullName" />
+    <result column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    notice_id, full_name, phone, bind_date, bind_status, wx_full_name, station_id, station_name
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.StationNoticeManageExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from station_notice_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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_notice_manage
+    where notice_id = #{noticeId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_notice_manage
+    where notice_id = #{noticeId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationNoticeManageExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_notice_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationNoticeManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_notice_manage (notice_id, full_name, phone, 
+      bind_date, bind_status, wx_full_name, 
+      station_id, station_name)
+    values (#{noticeId,jdbcType=INTEGER}, #{fullName,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, 
+      #{bindDate,jdbcType=DATE}, #{bindStatus,jdbcType=CHAR}, #{wxFullName,jdbcType=VARCHAR}, 
+      #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationNoticeManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_notice_manage
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="noticeId != null">
+        notice_id,
+      </if>
+      <if test="fullName != null">
+        full_name,
+      </if>
+      <if test="phone != null">
+        phone,
+      </if>
+      <if test="bindDate != null">
+        bind_date,
+      </if>
+      <if test="bindStatus != null">
+        bind_status,
+      </if>
+      <if test="wxFullName != null">
+        wx_full_name,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="noticeId != null">
+        #{noticeId,jdbcType=INTEGER},
+      </if>
+      <if test="fullName != null">
+        #{fullName,jdbcType=VARCHAR},
+      </if>
+      <if test="phone != null">
+        #{phone,jdbcType=VARCHAR},
+      </if>
+      <if test="bindDate != null">
+        #{bindDate,jdbcType=DATE},
+      </if>
+      <if test="bindStatus != null">
+        #{bindStatus,jdbcType=CHAR},
+      </if>
+      <if test="wxFullName != null">
+        #{wxFullName,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationNoticeManageExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_notice_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_notice_manage
+    <set>
+      <if test="record.noticeId != null">
+        notice_id = #{record.noticeId,jdbcType=INTEGER},
+      </if>
+      <if test="record.fullName != null">
+        full_name = #{record.fullName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.phone != null">
+        phone = #{record.phone,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bindDate != null">
+        bind_date = #{record.bindDate,jdbcType=DATE},
+      </if>
+      <if test="record.bindStatus != null">
+        bind_status = #{record.bindStatus,jdbcType=CHAR},
+      </if>
+      <if test="record.wxFullName != null">
+        wx_full_name = #{record.wxFullName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationId != null">
+        station_id = #{record.stationId,jdbcType=INTEGER},
+      </if>
+      <if test="record.stationName != null">
+        station_name = #{record.stationName,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_notice_manage
+    set notice_id = #{record.noticeId,jdbcType=INTEGER},
+      full_name = #{record.fullName,jdbcType=VARCHAR},
+      phone = #{record.phone,jdbcType=VARCHAR},
+      bind_date = #{record.bindDate,jdbcType=DATE},
+      bind_status = #{record.bindStatus,jdbcType=CHAR},
+      wx_full_name = #{record.wxFullName,jdbcType=VARCHAR},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationNoticeManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_notice_manage
+    <set>
+      <if test="fullName != null">
+        full_name = #{fullName,jdbcType=VARCHAR},
+      </if>
+      <if test="phone != null">
+        phone = #{phone,jdbcType=VARCHAR},
+      </if>
+      <if test="bindDate != null">
+        bind_date = #{bindDate,jdbcType=DATE},
+      </if>
+      <if test="bindStatus != null">
+        bind_status = #{bindStatus,jdbcType=CHAR},
+      </if>
+      <if test="wxFullName != null">
+        wx_full_name = #{wxFullName,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        station_id = #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        station_name = #{stationName,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where notice_id = #{noticeId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationNoticeManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_notice_manage
+    set full_name = #{fullName,jdbcType=VARCHAR},
+      phone = #{phone,jdbcType=VARCHAR},
+      bind_date = #{bindDate,jdbcType=DATE},
+      bind_status = #{bindStatus,jdbcType=CHAR},
+      wx_full_name = #{wxFullName,jdbcType=VARCHAR},
+      station_id = #{stationId,jdbcType=INTEGER},
+      station_name = #{stationName,jdbcType=VARCHAR}
+    where notice_id = #{noticeId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 288 - 0
YijiaRestful/src/main/resources/mapper/StationOfficialManageMapper.xml

@@ -0,0 +1,288 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.StationOfficialManageMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationOfficialManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="official_id" jdbcType="INTEGER" property="officialId" />
+    <result column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+    <result column="wx_card_manage" jdbcType="VARCHAR" property="wxCardManage" />
+    <result column="menu_manage" jdbcType="VARCHAR" property="menuManage" />
+    <result column="mass_messaging" jdbcType="VARCHAR" property="massMessaging" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    official_id, station_id, station_name, wx_card_manage, menu_manage, mass_messaging
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.StationOfficialManageExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from station_official_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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_official_manage
+    where official_id = #{officialId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_official_manage
+    where official_id = #{officialId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationOfficialManageExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_official_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationOfficialManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_official_manage (official_id, station_id, station_name, 
+      wx_card_manage, menu_manage, mass_messaging
+      )
+    values (#{officialId,jdbcType=INTEGER}, #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, 
+      #{wxCardManage,jdbcType=VARCHAR}, #{menuManage,jdbcType=VARCHAR}, #{massMessaging,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationOfficialManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_official_manage
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="officialId != null">
+        official_id,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+      <if test="wxCardManage != null">
+        wx_card_manage,
+      </if>
+      <if test="menuManage != null">
+        menu_manage,
+      </if>
+      <if test="massMessaging != null">
+        mass_messaging,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="officialId != null">
+        #{officialId,jdbcType=INTEGER},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="wxCardManage != null">
+        #{wxCardManage,jdbcType=VARCHAR},
+      </if>
+      <if test="menuManage != null">
+        #{menuManage,jdbcType=VARCHAR},
+      </if>
+      <if test="massMessaging != null">
+        #{massMessaging,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationOfficialManageExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_official_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_official_manage
+    <set>
+      <if test="record.officialId != null">
+        official_id = #{record.officialId,jdbcType=INTEGER},
+      </if>
+      <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.wxCardManage != null">
+        wx_card_manage = #{record.wxCardManage,jdbcType=VARCHAR},
+      </if>
+      <if test="record.menuManage != null">
+        menu_manage = #{record.menuManage,jdbcType=VARCHAR},
+      </if>
+      <if test="record.massMessaging != null">
+        mass_messaging = #{record.massMessaging,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_official_manage
+    set official_id = #{record.officialId,jdbcType=INTEGER},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      wx_card_manage = #{record.wxCardManage,jdbcType=VARCHAR},
+      menu_manage = #{record.menuManage,jdbcType=VARCHAR},
+      mass_messaging = #{record.massMessaging,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationOfficialManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_official_manage
+    <set>
+      <if test="stationId != null">
+        station_id = #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        station_name = #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="wxCardManage != null">
+        wx_card_manage = #{wxCardManage,jdbcType=VARCHAR},
+      </if>
+      <if test="menuManage != null">
+        menu_manage = #{menuManage,jdbcType=VARCHAR},
+      </if>
+      <if test="massMessaging != null">
+        mass_messaging = #{massMessaging,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where official_id = #{officialId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationOfficialManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_official_manage
+    set station_id = #{stationId,jdbcType=INTEGER},
+      station_name = #{stationName,jdbcType=VARCHAR},
+      wx_card_manage = #{wxCardManage,jdbcType=VARCHAR},
+      menu_manage = #{menuManage,jdbcType=VARCHAR},
+      mass_messaging = #{massMessaging,jdbcType=VARCHAR}
+    where official_id = #{officialId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 336 - 0
YijiaRestful/src/main/resources/mapper/StationOilAdjustPriceMapper.xml

@@ -0,0 +1,336 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.StationOilAdjustPriceMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationOilAdjustPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="adjust_price_id" jdbcType="INTEGER" property="adjustPriceId" />
+    <result column="oil_name" jdbcType="VARCHAR" property="oilName" />
+    <result column="oil_adjust_price" jdbcType="VARCHAR" property="oilAdjustPrice" />
+    <result column="take_effect_status" jdbcType="CHAR" property="takeEffectStatus" />
+    <result column="take_effect_date" jdbcType="TIMESTAMP" property="takeEffectDate" />
+    <result column="adjust_date" jdbcType="TIMESTAMP" property="adjustDate" />
+    <result column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+    <result column="operator" jdbcType="VARCHAR" property="operator" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    adjust_price_id, oil_name, oil_adjust_price, take_effect_status, take_effect_date, 
+    adjust_date, station_id, station_name, operator
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.StationOilAdjustPriceExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from station_oil_adjust_price
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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_adjust_price
+    where adjust_price_id = #{adjustPriceId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_oil_adjust_price
+    where adjust_price_id = #{adjustPriceId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationOilAdjustPriceExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_oil_adjust_price
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationOilAdjustPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_oil_adjust_price (adjust_price_id, oil_name, oil_adjust_price, 
+      take_effect_status, take_effect_date, adjust_date, 
+      station_id, station_name, operator
+      )
+    values (#{adjustPriceId,jdbcType=INTEGER}, #{oilName,jdbcType=VARCHAR}, #{oilAdjustPrice,jdbcType=VARCHAR}, 
+      #{takeEffectStatus,jdbcType=CHAR}, #{takeEffectDate,jdbcType=TIMESTAMP}, #{adjustDate,jdbcType=TIMESTAMP}, 
+      #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationOilAdjustPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_oil_adjust_price
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="adjustPriceId != null">
+        adjust_price_id,
+      </if>
+      <if test="oilName != null">
+        oil_name,
+      </if>
+      <if test="oilAdjustPrice != null">
+        oil_adjust_price,
+      </if>
+      <if test="takeEffectStatus != null">
+        take_effect_status,
+      </if>
+      <if test="takeEffectDate != null">
+        take_effect_date,
+      </if>
+      <if test="adjustDate != null">
+        adjust_date,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+      <if test="operator != null">
+        operator,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="adjustPriceId != null">
+        #{adjustPriceId,jdbcType=INTEGER},
+      </if>
+      <if test="oilName != null">
+        #{oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="oilAdjustPrice != null">
+        #{oilAdjustPrice,jdbcType=VARCHAR},
+      </if>
+      <if test="takeEffectStatus != null">
+        #{takeEffectStatus,jdbcType=CHAR},
+      </if>
+      <if test="takeEffectDate != null">
+        #{takeEffectDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="adjustDate != null">
+        #{adjustDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="operator != null">
+        #{operator,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationOilAdjustPriceExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_oil_adjust_price
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_adjust_price
+    <set>
+      <if test="record.adjustPriceId != null">
+        adjust_price_id = #{record.adjustPriceId,jdbcType=INTEGER},
+      </if>
+      <if test="record.oilName != null">
+        oil_name = #{record.oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.oilAdjustPrice != null">
+        oil_adjust_price = #{record.oilAdjustPrice,jdbcType=VARCHAR},
+      </if>
+      <if test="record.takeEffectStatus != null">
+        take_effect_status = #{record.takeEffectStatus,jdbcType=CHAR},
+      </if>
+      <if test="record.takeEffectDate != null">
+        take_effect_date = #{record.takeEffectDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.adjustDate != null">
+        adjust_date = #{record.adjustDate,jdbcType=TIMESTAMP},
+      </if>
+      <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.operator != null">
+        operator = #{record.operator,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_adjust_price
+    set adjust_price_id = #{record.adjustPriceId,jdbcType=INTEGER},
+      oil_name = #{record.oilName,jdbcType=VARCHAR},
+      oil_adjust_price = #{record.oilAdjustPrice,jdbcType=VARCHAR},
+      take_effect_status = #{record.takeEffectStatus,jdbcType=CHAR},
+      take_effect_date = #{record.takeEffectDate,jdbcType=TIMESTAMP},
+      adjust_date = #{record.adjustDate,jdbcType=TIMESTAMP},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      operator = #{record.operator,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationOilAdjustPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_adjust_price
+    <set>
+      <if test="oilName != null">
+        oil_name = #{oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="oilAdjustPrice != null">
+        oil_adjust_price = #{oilAdjustPrice,jdbcType=VARCHAR},
+      </if>
+      <if test="takeEffectStatus != null">
+        take_effect_status = #{takeEffectStatus,jdbcType=CHAR},
+      </if>
+      <if test="takeEffectDate != null">
+        take_effect_date = #{takeEffectDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="adjustDate != null">
+        adjust_date = #{adjustDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="stationId != null">
+        station_id = #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        station_name = #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="operator != null">
+        operator = #{operator,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where adjust_price_id = #{adjustPriceId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationOilAdjustPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_adjust_price
+    set oil_name = #{oilName,jdbcType=VARCHAR},
+      oil_adjust_price = #{oilAdjustPrice,jdbcType=VARCHAR},
+      take_effect_status = #{takeEffectStatus,jdbcType=CHAR},
+      take_effect_date = #{takeEffectDate,jdbcType=TIMESTAMP},
+      adjust_date = #{adjustDate,jdbcType=TIMESTAMP},
+      station_id = #{stationId,jdbcType=INTEGER},
+      station_name = #{stationName,jdbcType=VARCHAR},
+      operator = #{operator,jdbcType=VARCHAR}
+    where adjust_price_id = #{adjustPriceId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 288 - 0
YijiaRestful/src/main/resources/mapper/StationOilGunMapper.xml

@@ -0,0 +1,288 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!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="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+    <result column="date" jdbcType="TIMESTAMP" property="date" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </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, station_id, station_name, 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
+    </if>
+    <include refid="Base_Column_List" />
+    from station_oil_gun
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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
+    where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_oil_gun
+    where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationOilGunExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_oil_gun
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationOilGun">
+    <!--
+      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>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationOilGun">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_oil_gun
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="oilGunId != null">
+        oil_gun_id,
+      </if>
+      <if test="oilGunNo != null">
+        oil_gun_no,
+      </if>
+      <if test="oilName != null">
+        oil_name,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+      <if test="date != null">
+        date,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="oilGunId != null">
+        #{oilGunId,jdbcType=INTEGER},
+      </if>
+      <if test="oilGunNo != null">
+        #{oilGunNo,jdbcType=VARCHAR},
+      </if>
+      <if test="oilName != null">
+        #{oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="date != null">
+        #{date,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationOilGunExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_oil_gun
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_gun
+    <set>
+      <if test="record.oilGunId != null">
+        oil_gun_id = #{record.oilGunId,jdbcType=INTEGER},
+      </if>
+      <if test="record.oilGunNo != null">
+        oil_gun_no = #{record.oilGunNo,jdbcType=VARCHAR},
+      </if>
+      <if test="record.oilName != null">
+        oil_name = #{record.oilName,jdbcType=VARCHAR},
+      </if>
+      <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>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_gun
+    set oil_gun_id = #{record.oilGunId,jdbcType=INTEGER},
+      oil_gun_no = #{record.oilGunNo,jdbcType=VARCHAR},
+      oil_name = #{record.oilName,jdbcType=VARCHAR},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      date = #{record.date,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationOilGun">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_gun
+    <set>
+      <if test="oilGunNo != null">
+        oil_gun_no = #{oilGunNo,jdbcType=VARCHAR},
+      </if>
+      <if test="oilName != null">
+        oil_name = #{oilName,jdbcType=VARCHAR},
+      </if>
+      <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>
+    </set>
+    where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationOilGun">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_gun
+    set oil_gun_no = #{oilGunNo,jdbcType=VARCHAR},
+      oil_name = #{oilName,jdbcType=VARCHAR},
+      station_id = #{stationId,jdbcType=INTEGER},
+      station_name = #{stationName,jdbcType=VARCHAR},
+      date = #{date,jdbcType=TIMESTAMP}
+    where oil_gun_id = #{oilGunId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 288 - 0
YijiaRestful/src/main/resources/mapper/StationOilPriceMapper.xml

@@ -0,0 +1,288 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.StationOilPriceMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationOilPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="oil_price_id" jdbcType="INTEGER" property="oilPriceId" />
+    <result column="oil_name" jdbcType="VARCHAR" property="oilName" />
+    <result column="oil_price" jdbcType="VARCHAR" property="oilPrice" />
+    <result column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_nanme" jdbcType="VARCHAR" property="stationNanme" />
+    <result column="date" jdbcType="TIMESTAMP" property="date" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    oil_price_id, oil_name, oil_price, station_id, station_nanme, date
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.StationOilPriceExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from station_oil_price
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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_price
+    where oil_price_id = #{oilPriceId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_oil_price
+    where oil_price_id = #{oilPriceId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationOilPriceExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_oil_price
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationOilPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_oil_price (oil_price_id, oil_name, oil_price, 
+      station_id, station_nanme, date
+      )
+    values (#{oilPriceId,jdbcType=INTEGER}, #{oilName,jdbcType=VARCHAR}, #{oilPrice,jdbcType=VARCHAR}, 
+      #{stationId,jdbcType=INTEGER}, #{stationNanme,jdbcType=VARCHAR}, #{date,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationOilPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_oil_price
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="oilPriceId != null">
+        oil_price_id,
+      </if>
+      <if test="oilName != null">
+        oil_name,
+      </if>
+      <if test="oilPrice != null">
+        oil_price,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationNanme != null">
+        station_nanme,
+      </if>
+      <if test="date != null">
+        date,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="oilPriceId != null">
+        #{oilPriceId,jdbcType=INTEGER},
+      </if>
+      <if test="oilName != null">
+        #{oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="oilPrice != null">
+        #{oilPrice,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationNanme != null">
+        #{stationNanme,jdbcType=VARCHAR},
+      </if>
+      <if test="date != null">
+        #{date,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationOilPriceExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_oil_price
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_price
+    <set>
+      <if test="record.oilPriceId != null">
+        oil_price_id = #{record.oilPriceId,jdbcType=INTEGER},
+      </if>
+      <if test="record.oilName != null">
+        oil_name = #{record.oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.oilPrice != null">
+        oil_price = #{record.oilPrice,jdbcType=VARCHAR},
+      </if>
+      <if test="record.stationId != null">
+        station_id = #{record.stationId,jdbcType=INTEGER},
+      </if>
+      <if test="record.stationNanme != null">
+        station_nanme = #{record.stationNanme,jdbcType=VARCHAR},
+      </if>
+      <if test="record.date != null">
+        date = #{record.date,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_price
+    set oil_price_id = #{record.oilPriceId,jdbcType=INTEGER},
+      oil_name = #{record.oilName,jdbcType=VARCHAR},
+      oil_price = #{record.oilPrice,jdbcType=VARCHAR},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_nanme = #{record.stationNanme,jdbcType=VARCHAR},
+      date = #{record.date,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationOilPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_price
+    <set>
+      <if test="oilName != null">
+        oil_name = #{oilName,jdbcType=VARCHAR},
+      </if>
+      <if test="oilPrice != null">
+        oil_price = #{oilPrice,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        station_id = #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationNanme != null">
+        station_nanme = #{stationNanme,jdbcType=VARCHAR},
+      </if>
+      <if test="date != null">
+        date = #{date,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where oil_price_id = #{oilPriceId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationOilPrice">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_oil_price
+    set oil_name = #{oilName,jdbcType=VARCHAR},
+      oil_price = #{oilPrice,jdbcType=VARCHAR},
+      station_id = #{stationId,jdbcType=INTEGER},
+      station_nanme = #{stationNanme,jdbcType=VARCHAR},
+      date = #{date,jdbcType=TIMESTAMP}
+    where oil_price_id = #{oilPriceId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 458 - 0
YijiaRestful/src/main/resources/mapper/StationPayManageMapper.xml

@@ -0,0 +1,458 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.StationPayManageMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationPayManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="pay_id" jdbcType="INTEGER" property="payId" />
+    <result column="pay_mode" jdbcType="VARCHAR" property="payMode" />
+    <result column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+    <result column="image_photos_flag" jdbcType="CHAR" property="imagePhotosFlag" />
+    <result column="card_enabled_flag" jdbcType="CHAR" property="cardEnabledFlag" />
+    <result column="preferential_way_share_flag" jdbcType="CHAR" property="preferentialWayShareFlag" />
+    <result column="other_preferential_way" jdbcType="VARCHAR" property="otherPreferentialWay" />
+    <result column="pay_print_num" jdbcType="INTEGER" property="payPrintNum" />
+    <result column="pay_callback_page" jdbcType="VARCHAR" property="payCallbackPage" />
+    <result column="ws_print_flag" jdbcType="CHAR" property="wsPrintFlag" />
+  </resultMap>
+  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.platform.yijia.pojo.StationPayManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <result column="activity_pic" jdbcType="LONGVARBINARY" property="activityPic" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    pay_id, pay_mode, station_id, station_name, image_photos_flag, card_enabled_flag, 
+    preferential_way_share_flag, other_preferential_way, pay_print_num, pay_callback_page, 
+    ws_print_flag
+  </sql>
+  <sql id="Blob_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    activity_pic
+  </sql>
+  <select id="selectByExampleWithBLOBs" parameterType="com.platform.yijia.pojo.StationPayManageExample" resultMap="ResultMapWithBLOBs">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from station_pay_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.StationPayManageExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from station_pay_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from station_pay_manage
+    where pay_id = #{payId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_pay_manage
+    where pay_id = #{payId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationPayManageExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_pay_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationPayManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_pay_manage (pay_id, pay_mode, station_id, 
+      station_name, image_photos_flag, card_enabled_flag, 
+      preferential_way_share_flag, other_preferential_way, 
+      pay_print_num, pay_callback_page, ws_print_flag, 
+      activity_pic)
+    values (#{payId,jdbcType=INTEGER}, #{payMode,jdbcType=VARCHAR}, #{stationId,jdbcType=INTEGER}, 
+      #{stationName,jdbcType=VARCHAR}, #{imagePhotosFlag,jdbcType=CHAR}, #{cardEnabledFlag,jdbcType=CHAR}, 
+      #{preferentialWayShareFlag,jdbcType=CHAR}, #{otherPreferentialWay,jdbcType=VARCHAR}, 
+      #{payPrintNum,jdbcType=INTEGER}, #{payCallbackPage,jdbcType=VARCHAR}, #{wsPrintFlag,jdbcType=CHAR}, 
+      #{activityPic,jdbcType=LONGVARBINARY})
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationPayManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_pay_manage
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="payId != null">
+        pay_id,
+      </if>
+      <if test="payMode != null">
+        pay_mode,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+      <if test="imagePhotosFlag != null">
+        image_photos_flag,
+      </if>
+      <if test="cardEnabledFlag != null">
+        card_enabled_flag,
+      </if>
+      <if test="preferentialWayShareFlag != null">
+        preferential_way_share_flag,
+      </if>
+      <if test="otherPreferentialWay != null">
+        other_preferential_way,
+      </if>
+      <if test="payPrintNum != null">
+        pay_print_num,
+      </if>
+      <if test="payCallbackPage != null">
+        pay_callback_page,
+      </if>
+      <if test="wsPrintFlag != null">
+        ws_print_flag,
+      </if>
+      <if test="activityPic != null">
+        activity_pic,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="payId != null">
+        #{payId,jdbcType=INTEGER},
+      </if>
+      <if test="payMode != null">
+        #{payMode,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="imagePhotosFlag != null">
+        #{imagePhotosFlag,jdbcType=CHAR},
+      </if>
+      <if test="cardEnabledFlag != null">
+        #{cardEnabledFlag,jdbcType=CHAR},
+      </if>
+      <if test="preferentialWayShareFlag != null">
+        #{preferentialWayShareFlag,jdbcType=CHAR},
+      </if>
+      <if test="otherPreferentialWay != null">
+        #{otherPreferentialWay,jdbcType=VARCHAR},
+      </if>
+      <if test="payPrintNum != null">
+        #{payPrintNum,jdbcType=INTEGER},
+      </if>
+      <if test="payCallbackPage != null">
+        #{payCallbackPage,jdbcType=VARCHAR},
+      </if>
+      <if test="wsPrintFlag != null">
+        #{wsPrintFlag,jdbcType=CHAR},
+      </if>
+      <if test="activityPic != null">
+        #{activityPic,jdbcType=LONGVARBINARY},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationPayManageExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_pay_manage
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_pay_manage
+    <set>
+      <if test="record.payId != null">
+        pay_id = #{record.payId,jdbcType=INTEGER},
+      </if>
+      <if test="record.payMode != null">
+        pay_mode = #{record.payMode,jdbcType=VARCHAR},
+      </if>
+      <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.imagePhotosFlag != null">
+        image_photos_flag = #{record.imagePhotosFlag,jdbcType=CHAR},
+      </if>
+      <if test="record.cardEnabledFlag != null">
+        card_enabled_flag = #{record.cardEnabledFlag,jdbcType=CHAR},
+      </if>
+      <if test="record.preferentialWayShareFlag != null">
+        preferential_way_share_flag = #{record.preferentialWayShareFlag,jdbcType=CHAR},
+      </if>
+      <if test="record.otherPreferentialWay != null">
+        other_preferential_way = #{record.otherPreferentialWay,jdbcType=VARCHAR},
+      </if>
+      <if test="record.payPrintNum != null">
+        pay_print_num = #{record.payPrintNum,jdbcType=INTEGER},
+      </if>
+      <if test="record.payCallbackPage != null">
+        pay_callback_page = #{record.payCallbackPage,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wsPrintFlag != null">
+        ws_print_flag = #{record.wsPrintFlag,jdbcType=CHAR},
+      </if>
+      <if test="record.activityPic != null">
+        activity_pic = #{record.activityPic,jdbcType=LONGVARBINARY},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExampleWithBLOBs" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_pay_manage
+    set pay_id = #{record.payId,jdbcType=INTEGER},
+      pay_mode = #{record.payMode,jdbcType=VARCHAR},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      image_photos_flag = #{record.imagePhotosFlag,jdbcType=CHAR},
+      card_enabled_flag = #{record.cardEnabledFlag,jdbcType=CHAR},
+      preferential_way_share_flag = #{record.preferentialWayShareFlag,jdbcType=CHAR},
+      other_preferential_way = #{record.otherPreferentialWay,jdbcType=VARCHAR},
+      pay_print_num = #{record.payPrintNum,jdbcType=INTEGER},
+      pay_callback_page = #{record.payCallbackPage,jdbcType=VARCHAR},
+      ws_print_flag = #{record.wsPrintFlag,jdbcType=CHAR},
+      activity_pic = #{record.activityPic,jdbcType=LONGVARBINARY}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_pay_manage
+    set pay_id = #{record.payId,jdbcType=INTEGER},
+      pay_mode = #{record.payMode,jdbcType=VARCHAR},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      image_photos_flag = #{record.imagePhotosFlag,jdbcType=CHAR},
+      card_enabled_flag = #{record.cardEnabledFlag,jdbcType=CHAR},
+      preferential_way_share_flag = #{record.preferentialWayShareFlag,jdbcType=CHAR},
+      other_preferential_way = #{record.otherPreferentialWay,jdbcType=VARCHAR},
+      pay_print_num = #{record.payPrintNum,jdbcType=INTEGER},
+      pay_callback_page = #{record.payCallbackPage,jdbcType=VARCHAR},
+      ws_print_flag = #{record.wsPrintFlag,jdbcType=CHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationPayManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_pay_manage
+    <set>
+      <if test="payMode != null">
+        pay_mode = #{payMode,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        station_id = #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        station_name = #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="imagePhotosFlag != null">
+        image_photos_flag = #{imagePhotosFlag,jdbcType=CHAR},
+      </if>
+      <if test="cardEnabledFlag != null">
+        card_enabled_flag = #{cardEnabledFlag,jdbcType=CHAR},
+      </if>
+      <if test="preferentialWayShareFlag != null">
+        preferential_way_share_flag = #{preferentialWayShareFlag,jdbcType=CHAR},
+      </if>
+      <if test="otherPreferentialWay != null">
+        other_preferential_way = #{otherPreferentialWay,jdbcType=VARCHAR},
+      </if>
+      <if test="payPrintNum != null">
+        pay_print_num = #{payPrintNum,jdbcType=INTEGER},
+      </if>
+      <if test="payCallbackPage != null">
+        pay_callback_page = #{payCallbackPage,jdbcType=VARCHAR},
+      </if>
+      <if test="wsPrintFlag != null">
+        ws_print_flag = #{wsPrintFlag,jdbcType=CHAR},
+      </if>
+      <if test="activityPic != null">
+        activity_pic = #{activityPic,jdbcType=LONGVARBINARY},
+      </if>
+    </set>
+    where pay_id = #{payId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.platform.yijia.pojo.StationPayManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_pay_manage
+    set pay_mode = #{payMode,jdbcType=VARCHAR},
+      station_id = #{stationId,jdbcType=INTEGER},
+      station_name = #{stationName,jdbcType=VARCHAR},
+      image_photos_flag = #{imagePhotosFlag,jdbcType=CHAR},
+      card_enabled_flag = #{cardEnabledFlag,jdbcType=CHAR},
+      preferential_way_share_flag = #{preferentialWayShareFlag,jdbcType=CHAR},
+      other_preferential_way = #{otherPreferentialWay,jdbcType=VARCHAR},
+      pay_print_num = #{payPrintNum,jdbcType=INTEGER},
+      pay_callback_page = #{payCallbackPage,jdbcType=VARCHAR},
+      ws_print_flag = #{wsPrintFlag,jdbcType=CHAR},
+      activity_pic = #{activityPic,jdbcType=LONGVARBINARY}
+    where pay_id = #{payId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationPayManage">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_pay_manage
+    set pay_mode = #{payMode,jdbcType=VARCHAR},
+      station_id = #{stationId,jdbcType=INTEGER},
+      station_name = #{stationName,jdbcType=VARCHAR},
+      image_photos_flag = #{imagePhotosFlag,jdbcType=CHAR},
+      card_enabled_flag = #{cardEnabledFlag,jdbcType=CHAR},
+      preferential_way_share_flag = #{preferentialWayShareFlag,jdbcType=CHAR},
+      other_preferential_way = #{otherPreferentialWay,jdbcType=VARCHAR},
+      pay_print_num = #{payPrintNum,jdbcType=INTEGER},
+      pay_callback_page = #{payCallbackPage,jdbcType=VARCHAR},
+      ws_print_flag = #{wsPrintFlag,jdbcType=CHAR}
+    where pay_id = #{payId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 303 - 0
YijiaRestful/src/main/resources/mapper/StationPersonnelMapper.xml

@@ -0,0 +1,303 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.platform.yijia.dao.StationPersonnelMapper">
+  <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationPersonnel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="personnel_id" jdbcType="INTEGER" property="personnelId" />
+    <result column="personnel_name" jdbcType="VARCHAR" property="personnelName" />
+    <result column="gun_no" jdbcType="VARCHAR" property="gunNo" />
+    <result column="station_id" jdbcType="INTEGER" property="stationId" />
+    <result column="station_name" jdbcType="VARCHAR" property="stationName" />
+    <result column="qr_code" jdbcType="VARCHAR" property="qrCode" />
+    <result column="personnel_phone" jdbcType="VARCHAR" property="personnelPhone" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    personnel_id, personnel_name, gun_no, station_id, station_name, qr_code, personnel_phone
+  </sql>
+  <select id="selectByExample" parameterType="com.platform.yijia.pojo.StationPersonnelExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from station_personnel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </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_personnel
+    where personnel_id = #{personnelId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_personnel
+    where personnel_id = #{personnelId,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.StationPersonnelExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from station_personnel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.platform.yijia.pojo.StationPersonnel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_personnel (personnel_id, personnel_name, gun_no, 
+      station_id, station_name, qr_code, 
+      personnel_phone)
+    values (#{personnelId,jdbcType=INTEGER}, #{personnelName,jdbcType=VARCHAR}, #{gunNo,jdbcType=VARCHAR}, 
+      #{stationId,jdbcType=INTEGER}, #{stationName,jdbcType=VARCHAR}, #{qrCode,jdbcType=VARCHAR}, 
+      #{personnelPhone,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.platform.yijia.pojo.StationPersonnel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into station_personnel
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="personnelId != null">
+        personnel_id,
+      </if>
+      <if test="personnelName != null">
+        personnel_name,
+      </if>
+      <if test="gunNo != null">
+        gun_no,
+      </if>
+      <if test="stationId != null">
+        station_id,
+      </if>
+      <if test="stationName != null">
+        station_name,
+      </if>
+      <if test="qrCode != null">
+        qr_code,
+      </if>
+      <if test="personnelPhone != null">
+        personnel_phone,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="personnelId != null">
+        #{personnelId,jdbcType=INTEGER},
+      </if>
+      <if test="personnelName != null">
+        #{personnelName,jdbcType=VARCHAR},
+      </if>
+      <if test="gunNo != null">
+        #{gunNo,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="qrCode != null">
+        #{qrCode,jdbcType=VARCHAR},
+      </if>
+      <if test="personnelPhone != null">
+        #{personnelPhone,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.platform.yijia.pojo.StationPersonnelExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from station_personnel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_personnel
+    <set>
+      <if test="record.personnelId != null">
+        personnel_id = #{record.personnelId,jdbcType=INTEGER},
+      </if>
+      <if test="record.personnelName != null">
+        personnel_name = #{record.personnelName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.gunNo != null">
+        gun_no = #{record.gunNo,jdbcType=VARCHAR},
+      </if>
+      <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.qrCode != null">
+        qr_code = #{record.qrCode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.personnelPhone != null">
+        personnel_phone = #{record.personnelPhone,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_personnel
+    set personnel_id = #{record.personnelId,jdbcType=INTEGER},
+      personnel_name = #{record.personnelName,jdbcType=VARCHAR},
+      gun_no = #{record.gunNo,jdbcType=VARCHAR},
+      station_id = #{record.stationId,jdbcType=INTEGER},
+      station_name = #{record.stationName,jdbcType=VARCHAR},
+      qr_code = #{record.qrCode,jdbcType=VARCHAR},
+      personnel_phone = #{record.personnelPhone,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.platform.yijia.pojo.StationPersonnel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_personnel
+    <set>
+      <if test="personnelName != null">
+        personnel_name = #{personnelName,jdbcType=VARCHAR},
+      </if>
+      <if test="gunNo != null">
+        gun_no = #{gunNo,jdbcType=VARCHAR},
+      </if>
+      <if test="stationId != null">
+        station_id = #{stationId,jdbcType=INTEGER},
+      </if>
+      <if test="stationName != null">
+        station_name = #{stationName,jdbcType=VARCHAR},
+      </if>
+      <if test="qrCode != null">
+        qr_code = #{qrCode,jdbcType=VARCHAR},
+      </if>
+      <if test="personnelPhone != null">
+        personnel_phone = #{personnelPhone,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where personnel_id = #{personnelId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.platform.yijia.pojo.StationPersonnel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update station_personnel
+    set personnel_name = #{personnelName,jdbcType=VARCHAR},
+      gun_no = #{gunNo,jdbcType=VARCHAR},
+      station_id = #{stationId,jdbcType=INTEGER},
+      station_name = #{stationName,jdbcType=VARCHAR},
+      qr_code = #{qrCode,jdbcType=VARCHAR},
+      personnel_phone = #{personnelPhone,jdbcType=VARCHAR}
+    where personnel_id = #{personnelId,jdbcType=INTEGER}
+  </update>
+</mapper>