|
@@ -135,15 +135,24 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
@Slave
|
|
|
public RequestResult startSchedule(FzxzCalc fzxzCalc) {
|
|
|
FzxzDTO fzxzDTO = fzxzCalc.getFzxzDTO();
|
|
|
- GhdkaFilter ghdkaFilter = new GhdkaFilter();
|
|
|
+ //
|
|
|
+ String geoWkt = null;
|
|
|
if (fzxzDTO.getFwlx() == 1) {
|
|
|
// 绘制
|
|
|
- String geoWkt = fzxzDTO.getXzfw();
|
|
|
- ghdkaFilter.setGeom(geoWkt);
|
|
|
+ geoWkt = fzxzDTO.getXzfw();
|
|
|
+ // ghdkaFilter.setGeom(geoWkt);
|
|
|
} else if (fzxzDTO.getFwlx() == 2) {
|
|
|
// shp文件
|
|
|
}
|
|
|
- List<Integer> ids = ghdkaMapper.filter(ghdkaFilter);
|
|
|
+
|
|
|
+ // 1.区域筛选
|
|
|
+ List<Integer> ids = ghdkaMapper.getIdByGeom(geoWkt);
|
|
|
+
|
|
|
+ // 2.条件筛选
|
|
|
+ GhdkaFilter ghdkaFilter = new GhdkaFilter();
|
|
|
+ ghdkaFilter.setIdList(ids);
|
|
|
+ ghdkaFilter.setXzyxList(fzxzCalc.getXzyxList());
|
|
|
+ ids = ghdkaMapper.getIdByFilter(ghdkaFilter);
|
|
|
return RequestResult.success(ids);
|
|
|
}
|
|
|
|