package com.mvc.controller.beihai;

import com.mvc.model.beihai.DdEqClassify;
import com.mvc.service.beihai.EqClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@RequestMapping("/classify")
@Controller
public class EqClassifyController {
    @Autowired
    private EqClassifyService eqClassifyService;
    //dddddddddddddddddddd
    @RequestMapping("/list/{companyId}")
    @ResponseBody
    public Map<String, Object> find(DdEqClassify eqClassify) {
        return eqClassifyService.findByCompany(eqClassify);
    }


}
