From bb50334d4e0275b840b6d1fffe66d28895a3190e Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Wed, 10 Aug 2022 11:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=8A=E6=96=AD=E8=AE=B0=E5=BD=95=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/pc/TRecordController.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java index 1ee70c4..d2786f1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java @@ -8,12 +8,14 @@ import javax.servlet.http.HttpServletResponse; import com.alibaba.fastjson.JSONObject; import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.req.AppRecordReq; import com.ruoyi.system.domain.req.TRecordResultReq; import com.ruoyi.system.domain.resp.RecordHistoryDataResp; import com.ruoyi.system.domain.resp.TRecordResp; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.apache.commons.collections.CollectionUtils; +import org.springframework.beans.BeanUtils; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -129,4 +131,18 @@ public class TRecordController extends BaseController public AjaxResult getHistoryRecordList(TRecord tRecord){ return tRecordService.getHistoryList(tRecord); } + + + /** + * 诊断记录上传 + * + * @return {@code AjaxResult} + */ + @ApiOperation("诊断记录上传") + @PostMapping("diagnostic/upload") + public AjaxResult diagnosticRecordsUploaded(AppRecordReq appRecordReq) { + TRecord tRecord = new TRecord(); + BeanUtils.copyProperties(appRecordReq, tRecord); + return AjaxResult.success(tRecordService.updateTRecord(tRecord)); + } }