Commit c895b80bf508b30a2a1a04843440c6eb250f6c98
1 parent
13ff6d4600
Exists in
master
设置excel
Showing 1 changed file with 2 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
View file @
c895b80
| ... | ... | @@ -139,6 +139,7 @@ |
| 139 | 139 | public void childbirthManagerExcel(HttpServletRequest httpServletRequest, @RequestBody ChildbirthManagerRequest childbirthManagerRequest, HttpServletResponse httpServletResponse) { |
| 140 | 140 | try { |
| 141 | 141 | childbirthManagerRequest.setOperatorId(((LoginContext) httpServletRequest.getAttribute("loginContext")).getId()); |
| 142 | + childbirthManagerRequest.setExcel(true); | |
| 142 | 143 | // 这里返回的结果必然是这个泛型,之所以query返回的结果集没有用泛型是为了更好的传递数据 |
| 143 | 144 | @SuppressWarnings("unchecked") |
| 144 | 145 | List<ChildbirthManagerQueryModel> childbirthManagerQueryModelList = matDeliverFacade.childbirthManager(childbirthManagerRequest).getData(); |
| ... | ... | @@ -179,6 +180,7 @@ |
| 179 | 180 | BaseListResponse baseListResponse; |
| 180 | 181 | try { |
| 181 | 182 | newBabyManagerRequest.setOperatorId(((LoginContext) httpServletRequest.getAttribute("loginContext")).getId()); |
| 183 | + newBabyManagerRequest.setExcel(true); | |
| 182 | 184 | NewBabyManagerResult newBabyManagerResult = matDeliverFacade.newBabyManager(newBabyManagerRequest); |
| 183 | 185 | if (newBabyManagerResult.getErrorcode() != ErrorCodeConstants.SUCCESS) { |
| 184 | 186 | baseListResponse = new BaseListResponse().setErrorcode(newBabyManagerResult.getErrorcode()).setErrormsg(newBabyManagerResult.getErrormsg()); |