update 返回消息
This commit is contained in:
+4
-4
@@ -77,7 +77,7 @@ public class LawsDataCenterFileController extends JeroController<LawsDataCenterF
|
||||
@RequiresPermissions(permissionFlag)
|
||||
public Result<T> add(@Validated @RequestBody LawsDataCenterFile lawsDataCenterFile) {
|
||||
lawsDataCenterFileService.add(lawsDataCenterFile);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -92,7 +92,7 @@ public class LawsDataCenterFileController extends JeroController<LawsDataCenterF
|
||||
@RequiresPermissions(permissionFlag)
|
||||
public Result<T> edit(@Validated @RequestBody LawsDataCenterFile lawsDataCenterFile) {
|
||||
lawsDataCenterFileService.editById(lawsDataCenterFile);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -110,7 +110,7 @@ public class LawsDataCenterFileController extends JeroController<LawsDataCenterF
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
lawsDataCenterFileService.deleteById(map.get("id"));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -128,7 +128,7 @@ public class LawsDataCenterFileController extends JeroController<LawsDataCenterF
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
this.lawsDataCenterFileService.deleteByIds(Arrays.asList(map.get("ids").split(",")));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+8
-8
@@ -56,7 +56,7 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
@RequiresPermissions("businessSupport:questionAnswer:quiz")
|
||||
public Result<T> addProblem(@Validated @RequestBody LawsProblemLibrary lawsProblemLibrary) {
|
||||
lawsProblemLibraryService.addProblem(lawsProblemLibrary);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "国内标准-提出问题")
|
||||
@@ -65,7 +65,7 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
public Result<T> addProblemGB(@Validated @RequestBody LawsProblemLibrary lawsProblemLibrary) {
|
||||
lawsProblemLibrary.setType("1");
|
||||
lawsProblemLibraryService.addProblem(lawsProblemLibrary);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "海外标准-提出问题")
|
||||
@@ -74,7 +74,7 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
public Result<T> addProblemFB(@Validated @RequestBody LawsProblemLibrary lawsProblemLibrary) {
|
||||
lawsProblemLibrary.setType("2");
|
||||
lawsProblemLibraryService.addProblem(lawsProblemLibrary);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "企业标准-提出问题")
|
||||
@@ -83,7 +83,7 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
public Result<T> addProblemQB(@Validated @RequestBody LawsProblemLibrary lawsProblemLibrary) {
|
||||
lawsProblemLibrary.setType("3");
|
||||
lawsProblemLibraryService.addProblem(lawsProblemLibrary);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "问答库-回答问题")
|
||||
@@ -92,7 +92,7 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
@RequiresPermissions("quiz:detail:answerSubmit")
|
||||
public Result<T> addAnswer(@Validated @RequestBody LawsAnswerLibrary lawsAnswerLibrary) {
|
||||
lawsProblemLibraryService.addAnswer(lawsAnswerLibrary);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "问答库-通过id查询")
|
||||
@@ -114,7 +114,7 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.SELECT_DATA));
|
||||
}
|
||||
lawsProblemLibraryService.deleteProblem(map.get("id"));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "问答库-通过id删除回答")
|
||||
@@ -126,7 +126,7 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.SELECT_DATA));
|
||||
}
|
||||
lawsProblemLibraryService.deleteAnswer(map.get("id"));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "问答库-是否置顶")
|
||||
@@ -135,6 +135,6 @@ public class LawsProblemLibraryController extends JeroController<LawsProblemLibr
|
||||
@RequiresPermissions("quiz:detail:topOrCancel")
|
||||
public Result<T> isTop(@RequestParam(name="id") String id) {
|
||||
lawsProblemLibraryService.isTop(id);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -87,7 +87,7 @@ public class LawsNewsFeedController extends JeroController<LawsNewsFeed, ILawsNe
|
||||
lawsNewsFeed.setReleaseTime(new Date());
|
||||
}*/
|
||||
lawsNewsFeedService.add(lawsNewsFeed, "save");
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
@AutoLog(value = "动态消息-发布")
|
||||
@@ -103,7 +103,7 @@ public class LawsNewsFeedController extends JeroController<LawsNewsFeed, ILawsNe
|
||||
lawsNewsFeed.setReleaseTime(new Date());
|
||||
lawsNewsFeed.setReleaseStatus(1);
|
||||
lawsNewsFeedService.add(lawsNewsFeed, "release");
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -121,7 +121,7 @@ public class LawsNewsFeedController extends JeroController<LawsNewsFeed, ILawsNe
|
||||
throw new JeroBootException(ResultCommon.SELECT_DATA);
|
||||
}
|
||||
lawsNewsFeedService.deleteById(map.get("id"));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,7 +139,7 @@ public class LawsNewsFeedController extends JeroController<LawsNewsFeed, ILawsNe
|
||||
throw new JeroBootException(ResultCommon.SELECT_DATA);
|
||||
}
|
||||
this.lawsNewsFeedService.deleteByIds(Arrays.asList(map.get("ids").split(",")));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+4
-4
@@ -82,7 +82,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
@PostMapping(value = "/add")
|
||||
public Result<T> add(@Validated @RequestBody LawsContactManage lawsContactManage) {
|
||||
lawsContactManageService.add(lawsContactManage);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -96,7 +96,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<T> edit(@Validated @RequestBody LawsContactManage lawsContactManage) {
|
||||
lawsContactManageService.editById(lawsContactManage);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -113,7 +113,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.SELECT_DATA));
|
||||
}
|
||||
lawsContactManageService.deleteById(map.get("id"));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -130,7 +130,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.SELECT_DATA));
|
||||
}
|
||||
this.lawsContactManageService.deleteByIds(Arrays.asList(map.get("ids").split(",")));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
return Result.OK(ResultCommon.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user