|
@@ -126,12 +126,14 @@ public class PostSeriesController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation("套系上链")
|
|
|
@PreAuthorize("@ss.hasPermi('system:series:list')")
|
|
|
- @PutMapping("/onchain/{seriesId}")
|
|
|
- public AjaxResult OnChain(@PathVariable("seriesId") Long seriesId, PostSeries postSeries) {
|
|
|
+ @PutMapping("/onchain")
|
|
|
+ public AjaxResult OnChain(@RequestBody int seriesId) {
|
|
|
+ long lseriesId=seriesId;
|
|
|
+ PostSeries postSeries = postSeriesService.selectPostSeriesBySeriesId(lseriesId);
|
|
|
+ System.out.println(postSeries);
|
|
|
if (postSeries.getExchangeFlag().equals('0')) {
|
|
|
return AjaxResult.error("不可重复上链");
|
|
|
}
|
|
|
- postSeries = postSeriesService.selectPostSeriesBySeriesId(seriesId);
|
|
|
return toAjax(postSeriesService.OnChain(postSeries));
|
|
|
}
|
|
|
|