新增根据体检编号绑定患者项目信息接口
This commit is contained in:
parent
ebf27c80f9
commit
704a8ba320
@ -307,9 +307,9 @@ public class InspectPatientController {
|
|||||||
{
|
{
|
||||||
|
|
||||||
//检查项目
|
//检查项目
|
||||||
List<InspectPatientitemsSaveReqVO> dataList2 = new ArrayList<>();
|
// List<InspectPatientitemsSaveReqVO> dataList2 = new ArrayList<>();
|
||||||
//检查套餐信息
|
//检查套餐信息
|
||||||
List<InspectitemsDO> doList = exammoduleService.selectItemsByExamModuleID(1001);
|
// List<InspectitemsDO> doList = exammoduleService.selectItemsByExamModuleID(1001);
|
||||||
// 获取当前日期并格式化为 yyyyMMdd 格式
|
// 获取当前日期并格式化为 yyyyMMdd 格式
|
||||||
LocalDate currentDate = LocalDate.now();
|
LocalDate currentDate = LocalDate.now();
|
||||||
String datePart = currentDate.format(DateTimeFormatter.ofPattern("yyyyMMdd"));
|
String datePart = currentDate.format(DateTimeFormatter.ofPattern("yyyyMMdd"));
|
||||||
@ -328,11 +328,43 @@ public class InspectPatientController {
|
|||||||
rowData.setStatus(0);
|
rowData.setStatus(0);
|
||||||
patientService.createPatient(rowData);
|
patientService.createPatient(rowData);
|
||||||
|
|
||||||
|
// //填写项目信息
|
||||||
|
// for (InspectitemsDO inspectitemsDO : doList) {
|
||||||
|
// //套餐信息
|
||||||
|
// InspectPatientitemsSaveReqVO rowData2 = new InspectPatientitemsSaveReqVO();
|
||||||
|
// rowData2.setMedicalSn(sequencePart);
|
||||||
|
// rowData2.setItemCode(inspectitemsDO.getItemCode());
|
||||||
|
// rowData2.setItemName(inspectitemsDO.getItemName());
|
||||||
|
// rowData2.setPrice(inspectitemsDO.getPrice());
|
||||||
|
// rowData2.setSectionID(inspectitemsDO.getSectionID());
|
||||||
|
// rowData2.setUnit(inspectitemsDO.getUnit());
|
||||||
|
// rowData2.setItemStatus("0");
|
||||||
|
// rowData2.setGroupname(inspectitemsDO.getGroupname());
|
||||||
|
// rowData2.setGroupcode(inspectitemsDO.getGroupcode());
|
||||||
|
// rowData2.setCreateTime(LocalDateTime.now());
|
||||||
|
// rowData2.setHighValue(inspectitemsDO.getHighValue());
|
||||||
|
// rowData2.setLowValue(inspectitemsDO.getLowValue());
|
||||||
|
// rowData2.setMealfrontorafter(inspectitemsDO.getMealfrontorafter());
|
||||||
|
// dataList2.add(rowData2);
|
||||||
|
// }
|
||||||
|
// // 分批插入患者项目信息
|
||||||
|
// batchInsertPatientItems(dataList2);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
@GetMapping("/createPatientitem")
|
||||||
|
@Operation(summary = "通过体检编号绑定检查项目信息")
|
||||||
|
public CommonResult<Boolean> createPatientitem(@RequestParam("medicalSn") String medicalSn)
|
||||||
|
{
|
||||||
|
//检查项目
|
||||||
|
List<InspectPatientitemsSaveReqVO> dataList2 = new ArrayList<>();
|
||||||
|
//检查套餐信息
|
||||||
|
List<InspectitemsDO> doList = exammoduleService.selectItemsByExamModuleID(1001);
|
||||||
|
|
||||||
//填写项目信息
|
//填写项目信息
|
||||||
for (InspectitemsDO inspectitemsDO : doList) {
|
for (InspectitemsDO inspectitemsDO : doList) {
|
||||||
//套餐信息
|
//套餐信息
|
||||||
InspectPatientitemsSaveReqVO rowData2 = new InspectPatientitemsSaveReqVO();
|
InspectPatientitemsSaveReqVO rowData2 = new InspectPatientitemsSaveReqVO();
|
||||||
rowData2.setMedicalSn(sequencePart);
|
rowData2.setMedicalSn(medicalSn);
|
||||||
rowData2.setItemCode(inspectitemsDO.getItemCode());
|
rowData2.setItemCode(inspectitemsDO.getItemCode());
|
||||||
rowData2.setItemName(inspectitemsDO.getItemName());
|
rowData2.setItemName(inspectitemsDO.getItemName());
|
||||||
rowData2.setPrice(inspectitemsDO.getPrice());
|
rowData2.setPrice(inspectitemsDO.getPrice());
|
||||||
@ -347,11 +379,14 @@ public class InspectPatientController {
|
|||||||
rowData2.setMealfrontorafter(inspectitemsDO.getMealfrontorafter());
|
rowData2.setMealfrontorafter(inspectitemsDO.getMealfrontorafter());
|
||||||
dataList2.add(rowData2);
|
dataList2.add(rowData2);
|
||||||
}
|
}
|
||||||
|
if(dataList2.size()>0)
|
||||||
|
{
|
||||||
// 分批插入患者项目信息
|
// 分批插入患者项目信息
|
||||||
batchInsertPatientItems(dataList2);
|
batchInsertPatientItems(dataList2);
|
||||||
return success(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
@GetMapping("/syncinspectApplyTj")
|
@GetMapping("/syncinspectApplyTj")
|
||||||
@Operation(summary = "发送检验申请单")
|
@Operation(summary = "发送检验申请单")
|
||||||
public CommonResult<Boolean> syncinspectApplyTj(@RequestParam("medicalSn") String medicalSn) throws JsonProcessingException {
|
public CommonResult<Boolean> syncinspectApplyTj(@RequestParam("medicalSn") String medicalSn) throws JsonProcessingException {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user