|
@@ -1,6 +1,7 @@
|
|
package com.gis.mapper.provider;
|
|
package com.gis.mapper.provider;
|
|
|
|
|
|
import com.gis.domain.dto.FodderPageDto;
|
|
import com.gis.domain.dto.FodderPageDto;
|
|
|
|
+import com.gis.domain.dto.PageDto;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
@@ -34,5 +35,31 @@ public class FodderProvider {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 搜索全景图
|
|
|
|
+ * 只获取计算完成的全景图
|
|
|
|
+ * @param param
|
|
|
|
+ * @param userId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public String searchPano(PageDto param, String userId){
|
|
|
|
+ StringBuffer sql = new StringBuffer("select * from tb_fodder where is_delete = 0 and type = 'pano' and status = 3 ");
|
|
|
|
+
|
|
|
|
+ if(!StringUtils.isAllBlank(userId)){
|
|
|
|
+ sql.append(" and ( user_id = '").append(userId).append("' )");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String searchKey = param.getSearchKey();
|
|
|
|
+ if(!StringUtils.isAllBlank(searchKey)){
|
|
|
|
+ sql.append(" and ( name like '%").append(searchKey).append("%' )");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ sql.append(" order by create_time asc");
|
|
|
|
+
|
|
|
|
+ log.info("sql: {}", sql.toString());
|
|
|
|
+ return sql.toString();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|