Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
kaopu-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4c7557cb
authored
Jan 08, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改动态评分
parent
08d4efc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
internal/dao/bank_dong.go
internal/dao/bank_dong.go
View file @
4c7557cb
...
...
@@ -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
)
//调用公共动态算法去查对应得分
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment