归档
This commit is contained in:
@@ -59,8 +59,10 @@ public class ActDefineStartMap {
|
||||
map.put("25","enterpriseStandardSystemRevisionPlan");
|
||||
|
||||
map.put("26","qbzxdlxjh");
|
||||
|
||||
// 问答流程
|
||||
map.put("27","wdzxlc");
|
||||
// 标准需求(翻译)申请流程
|
||||
map.put("28","bzxqfy");
|
||||
|
||||
return map.get(type);
|
||||
}
|
||||
|
||||
+13
-1
@@ -58,7 +58,7 @@ public class ReplyController extends BaseController<Reply> {
|
||||
return Result.error("-1","添加失败");
|
||||
}
|
||||
}
|
||||
@PostMapping("/updateReply")
|
||||
//@PostMapping("/updateReply")
|
||||
public ResponseMessage updateReply(String id){
|
||||
if(StringUtils.isEmpty(id)){
|
||||
return Result.error("-1","请选择要归档的回答");
|
||||
@@ -78,4 +78,16 @@ public class ReplyController extends BaseController<Reply> {
|
||||
public ResponseMessage updateReply(@RequestBody ReplyPage reply){
|
||||
return Result.success(replyService.listByPage(reply));
|
||||
}
|
||||
|
||||
@PostMapping("/updateReply")
|
||||
public ResponseMessage updateReplyInfo(@RequestBody List<Reply> replyList){
|
||||
if (replyList.isEmpty()){
|
||||
return Result.error("-1","编辑失败",null);
|
||||
}
|
||||
for(Reply reply: replyList){
|
||||
reply.setState("yes");
|
||||
}
|
||||
replyService.updateBatchById(replyList);
|
||||
return Result.success("200","编辑成功",null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user