Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
方斌
51business
Commits
a240560a
Commit
a240560a
authored
Feb 28, 2020
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
9bc05010
Pipeline
#19684
passed with stage
in 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
presell_search_history.js
app/service/cd/presell_search_history.js
+4
-15
No files found.
app/service/cd/presell_search_history.js
View file @
a240560a
...
...
@@ -76,22 +76,11 @@ class PresellSearchHistoryService extends Service {
//如果没有登录就不做处理
return
ret
;
}
let
filter
=
{
attributes
:
[
'id'
],
where
:
{
state
:
1
,
user_id
:
ctx
.
userId
,
}
}
let
searchHistoryList
=
await
ctx
.
realestateModel
.
CdPresellSearchHistory
.
findAll
(
filter
);
if
(
searchHistoryList
.
length
>
0
)
{
let
params
=
{
state
:
0
};
let
where
=
{
user_id
:
ctx
.
userId
}
await
ctx
.
realestateModel
.
CdPresellSearchHistory
.
update
(
params
,
{
where
:
where
});
let
params
=
{
state
:
0
};
let
where
=
{
user_id
:
ctx
.
userId
}
await
ctx
.
realestateModel
.
CdPresellSearchHistory
.
update
(
params
,
{
where
:
where
});
return
ret
;
}
...
...
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