Commit 2bde9fa4 by 王昆

gsb

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