From 49261bf6073bff00f17279641b35949b62deef05 Mon Sep 17 00:00:00 2001 From: fengchunyu Date: Thu, 21 Dec 2023 16:09:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=97=A5=E5=BF=97=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BigScreenController.java | 19 +++++++++---------- .../domain/MetaActualUnitUserInfo.java | 4 ++-- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java b/gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java index c5ec1db..afbef4d 100644 --- a/gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java +++ b/gather-app/src/main/java/com/ruoyi/business/controller/BigScreenController.java @@ -17,10 +17,7 @@ import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import lombok.RequiredArgsConstructor; import org.apache.ibatis.annotations.Param; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.util.Date; import java.util.HashMap; @@ -280,7 +277,7 @@ public class BigScreenController extends BaseController { @PostMapping("/realTimeAlarmSituation") @ApiOperation("实时警情") - public AjaxResult realTimeAlarmSituation(@ApiParam @Param("时间") String time) { + public AjaxResult realTimeAlarmSituation(@ApiParam @Param("时间") @RequestParam String time) { try { if (0 == NumKit.checkInt(time)) { time = "30"; @@ -313,7 +310,7 @@ public class BigScreenController extends BaseController { @PostMapping("/buildingInformation") @ApiOperation("楼栋信息") - public AjaxResult overviewResources(@ApiParam("楼栋地址") String para) { + public AjaxResult overviewResources(@ApiParam("楼栋地址") @RequestParam String para) { try { para = para.substring(0, para.indexOf("号")); MetaRealEstateInfo estateInfo = new MetaRealEstateInfo(); @@ -328,7 +325,7 @@ public class BigScreenController extends BaseController { @PostMapping("/buildRealEstate") @ApiOperation("楼栋信息:实有房屋统计") - public AjaxResult buildRealEstate(@ApiParam("楼栋地址") String para) { + public AjaxResult buildRealEstate(@ApiParam("楼栋地址") @RequestParam String para) { try { QueryWrapper queryWrapper = new QueryWrapper<>(); @@ -358,7 +355,7 @@ public class BigScreenController extends BaseController { @PostMapping("/buildRealActual") @ApiOperation("楼栋信息:实有人口统计") - public AjaxResult buildRealActual(@ApiParam("楼栋地址") String para) { + public AjaxResult buildRealActual(@ApiParam("楼栋地址") @RequestParam String para) { try { // 创建查询条件,使用模糊查询 @@ -424,7 +421,9 @@ public class BigScreenController extends BaseController { @PostMapping("/buildStructure") @ApiOperation("楼栋信息:房屋结构") - public AjaxResult buildStructure(@ApiParam("楼栋地址") String para, @ApiParam("单元") String unit) { + public AjaxResult buildStructure( + @ApiParam(value = "楼栋地址" ) @RequestParam String para, + @ApiParam(value = "单元") @RequestParam String unit) { try { //获取到房屋数据的实际地址 para = para.substring(0, para.indexOf("号")); @@ -470,7 +469,7 @@ public class BigScreenController extends BaseController { @PostMapping("/buildInformation") @ApiOperation("楼栋信息:户室信息") - public AjaxResult buildInformation(@ApiParam("楼栋地址") String para) { + public AjaxResult buildInformation(@ApiParam("楼栋地址") @RequestParam String para) { try { QueryWrapper addQueryWrapper = new QueryWrapper<>(); diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java index 69c9307..8e30288 100644 --- a/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java +++ b/gather-app/src/main/java/com/ruoyi/database/domain/MetaActualUnitUserInfo.java @@ -17,7 +17,7 @@ import lombok.EqualsAndHashCode; * 单位从业人员信息表(MetaActualUnitUserInfo)Domain * * @author makejava - * @since 2023-12-01 20:06:02 + * @since 2023-12-20 11:53:49 */ @Data @EqualsAndHashCode(callSuper = false) @@ -37,7 +37,7 @@ public class MetaActualUnitUserInfo extends BaseEntity { */ @ApiModelProperty("单位id") @Excel(name = "单位id") - private Long unitId; + private String unitId; /** * 单位名称