1.完善基础数据转换

master^2
董哲奇 7 days ago
parent 73fddbec37
commit 729d89d81b

@ -11,10 +11,7 @@ import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.Map; import java.util.Map;
@ -31,6 +28,13 @@ public class ApiController {
private SyuserMapper syuserMapper; private SyuserMapper syuserMapper;
@Autowired @Autowired
SYService syService; 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") @RequestMapping(value = "/login")
public ResultBean login(@RequestBody @Validated LoginBean loginBean,HttpServletRequest request) throws Exception { public ResultBean login(@RequestBody @Validated LoginBean loginBean,HttpServletRequest request) throws Exception {

Loading…
Cancel
Save