Last active
March 21, 2022 07:16
-
-
Save bayramcetin/fc19537a5f4b3c482d2bcdf646847b1a to your computer and use it in GitHub Desktop.
Valid time state select
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ETGChippinPriceParameters extends common | |
{ | |
public static ETGChippinPriceParameters find(utcdatetime validDate = DateTimeUtil::getToday(DateTimeUtil::getUserPreferredTimeZone()), | |
boolean _forUpdate = false) | |
{ | |
ETGChippinPriceParameters etgChippinPriceParameters; | |
if (validDate) | |
{ | |
etgChippinPriceParameters.selectForUpdate(_forUpdate); | |
select firstonly validtimestate(validDate) etgChippinPriceParameters | |
where etgChippinPriceParameters.DateIdx == ""; | |
} | |
return etgChippinPriceParameters; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment