Commit 68541249 by 王昆

大同京东需求修改,sinedUser3rd改为通过etemplate_id进行查询

parent bbf60f34
......@@ -362,7 +362,7 @@ class EcontractApi {
let idNos = await this.usereaccountSve.idNoByUserId3rd(userId);
var params = {
ecompanyId: busi.ecompany_id,
etemplate_id: busi.etemplate_id,
startId: startId,
idNo: idNo.toUpperCase(),
pageSize: pageSize,
......@@ -571,7 +571,8 @@ class EcontractApi {
};
try {
let user = await this.econtractSve.findSingleSignedUser(params);
// let user = await this.econtractSve.findSingleSignedUser(params); // 旧版本,不要了
let user = await this.econtractSve.signingQuerytoPer({ecid:ecid, idNo : idNo});
let result = {
code: 0,
msg: "success",
......
......@@ -897,7 +897,7 @@ class EcontractService extends ServiceBase {
sql.push("FROM c_econtract t1");
sql.push("INNER JOIN p_user_eaccount t2 ON t1.`usereaccount_id` = t2.`id`");
sql.push("INNER JOIN p_user t3 ON t2.`user_id` = t3.`id`");
sql.push("WHERE t1.id > :startId AND t1.`ecompany_id` = :ecompanyId AND t1.`eflowstatus` = '2' AND t1.`end_at`>= NOW()");
sql.push("WHERE t1.id > :startId AND t1.`etemplate_id` = :etemplate_id AND t1.`eflowstatus` = '2' AND t1.`end_at`>= NOW()");
if (params.idNo) {
sql.push("AND t2.`personsSign` = :idNo");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment