9 changed files with 147 additions and 45 deletions
@ -1,29 +0,0 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.service.StatsDemoService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.concurrent.ExecutorService; |
|||
|
|||
/** |
|||
* desc:宣传能力controller |
|||
*/ |
|||
@RequestMapping("publicity") |
|||
@RestController |
|||
public class PublicityController { |
|||
|
|||
@Autowired |
|||
private StatsDemoService demoService; |
|||
|
|||
@Autowired |
|||
private ExecutorService executorService; |
|||
|
|||
@PostMapping(value = "publicitySummaryStatsjob") |
|||
public Result<Boolean> publicitySummaryStatsjob(){ |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.service.StatsPublicityService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.Date; |
|||
import java.util.concurrent.ExecutorService; |
|||
|
|||
/** |
|||
* desc:宣传能力controller |
|||
*/ |
|||
@RequestMapping("statspublicity") |
|||
@RestController |
|||
public class StatsPublicityController { |
|||
|
|||
@Autowired |
|||
private StatsPublicityService statsPublicityService; |
|||
|
|||
@Autowired |
|||
private ExecutorService executorService; |
|||
|
|||
/** |
|||
* desc:统计文章总数及在线文章总数 |
|||
* |
|||
* @param statsDate 默认:为T-1天,如果传 则统计的是【statsDate】的数据 |
|||
* @return |
|||
*/ |
|||
@PostMapping(value = "publicitySummaryStatsjob") |
|||
public Result<Boolean> publicitySummaryStatsjob(Date statsDate) { |
|||
return new Result<Boolean>().ok(statsPublicityService.publicitySummary(statsDate)); |
|||
} |
|||
} |
Loading…
Reference in new issue