소스 검색

提交代码

JX.Li 1 년 전
부모
커밋
bcccd1f8e3
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ruoyi-gas/src/main/java/com/ruoyi/gas/domain/bo/GBuildingBo.java
  2. 1 0
      ruoyi-gas/src/main/resources/mapper/GBuildingMapper.xml

+ 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