Commit 00a22506 by Joneq

判断分母为零的情况

parent 2dd63bf4
Showing with 1 additions and 1 deletions
......@@ -251,7 +251,7 @@ func (d *dao) BankDongAddScore(ctx context.Context,com_credits_id int64,month_si
sum_dong_score float64 //动态模型总分
)
c1,_ := d.QueryOne(ctx,1,fmt.Sprintf(bank_sql5,com_credits_id,month_six_zi))
c1,_ := d.QueryOne(ctx,3,fmt.Sprintf(bank_sql5,com_credits_id,month_six_zi))
if c1["sum_dong_score"] == "0" || c1["sum_dong_score"] == "" { //没有结果
sum_dong_score = 0
}else{
......
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