Ver código fonte

【CHG】统一部分常见字段和表名

ZhaoMn 4 anos atrás
pai
commit
d50889828a

+ 94 - 102
railway-business/src/main/resources/mapper/catenary/BusJcebGjsfxMapper.xml

@@ -5,11 +5,11 @@
 
   <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcebGjsfx">
     <result column="id" property="id"/>
-    <result column="qj_id" property="qjId"/>
-    <result column="qj" property="qj"/>
-    <result column="zzh_start" property="zzhStart"/>
-    <result column="zzh_end" property="zzhEnd"/>
-    <result column="jcrq" property="jcrq"/>
+    <result column="station_id" property="stationId"/>
+    <result column="station_name" property="stationName"/>
+    <result column="pillarStart" property="pillarStart"/>
+    <result column="pillar_end" property="pillarEnd"/>
+    <result column="operation_date" property="operationDate"/>
     <result column="lmdjcspjl_zhz1" property="lmdjcspjlZhz1"/>
     <result column="lmdjcspjl_zhz2" property="lmdjcspjlZhz2"/>
     <result column="lmdjcspjl_zxz2" property="lmdjcspjlZxz2"/>
@@ -23,7 +23,7 @@
     <result column="kgyxdcljzt" property="kgyxdcljzt"/>
     <result column="jyjsffhbz" property="jyjsffhbz"/>
     <result column="xmzjcxcztyyggjcctg" property="xmzjcxcztyyggjcctg"/>
-    <result column="jcr" property="jcr"/>
+    <result column="operator" property="operator"/>
     <result column="remark" property="remark"/>
     <result column="submit_state" property="submitState"/>
     <result column="del_flag" property="delFlag"/>
@@ -34,33 +34,33 @@
   </resultMap>
 
   <sql id="Base_Column_List">
-    id,
-    qj_id,
-    qj,
-    zzh_start,
-    zzh_end,
-    jcrq,
-    lmdjcspjl_zhz1,
-    lmdjcspjl_zhz2,
-    lmdjcspjl_zxz2,
-    lmdjcspjl_zhz3,
-    lmdjcspjl_zhz4,
-    lmdjcczjl_zhz1,
-    lmdjcczjl_zhz2,
-    lmdjcczjl_zxz2,
-    lmdjcczjl_zhz3,
-    lmdjcczjl_zhz4,
-    kgyxdcljzt,
-    jyjsffhbz,
-    xmzjcxcztyyggjcctg,
-    jcr,
-    remark,
-    submit_state,
-    del_flag,
-    create_by,
-    create_time,
-    update_by,
-    update_time
+    t.id,
+    t.station_id,
+    v.station_name,
+    t.pillar_start,
+    t.pillar_end,
+    t.operation_date,
+    t.lmdjcspjl_zhz1,
+    t.lmdjcspjl_zhz2,
+    t.lmdjcspjl_zxz2,
+    t.lmdjcspjl_zhz3,
+    t.lmdjcspjl_zhz4,
+    t.lmdjcczjl_zhz1,
+    t.lmdjcczjl_zhz2,
+    t.lmdjcczjl_zxz2,
+    t.lmdjcczjl_zhz3,
+    t.lmdjcczjl_zhz4,
+    t.kgyxdcljzt,
+    t.jyjsffhbz,
+    t.xmzjcxcztyyggjcctg,
+    t.operator,
+    t.remark,
+    t.submit_state,
+    t.del_flag,
+    t.create_by,
+    t.create_time,
+    t.update_by,
+    t.update_time
   </sql>
 
   <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcebGjsfx">
@@ -69,20 +69,17 @@
     </selectKey>
     INSERT INTO bus_jceb_gjsfx
     <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test='null != qjId'>
-        qj_id,
+      <if test='null != stationId'>
+        station_id,
       </if>
-      <if test='null != qj'>
-        qj,
+      <if test='null != pillarStart'>
+        pillar_start,
       </if>
-      <if test='null != zzhStart'>
-        zzh_start,
+      <if test='null != pillarEnd'>
+        pillar_end,
       </if>
-      <if test='null != zzhEnd'>
-        zzh_end,
-      </if>
-      <if test='null != jcrq'>
-        jcrq,
+      <if test='null != operationDate'>
+        operation_date,
       </if>
       <if test='null != lmdjcspjlZhz1'>
         lmdjcspjl_zhz1,
@@ -123,8 +120,8 @@
       <if test='null != xmzjcxcztyyggjcctg'>
         xmzjcxcztyyggjcctg,
       </if>
-      <if test='null != jcr'>
-        jcr,
+      <if test='null != operator'>
+        operator,
       </if>
       <if test='null != remark'>
         remark,
@@ -149,20 +146,17 @@
       </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test='null != qjId'>
