Commit 856b41b8d8471da49a0c83561a01d33844829d4b
1 parent
f8406a53e6
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 17 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
856b41b
| ... | ... | @@ -6,6 +6,9 @@ |
| 6 | 6 | import com.lyms.hospitalapi.qhdfy.QhdfyHisService; |
| 7 | 7 | import com.lyms.platform.biz.JdbcUtil; |
| 8 | 8 | import com.lyms.platform.biz.service.*; |
| 9 | +import com.lyms.platform.common.annotation.TokenRequired; | |
| 10 | +import com.lyms.platform.common.base.BaseController; | |
| 11 | +import com.lyms.platform.common.base.LoginContext; | |
| 9 | 12 | import com.lyms.platform.common.enums.SieveStatusEnums; |
| 10 | 13 | import com.lyms.platform.common.enums.YnEnums; |
| 11 | 14 | import com.lyms.platform.common.result.BaseResponse; |
| ... | ... | @@ -13,10 +16,8 @@ |
| 13 | 16 | import com.lyms.platform.common.utils.DateUtil; |
| 14 | 17 | import com.lyms.platform.common.utils.ExceptionUtils; |
| 15 | 18 | import com.lyms.platform.common.utils.JsonUtil; |
| 16 | -import com.lyms.platform.operate.web.facade.AntenatalExaminationFacade; | |
| 17 | -import com.lyms.platform.operate.web.facade.BabyCheckFacade; | |
| 18 | -import com.lyms.platform.operate.web.facade.HosptialHighRiskFacade; | |
| 19 | -import com.lyms.platform.operate.web.facade.SieveFacade; | |
| 19 | +import com.lyms.platform.operate.web.facade.*; | |
| 20 | +import com.lyms.platform.operate.web.request.AntExListQueryRequest; | |
| 20 | 21 | import com.lyms.platform.operate.web.result.HighScoreResult; |
| 21 | 22 | import com.lyms.platform.operate.web.service.IBloodPressureService; |
| 22 | 23 | import com.lyms.platform.operate.web.service.SyncDataTaskService; |
| ... | ... | @@ -48,6 +49,8 @@ |
| 48 | 49 | import org.springframework.web.bind.annotation.RequestParam; |
| 49 | 50 | import org.springframework.web.bind.annotation.ResponseBody; |
| 50 | 51 | |
| 52 | +import javax.servlet.http.HttpServletRequest; | |
| 53 | +import javax.validation.Valid; | |
| 51 | 54 | import java.io.File; |
| 52 | 55 | import java.io.IOException; |
| 53 | 56 | import java.util.*; |
| ... | ... | @@ -57,7 +60,7 @@ |
| 57 | 60 | * 测试数据, 假数据 |
| 58 | 61 | */ |
| 59 | 62 | @Controller |
| 60 | -public class TestController { | |
| 63 | +public class TestController extends BaseController { | |
| 61 | 64 | |
| 62 | 65 | |
| 63 | 66 | @Autowired |
| ... | ... | @@ -125,6 +128,8 @@ |
| 125 | 128 | |
| 126 | 129 | @Autowired |
| 127 | 130 | private BabyBookbuildingService babyBookbuildingService; |
| 131 | + @Autowired | |
| 132 | + private PatientMedicalRecordFacade patientMedicalRecordFacade; | |
| 128 | 133 | |
| 129 | 134 | |
| 130 | 135 | static Map<String, String> highRisks = new HashMap<>(); |
| ... | ... | @@ -1661,5 +1666,12 @@ |
| 1661 | 1666 | return modCount; |
| 1662 | 1667 | } |
| 1663 | 1668 | |
| 1669 | + @RequestMapping(method = RequestMethod.GET, value = "/antex/antexlist2") | |
| 1670 | + @ResponseBody | |
| 1671 | + @TokenRequired | |
| 1672 | + public BaseResponse findAntExList(@Valid AntExListQueryRequest exListQueryRequest,HttpServletRequest request) { | |
| 1673 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 1674 | + return patientMedicalRecordFacade.findAntExListTwo(exListQueryRequest,loginState.getId()); | |
| 1675 | + } | |
| 1664 | 1676 | } |