|
|
|
@ -180,12 +180,12 @@ public class ManageAppController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/product/save", method = RequestMethod.POST)
|
|
|
|
|
public void saveProduct(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device, ProductBean productBean) {
|
|
|
|
|
public void saveProduct(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device,@RequestBody ProductBean productBean) {
|
|
|
|
|
manageAppService.saveProduct(device, productBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/product/update", method = RequestMethod.PUT)
|
|
|
|
|
public void updateProduct(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device, ProductBean productBean) {
|
|
|
|
|
public void updateProduct(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device,@RequestBody ProductBean productBean) {
|
|
|
|
|
manageAppService.updateProduct(device, productBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|