Ver código fonte

完善保证金查询显示

shiyj1101 5 anos atrás
pai
commit
61ee63f8e5

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/accountBondObj/AccountBondObjDto.java

@@ -17,6 +17,7 @@ public class AccountBondObjDto extends PageDto implements Serializable {
     private String bondId;
     private String bondId;
 private String bobjId;
 private String bobjId;
 private String objId;
 private String objId;
+private String objName;
 private String bondType;
 private String bondType;
 private String receivableAmount;
 private String receivableAmount;
 private String remark;
 private String remark;
@@ -108,4 +109,12 @@ public void setEndTime(String endTime) {
     public void setStatusCd(String statusCd) {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
         this.statusCd = statusCd;
     }
     }
+
+    public String getObjName() {
+        return objName;
+    }
+
+    public void setObjName(String objName) {
+        this.objName = objName;
+    }
 }
 }

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/accountBondObjDetail/AccountBondObjDetailDto.java

@@ -16,6 +16,7 @@ public class AccountBondObjDetailDto extends PageDto implements Serializable {
 
 
     private String bobjId;
     private String bobjId;
 private String objId;
 private String objId;
+private String objName;
 private String bondType;
 private String bondType;
 private String detailId;
 private String detailId;
 private String receivableAmount;
 private String receivableAmount;
@@ -108,4 +109,12 @@ public void setEndTime(String endTime) {
     public void setStatusCd(String statusCd) {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
         this.statusCd = statusCd;
     }
     }
+
+    public String getObjName() {
+        return objName;
+    }
+
+    public void setObjName(String objName) {
+        this.objName = objName;
+    }
 }
 }

+ 7 - 1
java110-bean/src/main/java/com/java110/po/accountBondObj/AccountBondObjPo.java

@@ -8,6 +8,7 @@ public class AccountBondObjPo implements Serializable {
     private String bondId;
     private String bondId;
 private String bobjId;
 private String bobjId;
 private String objId;
 private String objId;
+private String objName;
 private String bondType;
 private String bondType;
 private String receivableAmount;
 private String receivableAmount;
 private String remark;
 private String remark;
@@ -83,6 +84,11 @@ public void setEndTime(String endTime) {
         this.endTime = endTime;
         this.endTime = endTime;
     }
     }
 
 
+    public String getObjName() {
+        return objName;
+    }
 
 
-
+    public void setObjName(String objName) {
+        this.objName = objName;
+    }
 }
 }

+ 7 - 1
java110-bean/src/main/java/com/java110/po/accountBondObjDetail/AccountBondObjDetailPo.java

@@ -7,6 +7,7 @@ public class AccountBondObjDetailPo implements Serializable {
 
 
     private String bobjId;
     private String bobjId;
 private String objId;
 private String objId;
+private String objName;
 private String bondType;
 private String bondType;
 private String detailId;
 private String detailId;
 private String receivableAmount;
 private String receivableAmount;
@@ -83,6 +84,11 @@ public void setEndTime(String endTime) {
         this.endTime = endTime;
         this.endTime = endTime;
     }
     }
 
 
+    public String getObjName() {
+        return objName;
+    }
 
 
-
+    public void setObjName(String objName) {
+        this.objName = objName;
+    }
 }
 }

+ 10 - 5
java110-db/src/main/resources/mapper/acct/AccountBondObjDetailServiceDaoImplMapper.xml

@@ -11,9 +11,9 @@
     <!-- 保存保证金明细信息 add by wuxw 2018-07-03 -->
     <!-- 保存保证金明细信息 add by wuxw 2018-07-03 -->
     <insert id="saveAccountBondObjDetailInfo" parameterType="Map">
     <insert id="saveAccountBondObjDetailInfo" parameterType="Map">
         insert into account_bond_obj_detail(
         insert into account_bond_obj_detail(
-bobj_id,obj_id,bond_type,detail_id,receivable_amount,remark,start_time,received_amount,state,end_time
+bobj_id,obj_id,bond_type,detail_id,receivable_amount,remark,start_time,received_amount,state,end_time,obj_name
 ) values (
 ) values (
-#{bobjId},#{objId},#{bondType},#{detailId},#{receivableAmount},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime}
+#{bobjId},#{objId},#{bondType},#{detailId},#{receivableAmount},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime},#{objName}
 )
 )
     </insert>
     </insert>
 
 
@@ -21,7 +21,9 @@ bobj_id,obj_id,bond_type,detail_id,receivable_amount,remark,start_time,received_
 
 
     <!-- 查询保证金明细信息 add by wuxw 2018-07-03 -->
     <!-- 查询保证金明细信息 add by wuxw 2018-07-03 -->
     <select id="getAccountBondObjDetailInfo" parameterType="Map" resultType="Map">
     <select id="getAccountBondObjDetailInfo" parameterType="Map" resultType="Map">
