Procházet zdrojové kódy

加入 预付中文翻译

java110 před 5 roky
rodič
revize
aae3f94ba5

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/rentingPool/RentingPoolDto.java

@@ -32,6 +32,7 @@ public class RentingPoolDto extends PageDto implements Serializable {
     private String rentingId;
     private String roomId;
     private String paymentType;
+    private String paymentTypeName;
     private String ownerName;
     private String price;
     private String state;
@@ -190,4 +191,12 @@ public class RentingPoolDto extends PageDto implements Serializable {
     public void setStateName(String stateName) {
         this.stateName = stateName;
     }
+
+    public String getPaymentTypeName() {
+        return paymentTypeName;
+    }
+
+    public void setPaymentTypeName(String paymentTypeName) {
+        this.paymentTypeName = paymentTypeName;
+    }
 }

+ 2 - 1
java110-db/src/main/resources/mapper/user/RentingPoolServiceDaoImplMapper.xml

@@ -22,9 +22,10 @@
         statusCd,t.renting_title,t.renting_title rentingTitle,t.check_in,t.check_in
         checkIn,t.renting_id,t.renting_id rentingId,t.room_id,t.room_id roomId,t.payment_type,t.payment_type
         paymentType,t.owner_name,t.owner_name ownerName,t.price,t.state,t.community_id,t.community_id
-        communityId,t.longitude,name stateName
+        communityId,t.longitude,td.name stateName,td2.name paymentTypeName
         from renting_pool t
         left join t_dict td on td.status_cd = t.state and td.table_name = 'renting_pool' and td.table_columns = 'state'
+        left join t_dict td2 on td2.status_cd = t.payment_type and td2.table_name = 'renting_pool' and td2.table_columns = 'payment_type'
         where 1 =1
         <if test="latitude !=null and latitude != ''">
             and t.latitude= #{latitude}