-        #{qjId},
-      </if>
-      <if test='null != qj'>
-        #{qj},
+      <if test='null != stationId'>
+        #{stationId},
       </if>
-      <if test='null != zzhStart'>
-        #{zzhStart},
+      <if test='null != pillarStart'>
+        #{pillarStart},
       </if>
-      <if test='null != zzhEnd'>
-        #{zzhEnd},
+      <if test='null != pillarEnd'>
+        #{pillarEnd},
       </if>
-      <if test='null != jcrq'>
-        #{jcrq},
+      <if test='null != operationDate'>
+        #{operationDate},
       </if>
       <if test='null != lmdjcspjlZhz1'>
         #{lmdjcspjlZhz1},
@@ -203,8 +197,8 @@
       <if test='null != xmzjcxcztyyggjcctg'>
         #{xmzjcxcztyyggjcctg},
       </if>
-      <if test='null != jcr'>
-        #{jcr},
+      <if test='null != operator'>
+        #{operator},
       </if>
       <if test='null != remark'>
         #{remark},
@@ -239,11 +233,10 @@
   <update id="update" parameterType="com.railway.business.catenary.domain.BusJcebGjsfx">
     UPDATE bus_jceb_gjsfx
     <set>
-      <if test='null != qjId'>qj_id = #{qjId},</if>
-      <if test='null != qj'>qj = #{qj},</if>
-      <if test='null != zzhStart'>zzh_start = #{zzhStart},</if>
-      <if test='null != zzhEnd'>zzh_end = #{zzhEnd},</if>
-      <if test='null != jcrq'>jcrq = #{jcrq},</if>
+      <if test='null != stationId'>station_id = #{stationId},</if>
+      <if test='null != pillarStart'>pillar_start = #{pillarStart},</if>
+      <if test='null != pillarEnd'>pillar_end = #{pillarEnd},</if>
+      <if test='null != operationDate'>operation_date = #{operationDate},</if>
       <if test='null != lmdjcspjlZhz1'>lmdjcspjl_zhz1 = #{lmdjcspjlZhz1},</if>
       <if test='null != lmdjcspjlZhz2'>lmdjcspjl_zhz2 = #{lmdjcspjlZhz2},</if>
       <if test='null != lmdjcspjlZxz2'>lmdjcspjl_zxz2 = #{lmdjcspjlZxz2},</if>
@@ -257,7 +250,7 @@
       <if test='null != kgyxdcljzt'>kgyxdcljzt = #{kgyxdcljzt},</if>
       <if test='null != jyjsffhbz'>jyjsffhbz = #{jyjsffhbz},</if>
       <if test='null != xmzjcxcztyyggjcctg'>xmzjcxcztyyggjcctg = #{xmzjcxcztyyggjcctg},</if>
-      <if test='null != jcr'>jcr = #{jcr},</if>
+      <if test='null != operator'>operator = #{operator},</if>
       <if test='null != remark'>remark = #{remark},</if>
       <if test='null != submitState'>submit_state = #{submitState},</if>
       <if test='null != delFlag'>del_flag = #{delFlag},</if>
@@ -273,94 +266,93 @@
   <select id="getInfo" resultMap="BaseResultMap">
     SELECT
     <include refid="Base_Column_List"/>
-    FROM bus_jceb_gjsfx
-    WHERE del_flag='0' and id = #{id}
+    FROM bus_jceb_gjsfx t
+    LEFT JOIN v_station v on t.station_id = v.station_id
+    WHERE t.del_flag='0' and t.id = #{id}
 
   </select>
 
   <select id="getList" resultMap="BaseResultMap">
     SELECT
     <include refid="Base_Column_List"/>
-    FROM bus_jceb_gjsfx
+    FROM bus_jceb_gjsfx t
+    LEFT JOIN v_station v on t.station_id = v.station_id
     <where>
-      del_flag='0'
-      <if test="qjId!=null and qjId!=''">
-        and qj_id=#{qjId}
-      </if>
-      <if test="qj!=null and qj!=''">
-        and qj=#{qj}
+      t.del_flag='0'
+      <if test="stationId!=null and stationId!=''">
+        and t.station_id=#{stationId}
       </if>
-      <if test="zzhStart!=null and zzhStart!=''">
-        and zzh_start=#{zzhStart}
+      <if test="pillarStart!=null and pillarStart!=''">
+        and t.pillar_start=#{pillarStart}
       </if>
-      <if test="zzhEnd!=null and zzhEnd!=''">
-        and zzh_end=#{zzhEnd}
+      <if test="pillarEnd!=null and pillarEnd!=''">
+        and t.pillar_end=#{pillarEnd}
       </if>
