Commit 8ec13a14 by Joneq

修改动态分数统计

parent 5c3d207d
...@@ -79,6 +79,7 @@ func main() { ...@@ -79,6 +79,7 @@ func main() {
fmt.Println(v["id"]) fmt.Println(v["id"])
detail.InsertScoreMsg.ComCreditsId = detail.StringTurnInt64(v["id"]) detail.InsertScoreMsg.ComCreditsId = detail.StringTurnInt64(v["id"])
detail.Com_credits.CompanyName = v["company_name"]
detail.GetCompanyRunInfo() detail.GetCompanyRunInfo()
detail.BasicInfo,_ = detail.Svclient.GetBasicInfoByCid(detail.Conclient,v["erp_company_code"]) detail.BasicInfo,_ = detail.Svclient.GetBasicInfoByCid(detail.Conclient,v["erp_company_code"])
detail.SetSumScore(detail.Conclient) detail.SetSumScore(detail.Conclient)
......
...@@ -39,8 +39,9 @@ func (d *dao) UpdateStaticSumScores(ctx context.Context,com_credits model.ComCre ...@@ -39,8 +39,9 @@ func (d *dao) UpdateStaticSumScores(ctx context.Context,com_credits model.ComCre
row,err := d.db.Exec(ctx,execSql,com_credits.StaticCreditScore,com_credits.Id) row,err := d.db.Exec(ctx,execSql,com_credits.StaticCreditScore,com_credits.Id)
//修改银行的 //修改银行的
execSql = "update `lie_com_credits` set `static_credit_score` = ? where company_name = '?' " execSql = "update `lie_com_credits` set `static_credit_score` = ? where company_name = ? "
_,err = d.db_bank.Exec(ctx,execSql,com_credits.StaticCreditScore,com_credits.CompanyName) _,err = d.db_bank.Exec(ctx,execSql,com_credits.StaticCreditScore,com_credits.CompanyName)
fmt.Println(com_credits.CompanyName)
logic.CheckErr(err) logic.CheckErr(err)
d.UpdateComCredits(ctx,com_credits) d.UpdateComCredits(ctx,com_credits)
......
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