|
|
@ -17,7 +17,6 @@ import com.ruoyi.common.utils.SecurityUtils;
|
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
|
import com.ruoyi.common.utils.file.FileUtils;
|
|
|
|
import com.ruoyi.common.utils.file.FileUtils;
|
|
|
|
import com.ruoyi.common.utils.http.HttpUtils;
|
|
|
|
import com.ruoyi.common.utils.http.HttpUtils;
|
|
|
|
import com.ruoyi.framework.config.ServerConfig;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.*;
|
|
|
|
import com.ruoyi.system.domain.*;
|
|
|
|
import com.ruoyi.system.domain.req.*;
|
|
|
|
import com.ruoyi.system.domain.req.*;
|
|
|
|
import com.ruoyi.system.domain.resp.PatientHistoryRecordResp;
|
|
|
|
import com.ruoyi.system.domain.resp.PatientHistoryRecordResp;
|
|
|
@ -70,13 +69,12 @@ public class AppController extends BaseController
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private ITImageService imageService;
|
|
|
|
private ITImageService imageService;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private ServerConfig serverConfig;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${aiPost.ip}")
|
|
|
|
@Value("${aiPost.ip}")
|
|
|
|
private String ip;
|
|
|
|
private String ip;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${aiPost.port}")
|
|
|
|
@Value("${aiPost.port}")
|
|
|
|
private String port;
|
|
|
|
private String port;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${aiPost.url}")
|
|
|
|
@Value("${aiPost.url}")
|
|
|
|
private String url;
|
|
|
|
private String url;
|
|
|
|
|
|
|
|
|
|
|
@ -102,7 +100,6 @@ public class AppController extends BaseController
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation("医院列表")
|
|
|
|
@ApiOperation("医院列表")
|
|
|
|
@GetMapping("/hospital/list")
|
|
|
|
@GetMapping("/hospital/list")
|
|
|
|
@Log(title = "查询医院列表", businessType = BusinessType.OTHER)
|
|
|
|
|
|
|
|
public AjaxResult hospitalList()
|
|
|
|
public AjaxResult hospitalList()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
List<THospital> tHospitals = tHospitalService.selectTHospitalList(new THospital());
|
|
|
|
List<THospital> tHospitals = tHospitalService.selectTHospitalList(new THospital());
|
|
|
@ -439,13 +436,21 @@ public class AppController extends BaseController
|
|
|
|
if (!StringUtils.isEmpty(result))
|
|
|
|
if (!StringUtils.isEmpty(result))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
JSONObject data = JSONObject.parseObject(result);
|
|
|
|
JSONObject data = JSONObject.parseObject(result);
|
|
|
|
if(data.getInteger("code") != 200){
|
|
|
|
Integer code = data.getInteger("code");
|
|
|
|
|
|
|
|
if(code != 200 && code != 204){
|
|
|
|
TRecord tRecord1 = new TRecord();
|
|
|
|
TRecord tRecord1 = new TRecord();
|
|
|
|
tRecord1.setId(recordId);
|
|
|
|
tRecord1.setId(recordId);
|
|
|
|
tRecord1.setStatus("0");
|
|
|
|
tRecord1.setStatus("0");
|
|
|
|
tRecordService.updateTRecord(tRecord1);
|
|
|
|
tRecordService.updateTRecord(tRecord1);
|
|
|
|
throw new ServiceException(data.getString("msg"));
|
|
|
|
throw new ServiceException(data.getString("msg"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (code == 204) {
|
|
|
|
|
|
|
|
TRecord tRecord1 = new TRecord();
|
|
|
|
|
|
|
|
tRecord1.setId(recordId);
|
|
|
|
|
|
|
|
tRecord1.setStatus("0");
|
|
|
|
|
|
|
|
tRecordService.updateTRecord(tRecord1);
|
|
|
|
|
|
|
|
return AjaxResult.error(code, data.getString("msg"));
|
|
|
|
|
|
|
|
}
|
|
|
|
jsonObject = removeBase64Image(data,recordId);
|
|
|
|
jsonObject = removeBase64Image(data,recordId);
|
|
|
|
tRecord.setUploadTime(start);
|
|
|
|
tRecord.setUploadTime(start);
|
|
|
|
tRecord.setAiResultReturnTime(end);
|
|
|
|
tRecord.setAiResultReturnTime(end);
|
|
|
|