|
@@ -10,17 +10,15 @@ import com.book.server.service.SunDataService;
|
|
import com.book.server.vo.SunNotifyRequest;
|
|
import com.book.server.vo.SunNotifyRequest;
|
|
import com.book.server.vo.SunRequest;
|
|
import com.book.server.vo.SunRequest;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-import org.apache.commons.codec.digest.DigestUtils;
|
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.ServletOutputStream;
|
|
import javax.servlet.ServletOutputStream;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
-import javax.websocket.server.PathParam;
|
|
|
|
import java.io.BufferedOutputStream;
|
|
import java.io.BufferedOutputStream;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
+import java.text.ParseException;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
import java.util.UUID;
|
|
@@ -130,8 +128,8 @@ public class SunDataController extends BaseController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/userStaticByDate-F891088E-7A75-4F4B-AEB4-A9D1697F5AB3")
|
|
@GetMapping("/userStaticByDate-F891088E-7A75-4F4B-AEB4-A9D1697F5AB3")
|
|
- public Result userStaticByDate(String startDate, String endDate) {
|
|
|
|
- sunDataService.userStaticYesterday(startDate, endDate);
|
|
|
|
|
|
+ public Result userStaticByDate(String dateStr) throws ParseException {
|
|
|
|
+ sunDataService.userStaticYesterday(dateStr, TimeUtil.getNextDay(dateStr));
|
|
return Result.success();
|
|
return Result.success();
|
|
}
|
|
}
|
|
|
|
|