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
ad9a8b5e
Commit
ad9a8b5e
authored
May 19, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
9f59d41f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
43 deletions
+7
-43
bpo-web/app/base/api/impl/econtractApi.js
+6
-42
bpo-web/app/config/settings.js
+1
-1
No files found.
bpo-web/app/base/api/impl/econtractApi.js
View file @
ad9a8b5e
...
...
@@ -1721,67 +1721,37 @@ class EcontractApi {
idNameList
.
push
(
u
.
idName
);
}
// 2 查公司
// var companybpo = await this.ecompanybpoSve.findOne({
// busi_id: mtchId
// });
// if (!companybpo) {
// return {
// code: 1,
// msg: "电子签企业未录入当前商户ID"
// };
// }
// if (!companybpo.mainId) {
// return {
// code: 1,
// msg: "请更新电子签企业"
// };
// }
// 3 查签约模板(c_etemplate_busi)
var
templateIds
=
await
this
.
etemplateSve
.
findIdsByCompanyIdAndMainId
(
mtchId
);
if
(
templateIds
.
idsO
.
length
==
0
&&
templateIds
.
idsT
.
length
==
0
)
{
return
{
code
:
1
,
msg
:
"电子签模板签约主体设置错误,请到bpo后台重新设置"
};
}
var
signList
=
[];
var
unSignList
=
[];
var
accountMap
=
{};
var
accountMap2
=
{};
var
accountMap3
=
{};
// 4 查签约用户
if
(
templateIds
.
idsO
.
length
>
0
)
{
var
idsOCOunt
=
await
this
.
usereaccountSve
.
getSignAccounts
(
templateIds
.
idsO
,
idNoList
,
idNameList
);
for
(
var
idO
of
idsOCOunt
)
{
accountMap
[
idO
.
userName
+
"_"
+
idO
.
personsSign
]
=
1
;
}
var
coids
=
await
this
.
findecontractoffline
(
mtchId
,
idNoList
,
idNameList
);
for
(
var
id
in
coids
){
accountMap
[
id
.
id_name
+
"_"
+
id
.
id_no
]
=
1
;
}
}
if
(
templateIds
.
idsT
.
length
>
0
)
{
var
idsTCount
=
await
this
.
usereaccountSve
.
getSignAccounts_dk
(
templateIds
.
idsT
,
idNoList
,
idNameList
);
for
(
var
idT
of
idsTCount
)
{
accountMap2
[
idT
.
userName
+
"_"
+
idT
.
personsSign
]
=
1
;
}
var
coids
=
await
this
.
findecontractoffline
(
mtchId
,
idNoList
,
idNameList
);
for
(
var
coid
of
coids
){
accountMap2
[
coid
.
id_name
+
"_"
+
coid
.
id_no
]
=
1
;
}
//线下
var
coids
=
await
this
.
econtractofflineSve
.
findSignAccount
(
mtchId
,
idNoList
,
idNameList
)
for
(
var
coid
of
coids
){
accountMap3
[
coid
.
id_name
+
"_"
+
coid
.
id_no
]
=
1
;
}
// 5 比对用户是否签约
for
(
var
u
of
userList
)
{
if
(
accountMap
[
u
.
idName
+
"_"
+
u
.
idNo
]
||
accountMap2
[
u
.
idName
+
"_"
+
u
.
idNo
])
{
if
(
accountMap
[
u
.
idName
+
"_"
+
u
.
idNo
]
||
accountMap2
[
u
.
idName
+
"_"
+
u
.
idNo
]
||
accountMap3
[
u
.
idName
+
"_"
+
u
.
idNo
]
)
{
signList
.
push
(
u
);
}
else
{
unSignList
.
push
(
u
);
...
...
@@ -1825,12 +1795,6 @@ class EcontractApi {
async
findecontractoffline
(
mtchId
,
idNoList
,
idNameList
){
return
this
.
econtractofflineSve
.
findSignAccount
(
mtchId
,
idNoList
,
idNameList
)
}
}
module
.
exports
=
EcontractApi
;
bpo-web/app/config/settings.js
View file @
ad9a8b5e
...
...
@@ -20,7 +20,7 @@ var settings = {
secret
:
"f99d413b767f09b5dff0b3610366cc46"
,
},
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
333
4
,
port
:
process
.
env
.
NODE_PORT
||
333
3
,
reqEsAddr
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
...
...
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