大屏隐患数据

This commit is contained in:
韩国东 2023-02-16 17:13:59 +08:00
parent 58c78664f0
commit fe7876523b
3 changed files with 6 additions and 6 deletions

View File

@ -1617,7 +1617,7 @@
left join SysEnterprise se on bc.BaseEntId = se.SysEnterpriseId
where se.State = '启用'
and YEAR(bt.CreatedOn)= YEAR(NOW())
and se.street_code = #{streetCode}
AND FIND_IN_SET(#{streetCode},se.area_path)
</select>
<select id="countDangerNum" resultType="java.lang.Integer">

View File

@ -2349,7 +2349,7 @@
select count(*) from SysEnterprise se
where se.State = '启用'
<if test="null != areaCode and '' != areaCode">
and (se.OrgCode = #{areaCode} or se.street_code = #{areaCode} or se.community_code = #{areaCode})
AND FIND_IN_SET(#{areaCode},se.area_path)
</if>
</select>
@ -2463,7 +2463,7 @@
from BookEntCheck bc
left join SysEnterprise se on bc.BaseEntId = se.SysEnterpriseId
where se.State = '启用'
and se.street_code = #{streetCode}
AND FIND_IN_SET(#{streetCode},se.area_path)
and YEAR(bc.CreatedOn)= YEAR(NOW())
<if test="null != inherentRisk">
and se.InherentRisk = #{inherentRisk}

View File

@ -75,7 +75,7 @@ public class BigdataController extends com.rzyc.controller.BaseController {
@ApiOperation(value = "周检查情况", notes = "周检查情况")
@GetMapping("/weekCheckInfo")
@ApiImplicitParam(name = "orgCode",value = "街道id 不传为街道检查信息 传为街道下社区检查信息")
@ApiImplicitParam(name = "orgCode",value = "地区id")
@ResponseBody
public MultiResult<WeekCheckInfo> weekCheckInfo(String orgCode)throws Exception{
MultiResult<WeekCheckInfo> result = new MultiResult<>();
@ -567,9 +567,9 @@ public class BigdataController extends com.rzyc.controller.BaseController {
return controlCheck;
}
@ApiOperation(value = "街道监督检查信息", notes = "街道监督检查信息")
@ApiOperation(value = "监督检查信息", notes = "监督检查信息")
@GetMapping("/controlCheckStreet/{orgCode}")
@ApiImplicitParam(name = "orgCode",value = "街道id",required = true)
@ApiImplicitParam(name = "orgCode",value = "地区编号",required = true)
@ResponseBody
public SingleResult<ControlCheck> controlCheckStreet(@PathVariable String orgCode)throws Exception{
SingleResult<ControlCheck> result = new SingleResult<>();