|
@@ -154,9 +154,14 @@ import com.cloudcross.ssp.web.widget.SelectorController.ISelectorProvider;
|
|
|
|
|
|
@Override
|
|
|
public Map<String, List<? extends ISelector>> provideData(String[] parentId) {
|
|
|
+ Integer operatorId = null;
|
|
|
+ if(null == parentId[0] || "".equals(parentId[0])) {
|
|
|
+ operatorId = -1;
|
|
|
+ }
|
|
|
// Assert.isTrue(ArrayUtils.isNotEmpty(parentId));
|
|
|
- Integer operatorId = Integer.parseInt(parentId[0]);
|
|
|
- List<Zone> zoneList = findByOperatorId(operatorId);
|
|
|
+ operatorId = Integer.parseInt(parentId[0]);
|
|
|
+ List<Zone> zoneList = null;
|
|
|
+ zoneList = findByOperatorId(operatorId);
|
|
|
return MapBuilder.create(HashMap.class).add("zoneList", zoneList).map();
|
|
|
}
|
|
|
//operatorId类型居然搞不一样
|
|
@@ -173,12 +178,6 @@ import com.cloudcross.ssp.web.widget.SelectorController.ISelectorProvider;
|
|
|
return myBatisDao.getList("zoneSqlMapper.findByOperatorIdBack", operatorId);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public List<Zone> findByOperatorId(Long operatorId) {
|
|
|
- // TODO Auto-generated method stub
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public Map<String, List<? extends ISelector>> provideDataBack(
|
|
|
String[] parentId) {
|
|
@@ -195,6 +194,12 @@ import com.cloudcross.ssp.web.widget.SelectorController.ISelectorProvider;
|
|
|
public List<Zone> queryZoneByAdgroupId(Long adgroupId) {
|
|
|
return myBatisDao.getList("zoneSqlMapper.queryZoneByAdgroupId", adgroupId);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<Zone> findByOperatorId(Long operatorId) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return null;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|