Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
5e841790
Commit
5e841790
authored
Sep 15, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序
parent
664ff973
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
25 deletions
+4
-25
gsb-marketplat-mag/app/base/db/impl/aggregation/producttypeDao.js
+4
-25
No files found.
gsb-marketplat-mag/app/base/db/impl/aggregation/producttypeDao.js
View file @
5e841790
...
@@ -4,30 +4,9 @@ class ProducttypeDao extends Dao {
...
@@ -4,30 +4,9 @@ class ProducttypeDao extends Dao {
constructor
()
{
constructor
()
{
super
(
Dao
.
getModelName
(
ProducttypeDao
));
super
(
Dao
.
getModelName
(
ProducttypeDao
));
}
}
// async findAndCountAll(req) {
orderBy
()
{
// var params = {
return
[[
"sequence"
,
"DESC"
],[
"created_at"
,
"DESC"
]];
// // company_id: req.actionBody.company_id
}
// company_id: 10
// };
// var returnRes = {
// results: {rows:[],count:[]}
// };
// var dataCount = "select count(1) as dataCount from mc_product_type where deleted_at is null and p_id = 0 and company_id = :company_id ";
// var sql = "select * from mc_product_type where deleted_at is null and p_id = 0 and company_id = :company_id ";
// var childData = "select *,count(1) as childCount from mc_product_type where p_id !=0 and company_id = :company_id group by p_id";
// var list = await this.customQuery(sql, params);
// returnRes.results.rows = list;
// var tmpResultCount = await this.customQuery(dataCount, params);
// returnRes.results.count = tmpResultCount && tmpResultCount.length > 0 ? tmpResultCount[0].dataCount : 0;
// var childrenData = await this.customQuery(childData, params);
// for(var i=0;i<childrenData.length;i++){
// returnRes.results.rows[i].childCount = childrenData && childrenData[i].childCount > 0 ? childrenData[i].childCount : 0;
// }
// console.log(returnRes)
// return returnRes;
// }
}
}
module
.
exports
=
ProducttypeDao
;
module
.
exports
=
ProducttypeDao
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment