Commit fd681728 by guanghui.cui

折扣数据分摊到每个商品中

parent e0d8d887
......@@ -16,8 +16,9 @@ password=123
pos=bifengtang
#pos server ip
serverip=192.168.0.102
#商户从平台拿到百分比(总订单金额)
percent=90
#优惠类型
discountTypeShop=600
discountTypePlantform=601
#守护进程脚本
[SH]
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment