Fix a bug of models (#239)

This commit is contained in:
An Tao 2019-09-10 15:14:57 +08:00 committed by GitHub
parent 6ef7cffabb
commit aaaba8aa97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -52,7 +52,12 @@ const bool [[className]]::hasPrimaryKey = true;
<%c++ }else{%>
const bool [[className]]::hasPrimaryKey = false;
<%c++}%>
const std::string [[className]]::tableName = "[[tableName]]";
const std::string [[className]]::tableName = "<%c++
if(!schema.empty())
{
$$<<schema<<".";
}
%>[[tableName]]";
const std::vector<typename [[className]]::MetaData> [[className]]::_metaData={
<%c++for(size_t i=0;i<cols.size();i++){

View File

@ -94,7 +94,7 @@ class HttpAppFrameworkImpl : public HttpAppFramework
virtual HttpAppFramework &registerBeginningAdvice(
const std::function<void()> &advice) override
{
getLoop()->runInLoop(advice);
getLoop()->queueInLoop(advice);
return *this;
}