// ========================================================================== // GFast自动生成model操作代码。 // 生成日期:2024-04-29 12:01:01 // 生成路径: internal/app/system/model/project_finance.go // 生成人:gfast // desc:项目财务 // company:云南奇讯科技有限公司 // ========================================================================== package model import ( "github.com/gogf/gf/v2/os/gtime" "github.com/gogf/gf/v2/util/gmeta" ) // ProjectFinanceInfoRes is the golang structure for table project_finance. type ProjectFinanceInfoRes struct { gmeta.Meta `orm:"table:project_finance"` Id int `orm:"id,primary" json:"id"` // 主键 ProjectId int `orm:"project_id" json:"projectId"` // 项目ID ContractAmount float64 `orm:"contract_amount" json:"contractAmount"` // 承包合同金额 SubcontractAmount float64 `orm:"subcontract_amount" json:"subcontractAmount"` // 分包合同金额 AmountReceived float64 `orm:"amount_received" json:"amountReceived"` // 已收款 AmountPaid float64 `orm:"amount_paid" json:"amountPaid"` // 已付款 ExpensesReimbursed float64 `orm:"expenses_reimbursed" json:"expensesReimbursed"` // 已费用报销 EstimatedGrossProfit float64 `orm:"estimated_gross_profit" json:"estimatedGrossProfit"` // 预计毛利润 CurrentProfit float64 `orm:"current_profit" json:"currentProfit"` // 目前利润 CurrentRemainingFunds float64 `orm:"current_remaining_funds" json:"currentRemainingFunds"` // 目前结余资金 ProjectedIncreaseInRemainingFunds float64 `orm:"projected_increase_in_remaining_funds" json:"projectedIncreaseInRemainingFunds"` // 至项目完成应增加的结余资金 NetPresentValueOfProjectOperation float64 `orm:"net_present_value_of_project_operation" json:"netPresentValueOfProjectOperation"` // 项目经营净现值 CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 填报时间 CreatedBy int `orm:"created_by" json:"createdBy"` // 填报人 UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间 } type ProjectFinanceInfoResVo struct { gmeta.Meta `orm:"table:project_finance"` Id int `orm:"id,primary" json:"id"` // 主键 ProjectId int `orm:"project_id" json:"projectId"` // 项目ID ProjectName string `json:"projectName"` // 项目名称 ContractAmount float64 `orm:"contract_amount" json:"contractAmount"` // 承包合同金额 SubcontractAmount float64 `orm:"subcontract_amount" json:"subcontractAmount"` // 分包合同金额 AmountReceived float64 `orm:"amount_received" json:"amountReceived"` // 已收款 AmountPaid float64 `orm:"amount_paid" json:"amountPaid"` // 已付款 ExpensesReimbursed float64 `orm:"expenses_reimbursed" json:"expensesReimbursed"` // 已费用报销 EstimatedGrossProfit float64 `orm:"estimated_gross_profit" json:"estimatedGrossProfit"` // 预计毛利润 CurrentProfit float64 `orm:"current_profit" json:"currentProfit"` // 目前利润 CurrentRemainingFunds float64 `orm:"current_remaining_funds" json:"currentRemainingFunds"` // 目前结余资金 ProjectedIncreaseInRemainingFunds float64 `orm:"projected_increase_in_remaining_funds" json:"projectedIncreaseInRemainingFunds"` // 至项目完成应增加的结余资金 NetPresentValueOfProjectOperation float64 `orm:"net_present_value_of_project_operation" json:"netPresentValueOfProjectOperation"` // 项目经营净现值 CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 填报时间 CreatedBy int `orm:"created_by" json:"createdBy"` // 填报人 CreatedByName string `json:"createdByName"` // 填报人姓名 UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间 } type ProjectFinanceListRes struct { Id int `json:"id"` ProjectId int `json:"projectId"` ContractAmount float64 `json:"contractAmount"` SubcontractAmount float64 `json:"subcontractAmount"` AmountReceived float64 `json:"amountReceived"` AmountPaid float64 `json:"amountPaid"` ExpensesReimbursed float64 `json:"expensesReimbursed"` EstimatedGrossProfit float64 `json:"estimatedGrossProfit"` CurrentProfit float64 `json:"currentProfit"` CurrentRemainingFunds float64 `json:"currentRemainingFunds"` ProjectedIncreaseInRemainingFunds float64 `json:"projectedIncreaseInRemainingFunds"` NetPresentValueOfProjectOperation float64 `json:"netPresentValueOfProjectOperation"` CreatedAt *gtime.Time `json:"createdAt"` CreatedBy int `json:"createdBy"` } type ProjectFinanceListResVo struct { Id int `json:"id" dc:"主键"` ProjectId int `json:"projectId" dc:"项目ID"` ProjectName string `json:"projectName"` ContractAmount float64 `json:"contractAmount" dc:"承包合同金额"` SubcontractAmount float64 `json:"subcontractAmount" dc:"分包合同金额"` AmountReceived float64 `json:"amountReceived" dc:"已收款"` AmountPaid float64 `json:"amountPaid" dc:"已付款"` ExpensesReimbursed float64 `json:"expensesReimbursed" dc:"已费用报销"` EstimatedGrossProfit float64 `json:"estimatedGrossProfit" dc:"预计毛利润"` CurrentProfit float64 `json:"currentProfit" dc:"目前利润"` CurrentRemainingFunds float64 `json:"currentRemainingFunds" dc:"目前结余资金"` ProjectedIncreaseInRemainingFunds float64 `json:"projectedIncreaseInRemainingFunds" dc:"至项目完成应增加的结余资金"` NetPresentValueOfProjectOperation float64 `json:"netPresentValueOfProjectOperation" dc:"项目经营净现值"` CreatedAt *gtime.Time `json:"createdAt" dc:"填报时间"` UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"` CreatedBy int `json:"createdBy" dc:"填报人"` CreatedByName string `json:"createdByName" dc:"填报人名称"` }