Commit 55384f5e by 王昆

gsb

parent 251ac08d
var system = require("../../system")
const md5 = require("MD5");
const logCtl = system.getObject("web.oplogCtl");
const moment = require("moment");
class DKcontractApi {
constructor() {
this.dkcompanySve = system.getObject("service.dkcompanySve");
this.dkcontractSve = system.getObject("service.dkcontractSve");
}
async syncSignedFile() {
this.dkcontractSve.downloadCompleteUrl();
return "start success"
}
}
module.exports = DKcontractApi;
\ No newline at end of file
...@@ -1240,7 +1240,7 @@ class EcontractApi { ...@@ -1240,7 +1240,7 @@ class EcontractApi {
// 2 查公司 // 2 查公司
var companybpo = await this.ecompanybpoSve.findOne({ var companybpo = await this.ecompanybpoSve.findOne({
mtchId: mtchId busi_id: mtchId
}); });
if (!companybpo) { if (!companybpo) {
return { return {
......
...@@ -248,7 +248,7 @@ class DKcontractService extends ServiceBase { ...@@ -248,7 +248,7 @@ class DKcontractService extends ServiceBase {
} }
async downloadCompleteUrl(limit) { async downloadCompleteUrl(limit) {
var sql = "SELECT id FROM `c_econtract` WHERE eflowstatus = '2' AND (fileurl IS NULL OR fileurl = '') ORDER BY id DESC "; var sql = "SELECT id FROM `c_dkcontract` WHERE eflowstatus = '2' AND (fileurl IS NULL OR fileurl = '') ORDER BY id DESC ";
if (limit) { if (limit) {
sql = sql + " LIMIT " + limit; sql = sql + " LIMIT " + limit;
} }
......
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