LoggerZnddController.java 961 Bytes
package com.bsth.controller.zndd;

import com.bsth.controller.BaseController;
import com.bsth.entity.realcontrol.ScheduleRealInfo;
import com.bsth.entity.zndd.LoggerZndd;
import com.bsth.service.zndd.LoggerZnddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("logZndd")
public class LoggerZnddController  extends BaseController<LoggerZndd, Integer> {

    @Autowired
    LoggerZnddService loggerZnddService;

    @RequestMapping("listall")
    public List<Map<String, Object>> listAll(@RequestParam Map<String, Object> map){

        return  loggerZnddService.listAll(map);
    }


    @RequestMapping(value = "/schlist", method = RequestMethod.POST)
    public ScheduleRealInfo schlist(@RequestParam String lineCode,@RequestParam Integer dir){
        return loggerZnddService.schlist(lineCode,dir);
    }

}