|
@@ -3,9 +3,11 @@ package com.tuoren.web;
|
|
|
import com.tuoren.TuorenApplication;
|
|
import com.tuoren.TuorenApplication;
|
|
|
import com.tuoren.web.layer.controller.BusPatientController;
|
|
import com.tuoren.web.layer.controller.BusPatientController;
|
|
|
import com.tuoren.web.layer.d0.PumpRemoveRequestDTO;
|
|
import com.tuoren.web.layer.d0.PumpRemoveRequestDTO;
|
|
|
|
|
+import com.tuoren.web.layer.d0.PumpVo;
|
|
|
import com.tuoren.web.layer.entity.BusPatientEntity;
|
|
import com.tuoren.web.layer.entity.BusPatientEntity;
|
|
|
import com.tuoren.web.layer.service.IBusPatientService;
|
|
import com.tuoren.web.layer.service.IBusPatientService;
|
|
|
import com.tuoren.web.layer.service.impl.BusPumpServiceImpl;
|
|
import com.tuoren.web.layer.service.impl.BusPumpServiceImpl;
|
|
|
|
|
+import com.tuoren.web.layer.vo.PumpParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.junit.Test;
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
import org.junit.runner.RunWith;
|
|
@@ -17,6 +19,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @ClassName : Test
|
|
* @ClassName : Test
|
|
@@ -47,6 +51,7 @@ public class Test1 {
|
|
|
PumpRemoveRequestDTO pumpRemoveRequestDTO = new PumpRemoveRequestDTO();
|
|
PumpRemoveRequestDTO pumpRemoveRequestDTO = new PumpRemoveRequestDTO();
|
|
|
pumpRemoveRequestDTO.setIds(Arrays.asList("382"));
|
|
pumpRemoveRequestDTO.setIds(Arrays.asList("382"));
|
|
|
pumpRemoveRequestDTO.setRemoveUser("admin");
|
|
pumpRemoveRequestDTO.setRemoveUser("admin");
|
|
|
|
|
+ pumpRemoveRequestDTO.setUndoTime(new Date());
|
|
|
busPumpService.removePumpNew(pumpRemoveRequestDTO);
|
|
busPumpService.removePumpNew(pumpRemoveRequestDTO);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -84,4 +89,15 @@ public class Test1 {
|
|
|
iBusPatientEntityService.sendPatientInfoToPump(busPatientEntity.getPatientId());
|
|
iBusPatientEntityService.sendPatientInfoToPump(busPatientEntity.getPatientId());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void test4() throws Exception {
|
|
|
|
|
+ PumpParam pumpParam = new PumpParam();
|
|
|
|
|
+ pumpParam.setPumpCode("4319571630430293");
|
|
|
|
|
+ pumpParam.setHospitalCode("5490dd8896e54ecab824b006074361de");
|
|
|
|
|
+ pumpParam.setPatientId("5d892e4f-7c85-40b3-8b4d-8006f3771e2f");
|
|
|
|
|
+// pumpParam.setPatientCode("436167");
|
|
|
|
|
+ List<PumpVo> pumpVos = busPumpService.queryPumpInfo(pumpParam);
|
|
|
|
|
+ System.out.println(pumpVos);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|