|
|
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
+import java.time.LocalDate;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
|
@@ -41,6 +42,11 @@ public class DailySignController extends BaseController {
|
|
|
return dailySignService.all(pageQuery);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/search")
|
|
|
+ public List<DailySign> search(@RequestBody Long userId, LocalDate start, LocalDate end) {
|
|
|
+ return dailySignService.search(userId, start, end);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/get/{id}")
|
|
|
public DailySign get(@PathVariable Long id) {
|
|
|
return dailySignRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|