xuxiuxi
2017-03-29 8a2304211316d1ea4dde90fb33591d3b95624e6d
VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/service/VisitorCheckInMng.java
@@ -46,12 +46,20 @@
     * 查询被访问人员列表
     */
    public void findIntervieweeList(String pageNum, String name, final boolean isClear) {
        RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.DICTIONARY_TYPE_LIST);
        params.addBodyParameter(IntervieweeQueryCondition.FieldNames.companyId, "1");
        params.addBodyParameter(IntervieweeQueryCondition.FieldNames.name, name);
//        RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.DICTIONARY_TYPE_LIST);
//        params.addBodyParameter(IntervieweeQueryCondition.FieldNames.companyId, "1");
//        params.addBodyParameter(IntervieweeQueryCondition.FieldNames.name, name);
//        x.http().post(params, new BaseCommonCallBack() {
//            public void success() {
//                VisitorRegisterFragment.getInstance().listChanged(getList(IntervieweeQueryItem.class), isClear);
//            }
//        });
        RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.VISITOR_LIST);
        params.addBodyParameter(VisitorQueryCondition.FieldNames.companyId, BaseApplication.getInstance().getPlace().getCompanyId());
        params.addBodyParameter(VisitorQueryCondition.FieldNames.name, name);
        x.http().post(params, new BaseCommonCallBack() {
            public void success() {
                VisitorRegisterFragment.getInstance().listChanged(getList(IntervieweeQueryItem.class), isClear);
                VisitorRegisterFragment.getInstance().listChanged(getList(VisitorQueryItem.class), isClear);
            }
        });
    }