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
75055007
Commit
75055007
authored
Aug 12, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diagnosis uupdate
parent
a1838014
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
center-order/app/base/db/impl/dbneed/diagnosisDao.js
+9
-0
center-order/app/base/service/impl/dbneed/diagnosisSve.js
+19
-4
No files found.
center-order/app/base/db/impl/dbneed/diagnosisDao.js
View file @
75055007
...
@@ -16,6 +16,15 @@ class diagnosisDao extends Dao {
...
@@ -16,6 +16,15 @@ class diagnosisDao extends Dao {
where
:
{
where
:
{
channel_user_Id
:
uid
channel_user_Id
:
uid
},
},
attributes
:
[
"diagnosis_no"
,
"corporate_name"
,
"publish_mobile"
,
"publish_name"
,
"diagnosis_result"
,
"qualifications_pic"
,
"brand_pic"
,
"industry_pic"
],
order
:
[
order
:
[
[
"updated_at"
,
"desc"
]
[
"updated_at"
,
"desc"
]
],
],
...
...
center-order/app/base/service/impl/dbneed/diagnosisSve.js
View file @
75055007
...
@@ -67,7 +67,13 @@ class DiagnosisService extends ServiceBase {
...
@@ -67,7 +67,13 @@ class DiagnosisService extends ServiceBase {
}
}
let
where
=
{}
let
where
=
{}
if
(
actionBody
.
diagnosisNo
)
{
if
(
actionBody
.
diagnosisNo
)
{
where
.
diagnosis_no
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
actionBody
.
diagnosis_no
}
%`
}
where
.
diagnosis_no
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
actionBody
.
diagnosisNo
}
%`
}
}
if
(
actionBody
.
diagnosisTypeName
)
{
where
.
diagnosis_type_name
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
actionBody
.
diagnosisTypeName
}
%`
}
}
if
(
actionBody
.
publishMobile
)
{
where
.
publish_mobile
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
actionBody
.
publishMobile
}
%`
}
}
}
if
(
actionBody
.
status
)
{
if
(
actionBody
.
status
)
{
where
.
status
=
actionBody
.
status
where
.
status
=
actionBody
.
status
...
@@ -76,10 +82,10 @@ class DiagnosisService extends ServiceBase {
...
@@ -76,10 +82,10 @@ class DiagnosisService extends ServiceBase {
where
.
publish_name
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
actionBody
.
publish_name
}
%`
}
where
.
publish_name
=
{
[
this
.
db
.
Op
.
like
]:
`%
${
actionBody
.
publish_name
}
%`
}
}
}
if
(
actionBody
.
stdate
&&
actionBody
.
endate
)
{
if
(
actionBody
.
stdate
&&
actionBody
.
endate
)
{
where
.
updated
A
t
=
{
[
this
.
db
.
Op
.
between
]:
[
actionBody
.
stdate
,
actionBody
.
endate
]}
where
.
updated
_a
t
=
{
[
this
.
db
.
Op
.
between
]:
[
actionBody
.
stdate
,
actionBody
.
endate
]}
}
}
if
(
actionBody
.
corporateType
)
{
if
(
actionBody
.
corporateType
Name
)
{
where
.
corporate_type
=
actionBody
.
corporateTyp
e
where
.
corporate_type
_name
=
actionBody
.
corporateTypeNam
e
}
}
if
(
Object
.
keys
(
where
).
length
>
0
)
{
if
(
Object
.
keys
(
where
).
length
>
0
)
{
query
.
where
=
where
query
.
where
=
where
...
@@ -90,7 +96,15 @@ class DiagnosisService extends ServiceBase {
...
@@ -90,7 +96,15 @@ class DiagnosisService extends ServiceBase {
async
enterpriseInfo
(
pobj
)
{
async
enterpriseInfo
(
pobj
)
{
let
diagnosisResult
=
await
this
.
dao
.
findOneOrderByCreateAt
(
pobj
.
userInfo
.
channel_userid
)
let
diagnosisResult
=
await
this
.
dao
.
findOneOrderByCreateAt
(
pobj
.
userInfo
.
channel_userid
)
if
(
diagnosisResult
)
{
diagnosisResult
.
auth_result_name
=
"未认证"
if
(
diagnosisResult
.
diagnosis_result
==
"tg"
)
{
diagnosisResult
.
auth_result_name
=
"已认证"
}
return
system
.
getResultSuccess
(
diagnosisResult
);
return
system
.
getResultSuccess
(
diagnosisResult
);
}
else
{
return
system
.
getResultSuccess
();
}
}
}
}
}
module
.
exports
=
DiagnosisService
;
module
.
exports
=
DiagnosisService
;
\ No newline at end of file
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