Kaynağa Gözat

:sparkles: 连船记录添加船舶总吨字段

lag 7 ay önce
ebeveyn
işleme
8ca8874a13

+ 3 - 0
ghjg-item-datashare-server/src/main/java/com/shanghaichengdi/ghjgitem/domain/ShorePowerConnRecordInfo.java

@@ -190,6 +190,9 @@ public class ShorePowerConnRecordInfo implements Serializable {
   @TableField(exist = false)
   private String capacity;
 
+  @TableField(exist = false)
+  private String shipGrossTonnage;
+
   @Override
   public boolean equals(Object that) {
     if (this == that) {

+ 9 - 1
ghjg-item-datashare-server/src/main/resources/mapper/ShorePowerConnRecordInfoMapper.xml

@@ -71,7 +71,15 @@
            t.CONNTYPE,
            to_char(BERTHINFO.BERTHNAME) berthName,
            to_char(BERTHTYPE.NAME)      berthType,
-           to_char(BERTHINFO.CAPACITY)  capacity
+           to_char(BERTHINFO.CAPACITY)  capacity,
+           CASE
+             WHEN T.SHIPGROSSTONNAGE = 1 THEN
+               '600吨以上'
+             WHEN T.SHIPGROSSTONNAGE = 2 THEN
+               '200吨-600吨'
+             WHEN T.SHIPGROSSTONNAGE = 3 THEN
+               '200吨以下'
+             END AS                     shipGrossTonnageName
     FROM GHJG_PORT_MANAGE.SHORE_POWER_CONN_RECORD_INFO T
            LEFT JOIN GHJG_PORT_MANAGE.SHORE_POWER_PORT_INFO_NEW PORT
                      ON PORT.PORTID = T.PORTID