Kaynağa Gözat

添加各字段名称

tao 2 yıl önce
ebeveyn
işleme
021908f83c

+ 12 - 0
vseaf4.4-cyyzs/src/main/java/cn/com/victorysoft/business/cyyzs/entity/TubularStructure.java

@@ -18,11 +18,21 @@ public class TubularStructure implements Serializable {
      */
     private String dwdm;
 
+    /**
+     * 单位名称
+     */
+    private String dwmc;
+
     /**
      * 单元代码
      */
     private String dydm;
 
+    /**
+     * 单元名称
+     */
+    private String dymc;
+
     /**
      * 井号
      */
@@ -42,6 +52,7 @@ public class TubularStructure implements Serializable {
      * 措施类别
      */
     private String cslb;
+    private String cslbName;
 
     /**
      * 在井时间
@@ -57,6 +68,7 @@ public class TubularStructure implements Serializable {
      * 工艺类型
      */
     private String gylx;
+    private String gylxName;
 
     /**
      * 油管类型

+ 13 - 9
vseaf4.4-cyyzs/src/main/resources/mapper/TubularStructureDao.xml

@@ -23,19 +23,23 @@
     </select>
     <select id="selectDetails" resultType="cn.com.victorysoft.business.cyyzs.entity.TubularStructure">
         select
-            *
+            a.*,
+            (select unitname from sys_unitinfo where unitcode = a.dwdm) dwmc,
+            (select blockname from sys_blockinfo where blockcode = a.dydm) dymc,
+            (select flag_name from sys_flag where flag_code = a.gylx) gylx_name,
+            (select flag_name from sys_flag where flag_code = a.cslb) cslb_name
         from
-            water_tubular_structure
+            water_tubular_structure a
         where
             1 = 1
         <if test="yclx != null and yclx != ''"> </if>
-        <if test="dwdm != null and dwdm != ''"> and dwdm = #{dwdm}</if>
-        <if test="dydm != null and dydm != ''"> and dydm = #{dydm}</if>
-        <if test="jh != null and jh != ''"> and jh = #{jh}</if>
-        <if test="gylx != null and gylx != ''"> and gylx = #{gylx}</if>
-        <if test="fgq != null and fgq != ''"> and fgq = #{fgq}</if>
-        <if test="cdPsq != null and cdPsq != ''"> and cd_psq = #{cdPsq}</if>
-        <if test="xjf != null and xjf != ''"> and xjf = #{xjf}</if>
+        <if test="dwdm != null and dwdm != ''"> and a.dwdm = #{dwdm}</if>
+        <if test="dydm != null and dydm != ''"> and a.dydm = #{dydm}</if>
+        <if test="jh != null and jh != ''"> and a.jh = #{jh}</if>
+        <if test="gylx != null and gylx != ''"> and a.gylx = #{gylx}</if>
+        <if test="fgq != null and fgq != ''"> and a.fgq = #{fgq}</if>
+        <if test="cdPsq != null and cdPsq != ''"> and a.cd_psq = #{cdPsq}</if>
+        <if test="xjf != null and xjf != ''"> and a.xjf = #{xjf}</if>
     </select>