Commit a22ff021ebc5ae770dc1db5ac75d67d3a43047a2
1 parent
01e2d1f180
Exists in
master
and in
6 other branches
update
Showing 3 changed files with 24 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
a22ff02
| ... | ... | @@ -2152,6 +2152,15 @@ |
| 2152 | 2152 | |
| 2153 | 2153 | matdeliverFollowListResult.setTaoCheng(isTaocheng); |
| 2154 | 2154 | |
| 2155 | + // 推送时间 | |
| 2156 | + String pushTime = ""; | |
| 2157 | + List<MatdeliverFollowModel> deliverId = mongoTemplate.find(Query.query(Criteria.where("deliverId").is(deliverModel.getId())), MatdeliverFollowModel.class); | |
| 2158 | + if (CollectionUtils.isNotEmpty(deliverId)) { | |
| 2159 | + MatdeliverFollowModel model = deliverId.get(deliverId.size() - 1); | |
| 2160 | + pushTime = DateUtil.getyyyy_MM_dd(model.getCreateDate()); | |
| 2161 | + } | |
| 2162 | + matdeliverFollowListResult.setPushTime(pushTime); | |
| 2163 | + | |
| 2155 | 2164 | matdeliverFollowListResults.add(matdeliverFollowListResult); |
| 2156 | 2165 | } |
| 2157 | 2166 | listResponse.setPageInfo(matDeliverQuery.getPageInfo()); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatdeliverFollowFacade.java
View file @
a22ff02
| ... | ... | @@ -794,6 +794,8 @@ |
| 794 | 794 | update.set(entry.getKey(), entryValue.toString()); |
| 795 | 795 | } |
| 796 | 796 | } |
| 797 | + update.set("visitStatus", 2); | |
| 798 | + update.set("visitDate", new Date()); | |
| 797 | 799 | Query query = Query.query(Criteria.where("id").is(id)); |
| 798 | 800 | mongoTemplate.updateFirst(query, update, MatdeliverFollowModel.class); |
| 799 | 801 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/MatdeliverFollowListResult.java
View file @
a22ff02
| ... | ... | @@ -155,6 +155,19 @@ |
| 155 | 155 | */ |
| 156 | 156 | private String causeFailure; |
| 157 | 157 | |
| 158 | + /** | |
| 159 | + * 推送时间 | |
| 160 | + */ | |
| 161 | + private String pushTime; | |
| 162 | + | |
| 163 | + public String getPushTime() { | |
| 164 | + return pushTime; | |
| 165 | + } | |
| 166 | + | |
| 167 | + public void setPushTime(String pushTime) { | |
| 168 | + this.pushTime = pushTime; | |
| 169 | + } | |
| 170 | + | |
| 158 | 171 | public List<Map<String, Object>> getHighRiskLevels() { |
| 159 | 172 | return highRiskLevels; |
| 160 | 173 | } |