182 lines
13 KiB
Go
182 lines
13 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
// =============================================================
|
|
// 招标方(我要招标):6 张表
|
|
// =============================================================
|
|
|
|
// TenantCrmBiddingTender 招标项目主表: yz_backend_crm_bidding_tender
|
|
//
|
|
// 状态机:
|
|
// 0草稿 -> 1公告中 -> 2报名中 -> 3投标中 -> 4开标中 -> 5评标中 -> 6已定标 -> 7已归档
|
|
type TenantCrmBiddingTender struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
|
TenderNo string `orm:"column(tender_no);size(50)" json:"tender_no"` // 招标编号
|
|
Title string `orm:"column(title);size(200)" json:"title"` // 招标标题
|
|
TenderType string `orm:"column(tender_type);size(20);default(1)" json:"tender_type"` // 招标类型
|
|
Status int8 `orm:"column(status);default(0)" json:"status"` // 状态
|
|
CustomerID *uint64 `orm:"column(customer_id);null" json:"customer_id"` // 招标方客户ID
|
|
CustomerName string `orm:"column(customer_name);size(200)" json:"customer_name"`
|
|
PublishOrg string `orm:"column(publish_org);size(200)" json:"publish_org"`
|
|
BudgetAmount float64 `orm:"column(budget_amount);digits(14);decimals(2);default(0)" json:"budget_amount"`
|
|
BidDeposit float64 `orm:"column(bid_deposit);digits(14);decimals(2);default(0)" json:"bid_deposit"`
|
|
PublishDate *time.Time `orm:"column(publish_date);type(date);null" json:"publish_date"`
|
|
RegisterStartDate *time.Time `orm:"column(register_start_date);type(datetime);null" json:"register_start_date"`
|
|
RegisterEndDate *time.Time `orm:"column(register_end_date);type(datetime);null" json:"register_end_date"`
|
|
BidStartDate *time.Time `orm:"column(bid_start_date);type(datetime);null" json:"bid_start_date"`
|
|
BidEndDate *time.Time `orm:"column(bid_end_date);type(datetime);null" json:"bid_end_date"`
|
|
OpenBidDate *time.Time `orm:"column(open_bid_date);type(datetime);null" json:"open_bid_date"`
|
|
ContactPerson string `orm:"column(contact_person);size(50)" json:"contact_person"`
|
|
ContactPhone string `orm:"column(contact_phone);size(20)" json:"contact_phone"`
|
|
ContactEmail string `orm:"column(contact_email);size(100)" json:"contact_email"`
|
|
BidAddress string `orm:"column(bid_address);size(255)" json:"bid_address"`
|
|
OpenAddress string `orm:"column(open_address);size(255)" json:"open_address"`
|
|
Description string `orm:"column(description);type(text);null" json:"description"`
|
|
Requirement string `orm:"column(requirement);type(text);null" json:"requirement"`
|
|
EvaluationMethod string `orm:"column(evaluation_method);size(50);default(1)" json:"evaluation_method"`
|
|
WinnerSupplierID *uint64 `orm:"column(winner_supplier_id);null" json:"winner_supplier_id"`
|
|
WinnerSupplierName string `orm:"column(winner_supplier_name);size(200)" json:"winner_supplier_name"`
|
|
WinnerAmount float64 `orm:"column(winner_amount);digits(14);decimals(2);default(0)" json:"winner_amount"`
|
|
WinnerDate *time.Time `orm:"column(winner_date);type(datetime);null" json:"winner_date"`
|
|
ContractID *uint64 `orm:"column(contract_id);null" json:"contract_id"` // 转合同ID
|
|
ProjectID *uint64 `orm:"column(project_id);null" json:"project_id"` // 关联项目ID
|
|
OwnerUserID string `orm:"column(owner_user_id);size(64)" json:"owner_user_id"`
|
|
OwnerUserName string `orm:"column(owner_user_name);size(128)" json:"owner_user_name"`
|
|
DepartmentID uint64 `orm:"column(department_id);default(0)" json:"department_id"`
|
|
Locked int8 `orm:"column(locked);default(0)" json:"locked"`
|
|
Remark string `orm:"column(remark);type(text);null" json:"remark"`
|
|
CreateUserID string `orm:"column(create_user_id);size(64)" json:"create_user_id"`
|
|
CreateUserName string `orm:"column(create_user_name);size(128)" json:"create_user_name"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *TenantCrmBiddingTender) TableName() string {
|
|
return "yz_backend_crm_bidding_tender"
|
|
}
|
|
|
|
// TenantCrmBiddingTenderFile 招标文件: yz_backend_crm_bidding_tender_file
|
|
type TenantCrmBiddingTenderFile struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
|
TenderID uint64 `orm:"column(tender_id);default(0)" json:"tender_id"`
|
|
FileType string `orm:"column(file_type);size(20);default(1)" json:"file_type"`
|
|
FileName string `orm:"column(file_name);size(255)" json:"file_name"`
|
|
FileURL string `orm:"column(file_url);size(500)" json:"file_url"`
|
|
FileSize uint64 `orm:"column(file_size);default(0)" json:"file_size"`
|
|
FileExt string `orm:"column(file_ext);size(20)" json:"file_ext"`
|
|
UploadUserID string `orm:"column(upload_user_id);size(64)" json:"upload_user_id"`
|
|
UploadUserName string `orm:"column(upload_user_name);size(128)" json:"upload_user_name"`
|
|
Remark string `orm:"column(remark);size(500)" json:"remark"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *TenantCrmBiddingTenderFile) TableName() string {
|
|
return "yz_backend_crm_bidding_tender_file"
|
|
}
|
|
|
|
// TenantCrmBiddingTenderAnnounce 招标公告: yz_backend_crm_bidding_tender_announce
|
|
type TenantCrmBiddingTenderAnnounce struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
|
TenderID uint64 `orm:"column(tender_id);default(0)" json:"tender_id"`
|
|
AnnounceType string `orm:"column(announce_type);size(20);default(1)" json:"announce_type"`
|
|
Title string `orm:"column(title);size(255)" json:"title"`
|
|
Content string `orm:"column(content);type(longtext);null" json:"content"`
|
|
PublishStatus int8 `orm:"column(publish_status);default(0)" json:"publish_status"`
|
|
PublishTime *time.Time `orm:"column(publish_time);type(datetime);null" json:"publish_time"`
|
|
ViewCount uint32 `orm:"column(view_count);default(0)" json:"view_count"`
|
|
CreateUserID string `orm:"column(create_user_id);size(64)" json:"create_user_id"`
|
|
CreateUserName string `orm:"column(create_user_name);size(128)" json:"create_user_name"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *TenantCrmBiddingTenderAnnounce) TableName() string {
|
|
return "yz_backend_crm_bidding_tender_announce"
|
|
}
|
|
|
|
// TenantCrmBiddingTenderSupplier 投标方/供应商: yz_backend_crm_bidding_tender_supplier
|
|
type TenantCrmBiddingTenderSupplier struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
|
TenderID uint64 `orm:"column(tender_id);default(0)" json:"tender_id"`
|
|
SupplierID *uint64 `orm:"column(supplier_id);null" json:"supplier_id"`
|
|
SupplierName string `orm:"column(supplier_name);size(200)" json:"supplier_name"`
|
|
RegisterStatus int8 `orm:"column(register_status);default(1)" json:"register_status"`
|
|
RegisterTime *time.Time `orm:"column(register_time);type(datetime);null" json:"register_time"`
|
|
BidAmount float64 `orm:"column(bid_amount);digits(14);decimals(2);default(0)" json:"bid_amount"`
|
|
BidFiles string `orm:"column(bid_files);type(text);null" json:"bid_files"`
|
|
ContactPerson string `orm:"column(contact_person);size(50)" json:"contact_person"`
|
|
ContactPhone string `orm:"column(contact_phone);size(20)" json:"contact_phone"`
|
|
IsWinner int8 `orm:"column(is_winner);default(0)" json:"is_winner"`
|
|
Ranking uint32 `orm:"column(ranking);default(0)" json:"ranking"`
|
|
Remark string `orm:"column(remark);size(500)" json:"remark"`
|
|
CreateUserID string `orm:"column(create_user_id);size(64)" json:"create_user_id"`
|
|
CreateUserName string `orm:"column(create_user_name);size(128)" json:"create_user_name"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *TenantCrmBiddingTenderSupplier) TableName() string {
|
|
return "yz_backend_crm_bidding_tender_supplier"
|
|
}
|
|
|
|
// TenantCrmBiddingTenderEvaluation 开标评标: yz_backend_crm_bidding_tender_evaluation
|
|
type TenantCrmBiddingTenderEvaluation struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
|
TenderID uint64 `orm:"column(tender_id);default(0)" json:"tender_id"`
|
|
SupplierID *uint64 `orm:"column(supplier_id);null" json:"supplier_id"`
|
|
SupplierName string `orm:"column(supplier_name);size(200)" json:"supplier_name"`
|
|
TechnicalScore float64 `orm:"column(technical_score);digits(6);decimals(2);default(0)" json:"technical_score"`
|
|
BusinessScore float64 `orm:"column(business_score);digits(6);decimals(2);default(0)" json:"business_score"`
|
|
PriceScore float64 `orm:"column(price_score);digits(6);decimals(2);default(0)" json:"price_score"`
|
|
ServiceScore float64 `orm:"column(service_score);digits(6);decimals(2);default(0)" json:"service_score"`
|
|
TotalScore float64 `orm:"column(total_score);digits(6);decimals(2);default(0)" json:"total_score"`
|
|
WeightConfig string `orm:"column(weight_config);size(255)" json:"weight_config"`
|
|
Ranking uint32 `orm:"column(ranking);default(0)" json:"ranking"`
|
|
EvaluationUserID string `orm:"column(evaluation_user_id);size(64)" json:"evaluation_user_id"`
|
|
EvaluationUserName string `orm:"column(evaluation_user_name);size(128)" json:"evaluation_user_name"`
|
|
EvaluationTime *time.Time `orm:"column(evaluation_time);type(datetime);null" json:"evaluation_time"`
|
|
Comment string `orm:"column(comment);type(text);null" json:"comment"`
|
|
Result int8 `orm:"column(result);default(0)" json:"result"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *TenantCrmBiddingTenderEvaluation) TableName() string {
|
|
return "yz_backend_crm_bidding_tender_evaluation"
|
|
}
|
|
|
|
// TenantCrmBiddingTenderResult 定标结果: yz_backend_crm_bidding_tender_result
|
|
type TenantCrmBiddingTenderResult struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
|
TenderID uint64 `orm:"column(tender_id);default(0)" json:"tender_id"`
|
|
ResultType int8 `orm:"column(result_type);default(1)" json:"result_type"`
|
|
WinnerSupplierID *uint64 `orm:"column(winner_supplier_id);null" json:"winner_supplier_id"`
|
|
WinnerSupplierName string `orm:"column(winner_supplier_name);size(200)" json:"winner_supplier_name"`
|
|
WinnerAmount float64 `orm:"column(winner_amount);digits(14);decimals(2);default(0)" json:"winner_amount"`
|
|
ResultDate *time.Time `orm:"column(result_date);type(datetime);null" json:"result_date"`
|
|
Announcement string `orm:"column(announcement);type(text);null" json:"announcement"`
|
|
ContractID *uint64 `orm:"column(contract_id);null" json:"contract_id"`
|
|
ProjectID *uint64 `orm:"column(project_id);null" json:"project_id"`
|
|
CreateUserID string `orm:"column(create_user_id);size(64)" json:"create_user_id"`
|
|
CreateUserName string `orm:"column(create_user_name);size(128)" json:"create_user_name"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *TenantCrmBiddingTenderResult) TableName() string {
|
|
return "yz_backend_crm_bidding_tender_result"
|
|
} |