Sfoglia il codice sorgente

Merge branch 'master' of https://github.com/java110/MicroCommunity

wuxw 6 anni fa
parent
commit
ea4ecbf3b8

+ 5 - 6
Api/src/main/java/com/java110/api/listener/visit/SaveVisitListener.java

@@ -16,9 +16,8 @@ import com.java110.common.constant.BusinessTypeConstant;
 import com.java110.common.constant.ServiceCodeVisitConstant;
 import com.java110.common.constant.ServiceCodeVisitConstant;
 
 
 
 
-
-
 import com.java110.core.annotation.Java110Listener;
 import com.java110.core.annotation.Java110Listener;
+
 /**
 /**
  * 保存小区侦听
  * 保存小区侦听
  * add by wuxw 2019-06-30
  * add by wuxw 2019-06-30
@@ -29,10 +28,10 @@ public class SaveVisitListener extends AbstractServiceApiListener {
     protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
     protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
         //Assert.hasKeyAndValue(reqJson, "xxx", "xxx");
         //Assert.hasKeyAndValue(reqJson, "xxx", "xxx");
 
 
-        Assert.hasKeyAndValue(reqJson, "name", "必填,请填写访客姓名");
-Assert.hasKeyAndValue(reqJson, "visitGender", "必填,请填写访客姓名");
-Assert.hasKeyAndValue(reqJson, "phoneNumber", "必填,请填写访客联系方式");
-Assert.hasKeyAndValue(reqJson, "visitTime", "必填,请填写访客拜访时间");
+        Assert.hasKeyAndValue(reqJson, "vName", "必填,请填写访客姓名");
+        Assert.hasKeyAndValue(reqJson, "visitGender", "必填,请填写访客姓名");
+        Assert.hasKeyAndValue(reqJson, "phoneNumber", "必填,请填写访客联系方式");
+        Assert.hasKeyAndValue(reqJson, "visitTime", "必填,请填写访客拜访时间");
 
 
     }
     }
 
 

+ 1 - 1
WebService/src/main/java/com/java110/web/smo/visit/impl/AddVisitSMOImpl.java

@@ -30,7 +30,7 @@ public class AddVisitSMOImpl extends AbstractComponentSMO implements IAddVisitSM
         //super.validatePageInfo(pd);
         //super.validatePageInfo(pd);
 
 
         //Assert.hasKeyAndValue(paramIn, "xxx", "xxx");
         //Assert.hasKeyAndValue(paramIn, "xxx", "xxx");
-        Assert.hasKeyAndValue(paramIn, "name", "必填,请填写访客姓名");
+        Assert.hasKeyAndValue(paramIn, "vName", "必填,请填写访客姓名");
         Assert.hasKeyAndValue(paramIn, "communityId", "必填,请填写小区ID");
         Assert.hasKeyAndValue(paramIn, "communityId", "必填,请填写小区ID");
         Assert.hasKeyAndValue(paramIn, "ownerId", "必填,请填写目标业主ID");
         Assert.hasKeyAndValue(paramIn, "ownerId", "必填,请填写目标业主ID");
         Assert.hasKeyAndValue(paramIn, "phoneNumber", "必填,请填写访客联系方式");
         Assert.hasKeyAndValue(paramIn, "phoneNumber", "必填,请填写访客联系方式");