Commit 9df23f719a406ff61884a23ce4e66d205738f0d3
1 parent
4b479bcf69
Exists in
master
and in
1 other branch
upate
Showing 3 changed files with 7 additions and 5 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsHisInfoController.java
View file @
9df23f7
| ... | ... | @@ -14,6 +14,7 @@ |
| 14 | 14 | import org.springframework.validation.annotation.Validated; |
| 15 | 15 | import org.springframework.web.bind.annotation.*; |
| 16 | 16 | |
| 17 | +import java.util.Date; | |
| 17 | 18 | import java.util.List; |
| 18 | 19 | |
| 19 | 20 | /** |
| ... | ... | @@ -42,9 +43,9 @@ |
| 42 | 43 | query.eq("up_type", hisInfo.getUpType()); |
| 43 | 44 | } |
| 44 | 45 | if(StringUtil.isNotEmpty(hisInfo.getSynthesisQuery())){ |
| 45 | - query.and(wrapper -> wrapper .like("name", hisInfo.getName()) | |
| 46 | - .or().eq("phone", hisInfo.getPhone()) | |
| 47 | - .or().eq("idCard", hisInfo.getIdcard())); | |
| 46 | + query.and(wrapper -> wrapper .like("name", hisInfo.getSynthesisQuery()) | |
| 47 | + .or().eq("phone", hisInfo.getSynthesisQuery()) | |
| 48 | + .or().eq("idCard", hisInfo.getSynthesisQuery())); | |
| 48 | 49 | } |
| 49 | 50 | if(StringUtil.isNotEmpty(hisInfo.getStartCreatedtime())){ |
| 50 | 51 | query.ge("createdtime", hisInfo.getStartCreatedtime()); |
| ... | ... | @@ -71,6 +72,7 @@ |
| 71 | 72 | baseResponse.setErrormsg(result); |
| 72 | 73 | }else { |
| 73 | 74 | lymsHisInfo.setUpType(1); |
| 75 | + lymsHisInfo.setUpTime(new Date()); | |
| 74 | 76 | final boolean b = lymsHisInfoService.updateById(lymsHisInfo); |
| 75 | 77 | if(b){ |
| 76 | 78 | baseResponse.setErrorcode(0); |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsHisInfo.java
View file @
9df23f7
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java
View file @
9df23f7