Browse Source

安品项目展示收款单位

lazhaoqian 4 years ago
parent
commit
221a96482b

+ 11 - 0
ruoyi-anpin/src/main/java/com/ruoyi/anpin/domain/TProject.java

@@ -77,6 +77,16 @@ public class TProject extends BaseEntity {
     private String fStatusName;
     //责任人
     private String personName;
+    //收款单位中文名
+    private String fCorpName;
+
+    public String getfCorpName() {
+        return fCorpName;
+    }
+
+    public void setfCorpName(String fCorpName) {
+        this.fCorpName = fCorpName;
+    }
 
     public String getfStatusName() {
         return fStatusName;
@@ -201,6 +211,7 @@ public class TProject extends BaseEntity {
                 .append("fBillstatus", getfBillstatus())
                 .append("fAuditTime", getfAuditTime())
                 .append("personName", getPersonName())
+                .append("fCorpName", getfCorpName())
                 .toString();
     }
 }

+ 2 - 0
ruoyi-anpin/src/main/resources/mapper/anpin/TProjectMapper.xml

@@ -55,6 +55,7 @@
         tp.f_number,
         tp.f_name,
         tp.f_corpid,
+        tc.f_name fCorpName,
         tp.f_address,
         tp.f_person,
         su.user_name personName,
@@ -83,6 +84,7 @@
         f_audit_time
         from t_project tp
         LEFT JOIN sys_user su ON su.user_id = tp.f_person
+        LEFT JOIN t_corps tc ON tp.f_corpid = tc.f_id
         <where>
             tp.f_status = '0'
             <if test="fNumber != null  and fNumber != ''">and tp.f_number like concat('%', #{fNumber}, '%')</if>