Merge remote-tracking branch 'origin/pet' into pet

liujun-2024-05-23-接口漏洞修复
liujun 2024-04-23 14:37:08 +08:00
commit 65bebab413
6 changed files with 193 additions and 0 deletions

View File

@ -0,0 +1,37 @@
package com.zcloud.service.map;
import com.zcloud.entity.PageData;
import org.springframework.stereotype.Component;
import java.util.LinkedList;
/**
*
* * xfsy01
* * xfbf01
* * xfjyd01 Rescue team
* * xfkzs01 control
* wangxuan
* www.zcloudchina.com
*/
@Component
public class AssembleControlRoomHandel extends AbsFireSourcesHandel {
/**
* @Description:
* @Author: dearLin
* @Date: 2023/9/20/020 15:37
* @Param: [com.zcloud.entity.PageData] [pageData]
* @Return: java.util.LinkedList<com.zcloud.entity.PageData>
*/
@Override
public LinkedList<PageData> assemblyDataHandel(PageData pageData) throws Exception {
return fireResourcesMapper.getControlRoomDataList(pageData);
}
@Override
public void afterPropertiesSet() throws Exception {
AssemblyBeanFactory.register("xfkzs01", this);
}
}

View File

@ -0,0 +1,40 @@
package com.zcloud.service.map;
import com.zcloud.entity.PageData;
import org.springframework.stereotype.Component;
import java.util.LinkedList;
/**
*
* * xfsy01
* * xfbf01
* * xfjyd01
* * xfkzs01
* * Point
* wangxuan
* www.zcloudchina.com
*/
@Component
public class AssemblePointSourceHandel extends AbsFireSourcesHandel {
/**
* @Description:
* @Author: dearLin
* @Date: 2023/9/20/020 15:38
* @Param: [com.zcloud.entity.PageData] [pageData]
* @Return: java.util.LinkedList<com.zcloud.entity.PageData>
*/
@Override
public LinkedList<PageData> assemblyDataHandel(PageData pageData) throws Exception {
// 自己的业务
return fireResourcesMapper.getPointDataList(pageData);
}
@Override
public void afterPropertiesSet() throws Exception {
AssemblyBeanFactory.register("point", this);
}
}

View File

@ -0,0 +1,38 @@
package com.zcloud.service.map;
import com.zcloud.entity.PageData;
import org.springframework.stereotype.Component;
import java.util.LinkedList;
/**
*
* * xfsy01
* * xfbf01 PumpRoom
* * xfjyd01 Rescue team
* * xfkzs01 control
* wangxuan
* www.zcloudchina.com
*/
@Component
public class AssemblePumpRoomHandel extends AbsFireSourcesHandel {
/**
* @Description:
* @Author: dearLin
* @Date: 2023/9/20/020 15:38
* @Param: [com.zcloud.entity.PageData] [pageData]
* @Return: java.util.LinkedList<com.zcloud.entity.PageData>
*/
@Override
public LinkedList<PageData> assemblyDataHandel(PageData pageData) throws Exception {
// 自己的业务
return fireResourcesMapper.getPumpRoomDataList(pageData);
}
@Override
public void afterPropertiesSet() throws Exception {
AssemblyBeanFactory.register("xfbf01", this);
}
}

View File

@ -0,0 +1,38 @@
package com.zcloud.service.map;
import com.zcloud.entity.PageData;
import org.springframework.stereotype.Component;
import java.util.LinkedList;
/**
*
* * xfsy01
* * xfbf01
* * xfjyd01 Rescue team
* * xfkzs01
* wangxuan
* www.zcloudchina.com
*/
@Component
public class AssembleRescueTeamHandel extends AbsFireSourcesHandel {
/**
* @Description:
* @Author: dearLin
* @Date: 2023/9/20/020 15:38
* @Param: [com.zcloud.entity.PageData] [pageData]
* @Return: java.util.LinkedList<com.zcloud.entity.PageData>
*/
@Override
public LinkedList<PageData> assemblyDataHandel(PageData pageData) throws Exception {
pageData.put("CORPINFO_ID",null);
// 自己的业务
return fireResourcesMapper.getRescueTeamDataList(pageData);
}
@Override
public void afterPropertiesSet() throws Exception {
AssemblyBeanFactory.register("xfjyd01", this);
}
}

View File

@ -0,0 +1,38 @@
package com.zcloud.service.map;
import com.zcloud.entity.PageData;
import org.springframework.stereotype.Component;
import java.util.LinkedList;
/**
*
* * xfsy01
* * xfbf01
* * xfjyd01
* * xfkzs01
* wangxuan
* www.zcloudchina.com
*/
@Component
public class AssembleWaterSourceHandel extends AbsFireSourcesHandel {
/**
* @Description:
* @Author: dearLin
* @Date: 2023/9/20/020 15:38
* @Param: [com.zcloud.entity.PageData] [pageData]
* @Return: java.util.LinkedList<com.zcloud.entity.PageData>
*/
@Override
public LinkedList<PageData> assemblyDataHandel(PageData pageData) throws Exception {
// 自己的业务
return fireResourcesMapper.getWaterSourceDataList(pageData);
}
@Override
public void afterPropertiesSet() throws Exception {
AssemblyBeanFactory.register("xfsy01", this);
}
}

View File

@ -228,6 +228,8 @@
`qa-gwj-prevention`.bus_fire_point f
WHERE
f.ISDELETE = 0
and f.LONGITUDE is not null
and f.LONGITUDE != ''
<if test="CORPINFO_ID != null and CORPINFO_ID != ''">
AND f.CORPINFO_ID = #{CORPINFO_ID}
</if>