提交 7069a45a authored 作者: yangdongming's avatar yangdongming

--no commit message

上级 ccddcb48
......@@ -12,13 +12,10 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mysql.fabric.xmlrpc.base.Array;
import com.zrqx.core.form.geography.GeographyForm;
import com.zrqx.core.mapper.BaseMapper;
import com.zrqx.core.model.geography.Category;
import com.zrqx.core.model.geography.Geographysign;
import com.zrqx.core.service.BaseServiceImpl;
import com.zrqx.core.util.CallBack;
import com.zrqx.core.util.PageInfo;
import com.zrqx.core.util.PageParam;
import com.zrqx.core.vo.Geographysign.CaregoryVo;
......@@ -147,9 +144,36 @@ public class GeographysignServiceImpl extends BaseServiceImpl<Geographysign, Str
CountyVo countyVo = new CountyVo();
countyVo.setTable(list);
countyVo.setCount(mapper.queryIcon(form, null).toString());
countyVo.setRegioncount(mapper.queryRegion(form).toString());
countyVo.setRegioncount(this.getRegionCount(form));
return countyVo;
}
private String getRegionCount(GeographyForm form){
String result = "";
List<String> haveList = new ArrayList<String>();
List<Geographysign> list = mapper.getAllSign(form);
for(int i=list.size()-1;i>=0;i--){
Geographysign s = list.get(i);
if(StringUtils.isNotBlank(s.getCounty())){
String[] countys = s.getCounty().split("、");
if(countys.length<=1){
haveList.add(countys[0]);
continue;
}
for(String county : countys){
if(!haveList.contains(county)){
haveList.add(county);
}
}
}
}
result = haveList.size()+"";
return result;
}
@Override
public PageInfo<Geographysign> provincepage(GeographyForm form, PageParam pageParam) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论