Ver código fonte

提交代码

JX.Li 1 ano atrás
pai
commit
bcccd1f8e3

+ 1 - 1
ruoyi-gas/src/main/java/com/ruoyi/gas/domain/bo/GBuildingBo.java

@@ -27,7 +27,7 @@ public class GBuildingBo extends BaseEntity {
      * 主键Id
      */
     @ApiModelProperty(value = "主键Id", required = true)
-    private Long Id;
+    private Long id;
     /**
      * 楼宇名
      */

+ 1 - 0
ruoyi-gas/src/main/resources/mapper/GBuildingMapper.xml

@@ -21,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                name as name
         from g_building
         where area_id = #{areaId} and del_flag = '0'
+        order by create_time desc
     </select>
     <select id="getByName" resultType="com.ruoyi.gas.domain.GBuilding">
         select * from g_building