| | |
| | | import com.zt.common.validator.group.AddGroup; |
| | | import com.zt.common.validator.group.DefaultGroup; |
| | | import com.zt.common.validator.group.UpdateGroup; |
| | | import com.zt.life.modules.mainPart.async.PythonLib; |
| | | import com.zt.life.modules.mainPart.taskReliability.model.ModelLine; |
| | | import com.zt.life.modules.mainPart.taskReliability.model.ModelRbd; |
| | | import com.zt.life.modules.mainPart.taskReliability.service.ModelLineService; |
| | |
| | | private ModelLineService modelLineService; |
| | | |
| | | @Autowired |
| | | // private PythonLib pythonLib; |
| | | private PythonLib pythonLib; |
| | | |
| | | @GetMapping("callPythonCalc") |
| | | @ApiOperation("信息") |
| | | public Result callPythonCalc() { |
| | | Result result = pythonLib.callPython(); |
| | | |
| | | return result; |
| | | } |
| | | |
| | | @GetMapping("getPythonCalcResult") |
| | | @ApiOperation("信息") |
| | | public Result<String> getPythonCalcResult() { |
| | | String result = pythonLib.getPythonCalcResult(); |
| | | |
| | | return Result.ok(result); |
| | | } |
| | | |
| | | @GetMapping("page") |
| | | @ApiOperation("分页") |
| | |
| | | } |
| | | return Result.ok(data); |
| | | } |
| | | |
| | | /* |
| | | @GetMapping("callPythonCalc") |
| | | @ApiOperation("信息") |
| | | public Result callPythonCalc() { |
| | | pythonLib.callPython(); |
| | | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @GetMapping("getPythonCalcResult") |
| | | @ApiOperation("信息") |
| | | public Result<String> getPythonCalcResult() { |
| | | String result = pythonLib.getPythonCalcResult(); |
| | | |
| | | return Result.ok(result); |
| | | } |
| | | */ |
| | | |
| | | @PostMapping |
| | | @ApiOperation("新增") |