|
@@ -71,7 +71,9 @@ func (d *BidAccountDao) Create(bidsectionId int, accountData *models.CmProjectAc
|
|
|
bidsectionIdsByte := []byte("")
|
|
|
// 2.未有标段
|
|
|
if bidsectionIdsString == "" {
|
|
|
- bidsectionIds[0].Id = bidsectionId
|
|
|
+ BidsectionIdsItem := lib.BidsectionIds{}
|
|
|
+ BidsectionIdsItem.Id = bidsectionId
|
|
|
+ bidsectionIds = append(bidsectionIds, BidsectionIdsItem)
|
|
|
bidsectionIdsByte, err = json.Marshal(bidsectionIds)
|
|
|
if err != nil {
|
|
|
session.Rollback()
|