Commit f1c04cba by Joneq

修改数据库获取不正确

parent e48515f9
......@@ -195,8 +195,8 @@ func (d *dao) BankDongRate(ctx context.Context,y map[string]string,modelItems []
s2 = c1["unload_amount"]
case 44: //近6个月逾期变化率
sql7 := fmt.Sprintf(bank_sql7,y["erp_company_code"],month_six,month_six)
c3,err := d.QueryOne(ctx,3,sql7)
if err != nil || c3["delay_rate"] == "" {
c3,_ := d.QueryOne(ctx,3,sql7)
if c3["delay_rate"] == "" {
c3["delay_rate"] = "0"
}
......
......@@ -82,6 +82,9 @@ func (d *dao) QueryOne(ctx context.Context,db int,sql_str string)(res map[string
fmt.Println("error1002"+sql_str,err)
return
}
res = make(map[string]string)
for _,v:=range project_rows{
res = v
break
......
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