Commit 2076e4514fc5136621aeeff4d09a3826783b7889
1 parent
95f021886a
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 3 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BloodPressureController.java
View file @
2076e45
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | import com.lyms.platform.common.annotation.TokenRequired; |
4 | 4 | import com.lyms.platform.common.base.BaseController; |
5 | 5 | import com.lyms.platform.common.result.BaseResponse; |
6 | +import com.lyms.platform.common.result.RespBuilder; | |
6 | 7 | import com.lyms.platform.operate.web.service.IBloodPressureService; |
7 | 8 | import com.lyms.platform.pojo.BloodPressure; |
8 | 9 | import org.springframework.beans.factory.annotation.Autowired; |
... | ... | @@ -13,8 +14,6 @@ |
13 | 14 | import org.springframework.web.bind.annotation.ResponseBody; |
14 | 15 | |
15 | 16 | import javax.servlet.http.HttpServletRequest; |
16 | -import java.util.List; | |
17 | -import java.util.Map; | |
18 | 17 | |
19 | 18 | /** |
20 | 19 | * 血压 |
... | ... | @@ -55,8 +54,8 @@ |
55 | 54 | |
56 | 55 | @ResponseBody |
57 | 56 | @RequestMapping(value = "/app/{parentId}", method = RequestMethod.GET) |
58 | - public List<Map<String, Object>> getAppInfo(@PathVariable String parentId) { | |
59 | - return bloodPressureService.getAppInfo(parentId); | |
57 | + public BaseResponse getAppInfo(@PathVariable String parentId) { | |
58 | + return RespBuilder.buildSuccess(bloodPressureService.getAppInfo(parentId)); | |
60 | 59 | } |
61 | 60 | |
62 | 61 | } |