|
@@ -38,7 +38,6 @@ func NewBidDistributorLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Bi
|
|
|
|
|
|
// 标讯信息分发
|
|
|
func (l *BidDistributorLogic) BidDistributor(in *bxsubscribe.BidDistributorReq) (*bxsubscribe.StatusResp, error) {
|
|
|
- fmt.Println("@@@@@@@@@@@@")
|
|
|
userEnt := model.EntInfo(common.IntAll(in.EntId), common.IntAll(in.EntUserId))
|
|
|
if !(userEnt.Role_admin_system || userEnt.Role_admin_department) {
|
|
|
return &bxsubscribe.StatusResp{ErrorCode: -1, ErrorMsg: "无权限"}, nil
|
|
@@ -84,7 +83,7 @@ func (l *BidDistributorLogic) BidDistributor(in *bxsubscribe.BidDistributorReq)
|
|
|
continue
|
|
|
}
|
|
|
insertValue = append(insertValue, in.EntId, 0, m, infoid, area, city, buyerclass, toptype, subtype, scopeclass, budget, bidamount, attachment_count, 3, dateNew)
|
|
|
- values = append(values, in.EntUserId, in.EntId, infoid, date.NowFormat(date.Date_Full_Layout))
|
|
|
+ values = append(values, m, in.EntId, infoid, date.NowFormat(date.Date_Full_Layout))
|
|
|
}
|
|
|
}
|
|
|
IC.BaseServiceMysql.InsertBatchByTx(tx, "push.pushentniche", insertRow, insertValue)
|