|
|
@ -1,8 +1,10 @@ |
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.AgencySubDeptTreeDto; |
|
|
|
import com.epmet.dto.AgencySubTreeDto; |
|
|
|
import com.epmet.dto.stats.form.CustomerIdAndDateIdFormDTO; |
|
|
|
import com.epmet.service.StatsDimService; |
|
|
|
import com.epmet.service.stats.*; |
|
|
|
import org.slf4j.Logger; |
|
|
@ -39,6 +41,9 @@ public class DimController { |
|
|
|
@Autowired |
|
|
|
private DimAgencyService dimAgencyService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private DimCustomerPartymemberService partyMemberService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 初始化所有维度 |
|
|
|
* |
|
|
@ -250,4 +255,16 @@ public class DimController { |
|
|
|
return dimAgencyService.getTopAgencyWithDept(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description |
|
|
|
* @param customerIdAndDateIdFormDTO |
|
|
|
* @author zxc |
|
|
|
* @date 2020/9/17 3:01 下午 |
|
|
|
*/ |
|
|
|
@PostMapping("statsparty") |
|
|
|
public Result<Boolean> getPartyInfo(@RequestBody CustomerIdAndDateIdFormDTO customerIdAndDateIdFormDTO) { |
|
|
|
ValidatorUtils.validateEntity(customerIdAndDateIdFormDTO, CustomerIdAndDateIdFormDTO.CustomerIdAndDateId.class); |
|
|
|
return new Result<Boolean>().ok(partyMemberService.statsPartyMember(customerIdAndDateIdFormDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|