提交 f910d2e1 authored 作者: xc's avatar xc

xc

上级 bcec0b3b
......@@ -10,6 +10,7 @@ import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
......@@ -48,6 +49,7 @@ public class AttentionServiceImpl implements AttentionService {
}
@Override
@Transactional
public boolean updateStatus(List<Attention> attentions) {
try{
for(Attention attention:attentions){
......
......@@ -9,9 +9,12 @@ import com.zjty.efs.log.tool.EfsLogUtil;
import com.zjty.efs.user.subject.entity.UserDo;
import com.zjty.efs.user.subject.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.annotation.Transient;
import org.springframework.data.domain.*;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.Calendar;
......@@ -27,6 +30,7 @@ public class NoticeServiceImpl implements NoticeService {
@Autowired
UserService userService;
@Override
@Transactional
public boolean addNotice(Notice notice) {
try{
......@@ -81,6 +85,7 @@ public class NoticeServiceImpl implements NoticeService {
}
@Override
@Transactional
public boolean updateNotice(Notice notice) {
try{
notice.setStatus(0);
......@@ -94,6 +99,7 @@ public class NoticeServiceImpl implements NoticeService {
}
@Override
@Transactional
public Notice getNotice(int id) {
try {
Notice notice = noticeDao.findById(id);
......@@ -148,6 +154,7 @@ public class NoticeServiceImpl implements NoticeService {
}
@Override
@Transactional
public boolean updateStatus(List<Notice> notices) {
try {
String userId = "";
......@@ -160,6 +167,7 @@ public class NoticeServiceImpl implements NoticeService {
String data = "[" +userDo.getUnit() + "][" + userDo.getDepartment() + "]的[" + userDo.getName()
+ "修改";
for (Notice notice:notices){
notice.setStatus(1);
noticeDao.save(notice);
data = data + "[" + notice.getTitle() + "]";
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论