company_contract.go 486 B

1234567891011121314151617
  1. package company_contract
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "hongze/hongze_mobile_admin/models/tables/company_contract"
  5. )
  6. type CompanyContractDetailResp struct {
  7. *company_contract.CompanyContractDetail
  8. }
  9. func GetCompanyContractById(companyContractId int) (item *company_contract.CompanyContractDetail, err error) {
  10. o := orm.NewOrm()
  11. sql := `SELECT * FROM company_contract WHERE company_contract_id=? `
  12. err = o.Raw(sql, companyContractId).QueryRow(&item)
  13. return
  14. }