|
|
@ -8,12 +8,14 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
|
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.req.TRecordResultReq;
|
|
|
|
import com.ruoyi.system.domain.resp.RecordHistoryDataResp;
|
|
|
|
import com.ruoyi.system.domain.resp.RecordHistoryDataResp;
|
|
|
|
import com.ruoyi.system.domain.resp.TRecordResp;
|
|
|
|
import com.ruoyi.system.domain.resp.TRecordResp;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@ -129,4 +131,18 @@ public class TRecordController extends BaseController
|
|
|
|
public AjaxResult getHistoryRecordList(TRecord tRecord){
|
|
|
|
public AjaxResult getHistoryRecordList(TRecord tRecord){
|
|
|
|
return tRecordService.getHistoryList(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));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|