Sfoglia il codice sorgente

修复 创建访客 的时候, 没有返回开始时间和结束时间

weiximei 6 anni fa
parent
commit
0ce616a83d

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/VistorController.java Vedi File

38
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
38
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
39
             @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
39
             @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
40
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "parameter", value = "carLicense:车牌(数组),drivingStatus:0 是不开车 1是开车," +
40
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "parameter", value = "carLicense:车牌(数组),drivingStatus:0 是不开车 1是开车," +
41
-                    "visitorName:访问人姓名,visitorNum:访问人数,visitorTel:访问人电话,visitorStartTime:访问人电话,visitorEndTime:访问人结束时间")})
41
+                    "visitorName:访问人姓名,visitorNum:访问人数,visitorTel:访问人电话,visitorStartTime:访问人开始时间,visitorEndTime:访问人结束时间")})
42
     public ResponseBean findVistorDetail(@PathVariable("communityId")Integer communityId, @RequestBody String parameter, HttpSession session) {
42
     public ResponseBean findVistorDetail(@PathVariable("communityId")Integer communityId, @RequestBody String parameter, HttpSession session) {
43
         ResponseBean responseBean = new ResponseBean();
43
         ResponseBean responseBean = new ResponseBean();
44
 
44
 

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaVistorServiceImpl.java Vedi File

111
             Map<String,Object> map = Maps.newHashMap();
111
             Map<String,Object> map = Maps.newHashMap();
112
             map.put("message","创建访问登记成功!");
112
             map.put("message","创建访问登记成功!");
113
             map.put("visitorCode",resultJSON.getJSONObject("data").getString("QRCode"));
113
             map.put("visitorCode",resultJSON.getJSONObject("data").getString("QRCode"));
114
+            map.put("visitorStartTime",visitor.getVisitorStartTime());
115
+            map.put("visitorEndTime",visitor.getVisitorEndTime());
114
 
116
 
115
             // 把访问码存入
117
             // 把访问码存入
116
             visitor.setVisitorCode(visitorCode);
118
             visitor.setVisitorCode(visitorCode);