|
@ -4,8 +4,12 @@ import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
|
|
import com.epmet.entity.PointVerificationStatisticalDailyEntity; |
|
|
import com.epmet.entity.UserPointStatisticalDailyEntity; |
|
|
import com.epmet.entity.UserPointStatisticalDailyEntity; |
|
|
|
|
|
import com.epmet.entity.UserPointTotalEntity; |
|
|
|
|
|
import com.epmet.service.PointVerificationStatisticalDailyService; |
|
|
import com.epmet.service.UserPointStatisticalDailyService; |
|
|
import com.epmet.service.UserPointStatisticalDailyService; |
|
|
|
|
|
import com.epmet.service.UserPointTotalService; |
|
|
import org.apache.logging.log4j.LogManager; |
|
|
import org.apache.logging.log4j.LogManager; |
|
|
import org.apache.logging.log4j.Logger; |
|
|
import org.apache.logging.log4j.Logger; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
@ -29,6 +33,10 @@ public class TestController { |
|
|
private LoginUserUtil loginUserUtil; |
|
|
private LoginUserUtil loginUserUtil; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private UserPointStatisticalDailyService userPointStatisticalDailyService; |
|
|
private UserPointStatisticalDailyService userPointStatisticalDailyService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private PointVerificationStatisticalDailyService pointVerificationStatisticalDailyService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private UserPointTotalService userPointTotalService; |
|
|
@GetMapping("test") |
|
|
@GetMapping("test") |
|
|
public Result test(@LoginUser TokenDto tokenDto){ |
|
|
public Result test(@LoginUser TokenDto tokenDto){ |
|
|
Map map=new HashMap<>(); |
|
|
Map map=new HashMap<>(); |
|
@ -49,5 +57,15 @@ public class TestController { |
|
|
userPointStatisticalDailyService.test(entity); |
|
|
userPointStatisticalDailyService.test(entity); |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
@PostMapping("testunixkeyverification") |
|
|
|
|
|
public Result testUnixKeyVerification(@RequestBody PointVerificationStatisticalDailyEntity entity){ |
|
|
|
|
|
pointVerificationStatisticalDailyService.testUnixKey(entity); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
@PostMapping("testtotal") |
|
|
|
|
|
public Result testTotal(@RequestBody UserPointTotalEntity entity){ |
|
|
|
|
|
userPointTotalService.testInsertOrUpdate(entity); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|