|
|
@ -6,6 +6,7 @@ import com.epmet.dto.indexcollect.*; |
|
|
|
import com.epmet.dto.screencoll.ScreenCollFormDTO; |
|
|
|
import com.epmet.service.evaluationindex.indexcoll.*; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
@ -24,65 +25,95 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
@RequestMapping("project") |
|
|
|
public class ScreenProjectDataCollController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ScreenProjectCategoryGridDailyService projectCategoryGridDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectCategoryOrgDailyService projectCategoryOrgDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectGridDailyService projectGridDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectOrgDailyService projectOrgDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectQuantityGridMonthlyService projectQuantityGridMonthlyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectQuantityOrgMonthlyService projectQuantityOrgMonthlyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectCategoryGridDailyService projectCategoryGridDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectCategoryOrgDailyService projectCategoryOrgDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectGridDailyService projectGridDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectOrgDailyService projectOrgDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectQuantityGridMonthlyService projectQuantityGridMonthlyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectQuantityOrgMonthlyService projectQuantityOrgMonthlyService; |
|
|
|
|
|
|
|
@RequestMapping("category-grid-daily") |
|
|
|
public Result categoryGridDaily(@RequestHeader("CustomerId")String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectCategoryGridDailyDTO> param){ |
|
|
|
if(null == param || CollectionUtils.isEmpty(param.getDataList())) |
|
|
|
throw new ValidateException("传入数据不可为空"); |
|
|
|
projectCategoryGridDailyService.collect(customerId,param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @author wangc |
|
|
|
* @description 【事件/项目分析】按类别统计-网格 |
|
|
|
**/ |
|
|
|
@RequestMapping("category-grid-daily") |
|
|
|
public Result categoryGridDaily(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectCategoryGridDailyDTO> param) { |
|
|
|
if (null == param || CollectionUtils.isEmpty(param.getDataList()) || StringUtils.isBlank(param.getDateId())) { |
|
|
|
throw new ValidateException("参数错误:dataList不能为空且dataId不能为空"); |
|
|
|
} |
|
|
|
projectCategoryGridDailyService.collect(customerId, param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("category-org-daily") |
|
|
|
public Result categoryOrgDaily(@RequestHeader("CustomerId")String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectCategoryOrgDailyDTO> param){ |
|
|
|
if(null == param || CollectionUtils.isEmpty(param.getDataList())) |
|
|
|
throw new ValidateException("传入数据不可为空"); |
|
|
|
projectCategoryOrgDailyService.collect(customerId,param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @author wangc |
|
|
|
* @description 【事件/项目分析】按类别统计-组织 |
|
|
|
**/ |
|
|
|
@RequestMapping("category-org-daily") |
|
|
|
public Result categoryOrgDaily(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectCategoryOrgDailyDTO> param) { |
|
|
|
if (null == param || CollectionUtils.isEmpty(param.getDataList()) || StringUtils.isBlank(param.getDateId())) { |
|
|
|
throw new ValidateException("参数错误:dataList不能为空且dataId不能为空"); |
|
|
|
} |
|
|
|
projectCategoryOrgDailyService.collect(customerId, param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("quantity-grid-monthly") |
|
|
|
public Result quantityGridMonthly(@RequestHeader("CustomerId")String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectQuantityGridMonthlyDTO> param){ |
|
|
|
if(null == param || CollectionUtils.isEmpty(param.getDataList())) |
|
|
|
throw new ValidateException("传入数据不可为空"); |
|
|
|
projectQuantityGridMonthlyService.collect(customerId,param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @author wangc |
|
|
|
* @description 【事件/项目分析】网格内月度数量统计 |
|
|
|
**/ |
|
|
|
@RequestMapping("quantity-grid-monthly") |
|
|
|
public Result quantityGridMonthly(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectQuantityGridMonthlyDTO> param) { |
|
|
|
if (null == param || CollectionUtils.isEmpty(param.getDataList()) || StringUtils.isBlank(param.getMonthId())) { |
|
|
|
throw new ValidateException("参数错误:dataList不能为空且monthId不能为空"); |
|
|
|
} |
|
|
|
projectQuantityGridMonthlyService.collect(customerId, param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("quantity-org-monthly") |
|
|
|
public Result quantityOrgMonthly(@RequestHeader("CustomerId")String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectQuantityOrgMonthlyDTO> param){ |
|
|
|
if(null == param || CollectionUtils.isEmpty(param.getDataList())) |
|
|
|
throw new ValidateException("传入数据不可为空"); |
|
|
|
projectQuantityOrgMonthlyService.collect(customerId,param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @author wangc |
|
|
|
* @description 【事件/项目分析】组织内月度数量统计 |
|
|
|
**/ |
|
|
|
@RequestMapping("quantity-org-monthly") |
|
|
|
public Result quantityOrgMonthly(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectQuantityOrgMonthlyDTO> param) { |
|
|
|
if (null == param || CollectionUtils.isEmpty(param.getDataList()) || StringUtils.isBlank(param.getMonthId())) { |
|
|
|
throw new ValidateException("参数错误:dataList不能为空且monthId不能为空"); |
|
|
|
} |
|
|
|
projectQuantityOrgMonthlyService.collect(customerId, param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("project-grid-daily") |
|
|
|
public Result projectGridDaily(@RequestHeader("CustomerId")String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectGridDailyDTO> param){ |
|
|
|
if(null == param || CollectionUtils.isEmpty(param.getDataList())) |
|
|
|
throw new ValidateException("传入数据不可为空"); |
|
|
|
projectGridDailyService.collect(customerId,param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @author wangc |
|
|
|
* @description 【事件/项目分析】网格内事件 |
|
|
|
**/ |
|
|
|
@RequestMapping("project-grid-daily") |
|
|
|
public Result projectGridDaily(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectGridDailyDTO> param) { |
|
|
|
if (null == param || CollectionUtils.isEmpty(param.getDataList()) || StringUtils.isBlank(param.getDateId())) { |
|
|
|
throw new ValidateException("参数错误:dataList不能为空且dataId不能为空"); |
|
|
|
} |
|
|
|
projectGridDailyService.collect(customerId, param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("project-org-daily") |
|
|
|
public Result projectOrgDaily(@RequestHeader("CustomerId")String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectOrgDailyDTO> param){ |
|
|
|
if(null == param || CollectionUtils.isEmpty(param.getDataList())) |
|
|
|
throw new ValidateException("传入数据不可为空"); |
|
|
|
projectOrgDailyService.collect(customerId,param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @author wangc |
|
|
|
* @description 【事件/项目分析】组织内事件 |
|
|
|
**/ |
|
|
|
@RequestMapping("project-org-daily") |
|
|
|
public Result projectOrgDaily(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCollFormDTO<ScreenProjectOrgDailyDTO> param) { |
|
|
|
if (null == param || CollectionUtils.isEmpty(param.getDataList()) || StringUtils.isBlank(param.getDateId())) { |
|
|
|
throw new ValidateException("参数错误:dataList不能为空且dataId不能为空"); |
|
|
|
} |
|
|
|
projectOrgDailyService.collect(customerId, param); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|