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