更新notice
This commit is contained in:
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class NoticeServiceImpl implements NoticeService {
|
||||
@@ -42,9 +43,9 @@ public class NoticeServiceImpl implements NoticeService {
|
||||
return JSON.toJSONString(hashMap);
|
||||
}
|
||||
}
|
||||
public String select(int id){
|
||||
public String select(){
|
||||
HashMap<String,Object> hashMap = new HashMap<>();
|
||||
Notice result = noticeDao.selectByPrimaryKey(id);
|
||||
List<Notice> result = noticeDao.selectAll();
|
||||
if(result != null){
|
||||
return JSON.toJSONString(result);
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user