ssm/src/main/java/cc/aies/web/controller/CompanyController.java
/**
     * select by primary Id
     * @param companyId
     * @return
     */
select by primary Id
@param companyId
@return
select by primary Id @param companyId @return
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
    @ResponseBody
    public Msg classById(@PathVariable("id") String companyId){
        System.out.println("请求机构ID：" + companyId);
        Company ret = companyService.CompanyByCompanyId(companyId);
        Msg msg = new Msg();
        return msg.success().add("company", ret);
    }
@ RequestMapping ( value = "/{id}" , method = RequestMethod . GET ) @ ResponseBody public Msg classById ( @ PathVariable ( "id" ) String companyId ) { System . out . println ( "请求机构ID：" + company d ; Company ret = companyService . CompanyByCompanyId ( companyId ) ; Msg msg = new Msg ( ) ; return msg . success ( ) . add ( "company" , ret ) ; }
select by primary Id
 @param companyId
 @return
select by primary Id @param companyId @return