诊断记录上传

master
chenfei 2 years ago
parent 1fd4e2946e
commit bb50334d4e

@ -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));
}
}

Loading…
Cancel
Save