Przeglądaj źródła

优化钥匙审核功能

wuxw 6 lat temu
rodzic
commit
e3d7c3f7d2

+ 5 - 5
Api/src/main/java/com/java110/api/listener/owner/QueryOwnerMembersListener.java

@@ -3,14 +3,14 @@ package com.java110.api.listener.owner;
 
 
 import com.alibaba.fastjson.JSONObject;
 import com.alibaba.fastjson.JSONObject;
 import com.java110.api.listener.AbstractServiceApiDataFlowListener;
 import com.java110.api.listener.AbstractServiceApiDataFlowListener;
-import com.java110.utils.constant.ServiceCodeConstant;
-import com.java110.utils.util.Assert;
-import com.java110.utils.util.BeanConvertUtil;
 import com.java110.core.annotation.Java110Listener;
 import com.java110.core.annotation.Java110Listener;
 import com.java110.core.context.DataFlowContext;
 import com.java110.core.context.DataFlowContext;
 import com.java110.core.smo.owner.IOwnerInnerServiceSMO;
 import com.java110.core.smo.owner.IOwnerInnerServiceSMO;
 import com.java110.dto.owner.OwnerDto;
 import com.java110.dto.owner.OwnerDto;
 import com.java110.event.service.api.ServiceDataFlowEvent;
 import com.java110.event.service.api.ServiceDataFlowEvent;
+import com.java110.utils.constant.ServiceCodeConstant;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.api.ApiOwnerDataVo;
 import com.java110.vo.api.ApiOwnerDataVo;
 import com.java110.vo.api.ApiOwnerVo;
 import com.java110.vo.api.ApiOwnerVo;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -57,6 +57,7 @@ public class QueryOwnerMembersListener extends AbstractServiceApiDataFlowListene
         validateOwnerData(reqJson);
         validateOwnerData(reqJson);
 
 
         OwnerDto ownerDto = BeanConvertUtil.covertBean(reqJson, OwnerDto.class);
         OwnerDto ownerDto = BeanConvertUtil.covertBean(reqJson, OwnerDto.class);
+        ownerDto.setOwnerTypeCds(new String[]{"1002", "1003", "1004", "1005"});
         List<OwnerDto> ownerDtoList = ownerInnerServiceSMOImpl.queryOwnerMembers(ownerDto);
         List<OwnerDto> ownerDtoList = ownerInnerServiceSMOImpl.queryOwnerMembers(ownerDto);
         ApiOwnerVo apiOwnerVo = new ApiOwnerVo();
         ApiOwnerVo apiOwnerVo = new ApiOwnerVo();
         apiOwnerVo.setOwners(BeanConvertUtil.covertBeanList(ownerDtoList, ApiOwnerDataVo.class));
         apiOwnerVo.setOwners(BeanConvertUtil.covertBeanList(ownerDtoList, ApiOwnerDataVo.class));
@@ -69,7 +70,6 @@ public class QueryOwnerMembersListener extends AbstractServiceApiDataFlowListene
     }
     }
 
 
 
 
-
     /**
     /**
      * 校验查询条件是否满足条件
      * 校验查询条件是否满足条件
      *
      *
@@ -78,7 +78,7 @@ public class QueryOwnerMembersListener extends AbstractServiceApiDataFlowListene
     private void validateOwnerData(JSONObject reqJson) {
     private void validateOwnerData(JSONObject reqJson) {
         Assert.jsonObjectHaveKey(reqJson, "communityId", "请求中未包含communityId信息");
         Assert.jsonObjectHaveKey(reqJson, "communityId", "请求中未包含communityId信息");
         Assert.jsonObjectHaveKey(reqJson, "ownerId", "请求中未包含ownerId信息");
         Assert.jsonObjectHaveKey(reqJson, "ownerId", "请求中未包含ownerId信息");
-        Assert.jsonObjectHaveKey(reqJson, "ownerTypeCd", "请求中未包含ownerTypeCd信息");
+        // Assert.jsonObjectHaveKey(reqJson, "ownerTypeCd", "请求中未包含ownerTypeCd信息");
 
 
     }
     }
 
 

+ 3 - 3
WebService/src/main/resources/components/applicationKeyPackage/add-applicationKeyView/addApplicationKey.js

@@ -298,11 +298,11 @@
                         video: true,
                         video: true,
                         audio: false
                         audio: false
                     };
                     };
-                   var video = document.getElementById('AddApplicationKeyPhoto');
-                   var media = navigator.getUserMedia(constraints, function (stream) {
+                    var video = document.getElementById('AddApplicationKeyPhoto');
+                    var media = navigator.getUserMedia(constraints, function (stream) {
                         var url = window.URL || window.webkitURL;
                         var url = window.URL || window.webkitURL;
                         //video.src = url ? url.createObjectURL(stream) : stream;
                         //video.src = url ? url.createObjectURL(stream) : stream;
-                       vc.component.addApplicationKeyInfo.mediaStreamTrack = typeof stream.stop === 'function' ? stream : stream.getTracks()[0];
+                        vc.component.addApplicationKeyInfo.mediaStreamTrack = typeof stream.stop === 'function' ? stream : stream.getTracks()[0];
                         try {
                         try {
                             video.src = url ? url.createObjectURL(stream) : stream;
                             video.src = url ? url.createObjectURL(stream) : stream;
                         } catch (error) {
                         } catch (error) {

+ 1 - 1
WebService/src/main/resources/components/applicationKeyPackage/edit-applicationKey/editApplicationKey.js

@@ -336,7 +336,7 @@
                         try {
                         try {
                             video.src = url ? url.createObjectURL(stream) : stream;
                             video.src = url ? url.createObjectURL(stream) : stream;
                         } catch (error) {
                         } catch (error) {
-                           video.srcObject = stream;
+                            video.srcObject = stream;
                         }
                         }
                         video.play();
                         video.play();
                         vc.component.editApplicationKeyInfo.videoPlaying = true;
                         vc.component.editApplicationKeyInfo.videoPlaying = true;

+ 18 - 0
java110-bean/src/main/java/com/java110/dto/owner/OwnerDto.java

@@ -29,6 +29,8 @@ public class OwnerDto extends PageDto implements Serializable {
     private String age;
     private String age;
     private String memberId;
     private String memberId;
     private String ownerTypeCd;
     private String ownerTypeCd;
+    private String[] ownerTypeCds;
+    private String ownerTypeName;
     private String roomNum;
     private String roomNum;
     private String psId;
     private String psId;
     private String num;
     private String num;
@@ -232,4 +234,20 @@ public class OwnerDto extends PageDto implements Serializable {
     public void setState(String state) {
     public void setState(String state) {
         this.state = state;
         this.state = state;
     }
     }
+
+    public String getOwnerTypeName() {
+        return ownerTypeName;
+    }
+
+    public void setOwnerTypeName(String ownerTypeName) {
+        this.ownerTypeName = ownerTypeName;
+    }
+
+    public String[] getOwnerTypeCds() {
+        return ownerTypeCds;
+    }
+
+    public void setOwnerTypeCds(String[] ownerTypeCds) {
+        this.ownerTypeCds = ownerTypeCds;
+    }
 }
 }