|
|
@ -156,6 +156,13 @@ func (t *Carporttab) Search() (data ContractInfo, err error) { |
|
|
|
data.Buildingid = property.Buildingid |
|
|
|
} |
|
|
|
} |
|
|
|
var contract Contracttab |
|
|
|
if carport.Contractid != "" { |
|
|
|
exist, err = e.Table(contract.TableName()).ID(core.PK{t.Cid, carport.Contractid}).Get(&contract) |
|
|
|
if err == nil && exist { |
|
|
|
data.Contracttab = contract |
|
|
|
} |
|
|
|
} |
|
|
|
data.Carportid = carport.Carportid |
|
|
|
data.Propertyid = carport.Propertyid |
|
|
|
data.Cid = carport.Cid |
|
|
|