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
51bb2f68
Commit
51bb2f68
authored
Jun 29, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tgsb
parent
86d2286c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
bpo-web/app/base/api/impl/econtractApi.js
+11
-3
bpo-web/app/base/service/impl/econtractSve.js
+3
-0
bpo-web/app/base/service/impl/usereaccountSve.js
+14
-0
No files found.
bpo-web/app/base/api/impl/econtractApi.js
View file @
51bb2f68
...
@@ -358,17 +358,25 @@ class EcontractApi {
...
@@ -358,17 +358,25 @@ class EcontractApi {
msg
:
"签名失败"
msg
:
"签名失败"
};
};
}
}
let
idNos
=
await
this
.
usereaccountSve
.
idNoByUserId3rd
(
userId
);
var
params
=
{
var
params
=
{
ecompanyId
:
busi
.
ecompany_id
,
ecompanyId
:
busi
.
ecompany_id
,
startId
:
startId
,
startId
:
startId
,
idNo
:
idNo
.
toUpperCase
(),
idNo
:
idNo
.
toUpperCase
(),
pageSize
:
pageSize
,
pageSize
:
pageSize
,
userId3rd
:
userId
,
};
};
if
(
idNos
&&
idNos
.
length
>
0
)
{
params
.
idNos
=
idNos
;
}
try
{
try
{
var
userList
=
await
this
.
econtractSve
.
findSignedUses4Push
(
params
);
let
userList
=
await
this
.
econtractSve
.
findSignedUses4Push
(
params
);
if
(
userId
&&
userList
&&
userList
.
length
>
0
)
{
for
(
let
u
of
userList
)
{
u
.
userId3rd
=
userId
;
}
}
var
result
=
{
var
result
=
{
code
:
0
,
code
:
0
,
msg
:
"success"
,
msg
:
"success"
,
...
...
bpo-web/app/base/service/impl/econtractSve.js
View file @
51bb2f68
...
@@ -902,6 +902,9 @@ class EcontractService extends ServiceBase {
...
@@ -902,6 +902,9 @@ class EcontractService extends ServiceBase {
if
(
params
.
idNo
)
{
if
(
params
.
idNo
)
{
sql
.
push
(
"AND t2.`personsSign` = :idNo"
);
sql
.
push
(
"AND t2.`personsSign` = :idNo"
);
}
}
if
(
params
.
idNos
)
{
sql
.
push
(
"AND t2.`personsSign` IN (:idNos)"
);
}
if
(
params
.
userId3rd
)
{
if
(
params
.
userId3rd
)
{
sql
.
push
(
"AND t3.`userId3rd` = :userId3rd"
);
sql
.
push
(
"AND t3.`userId3rd` = :userId3rd"
);
}
}
...
...
bpo-web/app/base/service/impl/usereaccountSve.js
View file @
51bb2f68
...
@@ -160,6 +160,20 @@ class UsereaccountService extends ServiceBase{
...
@@ -160,6 +160,20 @@ class UsereaccountService extends ServiceBase{
});
});
return
list
||
[];
return
list
||
[];
}
}
async
idNoByUserId3rd
(
userId3rd
)
{
if
(
!
userId3rd
)
{
return
;
}
let
sql
=
"SELECT t1.`personsSign` FROM p_user_eaccount t1 INNER JOIN p_user t2 ON t1.`user_id` = t2.`id` WHERE t2.`userId3rd` = :userId3rd"
;
let
list
=
await
this
.
dao
.
customQuery
(
sql
,
{
userId3rd
:
userId3rd
,});
let
rs
=
[];
for
(
let
item
of
list
)
{
rs
.
push
(
item
.
personsSign
);
}
return
rs
;
}
async
getSignAccounts_dk
(
etemplateIds
,
idNoList
,
idNameList
)
{
async
getSignAccounts_dk
(
etemplateIds
,
idNoList
,
idNameList
)
{
var
sql
=
[];
var
sql
=
[];
...
...
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