Search in sources :

Example 1 with AppServiceAuthentication

use of com.itrus.portal.db.AppServiceAuthentication in project portal by ixinportal.

the class BasicInformationController method realname.

/**
 * 跳转天威实名认证
 *
 * @param id
 * @param pages
 * @param uiModel
 * @return
 */
@RequestMapping(value = "realname/{id}/{type}", produces = "text/html")
public String realname(@PathVariable("id") Long id, @PathVariable("type") Long type, Model uiModel) {
    if (type == 1) {
        RealNameRecord realName = realnameservice.selectById(id);
        uiModel.addAttribute("realName", realName);
        AppServiceAuthentication appServiceauthentication = appServiceAuthenticationService.selectById(realName.getAppServiceAuthentication());
        uiModel.addAttribute("appServiceauthentication", appServiceauthentication);
        AppService appService = appServiceImpl.selectById(appServiceauthentication.getAppService());
        uiModel.addAttribute("appService", appService);
        Licenseinformation licen = sqlSession.selectOne("com.itrus.portal.db.LicenseinformationMapper.selectByPrimaryKey", realName.getLicenseinformation());
        String ss = appServiceauthentication.getServiceAuthenticationItem();
        Organization orgen = sqlSession.selectOne("com.itrus.portal.db.OrganizationMapper.selectByPrimaryKey", realName.getOrganization());
        Corporateinformation core = sqlSession.selectOne("com.itrus.portal.db.CorporateinformationMapper.selectByPrimaryKey", realName.getCorporateinformation());
        Agentinformation agee = sqlSession.selectOne("com.itrus.portal.db.AgentinformationMapper.selectByPrimaryKey", realName.getAgentinformation());
        Enterprisebank entt = sqlSession.selectOne("com.itrus.portal.db.EnterprisebankMapper.selectByPrimaryKey1", realName.getEnterprisebank());
        if (null != ss && "" != ss) {
            if (ss.indexOf("1") != -1) {
                uiModel.addAttribute("licenseinformation", licen);
            } else {
                uiModel.addAttribute("licenseinformation", 1);
            }
            if (ss.indexOf("2") != -1) {
                uiModel.addAttribute("organition", orgen);
            } else {
                uiModel.addAttribute("organition", 1);
            }
            if (ss.indexOf("3") != -1) {
                uiModel.addAttribute("corporateinformation", core);
            } else {
                uiModel.addAttribute("corporateinformation", 1);
            }
            if (ss.indexOf("4") != -1) {
                uiModel.addAttribute("corporateinformatio", core);
            } else {
                uiModel.addAttribute("corporateinformatio", 1);
            }
            if (ss.indexOf("5") != -1) {
                uiModel.addAttribute("agentinformation", agee);
            } else {
                uiModel.addAttribute("agentinformation", 1);
            }
            if (ss.indexOf("6") != -1) {
                uiModel.addAttribute("agentinformatio", agee);
            } else {
                uiModel.addAttribute("agentinformatio", 1);
            }
            if (ss.indexOf("7") != -1) {
                uiModel.addAttribute("enterprise", entt);
            } else if (ss.indexOf("8") != -1) {
                uiModel.addAttribute("enterprise", entt);
            } else {
                uiModel.addAttribute("enterprise", 1);
            }
        }
        ApplicationInfo applicationInfo = applicationInfoService.selectById(realName.getApplicationInfo());
        uiModel.addAttribute("applicationInfo", applicationInfo);
        uiModel.addAttribute("listReal", listReal);
        uiModel.addAttribute("count", listReal.size());
    } else if (type == 2) {
        RealNameRecord realName = realnameservice.selectById(id);
        uiModel.addAttribute("realName", realName);
        AppServiceAuthentication appServiceauthentication = appServiceAuthenticationService.selectById(realName.getAppServiceAuthentication());
        uiModel.addAttribute("appServiceauthentication", appServiceauthentication);
        AppService appService = appServiceImpl.selectById(appServiceauthentication.getAppService());
        uiModel.addAttribute("appService", appService);
        Licenseinformation licen = sqlSession.selectOne("com.itrus.portal.db.LicenseinformationMapper.selectByPrimaryKey", realName.getLicenseinformation());
        String ss = appServiceauthentication.getServiceAuthenticationItem();
        Organization orgen = sqlSession.selectOne("com.itrus.portal.db.OrganizationMapper.selectByPrimaryKey", realName.getOrganization());
        Corporateinformation core = sqlSession.selectOne("com.itrus.portal.db.CorporateinformationMapper.selectByPrimaryKey", realName.getCorporateinformation());
        Agentinformation agee = sqlSession.selectOne("com.itrus.portal.db.AgentinformationMapper.selectByPrimaryKey", realName.getAgentinformation());
        Enterprisebank entt = sqlSession.selectOne("com.itrus.portal.db.EnterprisebankMapper.selectByPrimaryKey1", realName.getEnterprisebank());
        if (null != ss && "" != ss) {
            if (ss.indexOf("1") != -1) {
                uiModel.addAttribute("licenseinformation", licen);
            } else {
                uiModel.addAttribute("licenseinformation", 1);
            }
            if (ss.indexOf("2") != -1) {
                uiModel.addAttribute("organition", orgen);
            } else {
                uiModel.addAttribute("organition", 1);
            }
            if (ss.indexOf("3") != -1) {
                uiModel.addAttribute("corporateinformation", core);
            } else {
                uiModel.addAttribute("corporateinformation", 1);
            }
            if (ss.indexOf("4") != -1) {
                uiModel.addAttribute("corporateinformatio", core);
            } else {
                uiModel.addAttribute("corporateinformatio", 1);
            }
            if (ss.indexOf("5") != -1) {
                uiModel.addAttribute("agentinformation", agee);
            } else {
                uiModel.addAttribute("agentinformation", 1);
            }
            if (ss.indexOf("6") != -1) {
                uiModel.addAttribute("agentinformatio", agee);
            } else {
                uiModel.addAttribute("agentinformatio", 1);
            }
            if (ss.indexOf("7") != -1) {
                uiModel.addAttribute("enterprise", entt);
            } else if (ss.indexOf("8") != -1) {
                uiModel.addAttribute("enterprise", entt);
            } else {
                uiModel.addAttribute("enterprise", 1);
            }
        }
        ApplicationInfo applicationInfo = applicationInfoService.selectById(realName.getApplicationInfo());
        uiModel.addAttribute("applicationInfo", applicationInfo);
        uiModel.addAttribute("listPersonal", listPersonal);
    }
    return "basicinformation/realnamerecord";
}
Also used : AppServiceAuthentication(com.itrus.portal.db.AppServiceAuthentication) Licenseinformation(com.itrus.portal.db.Licenseinformation) AppService(com.itrus.portal.db.AppService) Organization(com.itrus.portal.db.Organization) Agentinformation(com.itrus.portal.db.Agentinformation) ApplicationInfo(com.itrus.portal.db.ApplicationInfo) Corporateinformation(com.itrus.portal.db.Corporateinformation) RealNameRecord(com.itrus.portal.db.RealNameRecord) Enterprisebank(com.itrus.portal.db.Enterprisebank) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 2 with AppServiceAuthentication

