大屏企业
This commit is contained in:
parent
b890d23e7f
commit
58c78664f0
|
|
@ -350,7 +350,8 @@ public interface SysEnterpriseMapper extends BaseMapper<SysEnterprise> {
|
|||
@Param("inherentRisk") Integer inherentRisk);
|
||||
|
||||
/*街道企业*/
|
||||
List<StreetEntInfo> streetEntList(@Param("streetCode") String streetCode);
|
||||
List<StreetEntInfo> streetEntList(@Param("streetCode") String streetCode,
|
||||
@Param("condition") String condition);
|
||||
|
||||
/*企业总数*/
|
||||
Integer entNumByRiskLevel(@Param("areaCode") String areaCode,
|
||||
|
|
|
|||
|
|
@ -2496,7 +2496,7 @@
|
|||
SUM(case when be.HTState = '整改中' then 1 else 0 end ) rectifyingNum
|
||||
from SysEnterprise se
|
||||
left join BookEntHT be on se.SysEnterpriseId = be.SysEnterpriseId
|
||||
where se.State = '启用'
|
||||
where se.State = '启用' and se.EntName like #{condition}
|
||||
<if test="null != streetCode and '' != streetCode">
|
||||
AND FIND_IN_SET(#{streetCode},se.area_path)
|
||||
</if>
|
||||
|
|
|
|||
|
|
@ -594,11 +594,15 @@ public class BigdataController extends com.rzyc.controller.BaseController {
|
|||
|
||||
@ApiOperation(value = "街道企业列表", notes = "街道企业列表")
|
||||
@GetMapping("/srteetEntList/{orgCode}")
|
||||
@ApiImplicitParam(name = "orgCode",value = "地区id 默认传甘孜的地区id",required = true)
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "orgCode",value = "地区id 默认传甘孜的地区id",required = true),
|
||||
@ApiImplicitParam(name = "condition",value = "关键字")
|
||||
})
|
||||
@ResponseBody
|
||||
public MultiResult<StreetEntInfo> srteetEntList(@PathVariable String orgCode)throws Exception{
|
||||
public MultiResult<StreetEntInfo> srteetEntList(@PathVariable String orgCode,String condition)throws Exception{
|
||||
MultiResult<StreetEntInfo> result = new MultiResult<>();
|
||||
List<StreetEntInfo> streetEnts = sysEnterpriseMapper.streetEntList(orgCode);
|
||||
condition = TypeConversion.getCondition(condition);
|
||||
List<StreetEntInfo> streetEnts = sysEnterpriseMapper.streetEntList(orgCode,condition);
|
||||
result.setData(streetEnts);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user