|
@@ -17,6 +17,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
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;
|
|
|
|
|
@@ -43,7 +44,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/addProducts")
|
|
|
@SysLogger("addProducts")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> addProducts(AddProductsVO addProductsVO) {
|
|
|
+ public RespDTO<Boolean> addProducts(@RequestBody AddProductsVO addProductsVO) {
|
|
|
return RespDTO.onSuc(lantoneProductFacade.addProducts(addProductsVO));
|
|
|
}
|
|
|
|
|
@@ -61,7 +62,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/updateProduct")
|
|
|
@SysLogger("updateProduct")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> updateProduct(UpdateProductVO updateProductVO) {
|
|
|
+ public RespDTO<Boolean> updateProduct(@RequestBody UpdateProductVO updateProductVO) {
|
|
|
return RespDTO.onSuc(lantoneProductFacade.updateProduct(updateProductVO));
|
|
|
}
|
|
|
|
|
@@ -70,7 +71,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/updateServiceStatus")
|
|
|
@SysLogger("updateServiceStatus")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> updateServiceStatus(UpdateProductVO updateProductVO) {
|
|
|
+ public RespDTO<Boolean> updateServiceStatus(@RequestBody UpdateProductVO updateProductVO) {
|
|
|
return RespDTO.onSuc(lantoneProductFacade.updateProduct(updateProductVO));
|
|
|
}
|
|
|
|
|
@@ -79,7 +80,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/deleteProduct")
|
|
|
@SysLogger("deleteProduct")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> deleteProduct(UpdateProductVO updateProductVO) {
|
|
|
+ public RespDTO<Boolean> deleteProduct(@RequestBody UpdateProductVO updateProductVO) {
|
|
|
return RespDTO.onSuc(lantoneProductFacade.deleteProduct(updateProductVO));
|
|
|
}
|
|
|
|
|
@@ -90,7 +91,7 @@ public class DiagLantoneProductController {
|
|
|
)
|
|
|
@PostMapping("/opendedProduct")
|
|
|
@SysLogger("opendedProduct")
|
|
|
- public RespDTO<List<OpendProductWrapper>> opendedProduct(OppendedProductVO oppendedProductVO) {
|
|
|
+ public RespDTO<List<OpendProductWrapper>> opendedProduct(@RequestBody OppendedProductVO oppendedProductVO) {
|
|
|
|
|
|
return RespDTO.onSuc(lantoneProductFacade.opendedProduct(oppendedProductVO));
|
|
|
}
|