浏览代码

报销业务详情查看功能

user5 2 年之前
父节点
当前提交
823dfca27f

+ 1 - 0
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementAccountant/domain/dto/AccountantReimbursementBusinessDTO.java

@@ -34,6 +34,7 @@ public class AccountantReimbursementBusinessDTO extends BaseEntity {
     private String remainReimbursementAmount;  //剩余报销额度
     private String remarks; //备注
     private String officeType; //部门类型(1:中审众环;2:兴光会计;3:兴光项目;4:兴光评估)
+    private String userOfficeName; //报销人员所属部门
     /**
      * 报销开始日期
      */

+ 3 - 1
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementAccountant/mapper/xml/AccountantReimbursementBusinessMapper.xml

@@ -223,8 +223,10 @@
     <select id="findListByBusinessCodeId" resultType="com.jeeplus.test.reimbursementAccountant.domain.dto.AccountantReimbursementBusinessDTO">
         SELECT
         <include refid="reimbursementBusinessColumns"/>
-        FROM zs_reimbursement_business_accountant_info a
+        ,(select name from sys_office where id = (select substring_index(substring_index(parent_ids,',',3 ),',',-1 ) from sys_office where id = su.office_id)) as 'userOfficeName'
+        FROM zs_reimbursement_business_info a
         <include refid="reimbursementUserJoinColumns"/>
+        left join sys_office so on so.id = su.office_id
         <where>
             a.del_flag = 0
             and a.business_code_id = #{businessCodeId}

+ 1 - 0
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementAssess/domain/dto/AssessReimbursementBusinessDTO.java

@@ -34,6 +34,7 @@ public class AssessReimbursementBusinessDTO extends BaseEntity {
     private String remainReimbursementAmount;  //剩余报销额度
     private String remarks; //备注
     private String officeType; //部门类型(1:中审众环;2:兴光会计;3:兴光项目;4:兴光评估)
+    private String userOfficeName; //报销人员所属部门
     /**
      * 报销开始日期
      */

+ 3 - 1
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementAssess/mapper/xml/AssessReimbursementBusinessMapper.xml

@@ -223,8 +223,10 @@
     <select id="findListByBusinessCodeId" resultType="com.jeeplus.test.reimbursementAssess.domain.dto.AssessReimbursementBusinessDTO">
         SELECT
         <include refid="reimbursementBusinessColumns"/>
-        FROM zs_reimbursement_business_assess_info a
+        ,(select name from sys_office where id = (select substring_index(substring_index(parent_ids,',',3 ),',',-1 ) from sys_office where id = su.office_id)) as 'userOfficeName'
+        FROM zs_reimbursement_business_info a
         <include refid="reimbursementUserJoinColumns"/>
+        left join sys_office so on so.id = su.office_id
         <where>
             a.del_flag = 0
             and a.business_code_id = #{businessCodeId}

+ 1 - 0
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementProject/domain/dto/ProjectReimbursementBusinessDTO.java

@@ -34,6 +34,7 @@ public class ProjectReimbursementBusinessDTO extends BaseEntity {
     private String remainReimbursementAmount;  //剩余报销额度
     private String remarks; //备注
     private String officeType; //部门类型(1:中审众环;2:兴光会计;3:兴光项目;4:兴光评估)
+    private String userOfficeName; //报销人员所属部门
     /**
      * 报销开始日期
      */

+ 3 - 1
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementProject/mapper/xml/ProjectReimbursementBusinessMapper.xml

@@ -223,8 +223,10 @@
     <select id="findListByBusinessCodeId" resultType="com.jeeplus.test.reimbursementProject.domain.dto.ProjectReimbursementBusinessDTO">
         SELECT
         <include refid="reimbursementBusinessColumns"/>
-        FROM zs_reimbursement_business_project_info a
+        ,(select name from sys_office where id = (select substring_index(substring_index(parent_ids,',',3 ),',',-1 ) from sys_office where id = su.office_id)) as 'userOfficeName'
+        FROM zs_reimbursement_business_info a
         <include refid="reimbursementUserJoinColumns"/>
+        left join sys_office so on so.id = su.office_id
         <where>
             a.del_flag = 0
             and a.business_code_id = #{businessCodeId}

+ 1 - 0
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementsys/domain/dto/ReimbursementBusinessDTO.java

@@ -35,6 +35,7 @@ public class ReimbursementBusinessDTO extends BaseEntity {
     private String remarks; //备注
     private String reimbursementAddress;  //地区类型(0:正常报销;1:武汉)
     private String officeType; //部门类型(1:中审众环;2:兴光会计;3:兴光项目;4:兴光评估)
+    private String userOfficeName; //报销人员所属部门
 
 
     /**

+ 2 - 0
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementsys/mapper/xml/ReimbursementBusinessMapper.xml

@@ -235,8 +235,10 @@
     <select id="findListByBusinessCodeId" resultType="com.jeeplus.test.reimbursementsys.domain.dto.ReimbursementBusinessDTO">
         SELECT
         <include refid="reimbursementBusinessColumns"/>
+        ,(select name from sys_office where id = (select substring_index(substring_index(parent_ids,',',3 ),',',-1 ) from sys_office where id = su.office_id)) as 'userOfficeName'
         FROM zs_reimbursement_business_info a
         <include refid="reimbursementUserJoinColumns"/>
+        left join sys_office so on so.id = su.office_id
         <where>
             a.del_flag = 0
             and a.business_code_id = #{businessCodeId}

+ 2 - 0
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/reimbursementsys/mapper/xml/WuHanReimbursementBusinessMapper.xml

@@ -229,8 +229,10 @@
     <select id="findListByBusinessCodeId" resultType="com.jeeplus.test.reimbursementsys.domain.dto.ReimbursementBusinessDTO">
         SELECT
         <include refid="reimbursementBusinessColumns"/>
+        ,(select name from sys_office where id = (select substring_index(substring_index(parent_ids,',',3 ),',',-1 ) from sys_office where id = su.office_id)) as 'userOfficeName'
         FROM zs_reimbursement_business_info a
         <include refid="reimbursementUserJoinColumns"/>
+        left join sys_office so on so.id = su.office_id
         <where>
             a.del_flag = 0
             and a.business_code_id = #{businessCodeId}