SysCodeController.java 855 Bytes
package com.glsx.smart.controller;

import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import com.glsx.smart.service.SmartSysCodeService;
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.RestController;

/**
 * <p>Description:
 * <p>Project: chejia-smart
 *
 * @author wbh
 * @date 2021-03-15
 */
@RestController
@RequestMapping("/sysCode")
public class SysCodeController {
    @Autowired
    private SmartSysCodeService sysCodeService;

    @RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
    public List<SmartSysCode> getList(SmartSysCode sysCode) {
        return sysCodeService.selectByExample(sysCode);
    }
}