@ -56,6 +56,15 @@ public class SecurityOrderUtil {
/***创建安防工单***/
public JSONObject createSecurityOrder(String deviceSN, String sceneUrl, JSONObject result,JSONObject addressInfo, Integer orderSource, String dictCode, String topicItem, String warnInfo){
try {
String switchSql =" select dict_value from wlyy_hospital_sys_dict where dict_name='security_topic_dict_switch' " +
"and dict_code='"+topicItem+"' ";
List<String> switchOn = jdbcTemplate.queryForList(switchSql,String.class);
if (switchOn.size()>0){
if ("0".equals(switchOn.get(0))){
return new JSONObject();
}
String lat = "";
String lon = "";
String address=" ";