|
|
@ -35,6 +35,7 @@ import com.epmet.dto.result.VoteResultDTO; |
|
|
|
import com.epmet.dto.result.VotingTrendResultDTO; |
|
|
|
import com.epmet.excel.IssueVoteStatisticalExcel; |
|
|
|
import com.epmet.service.IssueVoteStatisticalService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@ -49,6 +50,7 @@ import java.util.Map; |
|
|
|
* @author generator generator@elink-cn.com |
|
|
|
* @since v1.0.0 2020-05-11 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@RestController |
|
|
|
@RequestMapping("issuevotestatistical") |
|
|
|
public class IssueVoteStatisticalController { |
|
|
@ -129,7 +131,8 @@ public class IssueVoteStatisticalController { |
|
|
|
**/ |
|
|
|
@PostMapping("syncvotingcacheanddb") |
|
|
|
public Result syncVotingCacheAndDb(){ |
|
|
|
issueVoteStatisticalService.syncVotingCacheToDb(); |
|
|
|
//issueVoteStatisticalService.syncVotingCacheToDb();
|
|
|
|
log.error("syncvotingcacheanddb 又执行了"); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|