Commit c61b7ee67860342a14a0bf3e7f831d1259cf1b13
1 parent
7d10e0f057
Exists in
dev
#fix:优化小程序患者病历信息添加逻辑
Showing 2 changed files with 4 additions and 8 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
c61b7ee
| 1 | 1 | package com.lyms.talkonlineweb.controller; |
| 2 | 2 | |
| 3 | -import com.alibaba.fastjson.JSONArray; | |
| 4 | 3 | import com.alibaba.fastjson.JSONObject; |
| 5 | 4 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| 6 | 5 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| 7 | 6 | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| 8 | 7 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| 9 | 8 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 10 | -import com.baomidou.mybatisplus.extension.service.IService; | |
| 11 | 9 | import com.google.common.base.Strings; |
| 12 | 10 | import com.lyms.talkonlineweb.annotation.TokenRequired; |
| 13 | 11 | import com.lyms.talkonlineweb.domain.*; |
| 14 | 12 | |
| ... | ... | @@ -18,9 +16,7 @@ |
| 18 | 16 | import com.lyms.talkonlineweb.service.*; |
| 19 | 17 | import com.lyms.talkonlineweb.task.AccessTokenServlet; |
| 20 | 18 | import com.lyms.talkonlineweb.util.*; |
| 21 | -import com.mysql.cj.Query; | |
| 22 | 19 | import lombok.extern.log4j.Log4j2; |
| 23 | -import org.apache.ibatis.annotations.Delete; | |
| 24 | 20 | import org.springframework.beans.factory.annotation.Autowired; |
| 25 | 21 | import org.springframework.beans.factory.annotation.Value; |
| 26 | 22 | import org.springframework.util.DigestUtils; |
| ... | ... | @@ -148,7 +144,7 @@ |
| 148 | 144 | * @return |
| 149 | 145 | */ |
| 150 | 146 | @PostMapping("saveIllness") |
| 151 | - public BaseResponse saveIllness(@Validated IllnessParam illnessParam){ | |
| 147 | + public BaseResponse saveIllness(@RequestBody @Validated IllnessParam illnessParam){ | |
| 152 | 148 | //针对于特殊医院 |
| 153 | 149 | if (46==illnessParam.getHid()){ |
| 154 | 150 | LymsPatient lymsPatient= lymsPatientService.getById(illnessParam.getId()); |
| 155 | 151 | |
| ... | ... | @@ -168,11 +164,11 @@ |
| 168 | 164 | pcase.setCreated(new Date()); |
| 169 | 165 | lymsPcaseService.save(pcase); |
| 170 | 166 | lymsPatient.setHId(illnessParam.getHid()); |
| 171 | - if (illnessParam.getIId()!=null){ | |
| 167 | + if (illnessParam.getInId()!=null){ | |
| 172 | 168 | LymsIllness lymsIllness=new LymsIllness(); |
| 173 | 169 | lymsIllness.setPcid(pcase.getPcid()); |
| 174 | 170 | lymsIllness.setIname(illnessParam.getIname()); |
| 175 | - lymsIllness.setIid(illnessParam.getIId()); | |
| 171 | + lymsIllness.setIid(illnessParam.getInId()); | |
| 176 | 172 | lymsIllness.setCreatedtime(new Date()); |
| 177 | 173 | lymsIllnessService.save(lymsIllness); |
| 178 | 174 | }else { |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/param/IllnessParam.java
View file @
c61b7ee