|
@@ -143,8 +143,8 @@ public class PoTetherController extends BaseController
|
|
|
@Log(title = "套系", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
public AjaxResult add(@RequestBody TetherVo tetherVo,
|
|
|
- @RequestBody @Param("poUser") PoUser poUser,
|
|
|
- @RequestBody PoTetherandcollection poTetherandcollection)
|
|
|
+ @RequestBody @Param("poUser") PoUser poUser
|
|
|
+ )
|
|
|
{
|
|
|
//判断当前用户是否有操作的权限
|
|
|
poUserService.checkUserAllowed(poUser);
|
|
@@ -170,7 +170,7 @@ public class PoTetherController extends BaseController
|
|
|
}else{
|
|
|
tetherVo.setSellStatus(0);
|
|
|
}
|
|
|
- poTetherService.insertPoTetherWithCollection(tetherVo,poTetherandcollection);
|
|
|
+ poTetherService.insertPoTetherWithCollection(tetherVo);
|
|
|
return success("新增成功");
|
|
|
}
|
|
|
|
|
@@ -214,8 +214,6 @@ public class PoTetherController extends BaseController
|
|
|
if(UserConstants.NOT_UNIQUE.equals(poTetherService.checkPostTetherImageUnique(tetherVo))){
|
|
|
return AjaxResult.error("修改失败"+tetherVo.getImage()+"已经存在");
|
|
|
}
|
|
|
- tetherVo.setUpdateBy(getUsername());
|
|
|
- tetherVo.setUpdateTime(new Date());
|
|
|
if (tetherVo1.getGrounding() == 0){
|
|
|
//已经上架只可以修改展示结束的时间
|
|
|
poTetherService.updateShowTimeEnd(tetherVo);
|