Browse Source

产品删除问题

wangmh 8 years ago
parent
commit
3705119472

+ 1 - 1
src/main/java/com/uas/platform/b2b/controller/BaseInfoController.java

@@ -218,7 +218,7 @@ public class BaseInfoController {
 	 */
 	@RequestMapping(value = "/edit/delete", method = RequestMethod.POST)
 	@ResponseBody
-	public ModelMap deleteById(Long id) throws Exception {
+	public ModelMap deleteById(@RequestBody Long id) throws Exception {
 		ModelMap map = new ModelMap();
 		try {
 			baseInfoService.deleteById(id);

+ 2 - 2
src/main/webapp/resources/js/index/app.js

@@ -12791,7 +12791,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
         //删除
         $scope.deleteById = function (id) {
-            GetProductInfo.deleteById({id: id}, function (data) {
+            GetProductInfo.deleteById({}, id, function (data) {
                 if (data.error) {
                     toaster.pop("error", "提示", data.error);
                 } else {
@@ -13212,7 +13212,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
         //删除
         $scope.deleteById = function (id) {
-            GetProductInfo.deleteById({id: id}, function (data) {
+            GetProductInfo.deleteById({}, id, function (data) {
                 if (data.error) {
                     toaster.pop("error", "提示", data.error);
                 } else {