|
@@ -255,7 +255,7 @@ func DownProduceBill(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
signs := []*model.Signature{}
|
|
|
repo.RepoDocsSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
|
|
|
CollectName: repo.CollectionSignature,
|
|
|
- Query: repo.Map{"userId": bson.M{"$in": bill.SignUsers}},
|
|
|
+ Query: repo.Map{"_id": bson.M{"$in": bill.SignUsers}},
|
|
|
Sort: bson.M{"sort": 1}, // 升序
|
|
|
}, &signs)
|
|
|
billExcel.Signatures = signs
|