Commit 91af74c562cc10a8a6fbd6f92889713942af4076

Authored by wangbo
1 parent 0bf38b7721

血压报告

Showing 1 changed file with 33 additions and 34 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ViewController.java View file @ 91af74c
... ... @@ -66,8 +66,6 @@
66 66 }
67 67  
68 68  
69   -
70   -
71 69 /**
72 70 * 查询初诊接口
73 71 *
... ... @@ -95,7 +93,7 @@
95 93 @TokenRequired
96 94 public void downExChuData(@RequestParam("id") String id, HttpServletRequest request, HttpServletResponse response) {
97 95 LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
98   - if(loginState == null){
  96 + if (loginState == null) {
99 97 System.out.println("用户未登录!");
100 98 return;
101 99 }
... ... @@ -129,7 +127,8 @@
129 127  
130 128  
131 129 /**
132   - *初诊随访表打印接口
  130 + * 初诊随访表打印接口
  131 + *
133 132 * @param id
134 133 * @param request
135 134 * @return
136 135  
... ... @@ -137,9 +136,9 @@
137 136 @RequestMapping(value = "/printExChuData", method = RequestMethod.GET)
138 137 @ResponseBody
139 138 @TokenRequired
140   - public BaseResponse printExChuData(@RequestParam("id") String id, HttpServletRequest request){
  139 + public BaseResponse printExChuData(@RequestParam("id") String id, HttpServletRequest request) {
141 140 LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
142   - if(loginState == null){
  141 + if (loginState == null) {
143 142 System.out.println("用户未登录!");
144 143 return new BaseListResponse().setErrormsg("失败").setErrorcode(ErrorCodeConstants.USER_NOT_EXISTS);
145 144 }
... ... @@ -159,7 +158,7 @@
159 158 @TokenRequired
160 159 public void downExFuData(@RequestParam("id") String id, @RequestParam("num") int num, HttpServletRequest request, HttpServletResponse response) {
161 160 LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
162   - if(loginState == null){
  161 + if (loginState == null) {
163 162 System.out.println("用户未登录!");
164 163 return;
165 164 }
... ... @@ -193,7 +192,8 @@
193 192 }
194 193  
195 194 /**
196   - *复诊随访表打印接口
  195 + * 复诊随访表打印接口
  196 + *
197 197 * @param id
198 198 * @param request
199 199 * @return
200 200  
... ... @@ -201,9 +201,9 @@
201 201 @RequestMapping(value = "/printExFuData", method = RequestMethod.GET)
202 202 @ResponseBody
203 203 @TokenRequired
204   - public BaseResponse printExFuData(@RequestParam("id") String id, HttpServletRequest request){
  204 + public BaseResponse printExFuData(@RequestParam("id") String id, HttpServletRequest request) {
205 205 LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
206   - if(loginState == null){
  206 + if (loginState == null) {
207 207 System.out.println("用户未登录!");
208 208 return new BaseListResponse().setErrormsg("失败").setErrorcode(ErrorCodeConstants.USER_NOT_EXISTS);
209 209 }
210 210  
211 211  
... ... @@ -212,14 +212,14 @@
212 212 }
213 213  
214 214  
215   -
216 215 /**
217 216 * 导出高危孕产妇专案管理
  217 + *
218 218 * @param id
219 219 * @param response
220 220 */
221 221 @RequestMapping(value = "/downHightRiskExpostData", method = RequestMethod.GET)
222   - public void downHightRiskExpostData(@RequestParam("parentId") String id,HttpServletResponse response) {
  222 + public void downHightRiskExpostData(@RequestParam("parentId") String id, HttpServletResponse response) {
223 223 Map<String, Object> map = viewFacade.expHightRiskPostReview(id, null);
224 224 try {
225 225 // 验证License
226 226  
227 227  
... ... @@ -238,19 +238,16 @@
238 238 DocumentBuilder builder = new DocumentBuilder(doc);
239 239  
240 240 List widthList = new ArrayList();
241   - for (int i = 0; i < 7; i++)
242   - {
  241 + for (int i = 0; i < 7; i++) {
243 242 builder.moveToCell(0, 5, i, 0); //移动单元格
244 243 double width = builder.getCellFormat().getWidth();//获取单元格宽度
245   - System.out.println("width:"+width);
  244 + System.out.println("width:" + width);
246 245 widthList.add(width);
247 246 }
248 247  
249 248 builder.moveToBookmark("table"); //开始添加值
250   - for (int i=0; i<allAntExList.size(); i++)
251   - {
252   - for (int j =0;j<allAntExList.get(i).size();j++)
253   - {
  249 + for (int i = 0; i < allAntExList.size(); i++) {
  250 + for (int j = 0; j < allAntExList.get(i).size(); j++) {
254 251 builder.insertCell();// 添加一个单元格
255 252 builder.getCellFormat().getBorders().setLineStyle(LineStyle.SINGLE);
256 253 builder.getCellFormat().getBorders().setColor(Color.BLACK);
257 254  
... ... @@ -331,9 +328,8 @@
331 328 }
332 329  
333 330  
334   -
335 331 @RequestMapping(value = "/downExpostData", method = RequestMethod.GET)
336   - public void downExPostData(@RequestParam("id") String id,HttpServletRequest request, HttpServletResponse response) {
  332 + public void downExPostData(@RequestParam("id") String id, HttpServletRequest request, HttpServletResponse response) {
337 333 Map<String, Object> map = viewFacade.expPostReview(id, null);
338 334 try {
339 335 // 验证License
340 336  
... ... @@ -380,13 +376,14 @@
380 376  
381 377 /**
382 378 * 导出随访表
  379 + *
383 380 * @param id
384 381 * @param response
385 382 */
386 383 @RequestMapping(value = "/downFollowData", method = RequestMethod.GET)
387 384 // @TokenRequired
388 385 public void downFollowPostData(@RequestParam("id") String id,
389   - HttpServletResponse response) {
  386 + HttpServletResponse response) {
390 387 Map<String, Object> map = matdeliverFollowFacade.downMatdelFollowMake(id);
391 388  
392 389 try {
... ... @@ -590,7 +587,7 @@
590 587 public void markData(Document doc, Map<String, Object> data) {
591 588 try {
592 589 for (Map.Entry<String, Object> m : data.entrySet()) {
593   - if(m.getValue()==null||"null".equals(m.getValue())){
  590 + if (m.getValue() == null || "null".equals(m.getValue())) {
594 591 continue;
595 592 }
596 593 BookmarkCollection books = doc.getRange().getBookmarks();
... ... @@ -612,7 +609,7 @@
612 609 */
613 610 public void markFrameText(DocumentBuilder builder, String text) {
614 611 try {
615   - if(StringUtils.isEmpty(text)||"null".equals(text)){
  612 + if (StringUtils.isEmpty(text) || "null".equals(text)) {
616 613 return;
617 614 }
618 615 builder.getFont().getBorder().clearFormatting();
... ... @@ -742,8 +739,6 @@
742 739 }
743 740  
744 741  
745   -
746   -
747 742 /**
748 743 * 查看产后复查
749 744 *
750 745  
... ... @@ -823,12 +818,13 @@
823 818  
824 819 /**
825 820 * 打印儿童出生证明
  821 + *
826 822 * @return
827 823 */
828 824 @RequestMapping(value = "/findMatDeliverPrint", method = RequestMethod.GET)
829 825 @ResponseBody
830 826 @TokenRequired
831   - public BaseObjectResponse findMatDeliverPrint(@RequestParam(required = true) String id,@RequestParam(required = true) String babyId) {
  827 + public BaseObjectResponse findMatDeliverPrint(@RequestParam(required = true) String id, @RequestParam(required = true) String babyId) {
832 828 return viewFacade.findMatDeliverPrint(id, babyId);
833 829 }
834 830  
... ... @@ -856,7 +852,7 @@
856 852 @RequestMapping(value = "/GetDeliveryInfo", method = RequestMethod.GET)
857 853 @ResponseBody
858 854 public Object getMatDeliverData(@RequestParam(required = true) String id,
859   - @RequestParam(required = false) String hospital) {
  855 + @RequestParam(required = false) String hospital) {
860 856 return viewFacade.getMatDeliverData(id, hospital);
861 857 }
862 858  
863 859  
864 860  
... ... @@ -864,14 +860,15 @@
864 860 /**
865 861 * 滦平获取高危信息
866 862 * 定制需求开发
  863 + *
867 864 * @param cardNo
868 865 * @param vcCardNo
869 866 * @param response
870 867 * @return
871 868 */
872   - @RequestMapping(method = RequestMethod.GET, value = "/getPatientRiskInfo",produces = "text/xml;charset=utf-8")
  869 + @RequestMapping(method = RequestMethod.GET, value = "/getPatientRiskInfo", produces = "text/xml;charset=utf-8")
873 870 @ResponseBody
874   - public String getPatientRiskInfo(@RequestParam(required = false)String cardNo,@RequestParam(required = false)String vcCardNo,
  871 + public String getPatientRiskInfo(@RequestParam(required = false) String cardNo, @RequestParam(required = false) String vcCardNo,
875 872 HttpServletResponse response) {
876 873 return viewFacade.getPatientRiskInfo(cardNo, vcCardNo);
877 874 }
878 875  
879 876  
... ... @@ -879,14 +876,15 @@
879 876  
880 877 /**
881 878 * 上传升级包
  879 + *
882 880 * @param request
883 881 * @param file
884 882 * @return
885 883 */
886   - @RequestMapping(value="/uploadUpgradePackage",method=RequestMethod.POST)
  884 + @RequestMapping(value = "/uploadUpgradePackage", method = RequestMethod.POST)
887 885 @ResponseBody
888 886 public BaseResponse uploadUpgradePackage(HttpServletRequest request,
889   - @RequestParam("file") MultipartFile file) {
  887 + @RequestParam("file") MultipartFile file) {
890 888  
891 889 return viewFacade.uploadUpgradePackage(file);
892 890  
893 891  
894 892  
... ... @@ -895,13 +893,14 @@
895 893  
896 894 /**
897 895 * 执行升级
  896 + *
898 897 * @param request
899 898 * @return
900 899 */
901   - @RequestMapping(value="/executeUpgrade",method=RequestMethod.GET)
  900 + @RequestMapping(value = "/executeUpgrade", method = RequestMethod.GET)
902 901 @ResponseBody
903 902 @TokenRequired
904   - public BaseResponse executeUpgrade(HttpServletRequest request) {
  903 + public BaseResponse executeUpgrade(HttpServletRequest request) {
905 904  
906 905 return viewFacade.executeUpgrade();
907 906