|
@@ -104,6 +104,7 @@ type EdbInfoFullClassify struct {
|
|
|
ClassifyList []*EdbClassifyIdItems
|
|
|
HaveOperaAuth bool `description:"是否有数据权限,默认:false"`
|
|
|
IsSupplierStop int `description:"是否供应商停更:1:停更,0:未停更"`
|
|
|
+ IsRelation bool `description:"是否被引用,默认:0"`
|
|
|
}
|
|
|
|
|
|
func AddEdbInfo(item *EdbInfo) (lastId int64, err error) {
|
|
@@ -527,6 +528,7 @@ type EdbInfoList struct {
|
|
|
MinValue float64 `description:"最小值"`
|
|
|
MaxValue float64 `description:"最大值"`
|
|
|
SearchText string `description:"搜索结果(含高亮)"`
|
|
|
+ IsRelation bool `description:"是否被引用"`
|
|
|
}
|
|
|
|
|
|
// AfterFind
|
|
@@ -761,14 +763,14 @@ type EdbInfoMaxAndMinInfo struct {
|
|
|
}
|
|
|
|
|
|
func (edbInfoMaxAndMinInfo *EdbInfoMaxAndMinInfo) AfterFind(tx *gorm.DB) (err error) {
|
|
|
- edbInfoMaxAndMinInfo.MinDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MinDate)
|
|
|
- edbInfoMaxAndMinInfo.MaxDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MaxDate)
|
|
|
+ edbInfoMaxAndMinInfo.MinDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MinDate)
|
|
|
+ edbInfoMaxAndMinInfo.MaxDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MaxDate)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
func (edbInfoMaxAndMinInfo *EdbInfoMaxAndMinInfo) ConvertTimeStr() {
|
|
|
- edbInfoMaxAndMinInfo.MinDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MinDate)
|
|
|
- edbInfoMaxAndMinInfo.MaxDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MaxDate)
|
|
|
+ edbInfoMaxAndMinInfo.MinDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MinDate)
|
|
|
+ edbInfoMaxAndMinInfo.MaxDate = utils.GormDateStrToDateStr(edbInfoMaxAndMinInfo.MaxDate)
|
|
|
}
|
|
|
|
|
|
// GetEdbInfoMaxAndMinInfo
|