| 12345678910111213141516171819 |
- package model
- import "mtp20_assisted/global"
- // Get 通过采购成交单ID获取信息
- func (t *Thjpurchasetradedetail) Get() (has bool, err error) {
- return global.M2A_DB.Where("WRTRADEDETAILID = ?", t.WRTRADEDETAILID).Get(t)
- }
- // Get 通过预售申请ID获取信息
- func (t *Wrpresaleinfo) Get() (has bool, err error) {
- return global.M2A_DB.Where("PRESALEAPPLYID = ?", t.PRESALEAPPLYID).Get(t)
- }
- // UpdateContractAddrBuy 更新预售模板合同
- func (t *Thjpurchasetradedetail) UpdateContractAddrBuy() (err error) {
- _, err = global.M2A_DB.Where("WRTRADEDETAILID = ?", t.WRTRADEDETAILID).Cols("CONTRACTADDRBUY").Update(t)
- return
- }
|