FSUFohController.java 889 字节
package com.example.demo.controller;

import com.example.demo.service.NMS_FSU_FOH_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/arrivalMaster")
public class FSUFohController {

    @Autowired
    private NMS_FSU_FOH_Service fohService;

    @GetMapping("list")
    public Object list(@RequestParam(value = "pageNum",required = false,defaultValue = "1")
                       int pageNum,
                       @RequestParam(value = "pageSize",required = false,defaultValue = "10")
                       int pageSize){
        return fohService.selectAll(pageNum,pageSize);
    }

    @GetMapping("getByAutoid")
    public Object getByAutoid(@RequestParam(value = "autoid",required = true) String autoid){
        return fohService.selectByPrimaryKey(autoid);
    }
}