浏览代码

查采购销售合同按创建时间排序

zou.yingbin 3 年之前
父节点
当前提交
7f62f71227
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      models/ermcp3.go

+ 3 - 0
models/ermcp3.go

@@ -1055,6 +1055,9 @@ select t.contractno,
 	}
 
 	sqlId.JoinEx(r.QryType == 2, " and t.qty - t.pricedqty > 0 and t.pricetype !=1")
+
+	sqlId.Join(" order by t.createtime desc")
+
 	return sqlId.String()
 }