wuxw
2022-07-17 ce64e667815b39efdc2f8bd52be0d43d49db8d84
service-api/src/main/java/com/java110/api/smo/visit/impl/EditVisitSMOImpl.java
@@ -26,19 +26,14 @@
    @Override
    protected void validate(IPageData pd, JSONObject paramIn) {
        //super.validatePageInfo(pd);
        Assert.hasKeyAndValue(paramIn, "vId", "访客记录ID不能为空");
        Assert.hasKeyAndValue(paramIn, "name", "必填,请填写访客姓名");
        Assert.hasKeyAndValue(paramIn, "visitGender", "必填,请填写访客姓名");
        Assert.hasKeyAndValue(paramIn, "visitGender", "必填,请填写访客姓名");
        Assert.hasKeyAndValue(paramIn, "vName", "必填,请填写访客姓名");
        Assert.hasKeyAndValue(paramIn, "visitGender", "必填,请填写访客性别");
        Assert.hasKeyAndValue(paramIn, "phoneNumber", "必填,请填写访客联系方式");
        Assert.hasKeyAndValue(paramIn, "visitTime", "必填,请填写访客拜访时间");
        Assert.hasKeyAndValue(paramIn, "visitTime", "必填,请填写访客来访时间");
        Assert.hasKeyAndValue(paramIn, "visitTime", "必填,请填写访客离开时间");
        super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.AGENT_HAS_LIST_VISIT);
    }
    @Override
@@ -47,7 +42,7 @@
        super.validateStoreStaffCommunityRelationship(pd, restTemplate);
        responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(),
                ServiceConstant.SERVICE_API_URL + "/api/visit.updateVisit",
                "visit.updateVisit",
                HttpMethod.POST);
        return responseEntity;
    }