|
@@ -63,10 +63,14 @@
|
|
|
|
|
|
<select id="getList" parameterType="BizFinancialIndividualIncomeTax"
|
|
|
resultMap="BizFinancialIndividualIncomeTaxResult">
|
|
|
- SELECT *,c.customer_label_id, t4.lable as customerLabelName FROM biz_financial_individual_income_tax f
|
|
|
+ SELECT *,c.customer_label_id, t4.lable as customerLabelName, t6.nick_name as verifierName,
|
|
|
+ t5.verifier_time FROM biz_financial_individual_income_tax f
|
|
|
LEFT JOIN biz_company c ON f.company_id = c.id
|
|
|
LEFT JOIN biz_tenant t ON f.tenant_id=t.id
|
|
|
left join biz_lable t4 on t4.id = c.customer_label_id
|
|
|
+ left join biz_financial_individual_income_tax_detail t5 on t5.financial_individual_income_tax_id = f.id
|
|
|
+ and t5.deleted = 0 and t5.month = #{month} and t5.year = #{year} and t5.financial_individual_income_tax_id = f.id
|
|
|
+ left join sys_user t6 on t6.user_id = t5.verifier_id
|
|
|
<trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|
|
|
f.deleted = 0
|
|
|
AND c.is_zero=1
|
|
@@ -81,6 +85,16 @@
|
|
|
<if test="taxType != null and taxType != null">
|
|
|
AND c.tax_type = #{taxType}
|
|
|
</if>
|
|
|
+ <if test="verifierName != null">
|
|
|
+ AND t6.nick_name like concat('%', #{verifierName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="dateFilter != null and dateFilter.size()>0 ">
|
|
|
+ AND (
|
|
|
+ DATE_FORMAT(t5.verifier_time,'%Y-%m-%d') >= #{dateFilter[0]}
|
|
|
+ AND
|
|
|
+ DATE_FORMAT(t5.verifier_time,'%Y-%m-%d') <= #{dateFilter[1]}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="month != null and year != null">
|
|
|
<if test="status != null and status != 0">
|
|
|
and exists (select 1 from biz_financial_individual_income_tax_detail f3 where
|