-      <if test="jcrq!=null and jcrq!=''">
-        and jcrq=#{jcrq}
+      <if test="operationDate!=null and operationDate!=''">
+        and t.operation_date=#{operationDate}
       </if>
       <if test="lmdjcspjlZhz1!=null and lmdjcspjlZhz1!=''">
-        and lmdjcspjl_zhz1=#{lmdjcspjlZhz1}
+        and t.lmdjcspjl_zhz1=#{lmdjcspjlZhz1}
       </if>
       <if test="lmdjcspjlZhz2!=null and lmdjcspjlZhz2!=''">
-        and lmdjcspjl_zhz2=#{lmdjcspjlZhz2}
+        and t.lmdjcspjl_zhz2=#{lmdjcspjlZhz2}
       </if>
       <if test="lmdjcspjlZxz2!=null and lmdjcspjlZxz2!=''">
-        and lmdjcspjl_zxz2=#{lmdjcspjlZxz2}
+        and t.lmdjcspjl_zxz2=#{lmdjcspjlZxz2}
       </if>
       <if test="lmdjcspjlZhz3!=null and lmdjcspjlZhz3!=''">
-        and lmdjcspjl_zhz3=#{lmdjcspjlZhz3}
+        and t.lmdjcspjl_zhz3=#{lmdjcspjlZhz3}
       </if>
       <if test="lmdjcspjlZhz4!=null and lmdjcspjlZhz4!=''">
-        and lmdjcspjl_zhz4=#{lmdjcspjlZhz4}
+        and t.lmdjcspjl_zhz4=#{lmdjcspjlZhz4}
       </if>
       <if test="lmdjcczjlZhz1!=null and lmdjcczjlZhz1!=''">
-        and lmdjcczjl_zhz1=#{lmdjcczjlZhz1}
+        and t.lmdjcczjl_zhz1=#{lmdjcczjlZhz1}
       </if>
       <if test="lmdjcczjlZhz2!=null and lmdjcczjlZhz2!=''">
-        and lmdjcczjl_zhz2=#{lmdjcczjlZhz2}
+        and t.lmdjcczjl_zhz2=#{lmdjcczjlZhz2}
       </if>
       <if test="lmdjcczjlZxz2!=null and lmdjcczjlZxz2!=''">
-        and lmdjcczjl_zxz2=#{lmdjcczjlZxz2}
+        and t.lmdjcczjl_zxz2=#{lmdjcczjlZxz2}
       </if>
       <if test="lmdjcczjlZhz3!=null and lmdjcczjlZhz3!=''">
-        and lmdjcczjl_zhz3=#{lmdjcczjlZhz3}
+        and t.lmdjcczjl_zhz3=#{lmdjcczjlZhz3}
       </if>
       <if test="lmdjcczjlZhz4!=null and lmdjcczjlZhz4!=''">
-        and lmdjcczjl_zhz4=#{lmdjcczjlZhz4}
+        and t.lmdjcczjl_zhz4=#{lmdjcczjlZhz4}
       </if>
       <if test="kgyxdcljzt!=null and kgyxdcljzt!=''">
-        and kgyxdcljzt=#{kgyxdcljzt}
+        and t.kgyxdcljzt=#{kgyxdcljzt}
       </if>
       <if test="jyjsffhbz!=null and jyjsffhbz!=''">
-        and jyjsffhbz=#{jyjsffhbz}
+        and t.jyjsffhbz=#{jyjsffhbz}
       </if>
       <if test="xmzjcxcztyyggjcctg!=null and xmzjcxcztyyggjcctg!=''">
-        and xmzjcxcztyyggjcctg=#{xmzjcxcztyyggjcctg}
+        and t.xmzjcxcztyyggjcctg=#{xmzjcxcztyyggjcctg}
       </if>
-      <if test="jcr!=null and jcr!=''">
-        and jcr=#{jcr}
+      <if test="operator!=null and operator!=''">
+        and t.operator=#{operator}
       </if>
       <if test="remark!=null and remark!=''">
-        and remark=#{remark}
+        and t.remark=#{remark}
       </if>
       <if test="submitState!=null and submitState!=''">
-        and submit_state=#{submitState}
+        and t.submit_state=#{submitState}
       </if>
       <if test="delFlag!=null and delFlag!=''">
-        and del_flag=#{delFlag}
+        and t.del_flag=#{delFlag}
       </if>
       <if test="createBy!=null and createBy!=''">
-        and create_by=#{createBy}
+        and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null and createTime!=''">
-        and create_time=#{createTime}
+        and t.create_time=#{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
-        and update_by=#{updateBy}
+        and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null and updateTime!=''">
-        and update_time=#{updateTime}
+        and t.update_time=#{updateTime}
       </if>
     </where>
   </select>