From b36a16fe646a33aeb78b12625d2ff5fbe9272254 Mon Sep 17 00:00:00 2001
From: yinzuomei <576302893@qq.com>
Date: Fri, 20 May 2022 12:55:42 +0800
Subject: [PATCH] =?UTF-8?q?/heart/userdemand/pagelist=E5=85=A5=E5=8F=82?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0demandRecId?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/epmet/dto/form/demand/UserDemandPageFormDTO.java | 7 +++++++
.../src/main/resources/mapper/IcUserDemandRecDao.xml | 3 +++
2 files changed, 10 insertions(+)
diff --git a/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/demand/UserDemandPageFormDTO.java b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/demand/UserDemandPageFormDTO.java
index bfeb9203e2..e4aa06f5e3 100644
--- a/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/demand/UserDemandPageFormDTO.java
+++ b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/demand/UserDemandPageFormDTO.java
@@ -79,4 +79,11 @@ public class UserDemandPageFormDTO extends PageFormDTO implements Serializable {
* 搜索关键词
*/
private String keyword;
+
+
+ /**
+ * 需求id
+ */
+ private String demandRecId;
+
}
diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml
index 5221f5309b..dd7cf16d8a 100644
--- a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml
+++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml
@@ -129,6 +129,9 @@
AND DATE_FORMAT(r.WANT_SERVICE_TIME,'%Y-%m-%d') #{wantServiceEndTime}
+
+ and r.id = #{demandRecId}
+
order by r.WANT_SERVICE_TIME desc,r.CREATED_TIME asc