| | |
| | | import com.yuanchu.limslaboratory.pojo.vo.ReportVo; |
| | | import com.yuanchu.limslaboratory.service.ReportService; |
| | | import com.yuanchu.limslaboratory.utils.JackSonUtil; |
| | | import com.yuanchu.limslaboratory.utils.MyUtil; |
| | | import com.yuanchu.limslaboratory.utils.RedisUtil; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @ApiImplicitParam(name = "result", value = "审核结论", dataTypeClass = String.class, required = true) |
| | | }) |
| | | @PostMapping("/check") |
| | | public Result check(@RequestHeader("token") String token, Integer id, String result) throws Exception { |
| | | public Result check(@RequestHeader("X-Token") String token, Integer id, String result) throws Exception { |
| | | Object object = RedisUtil.get(token); |
| | | Map<String, Object> unmarshal = JackSonUtil.unmarshal(JackSonUtil.marshal(object), Map.class); |
| | | MyUtil.PrintLog(unmarshal + "-------id" + id + "=========" + result); |
| | | return Result.success(reportService.check((String) unmarshal.get("name"), id, result)); |
| | | } |
| | | |
| | |
| | | return Result.success(reportService.delreport(id)); |
| | | } |
| | | |
| | | @ApiOperation("获取报告内的数据") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "code", value = "报告单号", dataTypeClass = String.class, required = true) |
| | | }) |
| | | @PostMapping("/getReportContext") |
| | | public Result getReportContext(String code) { |
| | | return Result.success(reportService.getReportContext(code)); |
| | | } |
| | | |
| | | } |
| | | |