Commit 53443732 by 孙亚楠

dd

parent 8b463fd1
const system = require("../../../system");
const Dao = require("../../dao.base");
class ObusinessmenDao extends Dao {
constructor() {
super(Dao.getModelName(ObusinessmenDao));
}
}
module.exports = ObusinessmenDao;
\ No newline at end of file
const system = require("../../../system");
const Dao = require("../../dao.base");
class OorderDao extends Dao {
constructor() {
super(Dao.getModelName(OorderDao));
}
}
module.exports = OorderDao;
\ No newline at end of file
const system = require("../../../system");
const Dao = require("../../dao.base");
class OorderdeliverDao extends Dao {
constructor() {
super(Dao.getModelName(OorderdeliverDao));
}
}
module.exports = OorderdeliverDao;
\ No newline at end of file
const system = require("../../../system");
const Dao = require("../../dao.base");
class OorderinforegDao extends Dao {
constructor() {
super(Dao.getModelName(OorderinforegDao));
}
}
module.exports = OorderinforegDao;
\ No newline at end of file
const system = require("../../../system");
const Dao = require("../../dao.base");
class OorderprocessDao extends Dao {
constructor() {
super(Dao.getModelName(OorderprocessDao));
}
}
module.exports = OorderprocessDao;
\ No newline at end of file
const system = require("../../../system");
const ServiceBase = require("../../sve.base")
/**
* 个体户
*/
class ObusinessmenService extends ServiceBase {
constructor() {
super("order", ServiceBase.getDaoName(ObusinessmenService));
}
}
module.exports = ObusinessmenService;
\ No newline at end of file
const system = require("../../../system");
const ServiceBase = require("../../sve.base")
/**
* 订单产品表
*/
class OorderService extends ServiceBase {
constructor() {
super("order", ServiceBase.getDaoName(OorderService));
}
}
module.exports = OorderService;
\ No newline at end of file
const system = require("../../../system");
const ServiceBase = require("../../sve.base")
/**
* 订单交付
*/
class OorderdeliverService extends ServiceBase {
constructor() {
super("order", ServiceBase.getDaoName(OorderdeliverService));
}
}
module.exports = OorderdeliverService;
\ No newline at end of file
const system = require("../../../system");
const ServiceBase = require("../../sve.base")
/**
* 订单产品表
*/
class OorderinforegService extends ServiceBase {
constructor() {
super("order", ServiceBase.getDaoName(OorderinforegService));
}
}
module.exports = OorderinforegService;
\ No newline at end of file
const system = require("../../../system");
const ServiceBase = require("../../sve.base")
/**
* 订单产品表
*/
class OorderprocessService extends ServiceBase {
constructor() {
super("order", ServiceBase.getDaoName(OorderprocessService));
}
}
module.exports = OorderprocessService;
\ No newline at end of file
......@@ -34,22 +34,22 @@ class OproductService extends ServiceBase {
}
async setOrderStatus(orderList) {
// async setOrderStatus(orderList) {
var productIds = [];
var statues = [];
// var productIds = [];
// var statues = [];
list = SELECT * FROM o_product_process WHERE product_id IN(: productIds) AND statues IN(: statues)
// list = SELECT * FROM o_product_process WHERE product_id IN(: productIds) AND statues IN(: statues)
var map = {};
for (var item of list) {
map[item.product_id + "_" + item.status] = item;
}
// var map = {};
// for (var item of list) {
// map[item.product_id + "_" + item.status] = item;
// }
for (var order of orderList) {
order.status = map[order.product_id + "_" + order.status] || {};
}
}
// for (var order of orderList) {
// order.status = map[order.product_id + "_" + order.status] || {};
// }
// }
......
const system = require("../../../system");
const ServiceBase = require("../../sve.base")
/**
* 订单产品表
*/
class OproductprocessService extends ServiceBase {
constructor() {
super("order", ServiceBase.getDaoName(OproductprocessService));
}
}
module.exports = OproductprocessService;
\ No newline at end of file
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