123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- package sb
- import (
- "database/sql/driver"
- "time"
- )
- type YearMain struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- TableName string `json:"tableName"` // 主表表名
- KouStatus uint `json:"kouStatus"`
- SbStatus int `json:"sbStatus"`
- ComID uint `json:"comId"` //
- Period string `json:"period"` // 账期开始日期
- Status int8 `json:"status"` // 1 拉取可更改 2已生成报表可更改 3 已修改计算本年累计 不可更改了 3已提交申报不可更改
- InitStatus int8 `json:"init_status"`
- }
- type YearA101010 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- Amount string `json:"amount"`
- }
- type YearA100000Fb1 struct {
- Amount string `json:"amount"`
- Code string `json:"code"`
- CreatedAt time.Time `json:"createdAt"`
- Id int `json:"id"`
- IsCheck int `json:"isCheck"`
- Other string `json:"other"`
- Project string `json:"project"`
- Type string `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId int `json:"yearMainId"`
- }
- type YearA100000Fb2 struct {
- Amount string `json:"amount"`
- Code string `json:"code"`
- CreatedAt time.Time `json:"createdAt"`
- Id int `json:"id"`
- IsCheck int `json:"isCheck"`
- Other string `json:"other"`
- Project string `json:"project"`
- Type string `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId int `json:"yearMainId"`
- }
- type YearA102010 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- Amount string `json:"amount"`
- }
- type YearA104000 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- A1 string `json:"a1"`
- A2 string `json:"a2"`
- A3 string `json:"a3"`
- A4 string `json:"a4"`
- A5 string `json:"a5"`
- A6 string `json:"a6"`
- }
- type YearA105050 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- A1 string `json:"a1"`
- A2 string `json:"a2"`
- A3 string `json:"a3"`
- A4 string `json:"a4"`
- A5 string `json:"a5"`
- A6 string `json:"a6"`
- A7 string `json:"a7"`
- }
- type YearA105060 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- A1 string `json:"a1"`
- A2 string `json:"a2"`
- }
- type YearA105080 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- ProjectItem string `json:"projectItem"`
- A1 string `json:"a1"`
- A2 string `json:"a2"`
- A3 string `json:"a3"`
- A4 string `json:"a4"`
- A5 string `json:"a5"`
- A6 string `json:"a6"`
- A7 string `json:"a7"`
- A8 string `json:"a8"`
- A9 string `json:"a9"`
- }
- // YearA105080Fb A105080Fb28 29附表结构体
- type YearA105080Fb struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- Other string `json:"other"`
- Code string `json:"code"`
- Amount string `json:"amount"`
- IsCheck int `json:"isCheck"`
- }
- type YearA105000 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- A1 string `json:"a1"`
- A2 string `json:"a2"`
- A3 string `json:"a3"`
- A4 string `json:"a4"`
- }
- type YearA100000 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- ProjectItem string `json:"projectItem"`
- Amount string `json:"amount"`
- }
- type YearA107040 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- Amount string `json:"amount"`
- }
- type YearA106000 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- Type string `json:"type"`
- Project string `json:"project"`
- A1 string `json:"a1"`
- A2 string `json:"a2"`
- A3 string `json:"a3"`
- A4 string `json:"a4"`
- A5 string `json:"a5"`
- A6 string `json:"a6"`
- A7 string `json:"a7"`
- A8 string `json:"a8"`
- A9 string `json:"a9"`
- A10 string `json:"a10"`
- A11 string `json:"a11"`
- A12 string `json:"a12"`
- }
- type YearA106000Copy1 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- ComId uint `json:"comId"`
- Type string `json:"type"`
- Project string `json:"project"`
- A1 string `json:"a1"`
- A2 string `json:"a2"`
- A3 string `json:"a3"`
- A4 string `json:"a4"`
- A5 string `json:"a5"`
- A6 string `json:"a6"`
- A7 string `json:"a7"`
- A8 string `json:"a8"`
- A9 string `json:"a9"`
- A10 string `json:"a10"`
- A11 string `json:"a11"`
- A12 string `json:"a12"`
- Period string `json:"period"`
- }
- type YearSelect struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- TableName string `json:"tableName"` // 主表表名
- Type string `json:"type"`
- Project string `json:"project"`
- Status int `json:"status"`
- Sort int `json:"sort"`
- Selects int `json:"selects"`
- }
- type YearA000000Gd struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- GdName string `json:"gdName"`
- GdType string `json:"gdType"`
- GdNo string `json:"gdNo"`
- Bl float64 `json:"bl"`
- Amount float64 `json:"amount"`
- Country string `json:"country"`
- }
- type YearA000000Type string
- func (ct *YearA000000Type) Scan(value interface{}) error {
- *ct = YearA000000Type(value.([]byte))
- return nil
- }
- func (ct YearA000000Type) Value() (driver.Value, error) {
- return string(ct), nil
- }
- const (
- Y YearA000000Type = "Y"
- N YearA000000Type = "N"
- )
- type YearA000000 struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainId uint `json:"yearMainId"`
- A101 string `json:"a101"`
- A102 float64 `json:"a102"`
- A103 float64 `json:"a103"`
- A104 int `json:"a104"`
- A105 string `json:"a105"`
- A106 string `json:"a106"`
- A107 string `json:"a107"`
- A108 string `json:"a108"`
- A109 string `json:"a109"`
- A110 string `json:"a110"`
- A201 string `json:"a201"`
- A202 string `json:"a202"`
- A2031 string `json:"a2031"`
- A20321 string `json:"a20321"`
- A20322 string `json:"a20322"`
- A204 string `json:"a204"`
- A205 string `json:"a205"`
- A206 string `json:"a206"`
- A207 string `json:"a207"`
- A208 string `json:"a208"`
- A209 string `json:"a209"`
- A21001 string `json:"a21001"`
- A21002 string `json:"a21002"`
- A21003 string `json:"a21003"`
- A21004 string `json:"a21004"`
- A210num01 string `json:"a210num01"`
- A210num02 string `json:"a210num02"`
- A21101 string `json:"a21101"`
- A21102 string `json:"a21102"`
- A21103 string `json:"a21103"`
- A21104 string `json:"a21104"`
- A212 string `json:"a212"`
- A213 string `json:"a213"`
- A214 string `json:"a214"`
- A215 string `json:"a215"`
- A216 string `json:"a216"`
- A217 string `json:"a217"`
- A218 string `json:"a218"`
- A219 string `json:"a219"`
- A220 string `json:"a220"`
- A221 string `json:"a221"`
- A222 string `json:"a222"`
- A223 string `json:"a223"`
- A224 string `json:"a224"`
- }
- type YearZcfz struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainID uint `json:"yearMainID"` //
- Type float64 `json:"type"` // 对应资产负债表行次字段 不标准
- Zcxmmc string `json:"zcxmmc"` // 流动资产
- QmyeZc float64 `json:"qmyeZc"` // 期末余额
- NcyeZc float64 `json:"ncyeZc"` // 年初余额
- Qyxmmc string `json:"qyxmmc"` // 流动负债
- QmyeQy float64 `json:"qmyeQy"` // 期末余额
- NcyeQy float64 `json:"ncyeQy"` // 年初余额
- }
- type YearLrb struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainID uint `json:"yearMainID"`
- Project string `json:"project"`
- Type float64 `json:"type"`
- YearTotal float64 `json:"yearTotal"`
- LastYearTotal float64 `json:"lastYearTotal"`
- }
- type YearXjllb struct {
- ID uint `json:"id" gorm:"primary_key"`
- CreatedAt time.Time `json:"createdAt"`
- UpdatedAt time.Time `json:"updatedAt"`
- YearMainID uint `json:"yearMainID"`
- Project string `json:"project"`
- Type float64 `json:"type"`
- YearTotal float64 `json:"yearTotal"`
- LastYearTotal float64 `json:"lastYearTotal"`
- }
|