Commit 4c7557cb by Joneq

修改动态评分

parent 08d4efc9
Showing with 4 additions and 1 deletions
......@@ -58,7 +58,6 @@ func (d *dao) BankDongMain(ctx context.Context,project_id int,erp_company_code s
modelItem map[string]string //配置主表
modelItems []map[string]string //配置明细
)
if project_id != 999 && project_id != 0 {
//项目配置
sql_str1 := fmt.Sprintf(_sql1,strconv.Itoa(project_id))
......@@ -117,6 +116,8 @@ func (d *dao) BankDongMain(ctx context.Context,project_id int,erp_company_code s
}
month_six = strings.TrimRight(month_six,",") // 六个月sql
d.QueryOne(ctx,3,"update lie_scores set current_score = 0,total_score,final_score where type = 2 and month in ("+month_six+")")
for _,v := range company_info{ //循环当前公司,计算各个公司对应分数
if v["erp_company_code"] == "" {
continue;
......@@ -125,6 +126,8 @@ func (d *dao) BankDongMain(ctx context.Context,project_id int,erp_company_code s
d.BankDongAddScore(ctx,logic.MyInt64(v["id"]),month_six_zi) //总计所有分数
continue
}else{
//如果月度表里面没有数据,就直接跳过
ladder_rate,ladder_score,remark,_ = d.BankDongRate(ctx,v,modelItems,project_id,month_six) //调用公共动态算法去查对应得分
}
......
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