|
@@ -129,14 +129,14 @@ public class ProductUsersController {
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/edit/deleteByBatch", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/edit/deleteByBatch", method = RequestMethod.POST)
|
|
|
- public ModelMap deleteByBatch(@RequestParam("ids") String ids) {
|
|
|
|
|
- List<Long> idList = JSONObject.parseArray(ids, Long.class);
|
|
|
|
|
|
|
+ public ModelMap deleteByBatch(@RequestParam("ids") String ids) throws UnsupportedEncodingException {
|
|
|
|
|
+ List<Long> idList = JSONObject.parseArray(URLDecoder.decode(ids, "utf-8"), Long.class);
|
|
|
ModelMap map = new ModelMap();
|
|
ModelMap map = new ModelMap();
|
|
|
try {
|
|
try {
|
|
|
productUsersService.deleteByBatch(idList);
|
|
productUsersService.deleteByBatch(idList);
|
|
|
// logger.log("删除个人产品", "数量:" + idList.size());
|
|
// logger.log("删除个人产品", "数量:" + idList.size());
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
- map.put("error", "删除个人产品失败");
|
|
|
|
|
|
|
+ throw new RuntimeException("删除个人产品失败");
|
|
|
}
|
|
}
|
|
|
return map;
|
|
return map;
|
|
|
}
|
|
}
|