|
|
@@ -3,7 +3,7 @@ package jp.yamoto.farm.sankin.biz.service.impl;
|
|
|
import jp.yamoto.farm.common.biz.domain.entity.BssNoticeEntity;
|
|
|
import jp.yamoto.farm.common.biz.enums.BssNoticeStatus;
|
|
|
import jp.yamoto.farm.common.biz.enums.SankinPgIdEnum;
|
|
|
-import jp.yamoto.farm.common.biz.mapper.BssNoticeBaseMapper;
|
|
|
+import jp.yamoto.farm.common.biz.service.IBssNoticeBaseService;
|
|
|
import jp.yamoto.farm.common.utils.DateUtils;
|
|
|
import jp.yamoto.farm.common.utils.SecurityUtils;
|
|
|
import jp.yamoto.farm.sankin.biz.domain.vo.BssNoticeVo;
|
|
|
@@ -29,7 +29,7 @@ public class BssNoticeServiceImpl implements IBssNoticeService {
|
|
|
private BssNoticeMapper bssNoticeMapper;
|
|
|
|
|
|
@Autowired
|
|
|
- private BssNoticeBaseMapper bssNoticeBaseMapper;
|
|
|
+ private IBssNoticeBaseService bssNoticeBaseService;
|
|
|
|
|
|
/**
|
|
|
* 未読お知らせ数取得
|
|
|
@@ -60,13 +60,13 @@ public class BssNoticeServiceImpl implements IBssNoticeService {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public int readNotice(String id) {
|
|
|
- BssNoticeEntity bssNoticeEntity = new BssNoticeEntity();
|
|
|
+ BssNoticeEntity bssNoticeEntity = bssNoticeBaseService.selectById(id);
|
|
|
bssNoticeEntity.setStatus(BssNoticeStatus.READ.getCode());
|
|
|
bssNoticeEntity.setId(id);
|
|
|
bssNoticeEntity.setUpdatePgId(SankinPgIdEnum.N017.getCode());
|
|
|
// 受信日時
|
|
|
bssNoticeEntity.setReadTime(DateUtils.getTime());
|
|
|
|
|
|
- return bssNoticeBaseMapper.update(bssNoticeEntity);
|
|
|
+ return bssNoticeBaseService.update(bssNoticeEntity);
|
|
|
}
|
|
|
}
|