guoyujie
2025-04-27 c67072a987317441f2212bb9bdc5529b4e505530
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.example.erp.controller.pp;
 
import com.example.erp.common.Result;
import com.example.erp.dto.otherSystem.OptimizeProject;
import com.example.erp.service.pp.OtherSystemInfoService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.validation.Valid;
 
@RequiredArgsConstructor
@RestController
@Api(tags = "其他系统信息")
@RequestMapping("/getOtherSystemInfo")
public class OtherSystemInfoController {
    private final OtherSystemInfoService otherSystemInfoService;
 
    @PostMapping("/getGlassInfo")
    public Result  getGlassInfo(@Valid @RequestBody OptimizeProject glassInfo) {
        return Result.seccess(otherSystemInfoService.saveGlassInfo(glassInfo));
    }
}