-        select  t.bobj_id,t.bobj_id bobjId,t.create_time,t.create_time createTime,t.obj_id,t.obj_id objId,t.bond_type,t.bond_type bondType,t.detail_id,t.detail_id detailId,t.receivable_amount,t.receivable_amount receivableAmount,t.remark,t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.state,t.end_time,t.end_time endTime 
+        select  t.bobj_id,t.bobj_id bobjId,t.create_time,t.create_time createTime,t.obj_id,t.obj_id objId,t.bond_type,t.bond_type bondType,
+        t.detail_id,t.detail_id detailId,t.receivable_amount,t.receivable_amount receivableAmount,t.remark,t.start_time,t.start_time startTime,
+        t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.state,t.end_time,t.end_time endTime,t.obj_name objName
 from account_bond_obj_detail t 
 from account_bond_obj_detail t 
 where 1 =1 
 where 1 =1 
 <if test="bobjId !=null and bobjId != ''">
 <if test="bobjId !=null and bobjId != ''">
@@ -84,8 +86,11 @@ order by t.create_time desc
 </if> 
 </if> 
 <if test="objId !=null and objId != ''">
 <if test="objId !=null and objId != ''">
 , t.obj_id= #{objId}
 , t.obj_id= #{objId}
-</if> 
-<if test="bondType !=null and bondType != ''">
+</if>
+        <if test="objName !=null and objName != ''">
+            , t.obj_name= #{objName}
+        </if>
+        <if test="bondType !=null and bondType != ''">
 , t.bond_type= #{bondType}
 , t.bond_type= #{bondType}
 </if> 
 </if> 
 <if test="receivableAmount !=null and receivableAmount != ''">
 <if test="receivableAmount !=null and receivableAmount != ''">

+ 16 - 7
java110-db/src/main/resources/mapper/acct/AccountBondObjServiceDaoImplMapper.xml

@@ -11,9 +11,9 @@
     <!-- 保存保证金对象信息 add by wuxw 2018-07-03 -->
     <!-- 保存保证金对象信息 add by wuxw 2018-07-03 -->
     <insert id="saveAccountBondObjInfo" parameterType="Map">
     <insert id="saveAccountBondObjInfo" parameterType="Map">
         insert into account_bond_obj(
         insert into account_bond_obj(
-bond_id,bobj_id,obj_id,bond_type,receivable_amount,remark,start_time,received_amount,state,end_time
+bond_id,bobj_id,obj_id,bond_type,receivable_amount,remark,start_time,received_amount,state,end_time,obj_name
 ) values (
 ) values (
-#{bondId},#{bobjId},#{objId},#{bondType},#{receivableAmount},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime}
+#{bondId},#{bobjId},#{objId},#{bondType},#{receivableAmount},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime},#{objName}
 )
 )
     </insert>
     </insert>
 
 
@@ -21,7 +21,10 @@ bond_id,bobj_id,obj_id,bond_type,receivable_amount,remark,start_time,received_am
 
 
     <!-- 查询保证金对象信息 add by wuxw 2018-07-03 -->
     <!-- 查询保证金对象信息 add by wuxw 2018-07-03 -->
     <select id="getAccountBondObjInfo" parameterType="Map" resultType="Map">
     <select id="getAccountBondObjInfo" parameterType="Map" resultType="Map">
-        select  t.bond_id,t.bond_id bondId,t.bobj_id,t.bobj_id bobjId,t.create_time,t.create_time createTime,t.obj_id,t.obj_id objId,t.bond_type,t.bond_type bondType,t.receivable_amount,t.receivable_amount receivableAmount,t.remark,t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.state,t.end_time,t.end_time endTime 
+        select  t.bond_id,t.bond_id bondId,t.bobj_id,t.bobj_id bobjId,t.create_time,t.create_time createTime,t.obj_id,
+        t.obj_id objId,t.bond_type,t.bond_type bondType,t.receivable_amount,t.receivable_amount receivableAmount,t.remark,
+        t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,
+        t.state,t.end_time,t.end_time endTime,t.obj_name objName
 from account_bond_obj t 
 from account_bond_obj t 
 where 1 =1 
 where 1 =1 
 <if test="bondId !=null and bondId != ''">
 <if test="bondId !=null and bondId != ''">
@@ -35,8 +38,11 @@ where 1 =1
 </if> 
 </if> 
 <if test="objId !=null and objId != ''">
 <if test="objId !=null and objId != ''">
    and t.obj_id= #{objId}
    and t.obj_id= #{objId}
-</if> 
-<if test="bondType !=null and bondType != ''">
+</if>
+        <if test="objName !=null and objName != ''">
+            and t.obj_name= #{objName}
+        </if>
+        <if test="bondType !=null and bondType != ''">
    and t.bond_type= #{bondType}
    and t.bond_type= #{bondType}
 </if> 
 </if> 
 <if test="receivableAmount !=null and receivableAmount != ''">
 <if test="receivableAmount !=null and receivableAmount != ''">
@@ -84,8 +90,11 @@ order by t.create_time desc
 </if> 
 </if> 
 <if test="objId !=null and objId != ''">
 <if test="objId !=null and objId != ''">
 , t.obj_id= #{objId}
 , t.obj_id= #{objId}
-</if> 
-<if test="bondType !=null and bondType != ''">
+</if>
+        <if test="objName !=null and objName != ''">
+            , t.obj_name= #{objName}
+        </if>
+        <if test="bondType !=null and bondType != ''">
 , t.bond_type= #{bondType}
 , t.bond_type= #{bondType}
 </if> 
 </if> 
 <if test="receivableAmount !=null and receivableAmount != ''">
 <if test="receivableAmount !=null and receivableAmount != ''">