jsoncpp int64

This commit is contained in:
antao 2018-11-23 19:46:59 +08:00
parent a2c349172a
commit afd1bf986a
1 changed files with 2 additions and 0 deletions

View File

@ -313,6 +313,8 @@ Json::Value {{className}}::toJson() const
ret["<%c++$$<<col._colName;%>"]=get<%c++$$<<col._colTypeName;%>()->toCustomedFormattedStringLocal("%Y-%m-%d %H:%M:%S", true);
<%c++}else if(col._colDatabaseType=="bytea"){%>
ret["<%c++$$<<col._colName;%>"]=drogon::base64Encode((const unsigned char *)get<%c++$$<<col._colTypeName;%>()->data(),get<%c++$$<<col._colTypeName;%>()->size());
<%c++}else if(col._colType=="int64_t"){%>
ret["<%c++$$<<col._colName;%>"]=(Json::Int64)getValueOf<%c++$$<<col._colTypeName;%>();
<%c++}else{%>
ret["<%c++$$<<col._colName;%>"]=getValueOf<%c++$$<<col._colTypeName;%>();
<%c++}%>