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
e4f15b67
Commit
e4f15b67
authored
Apr 17, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://t-git.51gjj.com/fangbin/51business
parents
2d09b729
e5d1a348
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
order.js
app/service/house/order.js
+10
-3
No files found.
app/service/house/order.js
View file @
e4f15b67
...
@@ -34,11 +34,18 @@ class OrderService extends Service {
...
@@ -34,11 +34,18 @@ class OrderService extends Service {
operator
:
"equal"
operator
:
"equal"
},
},
],
],
orderConditions
:
[],
orderConditions
:
[{
key
:
'createdAt'
,
orderSequence
:
'desc'
,
}],
}
}
let
orderHistory
=
await
service
.
houseCommon
.
order
.
all
(
filter
);
let
orderHistory
=
await
service
.
houseCommon
.
order
.
all
(
filter
);
if
(
orderHistory
.
rowCount
>
0
)
{
if
(
orderHistory
.
rowCount
>
0
)
{
ctx
.
failed
(
'已经预约过'
);
let
ret
=
{
id
:
orderHistory
.
results
[
0
].
id
,
msg
:
'已经预约过'
,
};
return
ret
;
}
}
let
data
=
{
let
data
=
{
userId
:
ctx
.
userId
,
userId
:
ctx
.
userId
,
...
@@ -52,7 +59,7 @@ class OrderService extends Service {
...
@@ -52,7 +59,7 @@ class OrderService extends Service {
remark
:
inputParams
.
remark
||
''
remark
:
inputParams
.
remark
||
''
};
};
let
ret
=
await
service
.
houseCommon
.
order
.
add
(
data
);
let
ret
=
await
service
.
houseCommon
.
order
.
add
(
data
);
return
{
id
:
ret
.
id
};
return
{
id
:
ret
.
id
,
msg
:
'预约成功'
};
}
}
/**
/**
...
...
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