zf-about notification Announcements display issues

Source: Internet
Author: User

1 Announcement End date is more than the current time is not displayed on the notification announcement

2 The announcement of the unrestricted time is also to be shown on the notice announcement.

So I added the following code to the background implementation class

It is important to note that the first problem was solved by adding an and

When you want to solve a second problem, you need to use the OR

Then you need to enclose these 2 conditions in parentheses.

Between these 2 conditions write or

And I made a mistake. Date is not = NULL to write date is null this is OK

Null is to be judged here involves the difference between IS and =

The first where xx = ' null ', the value of the XX character Gencun is four characters of NULL,
The second where xx is null, XX field does not exist, this is the database of the judgment syntax,
The third where IsNull (xx), xx field does not exist, this is the interface development language judgment grammar

"=" can only judge the value

And "is" to determine whether it is null

zf-about notification Announcements display issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.