Commit e4d0802b authored by chenhao's avatar chenhao

提交重点部位获取建筑下重点部位列表的sql

parent 39e50612
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
c.latitude AS floorLatitude c.latitude AS floorLatitude
FROM cb_key_site c FROM cb_key_site c
where c.is_delete=FALSE where c.is_delete=FALSE
<if test="belongId != null and belongId!='-1' and belongId != -1"> <if test="id != null and id != -1">
AND c.`belong_id`= #{id} AND c.`belong_id`= #{id}
</if> </if>
</select> </select>
......
...@@ -223,7 +223,7 @@ public class KeySiteController extends BaseController { ...@@ -223,7 +223,7 @@ public class KeySiteController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET",value = "部位", notes = "部位") @ApiOperation(httpMethod = "GET",value = "部位", notes = "部位")
@GetMapping(value = "/getKeySiteDate") @GetMapping(value = "/getKeySiteDate")
public ResponseModel<List<KeySiteDateDto>> getKeySiteDate(@RequestParam Long id) { public ResponseModel<List<KeySiteDateDto>> getKeySiteDate(@RequestParam(required = false) Long id) {
return ResponseHelper.buildResponse(keySiteService.getKeySiteDate(id)); return ResponseHelper.buildResponse(keySiteService.getKeySiteDate(id));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment