提交
This commit is contained in:
1 parent
1ca2668112
commit
5b3edb1700
278 files changed
+53761
-36931
No files matched your search
@@ -946,7 +946,12 @@ async def list_sample_codes(
|
||||
query = query.filter(BizSampleCode.issued_user_id == uid)
|
||||
query = apply_data_scope(query, BizSampleCode, user, db, tenant_no)
|
||||
total = query.count()
|
||||
items = query.order_by(BizSampleCode.create_time.desc()).offset((page - 1) * pageSize).limit(pageSize).all()
|
||||
items = (
|
||||
query.order_by(BizSampleCode.create_time.desc(), BizSampleCode.sample_code.desc())
|
||||
.offset((page - 1) * pageSize)
|
||||
.limit(pageSize)
|
||||
.all()
|
||||
)
|
||||
result_list = [sample_code_svc._row_to_dict(r) for r in items]
|
||||
used_codes = collection_protocol_svc.get_sample_codes_used_in_protocol_samples(
|
||||
db,
|
||||
|
||||
Reference in new issue
Block a user