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
dc001bbd
authored
Nov 22, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
编写完所有的基本框架
parent
713c2d0a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
232 additions
and
14 deletions
cmd/static/add_score.go
cmd/static/company_info.go
cmd/static/enterprise_credit.go
cmd/static/history_bussiness.go
cmd/static/main.go
cmd/static/personal_credit.go
logs/info.log
cmd/static/add_score.go
View file @
dc001bbd
package
main
//加分项30分)
func
AddScore
()
{
IndustryReputation
()
OperatingRate
()
DownstreamCustomerType
()
NumberOfGuarantors
()
Collateral
()
}
//业界口碑(2分))
func
IndustryReputation
()
{
}
//开工率(1分))
func
OperatingRate
()
{
}
//下游客户类型(2分))
func
DownstreamCustomerType
()
{
}
//担保人个数(5分))
func
NumberOfGuarantors
()
{
}
//抵押物(20分))
func
Collateral
()
{
}
\ No newline at end of file
cmd/static/company_info.go
View file @
dc001bbd
...
...
@@ -3,7 +3,52 @@ package main
import
"fmt"
//公司信息计算
func
CompanyInfo
()
{
fmt
.
Print
(
1
)
fmt
.
Print
(
companyData
)
EstablishmentTime
()
CompanyNature
()
ChangeslegalInFiveYears
()
RegisteredCapital
()
AnnualTaxRate
()
lawsuitsInPastTwoYars
()
NumberOfSocial
()
}
//成立时间(1分)
func
EstablishmentTime
()
{
}
//公司性质(1分)
func
CompanyNature
()
{
}
//5年内法人变更次数(1分)
func
ChangeslegalInFiveYears
()
{
}
//注册资本(2分)
func
RegisteredCapital
()
{
}
//年纳税额(2分)
func
AnnualTaxRate
()
{
}
//近两年内有无诉讼(2分)
func
lawsuitsInPastTwoYars
()
{
}
//社保参保人数(1分)
func
NumberOfSocial
()
{
}
cmd/static/enterprise_credit.go
View file @
dc001bbd
package
main
//企业征信
\ No newline at end of file
//企业征信(10分)
func
EnterPriseCredit
()
{
IsEnterpriseOverdueWhether
()
IsHistoryOverdue
()
}
//企业有无负债(5分)
func
IsEnterpriseOverdueWhether
()
{
}
//历史有无逾期(5分)
func
IsHistoryOverdue
()
{
}
\ No newline at end of file
cmd/static/history_bussiness.go
View file @
dc001bbd
package
main
//历史交易
\ No newline at end of file
//历史交易情况(50分)
func
HistoryBussiness
()
{
CooperationTime
()
AccumulatedAmountOfCooperation
()
AccumulatedGrossProfit
()
HistoricalOverdueTimes
()
AverageMoneyThreeMonths
()
AverageMoneySixMonths
()
}
//合作时间(5分)
func
CooperationTime
()
{
}
//合作累计金额(10分)
func
AccumulatedAmountOfCooperation
()
{
}
//累计毛利(10分)
func
AccumulatedGrossProfit
()
{
}
//历史逾期次数(5分)
func
HistoricalOverdueTimes
()
{
}
//近3个月的平均交易额(10分)
func
AverageMoneyThreeMonths
()
{
}
//近6个月的平均交易额(10分)
func
AverageMoneySixMonths
()
{
}
cmd/static/main.go
View file @
dc001bbd
...
...
@@ -3,10 +3,8 @@ package main
import
(
"context"
"flag"
"fmt"
"github.com/bilibili/kratos/pkg/conf/paladin"
"github.com/bilibili/kratos/pkg/log"
"kaopu-server/internal/dao"
"kaopu-server/internal/service"
)
...
...
@@ -15,6 +13,14 @@ const CPID = 1
const
CTYPE
=
1
var
(
//获取的公司信息
companyData
[]
map
[
string
]
interface
{}
)
func
main
()
{
getConfig
()
...
...
@@ -22,10 +28,14 @@ func main() {
//声明service层
svc
:=
service
.
New
()
ctx
:=
context
.
Background
()
//调用服务获取公司信息
dao
.
SqlField
=
"id"
userdata
,
_
:=
svc
.
GetCompanyCresitsList
(
ctx
)
fmt
.
Print
(
userdata
)
//调用服务获取公司信息,然后进行全局赋值
companyData
,
_
=
svc
.
GetCompanyCresitsList
(
ctx
)
AddScore
()
CompanyInfo
()
EnterPriseCredit
()
HistoryBussiness
()
PersonalCredit
()
}
...
...
cmd/static/personal_credit.go
View file @
dc001bbd
package
main
//个人征信
\ No newline at end of file
//个人征信(30分)
func
PersonalCredit
()
{
Age
()
MaritalStatus
()
DefaultAccountRatio
()
ExternalGuarantee
()
SumBeOverdueMonthTwoYesar
()
MaxBeOverdueTwoYears
()
IsBeOverdue
()
IsMortgage
()
NumberOfCreditInquiryInThePastTwoMonths
()
TotalCreditCardLimit
()
MaximumAmountOfSingleCreditCard
()
}
//年龄(1分)
func
Age
()
{
}
//婚姻状况(1分)
func
MaritalStatus
()
{
}
//违约账户比(2分)
func
DefaultAccountRatio
()
{
}
//对外担保(5分)
func
ExternalGuarantee
()
{
}
//近2年内30天内逾期次数(3分)
func
SumBeOverdueMonthTwoYesar
()
{
}
//近2年内最大逾期金额(3分)
func
MaxBeOverdueTwoYears
()
{
}
//是否存在当前逾期(3分)
func
IsBeOverdue
()
{
}
//有无房贷(1分)
func
IsMortgage
()
{
}
//近两个月征信查询次数(5分)
func
NumberOfCreditInquiryInThePastTwoMonths
()
{
}
//信用卡总额度(3分)
func
TotalCreditCardLimit
()
{
}
//单张信用卡最高额度(3分)
func
MaximumAmountOfSingleCreditCard
()
{
}
logs/info.log
View file @
dc001bbd
...
...
@@ -127,3 +127,9 @@
[2019/11/22 13:49:46.256] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:42] caipu-server start
[2019/11/22 13:50:19.103] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:41] caipu-server start
[2019/11/22 13:50:24.217] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:42] caipu-server start
[2019/11/22 14:13:58.691] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/move/main.go:24] caipu-server start
[2019/11/22 14:27:12.582] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:43] caipu-server start
[2019/11/22 14:39:31.047] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:46] caipu-server start
[2019/11/22 14:43:04.310] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:46] caipu-server start
[2019/11/22 14:43:25.337] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:48] caipu-server start
[2019/11/22 14:46:08.195] [INFO] [/usr/local/var/www/ichunt/kaopu-server/cmd/static/main.go:49] caipu-server start
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