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
81d7406e
Commit
81d7406e
authored
Aug 17, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bf3cddbb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
center-order/app/base/api/impl/action/diagnosisneedbus.js
+3
-0
center-order/app/base/service/impl/dbneed/diagnosisneedbusSve.js
+17
-0
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
+2
-2
No files found.
center-order/app/base/api/impl/action/diagnosisneedbus.js
View file @
81d7406e
...
...
@@ -40,6 +40,9 @@ class DiagnosisNeedBusAPI extends APIBase {
case
'getNeedDetail'
:
// 需求详情
opResult
=
await
this
.
needSve
.
getItemByNeedNo
(
pobj
);
break
case
'addCase'
:
opResult
=
await
this
.
dnbSve
.
addCase
(
pobj
)
break
default
:
opResult
=
system
.
getResult
(
null
,
"actionType参数错误"
);
break
;
...
...
center-order/app/base/service/impl/dbneed/diagnosisneedbusSve.js
View file @
81d7406e
...
...
@@ -3,6 +3,7 @@ const System = require('../../../system');
class
diagnosisneedbusService
extends
ServiceBase
{
constructor
()
{
super
(
"dbneed"
,
'diagnosisDao'
);
this
.
solDao
=
System
.
getObject
(
'db.dbneed.diagnosisneedsolutionDao'
)
}
async
getList
(
pobj
,
data
,
req
)
{
...
...
@@ -95,5 +96,20 @@ class diagnosisneedbusService extends ServiceBase {
return
System
.
getResultFail
(
-
1
,
error
.
message
)
}
}
async
addCase
(
pobj
,
data
,
req
)
{
try
{
let
param
=
{
diagnosis_no
:
data
.
diagnosisNo
,
solution_content
:
data
.
solutionContent
,
creator_id
:
pobj
.
userInfo
.
id
,
updator_id
:
pobj
.
userInfo
.
id
}
let
res
=
await
this
.
solDao
.
create
(
param
)
return
System
.
getResultSuccess
(
res
)
}
catch
(
error
)
{
return
System
.
getResultFail
(
-
1
,
error
.
message
)
}
}
}
module
.
exports
=
diagnosisneedbusService
;
\ No newline at end of file
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
View file @
81d7406e
...
...
@@ -79,7 +79,7 @@ class NeedinfoService extends ServiceBase {
sobj
.
search
.
publishMobile
=
actionBody
.
publishMobile
}
if
(
actionBody
.
stdate
&&
actionBody
.
endate
)
{
sobj
.
search
.
updated_at
=
{
[
this
.
db
.
Op
.
between
]:
[
actionBody
.
stdate
,
actionBody
.
endate
]
}
sobj
.
search
.
updated_at
=
[
actionBody
.
stdate
,
actionBody
.
endate
]
}
var
r
=
await
this
.
dao
.
findAndCountAll
(
sobj
);
return
system
.
getResultSuccess
(
r
);
...
...
@@ -114,7 +114,7 @@ class NeedinfoService extends ServiceBase {
sobj
.
search
.
publishMobile
=
actionBody
.
publishMobile
}
if
(
actionBody
.
stdate
&&
actionBody
.
endate
)
{
sobj
.
search
.
updated_at
=
{
[
this
.
db
.
Op
.
between
]:
[
actionBody
.
stdate
,
actionBody
.
endate
]
}
sobj
.
search
.
updated_at
=
[
actionBody
.
stdate
,
actionBody
.
endate
]
}
var
r
=
await
this
.
dao
.
findAndCountAll
(
sobj
);
return
system
.
getResultSuccess
(
r
);
...
...
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