|
@@ -417,6 +417,8 @@ type IncrementalList struct {
|
|
|
SysRealName string `description:"操作者名称"`
|
|
|
SysUserId string `description:"操作者Id"`
|
|
|
Operation string `description:"操作"`
|
|
|
+ WxUserId int `description:"用户ID,开通个人权限使用"`
|
|
|
+ WxUserName string `description:"用户姓名,针对某份合同仅对单个用户使用的时候的场景"`
|
|
|
}
|
|
|
|
|
|
// GetIncrementalNewCompanyCount 获取增量客户报表列表统计数据(根据合同来展示)
|
|
@@ -1001,7 +1003,7 @@ func GetIncrementalCompanyListByOperationRecordMerge(condition string, pars []in
|
|
|
o := orm.NewOrm()
|
|
|
|
|
|
//查询真正的数据
|
|
|
- sql := `SELECT a.company_contract_id,a.contract_type ,a.company_product_id ,a.contract_code ,a.pay_method ,a.pay_channel ,a.package_difference ,a.company_id, a.start_date, a.end_date, a.money, b.company_name, a.seller_id_last as seller_id, a.seller_name_last as seller_name, a.share_seller_last as share_seller, a.product_id, a.product_name, a.create_time, b.region_type, c.renewal_reason, c.renewal_todo, c.status FROM company_contract a
|
|
|
+ sql := `SELECT a.company_contract_id,a.contract_type ,a.company_product_id ,a.contract_code ,a.pay_method ,a.pay_channel ,a.package_difference ,a.company_id, a.start_date, a.end_date, a.money, b.company_name, a.seller_id_last as seller_id, a.seller_name_last as seller_name, a.share_seller_last as share_seller, a.product_id, a.product_name, a.create_time, b.region_type, c.renewal_reason, c.renewal_todo, c.status , a.wx_user_id , a.wx_user_name FROM company_contract a
|
|
|
RIGHT JOIN company b ON a.company_id = b.company_id
|
|
|
JOIN company_product c ON b.company_id = c.company_id
|
|
|
AND a.product_id = c.product_id where 1=1 `
|