|
|
@@ -6,6 +6,7 @@ import com.chuanghai.repair.service.RepairsNoticeService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -19,7 +20,7 @@ import java.util.List;
|
|
|
@Service("repairsNoticeService")
|
|
|
public class RepairsNoticeServiceImpl implements RepairsNoticeService {
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private RepairsNoticeMapper repairsNoticeMapper;
|
|
|
|
|
|
/**
|
|
|
@@ -33,7 +34,6 @@ public class RepairsNoticeServiceImpl implements RepairsNoticeService {
|
|
|
*/
|
|
|
@Override
|
|
|
public Boolean addNotice(String noticeContent, String noticeTime, Integer adminId) throws Exception {
|
|
|
- System.out.println(repairsNoticeMapper.addNotice(noticeContent, noticeTime, adminId));
|
|
|
return repairsNoticeMapper.addNotice(noticeContent, noticeTime, adminId);
|
|
|
}
|
|
|
|
|
|
@@ -45,7 +45,6 @@ public class RepairsNoticeServiceImpl implements RepairsNoticeService {
|
|
|
*/
|
|
|
@Override
|
|
|
public RepairsNotice releaseNotice() throws Exception {
|
|
|
- System.out.println(repairsNoticeMapper.releaseNotice());
|
|
|
return repairsNoticeMapper.releaseNotice();
|
|
|
}
|
|
|
|
|
|
@@ -70,7 +69,6 @@ public class RepairsNoticeServiceImpl implements RepairsNoticeService {
|
|
|
*/
|
|
|
@Override
|
|
|
public RepairsNotice alterNotice(String noticeContent, String noticeTime, Integer noticeId) throws Exception{
|
|
|
- System.out.println(repairsNoticeMapper.alterNotice(noticeContent,noticeTime,noticeId));
|
|
|
return repairsNoticeMapper.alterNotice(noticeContent,noticeTime,noticeId);
|
|
|
}
|
|
|
|
|
|
@@ -81,7 +79,6 @@ public class RepairsNoticeServiceImpl implements RepairsNoticeService {
|
|
|
*/
|
|
|
@Override
|
|
|
public List<RepairsNotice> queryAllNotice() throws Exception{
|
|
|
- System.out.println(repairsNoticeMapper.queryAllNotice());
|
|
|
return repairsNoticeMapper.queryAllNotice();
|
|
|
}
|
|
|
}
|