This commit is contained in:
gaojiabao
2023-02-28 10:44:12 +08:00
parent 1d00e1c8c3
commit 3adaeddbf1
2 changed files with 16 additions and 2 deletions
@@ -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);
}
@@ -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);
}
}