Skip to content

Commit 15af770

Browse files
committed
add a sql
1 parent e6d00a2 commit 15af770

File tree

2 files changed

+270
-1
lines changed

2 files changed

+270
-1
lines changed

website/src/main/java/info/xiaomo/website/controller/WebSetController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public WebSetController(WebSetService service) {
4848
@RequestMapping(value = "findAll", method = RequestMethod.GET)
4949
public Result findAll() {
5050
List<SystemSetModel> list = service.findAll();
51-
if (list.isEmpty() || list.size() == 0) {
51+
if (list.isEmpty()) {
5252
return new Result(CodeConst.NULL_DATA.getResultCode(), CodeConst.NULL_DATA.getMessage());
5353
}
5454
return new Result<>(list);

0 commit comments

Comments
 (0)