Commit e48515f9 by Joneq

修改数据库获取不正确

parent ff1f74bc
Showing with 2 additions and 2 deletions
......@@ -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,_ := d.QueryOne(ctx,3,sql7)
if c3["delay_rate"] == "" {
c3,err := d.QueryOne(ctx,3,sql7)
if err != nil || c3["delay_rate"] == "" {
c3["delay_rate"] = "0"
}
......
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