DtController.java 700 Bytes
package com.bsth.controller.ttinfo;

import com.bsth.controller.BaseController;
import com.bsth.entity.ttinfo.ScheduleDt;
import com.bsth.service.ttinfo.DtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("dt")
public class DtController extends BaseController<ScheduleDt, Integer> {

    @Autowired
    private DtService dtService;
    //分组查询地铁线路及站点
    @RequestMapping("list_group")
    public Map<String, Object> listGroup(){
        return dtService.listGroup();
    }
}