SectionController.java 1.29 KB
package com.bsth.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.bsth.entity.Section;
import com.bsth.service.SectionService;

/**
 * 
 * @ClassName: SectionController(路段控制器)
 * 
 * @Extends : BaseController
 * 
 * @Description: TODO(路段控制层)
 * 
 * @Author bsth@lq
 * 
 * @Date 2016年05月03日 上午9:21:17
 *
 * @Version 公交调度系统BS版 0.1
 * 
 */

@RestController
@RequestMapping("section")
public class SectionController extends BaseController<Section, Integer> {
	
	@Autowired
	SectionService service;
	
	/**
	 * @Description :TODO(编辑线路走向)
	 * 
	 * @param map <sectionId:路段ID; sectionJSON:路段信息>
	 * 
	 * @return Map<String, Object> <SUCCESS ; ERROR>
	 */
	@RequestMapping(value="sectionUpdate" , method = RequestMethod.POST)
	public Map<String, Object> sectionUpdate(@RequestParam Map<String, Object> map) {
		
		map.put("updateBy", "");
		
		return service.sectionUpdate(map);
		
	}

}