nokiaoamtest1 完工Service+JSP

  1. 结果图
nokiaoamtest1 完工Service+JSP_第1张图片
页面GS结果
nokiaoamtest1 完工Service+JSP_第2张图片
项目结果
  1. Service
    1)kpicontroller
    package cn.nokia.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.nokia.service.kpiservice;

@Controller
public class kpicontoller {
@Autowired
kpiservice kpiservic;
@RequestMapping("getallkpi")
public @ResponseBody List> getallkpi() {
return kpiservic.selectallkpi();
}

@RequestMapping("gettopkpi")
public @ResponseBody List> gettopkpi() {
    return kpiservic.selecttopkpi();
}

@RequestMapping("getallrrc")
public @ResponseBody List> getallrrc() {
    return kpiservic.selectallrrc();
}

@RequestMapping("gettoprrc")
public @ResponseBody List> gettoprrc() {
    return kpiservic.selecttoprrc();
}

}

2)viewcontroller
package cn.nokia.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class viewController {

@RequestMapping("kpiview")
public String getallkpi() {
    return "kpi";
}

}

3)kpimapper
package cn.nokia.mapper;

import java.util.List;
import java.util.Map;

public interface kpimapper {
List> selectallkpi();
List> selecttopkpi();
List> selectallrrc();
List> selecttoprrc();

}

4)kpimapper.xml







5)kpiservice
package cn.nokia.service;

import java.util.List;
import java.util.Map;

public interface kpiservice {
List>selectallkpi();
List> selecttopkpi();

List> selectallrrc();

List> selecttoprrc();

}

  1. kpiserviceipml

package cn.nokia.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.nokia.mapper.kpimapper;
import cn.nokia.service.kpiservice;
@Service("kpiservic")
public class kpiserviceipml implements kpiservice {
@Autowired
private kpimapper kpimapper;

@Override
public List> selectallkpi() {

    return kpimapper.selectallkpi();
}

@Override
public List> selecttopkpi() {

    return kpimapper.selecttopkpi();
}

@Override
public List> selectallrrc() {

    return kpimapper.selectallrrc();
}

@Override
public List> selecttoprrc() {
    return kpimapper.selecttoprrc();
}

}

  1. JS
JS
nokiaoamtest1 完工Service+JSP_第3张图片
kpi.gsp

你可能感兴趣的:(nokiaoamtest1 完工Service+JSP)