admin
2022-04-26 36681e15e12aaa9135f69260472de65303cdcba3
app/src/main/java/com/yeshi/makemoney/app/service/impl/msg/AppPageNotifyMsgServiceImpl.java
@@ -3,6 +3,7 @@
import java.lang.Exception;
import javax.annotation.Resource;
import com.yeshi.makemoney.app.entity.SystemEnum;
import org.springframework.stereotype.Service;
import java.util.Date;
@@ -91,5 +92,20 @@
        }
    }
    @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);
    }
}