Commit b43124e6 by 兰国旗

laolan

parent a967b2f9
...@@ -26,9 +26,5 @@ class ProductTypeCtl extends CtlBase { ...@@ -26,9 +26,5 @@ class ProductTypeCtl extends CtlBase {
return res; return res;
} }
async delete(pobj, qobj, req) {
const up = await this.service.delete(pobj);
return up;
}
} }
module.exports = ProductTypeCtl; module.exports = ProductTypeCtl;
...@@ -5,7 +5,7 @@ class RotationchartDao extends Dao { ...@@ -5,7 +5,7 @@ class RotationchartDao extends Dao {
super(Dao.getModelName(RotationchartDao)); super(Dao.getModelName(RotationchartDao));
} }
orderBy() { orderBy() {
return [["sequence","DESC"],["created_at", "DESC"]]; return [["sequence","DESC"],["is_enabled", "DESC"],["created_at", "DESC"]];
} }
} }
......
...@@ -96,10 +96,6 @@ class ProducttypeService extends ServiceBase { ...@@ -96,10 +96,6 @@ class ProducttypeService extends ServiceBase {
} }
return system.getResultSuccess(typeones); return system.getResultSuccess(typeones);
} }
async delete(pobj){
return system.getResultSuccess(this.dao.delete(pobj));
}
} }
module.exports = ProducttypeService; module.exports = ProducttypeService;
// var task = new ProducttypeService(); // var task = new ProducttypeService();
......
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