diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/controller/AllocCanteenSuggestionController.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/controller/AllocCanteenSuggestionController.java index ebdf17a..35763bf 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/controller/AllocCanteenSuggestionController.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/alloc/controller/AllocCanteenSuggestionController.java @@ -105,6 +105,20 @@ public class AllocCanteenSuggestionController extends BaseController { } } + @ApiOperation(value = "回复投诉建议 ") + //@PreventRepeatSubmit + //@RequiresPermissions("alloc:suggestion:edit") + @SysLog(title = "回复投诉建议 ", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->回复投诉建议 ") + @PostMapping("/reply") + public AjaxResult reply(@RequestBody AllocCanteenSuggestion allocCanteenSuggestion) { + try { + allocCanteenSuggestion.setReplyState(1L); + return toAjax(allocCanteenSuggestionService.updateAllocCanteenSuggestion(allocCanteenSuggestion)); + } catch (Exception e) { + return error("系统错误, " + e.getMessage()); + } + } + /** * 删除投诉建议 */