소스 검색

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

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