Commit b0def0e1 by huangchengyi

1.0

parent e1531b5e
Showing with 6 additions and 4 deletions
...@@ -86,14 +86,16 @@ func (d *dao) DongRate(ctx context.Context,y map[string]string,modelItems []map[ ...@@ -86,14 +86,16 @@ func (d *dao) DongRate(ctx context.Context,y map[string]string,modelItems []map[
remark = c3["delay_rate"] remark = c3["delay_rate"]
case 48: // 账期使用倍数统计 case 48: // 账期使用倍数统计
last_month := time.Now().Format("2006")+time.Now().AddDate(0, -1, 0).Format("01") last_month := time.Now().Format("2006")+time.Now().AddDate(0, -1, 0).Format("01")
sql6 := fmt.Sprintf(_sql4,y["erp_company_code"],last_month) sql6 := fmt.Sprintf(_sql6,y["erp_company_code"],last_month)
c3,_ := d.QueryOne(ctx,1,sql6) c3,_ := d.QueryOne(ctx,1,sql6)
if c3["period_use_times_six"] == "" { if c3 == nil || c3["period_use_times_six"] == "" {
c3["period_use_times_six"] = "0" ; ladder_rate = 0 ;
} remark = "0"
}else{
ladder_rate = logic.MyFloat64(c3["period_use_times_six"]); //六个月的账期使用倍数 ladder_rate = logic.MyFloat64(c3["period_use_times_six"]); //六个月的账期使用倍数
remark = c3["period_use_times_six"] remark = c3["period_use_times_six"]
} }
}
if project_id != 48 && project_id != 44{ if project_id != 48 && project_id != 44{
if s1 == "" || s2 == "" { if s1 == "" || s2 == "" {
logic.LogWrite("没有订单数据跳过:"+y["erp_company_code"],"dong_error",1) logic.LogWrite("没有订单数据跳过:"+y["erp_company_code"],"dong_error",1)
......
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 sign in to comment