|
@@ -65,6 +65,7 @@ public class DiagLantoneProductController {
|
|
|
notes = "id:根据产品id修改产品内容,必填<br>")
|
|
|
@PostMapping("/updateProduct")
|
|
|
@SysLogger("updateProduct")
|
|
|
+ @Transactional
|
|
|
public RespDTO<LantoneProduct> updateProduct(LantoneProduct lantoneProduct){
|
|
|
return RespDTO.onSuc(lantoneProductFacade.updateProduct(lantoneProduct));
|
|
|
}
|
|
@@ -73,6 +74,7 @@ public class DiagLantoneProductController {
|
|
|
notes = "id:根据产品id删除产品,必填<br>")
|
|
|
@PostMapping("/deleteProduct")
|
|
|
@SysLogger("deleteProduct")
|
|
|
+ @Transactional
|
|
|
public RespDTO<LantoneProduct> deleteProduct(LantoneProduct lantoneProduct){
|
|
|
return RespDTO.onSuc(lantoneProductFacade.deleteProduct(lantoneProduct));
|
|
|
}
|
|
@@ -81,6 +83,7 @@ public class DiagLantoneProductController {
|
|
|
notes = "id:根据产品id更改产品状态,必填<br>")
|
|
|
@PostMapping("/productStatus")
|
|
|
@SysLogger("productStatus")
|
|
|
+ @Transactional
|
|
|
public RespDTO<LantoneProduct> productStatus(LantoneProduct lantoneProduct){
|
|
|
return RespDTO.onSuc(lantoneProductFacade.productStatus(lantoneProduct));
|
|
|
}
|