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
fd681728
Commit
fd681728
authored
Nov 02, 2017
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
折扣数据分摊到每个商品中
parent
e0d8d887
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
bin/monitor.ini
+3
-2
pos_bft/OrderInfo.cpp
+0
-0
pos_bft/OrderInfo.h
+4
-2
No files found.
bin/monitor.ini
View file @
fd681728
...
...
@@ -16,8 +16,9 @@ password=123
pos
=
bifengtang
#pos server ip
serverip
=
192.168.0.102
#商户从平台拿到百分比(总订单金额)
percent
=
90
#优惠类型
discountTypeShop
=
600
discountTypePlantform
=
601
#守护进程脚本
[SH]
...
...
pos_bft/OrderInfo.cpp
View file @
fd681728
This diff is collapsed.
Click to expand it.
pos_bft/OrderInfo.h
View file @
fd681728
...
...
@@ -89,7 +89,6 @@ private:
std
::
vector
<
std
::
string
>
vecSetMenu
;
//菜单中是套餐的项目
std
::
map
<
std
::
string
,
std
::
vector
<
SetMenuItem
>>
mapSetMenu
;
//套餐(key:套餐id、value:套餐条目)
char
*
UTF8ToLatin1
(
const
char
*
str
);
void
CleanOldData
();
//清理超过六个月数据
int
charset_convert
(
const
char
*
charset_from
,
const
char
*
charset_to
...
...
@@ -107,6 +106,7 @@ private:
//向数据库总添加:fmTemp表 | 触发器 | fmTakeaway表 | fmTakeaway_products表
int
AddFMTable
();
void
rollbackData
(
std
::
string
orderid
);
int
AddDiscountType
();
//添加优惠类型
pthread_mutex_t
mutex
;
//互斥锁
MySQLService
*
mysql
;
...
...
@@ -114,7 +114,9 @@ private:
char
*
_tempLatin1
;
//utf8转换为Latin1后,存放在此变量中
std
::
string
strMonitorDeamon
;
//monitor守护进程脚本文件路径
std
::
string
strTakeoutDeamon
;
//takeout守护进程脚本文件路径
int
_percent
;
//商户从平台拿到百分比(总订单金额)
int
_merchantDisId
;
//优惠类型id(商户减免)
int
_plantformFeeId
;
//优惠类型id(平台服务费)
};
#endif
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