|
|
@ -2,6 +2,7 @@ package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.form.*; |
|
|
@ -11,6 +12,7 @@ import com.epmet.service.UserPointActionLogService; |
|
|
|
import com.epmet.service.UserPointStatisticalDailyService; |
|
|
|
import com.epmet.service.UserPointTotalService; |
|
|
|
import com.epmet.utils.ModuleConstant; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
@ -169,6 +171,10 @@ public class ResiPointController { |
|
|
|
public Result<List<MyPointTaskResultDTO>> queryMyPointTaskList(@LoginUser TokenDto tokenDto,@RequestBody MyPointTaskFormDTO formDTO){ |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
//默认查询当天
|
|
|
|
if(StringUtils.isBlank(formDTO.getDateId())){ |
|
|
|
formDTO.setDateId(DateUtils.getBeforeNDay(0)); |
|
|
|
} |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<List<MyPointTaskResultDTO>>().ok(pointActionLogService.queryMyPointTaskList(formDTO)); |
|
|
|
} |
|
|
|