|
@@ -223,8 +223,10 @@
|
|
<select id="findListByBusinessCodeId" resultType="com.jeeplus.test.reimbursementAccountant.domain.dto.AccountantReimbursementBusinessDTO">
|
|
<select id="findListByBusinessCodeId" resultType="com.jeeplus.test.reimbursementAccountant.domain.dto.AccountantReimbursementBusinessDTO">
|
|
SELECT
|
|
SELECT
|
|
<include refid="reimbursementBusinessColumns"/>
|
|
<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"/>
|
|
<include refid="reimbursementUserJoinColumns"/>
|
|
|
|
+ left join sys_office so on so.id = su.office_id
|
|
<where>
|
|
<where>
|
|
a.del_flag = 0
|
|
a.del_flag = 0
|
|
and a.business_code_id = #{businessCodeId}
|
|
and a.business_code_id = #{businessCodeId}
|