城市接口相关修改

master
anthonywj 2 years ago
parent 5d505910d2
commit d6c49d3643

@ -15,6 +15,7 @@ import com.glxp.api.service.stat.StatNmapCountService;
import com.glxp.api.service.stat.StatProductCategoryService; import com.glxp.api.service.stat.StatProductCategoryService;
import com.glxp.api.util.DateUtil; import com.glxp.api.util.DateUtil;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Date; import java.util.Date;
@ -23,6 +24,7 @@ import java.util.List;
/** /**
* *
*/ */
@RestController
public class BigNmapVisController extends BaseController { public class BigNmapVisController extends BaseController {
@ -45,7 +47,7 @@ public class BigNmapVisController extends BaseController {
public BaseResponse getCityCompany() { public BaseResponse getCityCompany() {
List<StatNmapCorpEntity> statNmapCorpEntities = statNmapCorpService.list( List<StatNmapCorpEntity> statNmapCorpEntities = statNmapCorpService.list(
new QueryWrapper<StatNmapCorpEntity>().orderByDesc("count").last("limit 10")); new QueryWrapper<StatNmapCorpEntity>().orderByDesc("count").last("limit 8"));
return ResultVOUtils.success(statNmapCorpEntities); return ResultVOUtils.success(statNmapCorpEntities);
} }
@ -56,17 +58,17 @@ public class BigNmapVisController extends BaseController {
@GetMapping("/cpt/bigVis/nmap/category") @GetMapping("/cpt/bigVis/nmap/category")
public BaseResponse getnmapCategory() { public BaseResponse getnmapCategory() {
List<StatProductCategoryEntity> statNmapCorpEntities = statProductCategoryService.list( List<StatProductCategoryEntity> statNmapCorpEntities = statProductCategoryService.list(
new QueryWrapper<StatProductCategoryEntity>().orderByDesc("nmapCount").last("limit 10")); new QueryWrapper<StatProductCategoryEntity>().orderByDesc("nmapCount").last("limit 8"));
return ResultVOUtils.success(statNmapCorpEntities); return ResultVOUtils.success(statNmapCorpEntities);
} }
/** /**
* *
*/ */
@GetMapping("/cpt/bigVis/nmap/category") @GetMapping("/cpt/bigVis/cpt/category")
public BaseResponse getCptCategory() { public BaseResponse getCptCategory() {
List<StatProductCategoryEntity> statNmapCorpEntities = statProductCategoryService.list( List<StatProductCategoryEntity> statNmapCorpEntities = statProductCategoryService.list(
new QueryWrapper<StatProductCategoryEntity>().orderByDesc("cptCount").last("limit 10")); new QueryWrapper<StatProductCategoryEntity>().orderByDesc("cptCount").last("limit 8"));
return ResultVOUtils.success(statNmapCorpEntities); return ResultVOUtils.success(statNmapCorpEntities);
} }
@ -104,6 +106,10 @@ public class BigNmapVisController extends BaseController {
/** /**
* *
*/ */
@GetMapping("/cpt/")
public BaseResponse getLastSearch() {
return ResultVOUtils.success();
}
} }

@ -50,7 +50,7 @@ public class BigVisController extends BaseController {
public BaseResponse getCityCompany(FilterReplicateRequest filterReplicateRequest) { public BaseResponse getCityCompany(FilterReplicateRequest filterReplicateRequest) {
List<StatCityCorpEntity> statCityCorpEntities = statCityCorpService.list( List<StatCityCorpEntity> statCityCorpEntities = statCityCorpService.list(
new QueryWrapper<StatCityCorpEntity>()); new QueryWrapper<StatCityCorpEntity>().orderByDesc("count").last("limit 10"));
return ResultVOUtils.success(statCityCorpEntities); return ResultVOUtils.success(statCityCorpEntities);
} }

@ -37,6 +37,10 @@ public class StatCityCorpEntity implements Serializable {
@TableField(value = "rate") @TableField(value = "rate")
private Integer rate; private Integer rate;
@TableField(value = "level")
private Integer level;
@TableField(value = "pCityCode")
private String pCityCode;
@TableField(value = "updateTime") @TableField(value = "updateTime")
private Date updateTime; private Date updateTime;

Loading…
Cancel
Save