|
@@ -244,7 +244,7 @@
|
|
|
<select id="findListByUserIdAndYear" resultType="com.jeeplus.test.reimbursementsys.domain.dto.ReimbursementBusinessDTO">
|
|
|
SELECT
|
|
|
<include refid="reimbursementBusinessColumns"/>
|
|
|
- ,zri.business_code as "businessCode"
|
|
|
+ ,ifnull(zri.business_code,(select business_code from zs_wuhan_reimbursement_info where id = a.business_code_id)) as "businessCode"
|
|
|
FROM zs_reimbursement_business_info a
|
|
|
<include refid="reimbursementUserJoinColumns"/>
|
|
|
left join zs_reimbursement_info zri on zri.id = a.business_code_id
|
|
@@ -252,7 +252,6 @@
|
|
|
a.del_flag = 0
|
|
|
and a.user_id = #{userId}
|
|
|
and a.year = #{year}
|
|
|
- and a.reimbursement_address = 0
|
|
|
</where>
|
|
|
order by a.update_date desc,a.year desc, a.user_id asc
|
|
|
</select>
|
|
@@ -268,7 +267,9 @@
|
|
|
a.del_flag = 0
|
|
|
and a.user_id = #{userId}
|
|
|
and a.year = #{year}
|
|
|
- and a.reimbursement_address = 0
|
|
|
+ <if test="reimbursementAddress != null">
|
|
|
+ and a.reimbursement_address = #{reimbursementAddress}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by a.update_date desc,a.year desc, a.user_id asc
|
|
|
</select>
|