签出返修维护

master
宇宙皮皮娃 2 years ago
parent f255d0f818
commit c4f20ed0f7

@ -0,0 +1,23 @@
package com.docus.server.collection.feign.service;
import com.docus.infrastructure.web.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author ceh
*/
@FeignClient(url = "${docus.url.sign-out-url}",name = "Medicalrecord")
public interface MedicalrecordService {
/*
* @description
* @author chierhao
* @date 2023-10-08 11:00
* @param patientId
* @return: com.docus.infrastructure.web.api.CommonResult
*/
@PostMapping("/basic/tbasic/signOutOrBackRepair")
CommonResult signOutOrBackRepair(@RequestParam(value = "patientId") String patientId);
}

@ -11,6 +11,7 @@ import com.docus.server.collection.entity.CollectSysDictionary;
import com.docus.server.collection.enums.FileSyncMethod;
import com.docus.server.collection.feign.dto.CompensateTasRequest;
import com.docus.server.collection.feign.service.CollectTaskService;
import com.docus.server.collection.feign.service.MedicalrecordService;
import com.docus.server.collection.infrastructure.dao.mapper.CollectSysDictionaryMapper;
import com.docus.server.collection.infrastructure.dao.mapper.TBasicMapper;
import com.docus.server.collection.service.MzZyHisService;
@ -37,6 +38,9 @@ public class MzZyHisServiceImpl implements MzZyHisService {
@Resource
private TBasicMapper tBasicMapper;
@Resource
private MedicalrecordService medicalrecordService;
@Override
public void firstPageCheckout(FirstPageCheckoutInDTO dto) {
System.out.println(dto);
@ -58,6 +62,11 @@ public class MzZyHisServiceImpl implements MzZyHisService {
if (commonResult.getCode().equals(ResultCode.FAILED.getCode())) {
throw new RuntimeException(commonResult.getMsg());
}
CommonResult result = medicalrecordService.signOutOrBackRepair(patientId);
// 抛出异常,进行参数持久
if (result.getCode().equals(ResultCode.FAILED.getCode())) {
throw new RuntimeException(commonResult.getMsg());
}
}
private List<String> systemMappingCollectorIds(FirstPageCheckoutInDTO dto) {

@ -52,6 +52,8 @@ docus:
url:
# 采集任务补偿地址
compensate-task-url: http://localhost:9295/
# 签出调用
sign-out-url: http://localhost:9102/
mybatis-plus:
configuration:

Loading…
Cancel
Save