| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package contract
- import (
- "dashoo.cn/micro/app/model/contract/internal"
- "dashoo.cn/opms_libary/request"
- "github.com/gogf/gf/os/gtime"
- )
- // CtrContractSaleTarget is the golang structure for table ctr_contract_sale_target.
- type CtrContractSaleTarget internal.CtrContractSaleTarget
- // Fill with you ideas below.
- // SaleTargetReq 销售目标请求参数
- type SaleTargetReq struct {
- request.PageReq
- Year string `json:"year"` // 年度
- SaleName string `json:"saleName"` // 销售姓名
- }
- type ExcelImportReq struct {
- ExcelUrl string `json:"excelUrl" v:"required#请输入excel地址"` // excel 文件地址
- }
- type Share struct {
- // 合同信息
- ContractAmount float64 `orm:"contract_amount" json:"contractAmount"` // 合同金额
- InchargeId int `orm:"incharge_id" json:"inchargeId"` // 负责人ID
- InchargeName string `orm:"incharge_name" json:"inchargeName"` // 负责人(销售工程师)
- ContractSignTime *gtime.Time `orm:"contract_sign_time" json:"contractSignTime"` // 合同签订时间(提高统计效率,此处没有连表查询)
- // 分成信息
- Id int `orm:"id,primary" json:"id"` // 主键
- SaleId int `orm:"sale_id" json:"saleId"` // 归属销售
- SaleName string `orm:"sale_name" json:"saleName"` // 销售姓名
- ShareAmount float64 `orm:"share_amount" json:"shareAmount"` // 销售分成金额
- }
|