| | |
| | | |
| | | |
| | | import com.ycl.platform.domain.query.DemeritRecordQuery; |
| | | import com.ycl.platform.service.IDailyMonitorDemeritRecordService; |
| | | import com.ycl.platform.service.IDemeritRecordService; |
| | | import com.ycl.system.Result; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * zgyw |
| | |
| | | public class DemeritRecordController { |
| | | public final IDemeritRecordService demeritRecordService; |
| | | |
| | | private final IDailyMonitorDemeritRecordService dailyMonitorDemeritRecordService; |
| | | @GetMapping("/getPage") |
| | | public Result getPage(DemeritRecordQuery query){ |
| | | return demeritRecordService.getDemeritRecordPage(query); |
| | | } |
| | | |
| | | @PostMapping("/exportInfo/{id}") |
| | | public void exportInfo(HttpServletResponse httpServletResponse, @PathVariable("id")Integer id) throws IOException { |
| | | dailyMonitorDemeritRecordService.getExportInfo(httpServletResponse,id); |
| | | } |
| | | } |