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
95d2f395
Commit
95d2f395
authored
Mar 17, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
增加内容
parents
4d1464d1
8a36d239
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
3 deletions
+32
-3
Dockerfile
+2
-1
center-order/app/base/api/impl/action/need.js
+3
-0
center-order/app/base/service/impl/dbneed/needinfoSve.js
+4
-2
center-order/app/base/service/impl/dbneed/needinfoSve2.js
+23
-0
center-order/app/base/service/impl/qcutils/baseqcSve.js
+0
-0
No files found.
Dockerfile
View file @
95d2f395
...
@@ -3,7 +3,8 @@ FROM registry.cn-beijing.aliyuncs.com/hantang2/node105:v2
...
@@ -3,7 +3,8 @@ FROM registry.cn-beijing.aliyuncs.com/hantang2/node105:v2
MAINTAINER
jy "jiangyong@gongsibao.com"
MAINTAINER
jy "jiangyong@gongsibao.com"
ADD
center-order /apps/center-order/
ADD
center-order /apps/center-order/
WORKDIR
/apps/center-order/
WORKDIR
/apps/center-order/
RUN
cnpm install
-S
RUN
yum install gcc-c++.x86_64
-y
RUN
npm install
--unsafe-perm
=
true
--allow-root
CMD
["node","/apps/center-order/main.js"]
CMD
["node","/apps/center-order/main.js"]
...
...
center-order/app/base/api/impl/action/need.js
View file @
95d2f395
...
@@ -83,6 +83,9 @@ class IcAPI extends APIBase {
...
@@ -83,6 +83,9 @@ class IcAPI extends APIBase {
case
"queryExpertApplyCommunicationLogs"
:
// 查询需求沟通记录 2020-10-28 laolan
case
"queryExpertApplyCommunicationLogs"
:
// 查询需求沟通记录 2020-10-28 laolan
opResult
=
await
this
.
needinfoSve2
.
queryExpertApplyCommunicationLogs
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
needinfoSve2
.
queryExpertApplyCommunicationLogs
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
case
"queryCommunicationLog"
:
// 查询需求沟通记录
opResult
=
await
this
.
needinfoSve2
.
queryCommunicationLog
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"bulkCreateNeeds"
:
case
"bulkCreateNeeds"
:
opResult
=
await
this
.
needinfoSve
.
bulkCreateNeeds
(
pobj
);
opResult
=
await
this
.
needinfoSve
.
bulkCreateNeeds
(
pobj
);
break
;
break
;
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
95d2f395
...
@@ -74,8 +74,10 @@ class NeedinfoService extends ServiceBase {
...
@@ -74,8 +74,10 @@ class NeedinfoService extends ServiceBase {
if
(
!
actionBody
.
intentionBizId
)
{
if
(
!
actionBody
.
intentionBizId
)
{
return
system
.
getResultFail
(
-
5001
,
"intentionBizId不能为空"
);
return
system
.
getResultFail
(
-
5001
,
"intentionBizId不能为空"
);
}
}
if
(
!
actionBody
.
mobile
)
{
if
(
actionBody
.
appName
!=
'阿里云商机'
)
{
return
system
.
getResultFail
(
-
5002
,
"mobile不能为空"
);
if
(
!
actionBody
.
mobile
)
{
return
system
.
getResultFail
(
-
5002
,
"mobile不能为空"
);
}
}
}
if
(
!
actionBody
.
type
)
{
if
(
!
actionBody
.
type
)
{
return
system
.
getResultFail
(
-
5003
,
"type不能为空"
);
return
system
.
getResultFail
(
-
5003
,
"type不能为空"
);
...
...
center-order/app/base/service/impl/dbneed/needinfoSve2.js
View file @
95d2f395
...
@@ -100,5 +100,28 @@ class NeedinfoService2 extends ServiceBase {
...
@@ -100,5 +100,28 @@ class NeedinfoService2 extends ServiceBase {
}
}
//2020-10-28 laolan 新增查询需求沟通记录
async
queryCommunicationLog
(
pobj
){
console
.
log
(
'query++pobj'
,
pobj
)
if
(
!
pobj
.
actionBody
.
intentionBizId
)
{
return
system
.
getResult
(
null
,
"actionBody.intentionBizId can not be empty,100493"
);
}
if
(
pobj
.
appInfo
.
uapp_id
==
18
){
if
(
!
pobj
.
actionBody
.
userFeedBack
)
{
return
system
.
getResult
(
null
,
"actionBody.userFeedBack can not be empty,100494"
);
}
}
var
sql
=
"select followContent from n_need_info where channelNeedNo = :channelNeedNo "
;
var
where
=
{
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
}
var
uappIdInfo
=
await
this
.
customQuery
(
sql
,
where
);
if
(
uappIdInfo
){
uappIdInfo
=
uappIdInfo
[
0
];
return
system
.
getResultSuccess
(
uappIdInfo
);
}
}
}
}
module
.
exports
=
NeedinfoService2
;
module
.
exports
=
NeedinfoService2
;
center-order/app/base/service/impl/qcutils/baseqcSve.js
View file @
95d2f395
This diff is collapsed.
Click to expand it.
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