Commit 61e8b7bf by Joneq

修改获取不正确

parent d74e9bd2
Showing with 3 additions and 3 deletions
......@@ -60,7 +60,7 @@ func (d *dao) BankDongMain(ctx context.Context,project_id int,erp_company_code s
if project_id != 999 && project_id != 0 {
//项目配置
sql_str1 := fmt.Sprintf(_sql1,strconv.Itoa(project_id))
modelItem,_ = d.QueryOne(ctx,3,sql_str1)
modelItem,_ = d.QueryOne(ctx,1,sql_str1)
if modelItem == nil {
logic.LogWrite("不存在该项目配置lie_model.project_id:"+strconv.Itoa(project_id),log_pre,1)
return
......@@ -69,7 +69,7 @@ func (d *dao) BankDongMain(ctx context.Context,project_id int,erp_company_code s
//查询逾期率项目详情
sql_str4 := fmt.Sprintf(_sql3,strconv.Itoa(project_id))
modelItems,_ = d.QueryMany(ctx,3,sql_str4)
modelItems,_ = d.QueryMany(ctx,1,sql_str4)
if modelItems == nil {
logic.LogWrite("不存在该项目配置详情lie_model_items,project_id:"+strconv.Itoa(project_id),log_pre,1)
return
......@@ -244,7 +244,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