ÎļþÃû´Ó inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/ReportCheckController.java ÐÞ¸Ä |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.limslaboratory.pojo.vo.ReportCheckVo; |
| | | import com.yuanchu.limslaboratory.service.ReportCheckService; |
| | | import com.yuanchu.limslaboratory.pojo.vo.ReportAuditingVo; |
| | | import com.yuanchu.limslaboratory.service.ReportAuditingService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | |
| | | */ |
| | | @Api(tags = "æ£éªæ¨¡å-->æ¥åå®¡æ ¸") |
| | | @RestController |
| | | @RequestMapping("/reportCheck") |
| | | public class ReportCheckController { |
| | | @RequestMapping("/reportAuditing") |
| | | public class ReportAuditingController { |
| | | /** |
| | | * æå¡å¯¹è±¡ |
| | | */ |
| | | @Autowired |
| | | private ReportCheckService reportCheckService; |
| | | @Resource |
| | | private ReportAuditingService reportAuditingService; |
| | | |
| | | @ApiOperation("æ¥è¯¢æ¥åå®¡æ ¸å
容") |
| | | @ApiImplicitParams(value = { |
| | |
| | | @ApiImplicitParam(name = "status", value = "ç¶æ(为空=å
¨é¨)", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "name", value = "æç´¢ä¿¡æ¯", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectAllReportCheck") |
| | | @GetMapping("/selectAllReportAuditing") |
| | | public Result selectAllReportCheck(Integer page, Integer pageSize, Integer status, String name) { |
| | | IPage<ReportCheckVo> reportPage = reportCheckService.selectAllReportCheck(new Page<Object>(page, pageSize), status, name); |
| | | IPage<ReportAuditingVo> reportPage = reportAuditingService.selectAllReportAuditing(new Page<Object>(page, pageSize), status, name); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("total", reportPage.getTotal()); |
| | | map.put("row", reportPage.getRecords()); |