标签: elixir phoenix-framework ecto
给出代码
def getbno() do query = from u in GodowentryForAcceptance, select: max(u.bno) Repo.one(query) end
我想判断返回条件,例如
case GodownentryForAcceptanceService.getbno() do empty-> do something notempty -> dosomething end
什么是判断条件(空/非空)?