|
|
@ -46,6 +46,7 @@ import com.epmet.service.stats.DimAgencyService; |
|
|
|
import com.epmet.service.stats.DimCustomerPartymemberService; |
|
|
|
import com.epmet.service.stats.DimCustomerService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -956,12 +957,19 @@ public class DemoController { |
|
|
|
* @Date 2021/6/23 15:55 |
|
|
|
**/ |
|
|
|
@PostMapping("update-satisfaction-core") |
|
|
|
public Result updateProjectSatisfactionScore(){ |
|
|
|
List<String> customerIds=dimCustomerService.getAllCustomerId(); |
|
|
|
customerIds.forEach(customerId->{ |
|
|
|
screenProjectSettleService.updateProjectSatisfactionScore(customerId,null,null); |
|
|
|
log.info("更新完成"); |
|
|
|
}); |
|
|
|
public Result updateProjectSatisfactionScore(@RequestBody List<String> customerIdList){ |
|
|
|
if(CollectionUtils.isNotEmpty(customerIdList)){ |
|
|
|
customerIdList.forEach(customerId->{ |
|
|
|
screenProjectSettleService.updateProjectSatisfactionScore(customerId,null,null); |
|
|
|
log.info("更新完成"); |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
List<String> customerIds=dimCustomerService.getAllCustomerId(); |
|
|
|
customerIds.forEach(customerId->{ |
|
|
|
screenProjectSettleService.updateProjectSatisfactionScore(customerId,null,null); |
|
|
|
log.info("更新完成"); |
|
|
|
}); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|