|
@@ -43,6 +43,20 @@ func (d *BidAccountDao) GetBidAccount(bidsectionId int, projectId int) []models.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//获得标段下的账号数据
|
|
|
+func (d *BidAccountDao) GetAccountId(projectId int, bidsectionId int, accountId int) *models.CmBidAccount {
|
|
|
+ data := &models.CmBidAccount{}
|
|
|
+ ok, err := d.engine.
|
|
|
+ Where("project_id=? and bidsection_id = ? and account_id= ? ", projectId, bidsectionId, accountId).
|
|
|
+ Get(data)
|
|
|
+ if ok && err == nil {
|
|
|
+ return data
|
|
|
+ } else {
|
|
|
+ data.Id = 0
|
|
|
+ return data
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// 创建标段成员关系
|
|
|
func (d *BidAccountDao) Create(bidsectionId int, accountData *models.CmProjectAccount, treeId int, projectId int) error {
|
|
|
|