소스 검색

Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

java110 4 년 전
부모
커밋
8d78326b85

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/accountDetail/AccountDetailDto.java

@@ -32,6 +32,7 @@ public class AccountDetailDto extends PageDto implements Serializable {
     private String relAcctId;
     private String remark;
     private String objType;
+    private String acctType;
 
 
     private Date createTime;
@@ -135,4 +136,12 @@ public class AccountDetailDto extends PageDto implements Serializable {
     public void setAcctName(String acctName) {
         this.acctName = acctName;
     }
+
+    public String getAcctType() {
+        return acctType;
+    }
+
+    public void setAcctType(String acctType) {
+        this.acctType = acctType;
+    }
 }

+ 7 - 0
java110-db/src/main/resources/mapper/acct/AccountDetailServiceDaoImplMapper.xml

@@ -142,6 +142,9 @@
         <if test="objType !=null and objType != ''">
             and t.obj_type= #{objType}
         </if>
+        <if test="acctType !=null and acctType != ''">
+            and ac.acct_type= #{acctType}
+        </if>
         order by t.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
@@ -194,6 +197,7 @@
     <select id="queryAccountDetailsCount" parameterType="Map" resultType="Map">
         select count(1) count
         from account_detail t
+        LEFT JOIN account ac on t.acct_id = ac.acct_id and ac.status_cd = '0' and ac.obj_id = t.obj_id
         where 1 =1
         <if test="detailType !=null and detailType != ''">
             and t.detail_type= #{detailType}
@@ -225,6 +229,9 @@
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
         </if>
+        <if test="acctType !=null and acctType != ''">
+            and ac.acct_type= #{acctType}
+        </if>
         <if test="objType !=null and objType != ''">
             and t.obj_type= #{objType}
         </if>