新增财务部报告功能

This commit is contained in:
lupeng_zz 2026-05-15 16:09:02 +08:00
parent 7ea9c6ff07
commit 93e1f2623a
4 changed files with 1350 additions and 220 deletions

60
data.go
View File

@ -32,6 +32,20 @@ type Tool_warning struct {
Flag int `json:"flag"`
}
type devToolata struct {
Series string `json:"series_num"`
Instrument string `json:"instrument_id"`
ProductName string `json:"product_name"` // 产品名称
WellName string `json:"wellname"` // 井名
InTime string `json:"in_time"` // 入井时间(可能为null)
OutTime string `json:"out_time"` // 出井时间(可能为null)
Engineer string `json:"engineer"` // 上井工程师(可能为null)
TotalWorkTime string `json:"total_work_time"` // 累计工作时间(可能为null)
CurrentWorkTime string `json:"current_work_time"` // 本次工作时间(可能为null)
ServiceType string `json:"service_type"` // 服务类型(可能为null)
Location string `json:"location"` // 所在地(COALESCE保证非null)
}
type Srr_event struct {
Bt string `json:"bt"`
Et string `json:"et"`
@ -133,3 +147,49 @@ type Drilling struct {
Footage string `json:"Footage"`
Next_step string `json:"Next_step"`
}
type WorkHoursRecord struct {
InTime string
OutTime string
Engineer string
ServiceType string
}
type DevQueryWellResp struct {
WellNames []string `json:"wellNames"` // 井名称(去重)
Series []string `json:"series"` // 系列号(去重)
Instruments []string `json:"instruments"` // 仪器编号(去重)
Locations []string `json:"locations"` // 所在地(去重)
Engineers []string `json:"engineers"` // 仪器工程师(去重)
}
type WellDetailReqData struct {
Opuser string `json:"opuser"`
OpuserUuid string `json:"opuser_uuid"`
Serial []string `json:"serial"`
Number []string `json:"number"`
Wellname []string `json:"wellname"`
Engineer []string `json:"engineer"`
InTimeStart string `json:"in_time_start"`
InTimeEnd string `json:"in_time_end"`
ServiceType string `json:"serviceType"`
Index int `json:"index"`
Count int `json:"count"`
}
// 定义结构体(放在函数外面,和 WellDetailReqData 放在一起)
type SeirDetailReqData struct {
Opuser string `json:"opuser"`
OpuserUuid string `json:"opuser_uuid"`
Series []string `json:"series"`
Instrument []string `json:"instrument"`
ProductName []string `json:"productName"`
WellName []string `json:"wellName"`
Engineer []string `json:"engineer"`
Location []string `json:"location"`
ServiceType []string `json:"serviceType"`
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
Index int `json:"index"`
Count int `json:"count"`
}

1477
main.go

File diff suppressed because it is too large Load Diff

13
req.go
View File

@ -679,6 +679,19 @@ type QualityData struct {
Value string `json:"value"`
}
type devData struct {
OpUser string `json:"opuser"` // 操作用户
Opuser_uuid string `json:"opuser_uuid"` // 用户UUID
Serial []string `json:"serial"` // 系列号筛选条件
Number []string `json:"number"` // 编号筛选条件
WellName []string `json:"wellname"` // 井名称筛选条件
Engineer []string `json:"engineer"` // 仪器工程师筛选条件
InTimeStart string `json:"in_time_start"` // 入井开始时间
InTimeEnd string `json:"in_time_end"` // 入井结束时间
Index int `json:"index"` // 当前页码
Count int `json:"count"` // 每页数量
}
type LinkDataReq struct {
ID string `json:"id"`
Instrument string `json:"instrument"`

20
res.go
View File

@ -792,3 +792,23 @@ type uploadRes struct {
Types string `json:"type"`
RealFileName string `json:"realFileName"`
}
type devRespData struct {
ProductName string `json:"product_name"` // 产品名称
Serial string `json:"serial"` // 系列号
Number string `json:"number"` // 编号
WellName string `json:"wellname"` // 井名
InTime string `json:"in_time"` // 入井时间(可能为null)
OutTime string `json:"out_time"` // 出井时间(可能为null)
Engineer string `json:"engineer"` // 上井工程师(可能为null)
TotalWorkTime string `json:"total_work_time"` // 累计工作时间(可能为null)
CurrentWorkTime string `json:"current_work_time"` // 本次工作时间(可能为null)
ServiceType string `json:"service_type"` // 服务类型(可能为null)
Location string `json:"location"` // 所在地(COALESCE保证非null)
}
type toolResult struct {
WellName string `json:"wellname"`
Series string `json:"series_num"`
Instrument string `json:"instrument_id"`
}