Commit 2bde9fa4 by 王昆

gsb

parent 95e0a770
...@@ -1239,26 +1239,26 @@ class EcontractApi { ...@@ -1239,26 +1239,26 @@ class EcontractApi {
} }
// 2 查公司 // 2 查公司
var companybpo = await this.ecompanybpoSve.findOne({ // var companybpo = await this.ecompanybpoSve.findOne({
busi_id: mtchId // busi_id: mtchId
}); // });
if (!companybpo) { // if (!companybpo) {
return { // return {
code: 1, // code: 1,
msg: "电子签企业未录入当前商户ID" // msg: "电子签企业未录入当前商户ID"
}; // };
} // }
if (!companybpo.mainId) { // if (!companybpo.mainId) {
return { // return {
code: 1, // code: 1,
msg: "请更新电子签企业" // msg: "请更新电子签企业"
}; // };
} // }
// 3 查签约模板(c_etemplate_busi) // 3 查签约模板(c_etemplate_busi)
var templateIds = await this.etemplateSve.findIdsByCompanyIdAndMainId(companybpo.mtchId); var templateIds = await this.etemplateSve.findIdsByCompanyIdAndMainId(mtchId);
if (templateIds.idsO.length == 0 && templateIds.idsT.length == 0) { if (templateIds.idsO.length == 0 && templateIds.idsT.length == 0) {
return { return {
code: 1, code: 1,
......
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