FastAndSlowController.java 1.22 KB
package com.bsth.controller.realcontrol.summary;

import com.bsth.controller.BaseController;
import com.bsth.data.summary.entity.FastAndSlow;
import com.bsth.data.summary.service.FastAndSlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Fast and slow delay statistics
 * Created by panzhao on 2017/10/24.
 */
@RestController
@RequestMapping("/summary/fastAndSlow")
public class FastAndSlowController extends BaseController<FastAndSlow, Long> {

    @Autowired
    FastAndSlowService fastAndSlowService;

    @RequestMapping("/excel/{lineCode}")
    public void excel(@PathVariable("lineCode") String lineCode, @RequestParam String st
            , @RequestParam String et, @RequestParam int type, HttpServletRequest request, HttpServletResponse response) {
        fastAndSlowService.excel(lineCode, st, et, type, request, response);
    }
}