Skip to content

Instantly share code, notes, and snippets.

@bayramcetin
Last active March 21, 2022 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bayramcetin/fc19537a5f4b3c482d2bcdf646847b1a to your computer and use it in GitHub Desktop.
Save bayramcetin/fc19537a5f4b3c482d2bcdf646847b1a to your computer and use it in GitHub Desktop.
Valid time state select
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