|
|
|
@ -11,10 +11,7 @@ import io.swagger.annotations.Api;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import java.util.Map;
|
|
|
|
@ -31,6 +28,13 @@ public class ApiController {
|
|
|
|
|
private SyuserMapper syuserMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
SYService syService;
|
|
|
|
|
|
|
|
|
|
//为plm接口提供编号数据获取功能
|
|
|
|
|
@GetMapping("f_getpjh")
|
|
|
|
|
public ResultBean<?> f_getpjh(String zxt,String jg,String bmm){
|
|
|
|
|
return new ResultBean<>(syService.f_getpjh(zxt, jg, bmm));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/login")
|
|
|
|
|
public ResultBean login(@RequestBody @Validated LoginBean loginBean,HttpServletRequest request) throws Exception {
|
|
|
|
|
|
|
|
|
|