use of com.itrus.portal.db.AppServiceAuthentication in project portal by ixinportal.

the class AppServiceAuthenticationController method updateForm.

// 返回修改页面
@RequestMapping(value = "/{id}", params = "form", produces = "text/html")
public String updateForm(@PathVariable("id") Long id, Model uiModel) {
    AppServiceAuthentication appServiceAuthentication = appServiceAuthenticationService.selectById(id);
    uiModel.addAttribute("appServiceAuthentication", appServiceAuthentication);
    AppService appService = appServiceImpl.selectById(appServiceAuthentication.getAppService());
    uiModel.addAttribute("appService", appService);
    return "appserviceauthentication/update";
}
Also used : AppServiceAuthentication(com.itrus.portal.db.AppServiceAuthentication) AppService(com.itrus.portal.db.AppService) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 3 with AppServiceAuthentication

use of com.itrus.portal.db.AppServiceAuthentication in project portal by ixinportal.

the class AppServiceAuthenticationController method show.

// 显示详情
@RequestMapping(value = "/{id}", produces = "text/html")
public String show(@PathVariable("id") Long id, Model uiModel) {
    AppServiceAuthentication appServiceAuthentication = appServiceAuthenticationService.selectById(id);
    uiModel.addAttribute("appServiceAuthentication", appServiceAuthentication);
    AppService appService = appServiceImpl.selectById(appServiceAuthentication.getAppService());
    uiModel.addAttribute("appService", appService);
    return "appserviceauthentication/show";
}
Also used : AppServiceAuthentication(com.itrus.portal.db.AppServiceAuthentication) AppService(com.itrus.portal.db.AppService) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 4 with AppServiceAuthentication

