| | |
| | | import java.lang.Exception; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.makemoney.app.entity.SystemEnum; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public AppPageNotifyMsg selectByType(SystemEnum system, AppPageNotifyMsg.AppPageNotifyMsgType type, Date date) { |
| | | DaoQuery daoQuery = new DaoQuery(); |
| | | daoQuery.type = type; |
| | | daoQuery.date = date; |
| | | daoQuery.show = true; |
| | | daoQuery.system = system; |
| | | daoQuery.count = 1; |
| | | List<AppPageNotifyMsg> list = appPageNotifyMsgDao.list(daoQuery); |
| | | if (list == null || list.size() == 0) { |
| | | return null; |
| | | } |
| | | return list.get(0); |
| | | } |
| | | |
| | | |
| | | } |