|
@@ -247,7 +247,7 @@ func GetPerson(positionId string) map[string]interface{} {
|
|
|
positionArrMap := Base.SelectBySql(fmt.Sprintf(`select a.phone,b.id,b.ent_id from
|
|
|
base_user a
|
|
|
INNER JOIN base_position b
|
|
|
- on b.id="%s" and b.user_id=a.id and b.type=1`,
|
|
|
+ on b.id= %s and b.user_id=a.id and b.type=1`,
|
|
|
positionId))
|
|
|
if positionArrMap == nil || len(*positionArrMap) == 0 {
|
|
|
return map[string]interface{}{}
|
|
@@ -503,7 +503,9 @@ func orders() {
|
|
|
product_type_str1 := `"大会员","VIP订阅","数据流量包","历史数据"`
|
|
|
DataSql := fmt.Sprintf(`select a.*,b.product_type as productType ,b.service_starttime,b.service_endtime,b.filter AS productFilter from dataexport_order a
|
|
|
INNER JOIN jy_order_detail b on a.order_code=b.order_code
|
|
|
- and a.create_time<="%s" and a.create_time>="%s" and b.product_type in (%s) and a.order_status = 0 and a.is_backstage_order = 0 and a.id> %s`, selectTimeEnd, selectTimeStart, product_type_str1, gconv.String(lastOrderId))
|
|
|
+ and a.create_time<="%s" and a.create_time>="%s" and b.product_type in (%s)
|
|
|
+ and a.order_status = 0 and a.is_backstage_order = 0 and a.id> %s`,
|
|
|
+ selectTimeEnd, selectTimeStart, product_type_str1, gconv.String(lastOrderId))
|
|
|
data, _ := getOrderData(DataSql)
|
|
|
if data != nil && data != nil && len(data) > 0 {
|
|
|
for _, v := range data {
|