Quellcode durchsuchen

用户中心: 我的接单未返回截止日期&接单日期&预算金额

mydq vor 5 Jahren
Ursprung
Commit
2161d2836f

+ 21 - 2
src/main/java/com/lightinit/hsdataportal/model/ReceiveListModel.java

@@ -7,10 +7,29 @@ public class ReceiveListModel {
     private Long id;
     private String rqrmntName;
     private String rqrmntType;
+    private Long publishBy;
     private String userName;
-    private Date receivedAt;
-    private BigDecimal money;
+    private String phone;
     private  Date deadline;
+    private BigDecimal money;
+    private Date receivedAt;
+
+
+    public String getPhone() {
+        return phone;
+    }
+
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    public Long getPublishBy() {
+        return publishBy;
+    }
+
+    public void setPublishBy(Long publishBy) {
+        this.publishBy = publishBy;
+    }
 
     public Date getDeadline() {
         return deadline;

+ 14 - 12
src/main/resources/sqlmaps/RequirementReceiveMapper.xml

@@ -357,14 +357,15 @@
   </update>
   <select id="selectList" parameterType="java.lang.Long" resultType="com.lightinit.hsdataportal.model.ReceiveListModel">
     SELECT
-  r.rqrmnt_name,
-  r.rqrmnt_type,
-  r.publish_by,
-  u.`username`userName,
+  r.rqrmnt_name as 'rqrmntName',
+  r.rqrmnt_type as 'rqrmntType',
+  r.publish_by as 'publishBy',
+  u.username as 'userName',
   rr.solution,
   rr.phone,
-  ra.`deadline` deadline,
-  ra.expected_quote money
+  ra.deadline,
+  ra.expected_quote as 'money',
+  rr.received_at  as 'receivedAt'
 FROM
   `requirement` r
   JOIN `requirement_api` ra ON r.`id` = ra.`id`
@@ -376,14 +377,15 @@ FROM
     WHERE u.id=#{id}
 UNION
 SELECT
-  r.rqrmnt_name,
-  r.rqrmnt_type,
-  r.publish_by,
-   u.`username`userName,
+  r.rqrmnt_name as 'rqrmntName',
+  r.rqrmnt_type as 'rqrmntType',
+  r.publish_by as 'publishBy',
+  u.username as 'userName',
   rr.solution,
   rr.phone,
-  rm.`deadline` deadline,
-  rm.money money
+  rm.deadline,
+  rm.money money,
+  rr.received_at  as 'receivedAt'
 
 FROM
   `requirement` r