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
a14fe171
authored
Jan 02, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加加分项的使用
parent
cc237398
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
cmd/static/detail/add_score.go
cmd/static/detail/add_score.go
View file @
a14fe171
package
detail
import
"strconv"
//加分项30分)
func
AddScore
()(
finalScore
float64
)
{
...
...
@@ -8,7 +10,11 @@ func AddScore()(finalScore float64) {
)
for
_
,
v
:=
range
CompanyAddScore
{
sumScore
+=
StringTurnFloat64
(
v
[
"final_score"
])
projectId
,
_
:=
strconv
.
Atoi
(
v
[
"project_id"
])
sumScore
+=
GetScore
(
int64
(
projectId
),
v
[
"info"
])
SetScore
(
e_currentScore
,
int64
(
projectId
))
SetInsertScoreChanFooter
(
1
,
5
,
int8
(
projectId
))
}
//经过权重计算之后的总分值
...
...
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