use of com.itrus.portal.db.AppServiceAuthentication in project portal by ixinportal.

the class AuthenticationstatisticsController method list.

@RequestMapping(produces = "text/html")
public String list(@RequestParam(value = "applyname", required = false) String applyname, @RequestParam(value = "Statistics", required = false) Integer Statistics, @RequestParam(value = "year1", required = false) Integer year1, @RequestParam(value = "year2", required = false) Integer year2, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, @RequestParam(value = "serviceclass", required = false) Long serviceclass, @RequestParam(value = "appServiceName", required = false) String appServiceName, @RequestParam(value = "serviceAuthenticationItem", required = false) String serviceAuthenticationItem, @RequestParam(value = "serviceAuthentication", required = false) String serviceAuthentication, @RequestParam(value = "authenticationResultMessage", required = false) Integer authenticationResultMessage, @RequestParam(value = "checkNumber", required = false) Double checkNumber, Model uiModel) throws Exception {
    Map param = new HashMap();
    Map param2 = new HashMap();
    Integer year3 = null;
    if (year1 != null) {
        year3 = year1;
    }
    List<Map<Integer, Integer>> list = new ArrayList<Map<Integer, Integer>>();
    java.util.Date nowdate = new java.util.Date();
    String[] monthList = { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" };
    String[] seasonList = { "S1", "S2", "S3", "S4" };
    String month = null;
    String season = null;
    String year = null;
    Calendar calendar = Calendar.getInstance();
    Calendar calendar2 = Calendar.getInstance();
    String applyname1 = null;
    String serviceAuthentication11 = null;
    List<Map> realNameList = new ArrayList<>();
    if (null != Statistics && Statistics == 12) {
        while (year1 <= year2) {
            for (int j = 0; j <= 11; j++) {
                calendar.set(Calendar.YEAR, year1);
                calendar.set(Calendar.MONTH, j);
                calendar.set(Calendar.DAY_OF_MONTH, 1);
                calendar.set(Calendar.HOUR_OF_DAY, 0);
                calendar.set(Calendar.MINUTE, 0);
                calendar.set(Calendar.SECOND, 0);
                calendar.set(Calendar.MILLISECOND, 0);
                Date dt1 = calendar.getTime();
                calendar2.set(Calendar.YEAR, year1);
                calendar2.set(Calendar.MONTH, j + 1);
                calendar2.set(Calendar.DAY_OF_MONTH, 1);
                calendar2.set(Calendar.HOUR_OF_DAY, 0);
                calendar2.set(Calendar.MINUTE, 0);
                calendar2.set(Calendar.SECOND, 0);
                calendar2.set(Calendar.MILLISECOND, 0);
                Date dt2 = calendar2.getTime();
                if (applyname != null && !"0".equals(applyname)) {
                    param.put("applyname", applyname);
                }
                if (StringUtils.isNotEmpty(appServiceName)) {
                    param.put("appServiceName", appServiceName);
                }
                if (serviceclass == 0) {
                    if (serviceAuthenticationItem != null && !"0".equals(serviceAuthenticationItem)) {
                        param.put("serviceAuthenticationItem", "%" + serviceAuthenticationItem + "%");
                    }
                } else if (serviceclass == 1) {
                    if (serviceAuthentication != null && !"0".equals(serviceAuthentication)) {
                        param.put("serviceAuthenticationItem", "%" + serviceAuthentication + "%");
                    }
                }
                if (authenticationResultMessage != null && authenticationResultMessage >= 0) {
                    param.put("authenticationResultMessage", authenticationResultMessage);
                } else {
                    param.put("authenticationResultMessage", null);
                }
                if (checkNumber != null && checkNumber > 0) {
                    param.put("checkNumber", checkNumber);
                } else {
                    param.put("checkNumber", null);
                }
                if (serviceclass >= 0) {
                    param.put("serviceclass", serviceclass);
                }
                param.put("serviceclass", null);
                month = year1 + "-" + monthList[j];
                param2.put("month", month);
                param.put("queryDate1", dt1);
                param.put("queryDate2", dt2);
                Integer count1 = null;
                Integer count = null;
                if (serviceclass == 0) {
                    count = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod", param);
                    count1 = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod1", param);
                    realNameList = realNameService.selectListByRealNameRecordEnt1(param);
                // uiModel.addAttribute("RealNameList", RealNameList);
                } else if (serviceclass == 1) {
                    count = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod", param);
                    count1 = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod1", param);
                    realNameList = personalNameService.selectListByRealNameRecordEnt1(param);
                // uiModel.addAttribute("RealNameList", RealNameList);
                } else if (serviceclass == 2) {
                    Integer rcount1 = null;
                    Integer rcount = null;
                    Integer pcount1 = null;
                    Integer pcount = null;
                    rcount = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod", param);
                    rcount1 = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod1", param);
                    pcount = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod", param);
                    pcount1 = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod1", param);
                    count = rcount + pcount;
                    count1 = rcount1 + pcount1;
                }
                Map<Integer, Integer> map = new HashMap<Integer, Integer>();
                map.put(1, year1);
                map.put(2, count);
                map.put(3, count1);
                list.add(map);
            // }
            }
            year1++;
        }
    }
    if (null != Statistics && Statistics == 4) {
        while (year1 <= year2) {
            for (int j = 0; j <= 9; j = j + 3) {
                calendar.set(Calendar.YEAR, year1);
                calendar.set(Calendar.MONTH, j);
                calendar.set(Calendar.DAY_OF_MONTH, 1);
                calendar.set(Calendar.HOUR_OF_DAY, 0);
                calendar.set(Calendar.MINUTE, 0);
                calendar.set(Calendar.SECOND, 0);
                calendar.set(Calendar.MILLISECOND, 0);
                Date dt1 = calendar.getTime();
                calendar2.set(Calendar.YEAR, year1);
                calendar2.set(Calendar.MONTH, j + 3);
                calendar2.set(Calendar.DAY_OF_MONTH, 1);
                calendar2.set(Calendar.HOUR_OF_DAY, 0);
                calendar2.set(Calendar.MINUTE, 0);
                calendar2.set(Calendar.SECOND, 0);
                calendar2.set(Calendar.MILLISECOND, 0);
                Date dt2 = calendar2.getTime();
                if (applyname != null && !"0".equals(applyname)) {
                    param.put("applyname", applyname);
                }
                if (StringUtils.isNotEmpty(appServiceName)) {
                    param.put("appServiceName", appServiceName);
                }
                if (serviceAuthenticationItem != null && !"0".equals(serviceAuthenticationItem)) {
                    param.put("serviceAuthenticationItem", "%" + serviceAuthenticationItem + "%");
                } else {
                    param.put("serviceAuthenticationItem", null);
                }
                if (authenticationResultMessage != null && authenticationResultMessage >= 0) {
                    param.put("authenticationResultMessage", authenticationResultMessage);
                } else {
                    param.put("authenticationResultMessage", null);
                }
                if (checkNumber != null && checkNumber > 0) {
                    param.put("checkNumber", checkNumber);
                } else {
                    param.put("checkNumber", null);
                }
                if (serviceclass >= 0) {
                    param.put("serviceclass", serviceclass);
                }
                param.put("serviceclass", null);
                season = year1 + "-" + monthList[j / 3];
                param2.put("season", season);
                param.put("queryDate1", dt1);
                param.put("queryDate2", dt2);
                Integer count1 = null;
                Integer count = null;
                if (serviceclass == 0) {
                    count = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod", param);
                    count1 = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod1", param);
                    realNameList = realNameService.selectListByRealNameRecordEnt1(param);
                // uiModel.addAttribute("RealNameList", RealNameList);
                } else if (serviceclass == 1) {
                    count = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod", param);
                    count1 = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod1", param);
                    realNameList = personalNameService.selectListByRealNameRecordEnt1(param);
                // uiModel.addAttribute("RealNameList", RealNameList);
                } else if (serviceclass == 2) {
                    Integer rcount1 = null;
                    Integer rcount = null;
                    Integer pcount1 = null;
                    Integer pcount = null;
                    rcount = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod", param);
                    rcount1 = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod1", param);
                    pcount = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod", param);
                    pcount1 = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod1", param);
                    count = rcount + pcount;
                    count1 = rcount1 + pcount1;
                }
                Map<Integer, Integer> map = new HashMap<Integer, Integer>();
                map.put(1, year1);
                map.put(2, count);
                map.put(3, count1);
                list.add(map);
            }
            year1++;
        }
    }
    if (null != Statistics && Statistics == 1) {
        while (year1 <= year2) {
            calendar.set(Calendar.YEAR, year1);
            calendar.set(Calendar.MONTH, 0);
            calendar.set(Calendar.DAY_OF_MONTH, 1);
            calendar.set(Calendar.HOUR_OF_DAY, 0);
            calendar.set(Calendar.MINUTE, 0);
            calendar.set(Calendar.SECOND, 0);
            calendar.set(Calendar.MILLISECOND, 0);
            Date dt1 = calendar.getTime();
            calendar2.set(Calendar.YEAR, year1 + 1);
            calendar2.set(Calendar.MONTH, 0);
            calendar2.set(Calendar.DAY_OF_MONTH, 1);
            calendar2.set(Calendar.HOUR_OF_DAY, 0);
            calendar2.set(Calendar.MINUTE, 0);
            calendar2.set(Calendar.SECOND, 0);
            calendar2.set(Calendar.MILLISECOND, 0);
            Date dt2 = calendar2.getTime();
            if (applyname != null && !"0".equals(applyname)) {
                param.put("applyname", applyname);
            }
            if (StringUtils.isNotEmpty(appServiceName)) {
                param.put("appServiceName", appServiceName);
            }
            if (serviceAuthenticationItem != null && !"0".equals(serviceAuthenticationItem)) {
                param.put("serviceAuthenticationItem", "%" + serviceAuthenticationItem + "%");
            } else {
                param.put("serviceAuthenticationItem", null);
            }
            if (authenticationResultMessage != null && authenticationResultMessage >= 0) {
                param.put("authenticationResultMessage", authenticationResultMessage);
            } else {
                param.put("authenticationResultMessage", null);
            }
            if (checkNumber != null && checkNumber > 0) {
                param.put("checkNumber", checkNumber);
            } else {
                param.put("checkNumber", null);
            }
            if (serviceclass >= 0) {
                param.put("serviceclass", serviceclass);
            }
            param.put("serviceclass", null);
            year = year + "Y";
            param2.put("year", year);
            param.put("queryDate1", dt1);
            param.put("queryDate2", dt2);
            Integer count1 = null;
            Integer count = null;
            if (serviceclass == 0) {
                count = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod", param);
                count1 = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod1", param);
                realNameList = realNameService.selectListByRealNameRecordEnt1(param);
                if (!"0".equals(serviceAuthenticationItem)) {
                    for (int j = 0; j < realNameList.size(); j++) {
                        serviceAuthenticationItem = realNameList.get(j).get("service_authentication_item").toString();
                    }
                }
            // uiModel.addAttribute("RealNameList", RealNameList);
            } else if (serviceclass == 1) {
                count = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod", param);
                count1 = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod1", param);
                realNameList = personalNameService.selectListByRealNameRecordEnt1(param);
            // uiModel.addAttribute("RealNameList", RealNameList);
            } else if (serviceclass == 2) {
                Integer rcount1 = null;
                Integer rcount = null;
                Integer pcount1 = null;
                Integer pcount = null;
                rcount = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod", param);
                rcount1 = sqlSession.selectOne("com.itrus.portal.db.RealNameRecordMapper.selectCountByPeriod1", param);
                pcount = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod", param);
                pcount1 = sqlSession.selectOne("com.itrus.portal.db.PersonalNameMapper.selectCountByPeriod1", param);
                count = rcount + pcount;
                count1 = rcount1 + pcount1;
            }
            Map<Integer, Integer> map = new HashMap<Integer, Integer>();
            map.put(1, year1);
            map.put(2, count);
            map.put(3, count1);
            list.add(map);
            year1++;
        }
    }
    List appservice = applicationInfoService.selectByExample(new ApplicationInfoExample());
    uiModel.addAttribute("appservice", appservice);
    if (null == applyname || "0".equals(applyname)) {
        applyname = "所有应用";
    }
    Map param3 = new HashMap();
    if (null == appServiceName || "" == appServiceName) {
        appServiceName = "所有服务";
    } else {
        if ("0".equals(serviceAuthenticationItem) && "0".equals(serviceAuthentication) && checkNumber == 0.0 && authenticationResultMessage == -1) {
            if (serviceclass == 0) {
                param3.put("appServiceName", appServiceName);
                AppServiceAuthentication appService = sqlSession.selectOne("com.itrus.portal.db.AppServiceAuthenticationMapper.selectByAppServiceAutToPersonal", param3);
                if (appService != null) {
                    uiModel.addAttribute("appService", appService);
                    if (null != serviceAuthenticationItem || !"0".equals(serviceAuthenticationItem)) {
                        uiModel.addAttribute("serviceAuthenticationItem", serviceAuthenticationItem);
                    } else {
                        uiModel.addAttribute("serviceAuthenticationItem", 0);
                    }
                } else {
                    uiModel.addAttribute("appService", 1);
                }
            } else if (serviceclass == 1) {
                param3.put("appServiceName", appServiceName);
                PersonalServiceAuthentication personalService = sqlSession.selectOne("com.itrus.portal.db.PersonalServiceAuthenticationMapper.selectByToPersonal", param3);
                if (personalService != null) {
                    uiModel.addAttribute("personalService", personalService);
                    if (null != serviceAuthenticationItem || !"0".equals(serviceAuthenticationItem)) {
                        uiModel.addAttribute("serviceAuthenticationItem", serviceAuthenticationItem);
                    } else {
                        uiModel.addAttribute("serviceAuthenticationItem", 0);
                    }
                } else {
                    uiModel.addAttribute("personalService", 1);
                }
            }
        } else {
            uiModel.addAttribute("appService", 1);
            uiModel.addAttribute("personalService", 1);
        }
    }
    uiModel.addAttribute("list", list);
    // System.out.println(list);
    uiModel.addAttribute("year1", year3);
    uiModel.addAttribute("applyname1", applyname1);
    uiModel.addAttribute("year2", year2);
    uiModel.addAttribute("Statistics", Statistics);
    uiModel.addAttribute("authenticationResultMessage", authenticationResultMessage);
    uiModel.addAttribute("checkNumber", checkNumber);
    uiModel.addAttribute("applyname", applyname);
    uiModel.addAttribute("serviceclass", serviceclass);
    uiModel.addAttribute("appServiceName", appServiceName);
    if (null != serviceAuthenticationItem || !"0".equals(serviceAuthenticationItem)) {
        uiModel.addAttribute("serviceAuthenticationItem", serviceAuthenticationItem);
    } else {
        uiModel.addAttribute("serviceAuthenticationItem", 0);
    }
    if (null != serviceAuthentication || !"0".equals(serviceAuthentication)) {
        uiModel.addAttribute("serviceAuthentication", serviceAuthentication);
    } else {
        uiModel.addAttribute("serviceAuthentication", 0);
    }
    return "authenticationstatistics/list";
}
Also used : ApplicationInfoExample(com.itrus.portal.db.ApplicationInfoExample) HashMap(java.util.HashMap) Date(java.util.Date) Calendar(java.util.Calendar) ArrayList(java.util.ArrayList) Date(java.util.Date) AppServiceAuthentication(com.itrus.portal.db.AppServiceAuthentication) PersonalServiceAuthentication(com.itrus.portal.db.PersonalServiceAuthentication) ArrayList(java.util.ArrayList) List(java.util.List) HashMap(java.util.HashMap) Map(java.util.Map) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 5 with AppServiceAuthentication

use of com.itrus.portal.db.AppServiceAuthentication in project portal by ixinportal.

the class AppServiceExtImpl method selectServiceObjectByAppServiceId.

/**
 * 得到对应的服务配置
 * @param appId
 * 			应用id
 * @return
 */
public Object selectServiceObjectByAppServiceId(Long appId) {
    AppServiceAuthenticationExample appServiceAuthenticationExample = new AppServiceAuthenticationExample();
    AppServiceAuthenticationExample.Criteria aec = appServiceAuthenticationExample.createCriteria();
    aec.andAppServiceEqualTo(appId);
    AppServiceAuthentication appServiceAuthentication = sqlSession.selectOne("com.itrus.portal.db.AppServiceAuthenticationMapper.selectByExample", appServiceAuthenticationExample);
    if (appServiceAuthentication != null) {
        return appServiceAuthentication;
    }
    PersonalServiceAuthenticationExample personalServiceAuthenticationExample = new PersonalServiceAuthenticationExample();
    PersonalServiceAuthenticationExample.Criteria pec = personalServiceAuthenticationExample.createCriteria();
    pec.andAppServiceEqualTo(appId);
    PersonalServiceAuthentication personalServiceAuthentication = sqlSession.selectOne("com.itrus.portal.db.PersonalServiceAuthenticationMapper.selectByExample", personalServiceAuthenticationExample);
    if (personalServiceAuthentication != null) {
        return personalServiceAuthentication;
    }
    return null;
}
Also used : AppServiceAuthentication(com.itrus.portal.db.AppServiceAuthentication) PersonalServiceAuthentication(com.itrus.portal.db.PersonalServiceAuthentication) PersonalServiceAuthenticationExample(com.itrus.portal.db.PersonalServiceAuthenticationExample) AppServiceAuthenticationExample(com.itrus.portal.db.AppServiceAuthenticationExample)

Aggregations

AppServiceAuthentication (com.itrus.portal.db.AppServiceAuthentication)9 AppService (com.itrus.portal.db.AppService)7 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)7 RealNameRecord (com.itrus.portal.db.RealNameRecord)3 Agentinformation (com.itrus.portal.db.Agentinformation)2 ApplicationInfo (com.itrus.portal.db.ApplicationInfo)2 Corporateinformation (com.itrus.portal.db.Corporateinformation)2 Enterprisebank (com.itrus.portal.db.Enterprisebank)2 Licenseinformation (com.itrus.portal.db.Licenseinformation)2 Organization (com.itrus.portal.db.Organization)2 PersonalServiceAuthentication (com.itrus.portal.db.PersonalServiceAuthentication)2 ArrayList (java.util.ArrayList)2 Date (java.util.Date)2 AppServiceAuthenticationExample (com.itrus.portal.db.AppServiceAuthenticationExample)1 ApplicationInfoExample (com.itrus.portal.db.ApplicationInfoExample)1 EvidenceBasicInformation (com.itrus.portal.db.EvidenceBasicInformation)1 EvidenceCert (com.itrus.portal.db.EvidenceCert)1 EvidenceCheck (com.itrus.portal.db.EvidenceCheck)1 EvidenceCheckExample (com.itrus.portal.db.EvidenceCheckExample)1 EvidenceClientSignature (com.itrus.portal.db.EvidenceClientSignature)1