Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
c90b99d8
Commit
c90b99d8
authored
Aug 12, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
75055007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
center-order/app/base/service/impl/dbneed/diagnosisneedbusSve.js
+16
-3
No files found.
center-order/app/base/service/impl/dbneed/diagnosisneedbusSve.js
View file @
c90b99d8
...
@@ -18,7 +18,8 @@ class diagnosisneedbusService extends ServiceBase {
...
@@ -18,7 +18,8 @@ class diagnosisneedbusService extends ServiceBase {
'publish_name'
,
'publish_name'
,
'publish_mobile'
,
'publish_mobile'
,
'status'
,
'status'
,
'status_name'
'status_name'
,
'updated_at'
],
],
order
:
[[
"updated_at"
,
'desc'
]]
order
:
[[
"updated_at"
,
'desc'
]]
}
}
...
@@ -26,18 +27,27 @@ class diagnosisneedbusService extends ServiceBase {
...
@@ -26,18 +27,27 @@ class diagnosisneedbusService extends ServiceBase {
if
(
data
.
diagnosisNo
)
{
if
(
data
.
diagnosisNo
)
{
where
.
diagnosis_no
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
data
.
diagnosisNo
}
%`
}
where
.
diagnosis_no
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
data
.
diagnosisNo
}
%`
}
}
}
if
(
data
.
diagnosisTypeName
)
{
where
.
diagnosis_type_name
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
data
.
diagnosisTypeName
}
%`
}
}
if
(
data
.
publishMobile
)
{
where
.
publish_mobile
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
data
.
publishMobile
}
%`
}
}
if
(
data
.
status
)
{
if
(
data
.
status
)
{
where
.
status
=
data
.
status
where
.
status
=
data
.
status
}
}
if
(
data
.
publishName
)
{
if
(
data
.
publishName
)
{
where
.
publish_name
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
data
.
publishName
}
%`
}
where
.
publish_name
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
data
.
publishName
}
%`
}
}
}
if
(
data
.
updatedAt
)
{
if
(
data
.
stdate
&&
data
.
endate
)
{
where
.
updated_at
=
{
[
this
.
db
.
Op
.
between
]:
data
.
updatedAt
}
where
.
updated_at
=
{
[
this
.
db
.
Op
.
between
]:
[
data
.
stdate
,
data
.
endate
]
}
}
}
if
(
data
.
corporateType
)
{
if
(
data
.
corporateType
)
{
where
.
corporate_type
=
data
.
corporateType
where
.
corporate_type
=
data
.
corporateType
}
}
if
(
data
.
diagnosis_mode
)
{
where
.
diagnosis_mode
=
data
.
diagnosis_mode
}
if
(
Object
.
keys
(
where
).
length
>
0
)
{
if
(
Object
.
keys
(
where
).
length
>
0
)
{
query
.
where
=
where
query
.
where
=
where
}
}
...
@@ -52,6 +62,9 @@ class diagnosisneedbusService extends ServiceBase {
...
@@ -52,6 +62,9 @@ class diagnosisneedbusService extends ServiceBase {
async
getDetail
(
pobj
,
id
)
{
async
getDetail
(
pobj
,
id
)
{
try
{
try
{
let
res
=
await
this
.
dao
.
findById
(
id
)
let
res
=
await
this
.
dao
.
findById
(
id
)
if
(
res
)
{
res
.
auth_result_name
=
res
.
diagnosis_result
==
'tg'
?
'已认证'
:
'未认证'
}
return
System
.
getResultSuccess
(
res
)
return
System
.
getResultSuccess
(
res
)
}
catch
(
error
)
{
}
catch
(
error
)
{
return
System
.
getResultFail
(
-
1
,
error
.
message
)
return
System
.
getResultFail
(
-
1
,
error
.
message
)
...
...
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