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
959f0fd1
Commit
959f0fd1
authored
Jul 28, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
daf2234b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
bpo-web/app/base/api/impl/bpoSDPJApi.js
+8
-5
bpo-web/app/base/db/models/ecompanybusi.js
+1
-0
bpo-web/app/base/service/impl/ccashinfoSve.js
+4
-4
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
959f0fd1
...
@@ -24,7 +24,8 @@ class BpoSDPJApi {
...
@@ -24,7 +24,8 @@ class BpoSDPJApi {
this
.
EXCEPT_KEYS
=
[
'sign'
];
this
.
EXCEPT_KEYS
=
[
'sign'
];
this
.
ccashinfoSve
=
system
.
getObject
(
"service.ccashinfoSve"
);
this
.
ccashinfoSve
=
system
.
getObject
(
"service.ccashinfoSve"
);
this
.
ecompanybusiSve
=
system
.
getObject
(
"service.ecompanybusiSve"
);
// this.ecompanybusiSve = system.getObject("service.ecompanybusiSve");
this
.
ecompanybusiDao
=
system
.
getObject
(
"db.ecompanybusiDao"
);
this
.
qrClient
=
system
.
getObject
(
"util.qrClient"
);
this
.
qrClient
=
system
.
getObject
(
"util.qrClient"
);
this
.
idcardClient
=
system
.
getObject
(
"util.idcardClient"
);
this
.
idcardClient
=
system
.
getObject
(
"util.idcardClient"
);
this
.
esettleSve
=
system
.
getObject
(
"service.esettleSve"
);
this
.
esettleSve
=
system
.
getObject
(
"service.esettleSve"
);
...
@@ -89,13 +90,15 @@ class BpoSDPJApi {
...
@@ -89,13 +90,15 @@ class BpoSDPJApi {
return
this
.
getCodeResult
(
1002001
,
null
);
return
this
.
getCodeResult
(
1002001
,
null
);
}
}
//2.检验所有参数是否完整 如果出现非法参数直接返回
//2.检验所有参数是否完整 如果出现非法参数直接返回
if
(
!
obj
.
ecid
||
!
obj
.
appId
||
!
obj
.
idNo
||
!
obj
.
idName
||
!
obj
.
amt
){
if
(
!
obj
.
ecid
||
!
obj
.
appId
||
!
obj
.
amt
){
return
this
.
getCodeResult
(
1002001
,
null
);
return
this
.
getCodeResult
(
1002001
,
null
);
}
}
//3.获取签约类型
//3.获取签约类型
let
_ecompanybusi
=
await
this
.
ecompanybusiSve
.
findOneByAppidMchtId
({
let
_ecompanybusi
=
await
this
.
ecompanybusiDao
.
model
.
findOne
({
app_id
:
this
.
trim
(
obj
.
appId
),
where
:{
mchtId
:
this
.
trim
(
obj
.
mchtId
)
appId
:
this
.
trim
(
obj
.
appId
),
mchtId
:
this
.
trim
(
obj
.
mchtId
)
}
});
});
console
.
log
(
"查看签约类型 _ecompanybusi="
+
JSON
.
stringify
(
_ecompanybusi
));
console
.
log
(
"查看签约类型 _ecompanybusi="
+
JSON
.
stringify
(
_ecompanybusi
));
if
(
!
_ecompanybusi
||
!
_ecompanybusi
.
hasOwnProperty
(
"app_type"
)){
if
(
!
_ecompanybusi
||
!
_ecompanybusi
.
hasOwnProperty
(
"app_type"
)){
...
...
bpo-web/app/base/db/models/ecompanybusi.js
View file @
959f0fd1
...
@@ -11,6 +11,7 @@ module.exports = (db, DataTypes) => {
...
@@ -11,6 +11,7 @@ module.exports = (db, DataTypes) => {
key
:
DataTypes
.
STRING
(
64
),
key
:
DataTypes
.
STRING
(
64
),
postwxurl
:
DataTypes
.
STRING
(
300
),
postwxurl
:
DataTypes
.
STRING
(
300
),
postsignurl
:
DataTypes
.
STRING
(
300
),
postsignurl
:
DataTypes
.
STRING
(
300
),
app_type
:
DataTypes
.
BIGINT
,
},
{
},
{
paranoid
:
true
,
//假的删除
paranoid
:
true
,
//假的删除
underscored
:
true
,
underscored
:
true
,
...
...
bpo-web/app/base/service/impl/ccashinfoSve.js
View file @
959f0fd1
const
system
=
require
(
"../../system"
);
const
system
=
require
(
"../../system"
);
const
ServiceBase
=
require
(
"../sve.base"
);
const
ServiceBase
=
require
(
"../sve.base"
);
class
CcashinfoS
v
e
extends
ServiceBase
{
class
CcashinfoS
ervic
e
extends
ServiceBase
{
constructor
()
{
constructor
()
{
super
(
ServiceBase
.
getDaoName
(
CcashinfoS
v
e
));
super
(
ServiceBase
.
getDaoName
(
CcashinfoS
ervic
e
));
}
}
...
@@ -91,7 +91,7 @@ class CcashinfoSve extends ServiceBase {
...
@@ -91,7 +91,7 @@ class CcashinfoSve extends ServiceBase {
properties
.
contract_id
=
this
.
trim
(
params
.
contract_id
)
properties
.
contract_id
=
this
.
trim
(
params
.
contract_id
)
}
}
await
this
.
dao
.
update
(
properties
)
await
this
.
dao
.
update
(
properties
)
return
{
code
:
0
,
null
}
return
{
code
:
0
,
data
:
null
}
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
null
;
return
null
;
...
@@ -103,4 +103,4 @@ class CcashinfoSve extends ServiceBase {
...
@@ -103,4 +103,4 @@ class CcashinfoSve extends ServiceBase {
}
}
module
.
exports
=
CcashinfoS
v
e
;
module
.
exports
=
CcashinfoS
ervic
e
;
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