Commit 1548d185d0928307a5cff81a7e7a5906427e899d
1 parent
b929489e94
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 17 additions and 1 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/CervicalCancerModel.java
View file @
1548d18
| ... | ... | @@ -67,7 +67,20 @@ |
| 67 | 67 | */ |
| 68 | 68 | private Object formData; |
| 69 | 69 | |
| 70 | + /** | |
| 71 | + * 创建人id | |
| 72 | + */ | |
| 73 | + private String createUser; | |
| 74 | + | |
| 70 | 75 | private Date created; |
| 76 | + | |
| 77 | + public String getCreateUser() { | |
| 78 | + return createUser; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public void setCreateUser(String createUser) { | |
| 82 | + this.createUser = createUser; | |
| 83 | + } | |
| 71 | 84 | |
| 72 | 85 | public Date getCreated() { |
| 73 | 86 | return created; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CervicalCancerController.java
View file @
1548d18
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | +import javax.servlet.http.HttpServletRequest; | |
| 4 | + | |
| 3 | 5 | import org.springframework.beans.factory.annotation.Autowired; |
| 4 | 6 | import org.springframework.stereotype.Controller; |
| 5 | 7 | import org.springframework.web.bind.annotation.RequestBody; |
| ... | ... | @@ -53,7 +55,8 @@ |
| 53 | 55 | @RequestMapping(method = RequestMethod.POST, value = "/add") |
| 54 | 56 | @ResponseBody |
| 55 | 57 | @TokenRequired |
| 56 | - public BaseResponse add( @RequestBody CervicalCancerRequest param) { | |
| 58 | + public BaseResponse add(@RequestBody CervicalCancerRequest param, HttpServletRequest request) { | |
| 59 | + param.setCreateUser(getUserId(request).toString()); | |
| 57 | 60 | return cervicalCancerService.add(param); |
| 58 | 61 | } |
| 59 | 62 |