Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMDbMonitor_linux
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanghui.cui
FMDbMonitor_linux
Commits
93479b9a
Commit
93479b9a
authored
Sep 20, 2017
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、latin1字符写入sqlite 在POS中直接写入
2、makefile:指定程序动态链接库路径路径
parent
7ce61746
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
bin/fmdata.db
+0
-0
makefile
+1
-1
pos_bft/OrderInfo.cpp
+1
-1
No files found.
bin/fmdata.db
View file @
93479b9a
No preview for this file type
makefile
View file @
93479b9a
...
@@ -20,7 +20,7 @@ SRCS := utility/utility.cpp\
...
@@ -20,7 +20,7 @@ SRCS := utility/utility.cpp\
LDFLAGSSO
:=
-std
=
c++11
`
mysql_config
--cflags
--libs
`
-fPIC
-shared
LDFLAGSSO
:=
-std
=
c++11
`
mysql_config
--cflags
--libs
`
-fPIC
-shared
LDFLAGS
:=
-std
=
c++11
-l
boost_regex
-lboost_system
-lboost_filesystem
-lOrderInfo
-lsqlite3
-lpthread
-L
.
LDFLAGS
:=
-std
=
c++11
-l
OrderInfo
-lsqlite3
-lpthread
-L
.
-Wl
,-rpath,
'$$ORIGIN'
all
:
all
:
$(CXX)
$(SRCSSO)
$(LDFLAGSSO)
-o
./bin/libOrderInfo.so
$(CXX)
$(SRCSSO)
$(LDFLAGSSO)
-o
./bin/libOrderInfo.so
...
...
pos_bft/OrderInfo.cpp
View file @
93479b9a
...
@@ -71,7 +71,7 @@ int COrderInfo::Init()
...
@@ -71,7 +71,7 @@ int COrderInfo::Init()
snprintf
(
mysql
->
sqlStr
,
SQL_BUFFER_SIZE
,
"INSERT INTO tbl_PayMethod\
snprintf
(
mysql
->
sqlStr
,
SQL_BUFFER_SIZE
,
"INSERT INTO tbl_PayMethod\
(PayNo, SeqNo, Name3, EmpPayLevel, PayClass, PmsAskAccount)\
(PayNo, SeqNo, Name3, EmpPayLevel, PayClass, PmsAskAccount)\
VALUES (%d, %d,'%s', 5, 3, 0)"
,
VALUES (%d, %d,'%s', 5, 3, 0)"
,
payType
,
payType
,
UTF8ToLatin1
(
vecTakewayTypes
[
i
].
strName
.
c_str
()
));
payType
,
payType
,
vecTakewayTypes
[
i
].
strName
.
c_str
(
));
nErrCode
=
mysql
->
insert
();
nErrCode
=
mysql
->
insert
();
if
(
nErrCode
!=
EC_OK
)
if
(
nErrCode
!=
EC_OK
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment