|
@@ -256,7 +256,7 @@ func getQuerySql(req *types.ProjectListReq, isPage bool, buyerArr, plist []strin
|
|
|
findSql = "select a.project_id, a.project_name, a.business_type, a.buyer, a.buyer_id, a.area, a.city, a.district, a.zbtime, a.endtime, a.project_money, a.info_id, a.information_id, a.info_ids "
|
|
|
if len(querys) > 0 {
|
|
|
countSql = fmt.Sprintf("select count(1) from %s a where %s ", "information.transaction_info", strings.Join(querys, " and "))
|
|
|
- findSql = fmt.Sprintf("%s from %s a where %s order by zbtime", findSql, "information.transaction_info", strings.Join(querys, " and "))
|
|
|
+ findSql = fmt.Sprintf("%s from %s a where %s order by zbtime desc", findSql, "information.transaction_info", strings.Join(querys, " and "))
|
|
|
} else {
|
|
|
countSql = fmt.Sprintf("select count(1) from %s a ", "information.transaction_info")
|
|
|
findSql = fmt.Sprintf("%s from %s a order by zbtime", findSql, "information.transaction_info")
|