PersonnelController.java
914 Bytes
package com.bsth.controller;
import com.bsth.entity.Personnel;
import com.bsth.service.PersonnelService;
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 java.util.List;
import java.util.Map;
/**
* Created by xu on 16/6/15.
*/
@RestController
@RequestMapping("personnel")
public class PersonnelController extends BaseController<Personnel, Integer> {
@Autowired
private PersonnelService service;
@RequestMapping(value = "/sreachPersonnel", method = RequestMethod.GET)
public List<Map<String, String>> sreachPersonnel(@RequestParam String jobCode) {
return service.sreachPersonnel(jobCode);
}
}