|
@@ -516,19 +516,11 @@ func VipOrderDetails(res *map[string]interface{}) map[string]interface{} {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
// 回款信息
|
|
// 回款信息
|
|
returnInfo := util.JysqlDB.SelectBySql("SELECT COUNT(*) count,SUM(return_money) money from return_money_record WHERE order_code=? and state=1", (*res)["order_code"])
|
|
returnInfo := util.JysqlDB.SelectBySql("SELECT COUNT(*) count,SUM(return_money) money from return_money_record WHERE order_code=? and state=1", (*res)["order_code"])
|
|
// 回款交易详情列表
|
|
// 回款交易详情列表
|
|
returnRes := util.JysqlDB.Find("return_money_record", map[string]interface{}{"order_code": (*res)["order_code"], "state": 1}, "", "", 0, 0)
|
|
returnRes := util.JysqlDB.Find("return_money_record", map[string]interface{}{"order_code": (*res)["order_code"], "state": 1}, "", "", 0, 0)
|
|
- // 合同
|
|
|
|
- contractRes := util.JysqlDB.FindOne("contract", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "")
|
|
|
|
if returnRes != nil && len(*returnRes) > 0 {
|
|
if returnRes != nil && len(*returnRes) > 0 {
|
|
for _, d := range *returnRes {
|
|
for _, d := range *returnRes {
|
|
if d["return_voucher_url"] != nil && len(d["return_voucher_url"].(string)) > 0 {
|
|
if d["return_voucher_url"] != nil && len(d["return_voucher_url"].(string)) > 0 {
|
|
@@ -542,17 +534,6 @@ func VipOrderDetails(res *map[string]interface{}) map[string]interface{} {
|
|
} else {
|
|
} else {
|
|
result["returnRes"] = []map[string]interface{}{}
|
|
result["returnRes"] = []map[string]interface{}{}
|
|
}
|
|
}
|
|
- if contractRes != nil && len(*contractRes) > 0 {
|
|
|
|
- if (*contractRes)["contract_file_url"] != nil && len((*contractRes)["contract_file_url"].(string)) > 0 {
|
|
|
|
- index_ := strings.LastIndex((*contractRes)["contract_file_url"].(string), "/")
|
|
|
|
- if index_ != -1 {
|
|
|
|
- (*contractRes)["contract_file_name"] = (*contractRes)["contract_file_url"].(string)[index_+1:]
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- result["contractRes"] = *contractRes
|
|
|
|
- } else {
|
|
|
|
- result["contractRes"] = map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
//delete(*res, "order_money")
|
|
//delete(*res, "order_money")
|
|
result["res"] = *res
|
|
result["res"] = *res
|
|
@@ -785,13 +766,6 @@ func DataExportOrderDetail(res *map[string]interface{}) map[string]interface{} {
|
|
} else {
|
|
} else {
|
|
(*res)["pay_way"] = ""
|
|
(*res)["pay_way"] = ""
|
|
}
|
|
}
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
|
|
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
result["isExit"] = isExit
|
|
result["isExit"] = isExit
|
|
@@ -964,13 +938,7 @@ func DataReportOrderDetail(res *map[string]interface{}) map[string]interface{} {
|
|
result["filterData"] = fiterMap
|
|
result["filterData"] = fiterMap
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
result["res"] = *res
|
|
result["res"] = *res
|
|
return result
|
|
return result
|
|
@@ -1153,13 +1121,7 @@ func CourseOrderDetails(res *map[string]interface{}, name string) map[string]int
|
|
// }
|
|
// }
|
|
order_money := qutil.Float64All((*res)["order_money"]) / 100
|
|
order_money := qutil.Float64All((*res)["order_money"]) / 100
|
|
(*res)["order_money"] = order_money
|
|
(*res)["order_money"] = order_money
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
delete(*resCourse, "s_content")
|
|
delete(*resCourse, "s_content")
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
result["res"] = res
|
|
result["res"] = res
|
|
@@ -1339,10 +1301,6 @@ func BigVipOrderDetails(res *map[string]interface{}) map[string]interface{} {
|
|
returnInfo := util.JysqlDB.SelectBySql("SELECT COUNT(*) count,SUM(return_money) money from return_money_record WHERE order_code=? and state=1", (*res)["order_code"])
|
|
returnInfo := util.JysqlDB.SelectBySql("SELECT COUNT(*) count,SUM(return_money) money from return_money_record WHERE order_code=? and state=1", (*res)["order_code"])
|
|
// 回款交易详情列表
|
|
// 回款交易详情列表
|
|
returnRes := util.JysqlDB.Find("return_money_record", map[string]interface{}{"order_code": (*res)["order_code"], "state": 1}, "", "", 0, 0)
|
|
returnRes := util.JysqlDB.Find("return_money_record", map[string]interface{}{"order_code": (*res)["order_code"], "state": 1}, "", "", 0, 0)
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- // 合同
|
|
|
|
- contractRes := util.JysqlDB.FindOne("contract", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "")
|
|
|
|
if returnRes != nil && len(*returnRes) > 0 {
|
|
if returnRes != nil && len(*returnRes) > 0 {
|
|
for _, d := range *returnRes {
|
|
for _, d := range *returnRes {
|
|
if d["return_voucher_url"] != nil && len(d["return_voucher_url"].(string)) > 0 {
|
|
if d["return_voucher_url"] != nil && len(d["return_voucher_url"].(string)) > 0 {
|
|
@@ -1356,24 +1314,6 @@ func BigVipOrderDetails(res *map[string]interface{}) map[string]interface{} {
|
|
} else {
|
|
} else {
|
|
result["returnRes"] = []map[string]interface{}{}
|
|
result["returnRes"] = []map[string]interface{}{}
|
|
}
|
|
}
|
|
- if contractRes != nil && len(*contractRes) > 0 {
|
|
|
|
- if (*contractRes)["contract_file_url"] != nil && len((*contractRes)["contract_file_url"].(string)) > 0 {
|
|
|
|
- index_ := strings.LastIndex((*contractRes)["contract_file_url"].(string), "/")
|
|
|
|
- if index_ != -1 {
|
|
|
|
- (*contractRes)["contract_file_name"] = (*contractRes)["contract_file_url"].(string)[index_+1:]
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- contractTime, _ := time.ParseInLocation(qutil.Date_Full_Layout, qutil.ObjToString((*contractRes)["contract_time"]), time.Local)
|
|
|
|
- (*contractRes)["contractTime"] = contractTime.Unix()
|
|
|
|
- result["contractRes"] = *contractRes
|
|
|
|
- } else {
|
|
|
|
- result["contractRes"] = map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
|
|
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
//delete(*res, "order_money")
|
|
//delete(*res, "order_money")
|
|
@@ -1579,13 +1519,7 @@ func EntnicheOrderDetail(res *map[string]interface{}) map[string]interface{} {
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
result["filterData"] = filterMap
|
|
result["filterData"] = filterMap
|
|
result["res"] = *res
|
|
result["res"] = *res
|
|
@@ -1743,13 +1677,6 @@ func BidFileReadOrderDetail(res *map[string]interface{}) map[string]interface{}
|
|
} else {
|
|
} else {
|
|
(*res)["pay_way"] = ""
|
|
(*res)["pay_way"] = ""
|
|
}
|
|
}
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
|
|
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
result["res"] = *res
|
|
result["res"] = *res
|
|
@@ -1919,30 +1846,6 @@ func JyPointsOrderDetail(res *map[string]interface{}) map[string]interface{} {
|
|
} else {
|
|
} else {
|
|
(*res)["pay_way"] = ""
|
|
(*res)["pay_way"] = ""
|
|
}
|
|
}
|
|
-
|
|
|
|
- if qutil.IntAll((*res)["is_backstage_order"]) == 1 && product_type == "数据文件" {
|
|
|
|
- contractRes := util.JysqlDB.FindOne("contract", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "")
|
|
|
|
- //合同金额
|
|
|
|
- if contractRes != nil && len(*contractRes) != 0 {
|
|
|
|
- if (*contractRes)["contract_file_url"] != nil && len((*contractRes)["contract_file_url"].(string)) > 0 {
|
|
|
|
- index_ := strings.LastIndex((*contractRes)["contract_file_url"].(string), "/")
|
|
|
|
- if index_ != -1 {
|
|
|
|
- (*contractRes)["contract_file_name"] = (*contractRes)["contract_file_url"].(string)[index_+1:]
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- result["contractRes"] = *contractRes
|
|
|
|
- } else {
|
|
|
|
- result["contractRes"] = map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- //退款信息
|
|
|
|
- refundRes := util.JysqlDB.Find("refund_record", map[string]interface{}{"order_code": (*res)["order_code"]}, "", "", 0, 0)
|
|
|
|
- if refundRes != nil && len(*refundRes) > 0 {
|
|
|
|
- result["refundRes"] = *refundRes
|
|
|
|
- } else {
|
|
|
|
- result["refundRes"] = []map[string]interface{}{}
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
delete(*res, "filter")
|
|
delete(*res, "filter")
|
|
result["res"] = *res
|
|
result["res"] = *res
|
|
result["filterData"] = fiterMap
|
|
result["filterData"] = fiterMap
|
|
@@ -3777,31 +3680,7 @@ func NewBigOrder(subStatus, dateType int, startdate, enddate time.Time, userId,
|
|
returnStatus = 1
|
|
returnStatus = 1
|
|
isAll = 1
|
|
isAll = 1
|
|
}
|
|
}
|
|
- filterMap := map[string]interface{}{
|
|
|
|
- "source": "qmx",
|
|
|
|
- "cycle": param.PayCycle,
|
|
|
|
- "cycleType": param.CycleType,
|
|
|
|
- "level": param.Level,
|
|
|
|
- "pay_sub_num": param.PaySub,
|
|
|
|
- "free_sub_num": param.FreeSub,
|
|
|
|
- "transferV": param.PayV,
|
|
|
|
- "transferVTime": qutil.NowFormat(qutil.Date_Full_Layout),
|
|
|
|
- "effective_date": enddate.Format("2006/01/02"),
|
|
|
|
- "bigMoney": param.BigMoney,
|
|
|
|
- "subMoney": param.SubMoney,
|
|
|
|
- "supplyMoney": param.SupplyMoney,
|
|
|
|
- "bigPayMoney": param.BigPayMoney,
|
|
|
|
- "subPayMoney": param.SubPayMoney,
|
|
|
|
- "supplyPayMoney": param.SupplyPayMoney,
|
|
|
|
- "createType": param.CreateType,
|
|
|
|
- "comboId": param.ComboId,
|
|
|
|
- "serversId": param.ServersId,
|
|
|
|
- "serversName": param.ServersName,
|
|
|
|
- "isAll": isAll,
|
|
|
|
- "supplys": param.ServerArr,
|
|
|
|
- "remark": param.Remark,
|
|
|
|
- "contractStatus": contractStatus,
|
|
|
|
- }
|
|
|
|
|
|
+ filterMap := ParamToFilter(param, enddate, isAll, contractStatus)
|
|
// p238 大会员省份版处理省份数量
|
|
// p238 大会员省份版处理省份数量
|
|
if param.AreaCount != 0 {
|
|
if param.AreaCount != 0 {
|
|
filterMap["areaCount"] = param.AreaCount
|
|
filterMap["areaCount"] = param.AreaCount
|
|
@@ -3878,6 +3757,7 @@ func NewBigOrder(subStatus, dateType int, startdate, enddate time.Time, userId,
|
|
"contract_archive_status": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveStatus),
|
|
"contract_archive_status": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveStatus),
|
|
"contract_archive_time": qutil.If(param.ContractArchiveTime == "", nil, param.ContractArchiveTime),
|
|
"contract_archive_time": qutil.If(param.ContractArchiveTime == "", nil, param.ContractArchiveTime),
|
|
"contract_archive_num": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveNum),
|
|
"contract_archive_num": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveNum),
|
|
|
|
+ "contract_nature": qutil.IntAll(param.Contract_nature),
|
|
}
|
|
}
|
|
//是否符合生成电子合同
|
|
//是否符合生成电子合同
|
|
createType := qutil.IntAll(filterMap["createType"])
|
|
createType := qutil.IntAll(filterMap["createType"])
|
|
@@ -4241,31 +4121,7 @@ func UpdateNewBigOrder(oldFilter string, subStatus, dateType int, now, startdate
|
|
return_status = 1
|
|
return_status = 1
|
|
isAll = 1
|
|
isAll = 1
|
|
}
|
|
}
|
|
- filter_map := map[string]interface{}{
|
|
|
|
- "source": "qmx",
|
|
|
|
- "cycle": param.PayCycle,
|
|
|
|
- "cycleType": param.CycleType,
|
|
|
|
- "level": param.Level,
|
|
|
|
- "pay_sub_num": param.PaySub,
|
|
|
|
- "free_sub_num": param.FreeSub,
|
|
|
|
- "transferV": param.PayV,
|
|
|
|
- "transferVTime": qutil.NowFormat(qutil.Date_Full_Layout),
|
|
|
|
- "effective_date": enddate.Format("2006/01/02"),
|
|
|
|
- "bigMoney": param.BigMoney,
|
|
|
|
- "subMoney": param.SubMoney,
|
|
|
|
- "supplyMoney": param.SupplyMoney,
|
|
|
|
- "bigPayMoney": param.BigPayMoney,
|
|
|
|
- "subPayMoney": param.SubPayMoney,
|
|
|
|
- "supplyPayMoney": param.SupplyPayMoney,
|
|
|
|
- "createType": param.CreateType,
|
|
|
|
- "comboId": param.ComboId,
|
|
|
|
- "serversId": param.ServersId,
|
|
|
|
- "serversName": param.ServersName,
|
|
|
|
- "isAll": isAll,
|
|
|
|
- "supplys": param.ServerArr,
|
|
|
|
- "remark": param.Remark,
|
|
|
|
- "contractStatus": contractStatus,
|
|
|
|
- }
|
|
|
|
|
|
+ filter_map := ParamToFilter(param, enddate, isAll, contractStatus)
|
|
// p238 大会员省份版处理省份数量
|
|
// p238 大会员省份版处理省份数量
|
|
if param.AreaCount != 0 {
|
|
if param.AreaCount != 0 {
|
|
filter_map["areaCount"] = param.AreaCount
|
|
filter_map["areaCount"] = param.AreaCount
|
|
@@ -4729,32 +4585,8 @@ func SupplyBigOrder(subStatus, pay_sub_num, free_sub_num, dateType int, now, sta
|
|
return_status = 1
|
|
return_status = 1
|
|
isAll = 1
|
|
isAll = 1
|
|
}
|
|
}
|
|
- filter_map := map[string]interface{}{
|
|
|
|
- "source": "qmx",
|
|
|
|
- "cycle": param.PayCycle,
|
|
|
|
- "cycleType": param.CycleType,
|
|
|
|
- "level": param.Level,
|
|
|
|
- "pay_sub_num": param.PaySub,
|
|
|
|
- "free_sub_num": param.FreeSub,
|
|
|
|
- "transferV": param.PayV,
|
|
|
|
- "transferVTime": qutil.NowFormat(qutil.Date_Full_Layout),
|
|
|
|
- "effective_date": enddate.Format("2006/01/02"),
|
|
|
|
- "bigMoney": param.BigMoney,
|
|
|
|
- "subMoney": param.SubMoney,
|
|
|
|
- "supplyMoney": param.SupplyMoney,
|
|
|
|
- "bigPayMoney": param.BigPayMoney,
|
|
|
|
- "subPayMoney": param.SubPayMoney,
|
|
|
|
- "supplyPayMoney": param.SupplyPayMoney,
|
|
|
|
- "createType": param.CreateType,
|
|
|
|
- "comboId": param.ComboId,
|
|
|
|
- "serversId": param.ServersId,
|
|
|
|
- "serversName": param.ServersName,
|
|
|
|
- "isAll": isAll,
|
|
|
|
- "supplys": param.ServerArr,
|
|
|
|
- "remark": param.Remark,
|
|
|
|
- "contractStatus": contractStatus,
|
|
|
|
- }
|
|
|
|
- filter, _ := json.Marshal(filter_map)
|
|
|
|
|
|
+ filterMap := ParamToFilter(param, enddate, isAll, contractStatus)
|
|
|
|
+ filter, _ := json.Marshal(filterMap)
|
|
serverMap := GetServerPid()
|
|
serverMap := GetServerPid()
|
|
agreementTime := time.Unix(param.AgreementTime, 0)
|
|
agreementTime := time.Unix(param.AgreementTime, 0)
|
|
if param.BigPayMoney > -1 {
|
|
if param.BigPayMoney > -1 {
|
|
@@ -4825,6 +4657,7 @@ func SupplyBigOrder(subStatus, pay_sub_num, free_sub_num, dateType int, now, sta
|
|
"contract_archive_status": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveStatus),
|
|
"contract_archive_status": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveStatus),
|
|
"contract_archive_time": qutil.If(param.ContractArchiveTime == "", nil, param.ContractArchiveTime),
|
|
"contract_archive_time": qutil.If(param.ContractArchiveTime == "", nil, param.ContractArchiveTime),
|
|
"contract_archive_num": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveNum),
|
|
"contract_archive_num": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveNum),
|
|
|
|
+ "contract_nature": qutil.IntAll(param.Contract_nature),
|
|
})
|
|
})
|
|
// 我的订单-创建订单不开通权限 不更新mysql表 全部订单-创建订单保持原有开通权限逻辑
|
|
// 我的订单-创建订单不开通权限 不更新mysql表 全部订单-创建订单保持原有开通权限逻辑
|
|
if !param.Open {
|
|
if !param.Open {
|
|
@@ -5041,32 +4874,8 @@ func ExtendBigOrder(subStatus, pay_sub_num, free_sub_num int, now, startdate, en
|
|
returnStatus = 1
|
|
returnStatus = 1
|
|
isAll = 1
|
|
isAll = 1
|
|
}
|
|
}
|
|
- filter_map := map[string]interface{}{
|
|
|
|
- "source": "qmx",
|
|
|
|
- "cycle": param.PayCycle,
|
|
|
|
- "cycleType": param.CycleType,
|
|
|
|
- "level": param.Level,
|
|
|
|
- "pay_sub_num": param.PaySub,
|
|
|
|
- "free_sub_num": param.FreeSub,
|
|
|
|
- "transferV": param.PayV,
|
|
|
|
- "transferVTime": qutil.NowFormat(qutil.Date_Full_Layout),
|
|
|
|
- "effective_date": enddate.Format("2006/01/02"),
|
|
|
|
- "bigMoney": param.BigMoney,
|
|
|
|
- "subMoney": param.SubMoney,
|
|
|
|
- "supplyMoney": param.SupplyMoney,
|
|
|
|
- "bigPayMoney": param.BigPayMoney,
|
|
|
|
- "subPayMoney": param.SubPayMoney,
|
|
|
|
- "supplyPayMoney": param.SupplyPayMoney,
|
|
|
|
- "createType": param.CreateType,
|
|
|
|
- "comboId": param.ComboId,
|
|
|
|
- "serversId": param.ServersId,
|
|
|
|
- "serversName": param.ServersName,
|
|
|
|
- "isAll": isAll,
|
|
|
|
- "supplys": param.ServerArr,
|
|
|
|
- "remark": param.Remark,
|
|
|
|
- "contractStatus": contractStatus,
|
|
|
|
- }
|
|
|
|
- filter, _ := json.Marshal(filter_map)
|
|
|
|
|
|
+ filterMap := ParamToFilter(param, enddate, isAll, contractStatus)
|
|
|
|
+ filter, _ := json.Marshal(filterMap)
|
|
serverMap := GetServerPid()
|
|
serverMap := GetServerPid()
|
|
agreementTime := time.Unix(param.AgreementTime, 0)
|
|
agreementTime := time.Unix(param.AgreementTime, 0)
|
|
if param.BigPayMoney > -1 {
|
|
if param.BigPayMoney > -1 {
|
|
@@ -5138,6 +4947,7 @@ func ExtendBigOrder(subStatus, pay_sub_num, free_sub_num int, now, startdate, en
|
|
"contract_archive_status": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveStatus),
|
|
"contract_archive_status": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveStatus),
|
|
"contract_archive_time": qutil.If(param.ContractArchiveTime == "", nil, param.ContractArchiveTime),
|
|
"contract_archive_time": qutil.If(param.ContractArchiveTime == "", nil, param.ContractArchiveTime),
|
|
"contract_archive_num": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveNum),
|
|
"contract_archive_num": qutil.If(param.AgreementStatus == 0, nil, param.ContractArchiveNum),
|
|
|
|
+ "contract_nature": qutil.IntAll(param.Contract_nature),
|
|
})
|
|
})
|
|
// 我的订单不开通权限
|
|
// 我的订单不开通权限
|
|
if !param.Open {
|
|
if !param.Open {
|
|
@@ -5341,6 +5151,35 @@ func ExtendBigOrder(subStatus, pay_sub_num, free_sub_num int, now, startdate, en
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func ParamToFilter(param *Params, enddate time.Time, isAll, contractStatus int) map[string]interface{} {
|
|
|
|
+ filterMap := map[string]interface{}{
|
|
|
|
+ "source": "qmx",
|
|
|
|
+ "cycle": param.PayCycle,
|
|
|
|
+ "cycleType": param.CycleType,
|
|
|
|
+ "level": param.Level,
|
|
|
|
+ "pay_sub_num": param.PaySub,
|
|
|
|
+ "free_sub_num": param.FreeSub,
|
|
|
|
+ "transferV": param.PayV,
|
|
|
|
+ "transferVTime": qutil.NowFormat(qutil.Date_Full_Layout),
|
|
|
|
+ "effective_date": enddate.Format("2006/01/02"),
|
|
|
|
+ "bigMoney": param.BigMoney,
|
|
|
|
+ "subMoney": param.SubMoney,
|
|
|
|
+ "supplyMoney": param.SupplyMoney,
|
|
|
|
+ "bigPayMoney": param.BigPayMoney,
|
|
|
|
+ "subPayMoney": param.SubPayMoney,
|
|
|
|
+ "supplyPayMoney": param.SupplyPayMoney,
|
|
|
|
+ "createType": param.CreateType,
|
|
|
|
+ "comboId": param.ComboId,
|
|
|
|
+ "serversId": param.ServersId,
|
|
|
|
+ "serversName": param.ServersName,
|
|
|
|
+ "isAll": isAll,
|
|
|
|
+ "supplys": param.ServerArr,
|
|
|
|
+ "remark": param.Remark,
|
|
|
|
+ "contractStatus": contractStatus,
|
|
|
|
+ }
|
|
|
|
+ return filterMap
|
|
|
|
+}
|
|
|
|
+
|
|
func GetDATE(m, t int, endtime int64) (_endtime time.Time) {
|
|
func GetDATE(m, t int, endtime int64) (_endtime time.Time) {
|
|
endFormat := qutil.FormatDateByInt64(&endtime, qutil.Date_Short_Layout)
|
|
endFormat := qutil.FormatDateByInt64(&endtime, qutil.Date_Short_Layout)
|
|
//t 1-天 0-月
|
|
//t 1-天 0-月
|