Commit b0def0e1 by huangchengyi

1.0

parent e1531b5e
Showing with 8 additions and 6 deletions
......@@ -81,18 +81,20 @@ func (d *dao) DongRate(ctx context.Context,y map[string]string,modelItems []map[
if c3["delay_rate"] == "" {
c3["delay_rate"] = "0"
}
ladder_rate = logic.MyFloat64(c3["delay_rate"]);
remark = c3["delay_rate"]
case 48: // 账期使用倍数统计
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)
if c3["period_use_times_six"] == "" {
c3["period_use_times_six"] = "0" ;
if c3 == nil || c3["period_use_times_six"] == "" {
ladder_rate = 0 ;
remark = "0"
}else{
ladder_rate = logic.MyFloat64(c3["period_use_times_six"]); //六个月的账期使用倍数
remark = c3["period_use_times_six"]
}
ladder_rate = logic.MyFloat64(c3["period_use_times_six"]); //六个月的账期使用倍数
remark = c3["period_use_times_six"]
}
if project_id != 48 && project_id != 44{
if s1 == "" || s2 == "" {
......
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