| | |
| | | import cn.huge.module.cust.dto.CtUserDTO; |
| | | import com.google.common.collect.Maps; |
| | | import dm.jdbc.util.StringUtil; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | terms.put("caseStatus", caseStatus); |
| | | } |
| | | if(StringUtils.isNotBlank(regionCode) && StringUtils.isNotBlank(regionName)){ |
| | | if(regionName.matches(".*市")){ |
| | | terms.put("queCity", regionCode); |
| | | if(regionName.matches(".*社区") || regionName.matches(".*村")){ |
| | | terms.put("queVillage", regionCode); |
| | | }else if(regionName.matches(".*街道") || regionName.matches(".*街") || regionName.matches(".*镇")){ |
| | | terms.put("queRoad", regionCode); |
| | | }else if(regionName.matches(".*区")){ |
| | | terms.put("queArea", regionCode); |
| | | }else if(regionName.contains("街道") || regionName.matches(".*街") || regionName.matches(".*镇")){ |
| | | terms.put("queRoad", regionCode); |
| | | }else if(regionName.matches(".*市")){ |
| | | terms.put("queCity", regionCode); |
| | | }else if(regionName.matches("本级")){ |
| | | //把regionCode根据#分割成数组 |
| | | String[] regionCodeArr = regionCode.split("#"); |
| | | if(CollectionUtils.isNotEmpty(Arrays.asList(regionCodeArr))){ |
| | | terms.put(regionCodeArr[0], regionCodeArr[1]); |
| | | if(StringUtils.isNotBlank(regionName)){ |
| | | if(terms.containsKey("queRoad")){ |
| | | terms.put("unitGrade", "3"); |
| | | }else if(terms.containsKey("queArea")){ |
| | | terms.put("unitGrade", "2"); |
| | | }else if(terms.containsKey("queCity")){ |
| | | terms.put("unitGrade", "1"); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | Sort sort = Sort.by(Sort.Direction.DESC, "t3.create_time"); |