Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
project-api
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
project-api
Commits
866c48b5
Commit
866c48b5
authored
Mar 31, 2018
by
fangzhipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
24ca7c6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
daylife/dao/record_dao.py
daylife/dao/record_dao.py
+1
-1
daylife/record_service.py
daylife/record_service.py
+1
-1
No files found.
daylife/dao/record_dao.py
View file @
866c48b5
...
...
@@ -18,6 +18,6 @@ def add_record(user_record):
def
select_by_user_id
(
user_id
):
session
=
sqlengin
.
getSession
()
items
=
session
.
query
(
UserRecord
)
.
filter
(
UserRecord
.
user_id
==
user_id
)
.
order_by
(
UserRecord
.
craete_at
.
desc
())
.
all
()
items
=
session
.
query
(
UserRecord
)
.
filter
(
UserRecord
.
user_id
==
user_id
)
.
order_by
(
UserRecord
.
id
.
desc
())
.
all
()
session
.
close
()
return
items
\ No newline at end of file
daylife/record_service.py
View file @
866c48b5
...
...
@@ -16,7 +16,7 @@ def get_my_record():
获取个人发布信息
:return:
"""
user_id
=
request
.
arg
s
.
get
(
'user_id'
)
user_id
=
request
.
header
s
.
get
(
'user_id'
)
items
=
record_dao
.
select_by_user_id
(
user_id
)
return
http
.
BaseRes
(
data
=
json_util
.
convert_db_to_json_obj
(
items
))
.
to_json
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment