Преглед изворни кода

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

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()
 }