|
|
@ -42,7 +42,7 @@ |
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
<if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
and t.invoice_no = #{invoiceNo} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="invoiceSource!=null and invoiceSource!='' and invoiceSource!='99'"> |
|
|
|
<if test="invoiceSource!=null and invoiceSource !='' and invoiceSource!='99'"> |
|
|
|
and t.invoice_source = #{invoiceSource} |
|
|
|
and t.invoice_source = #{invoiceSource} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="ids != null and ids.size()>0"> |
|
|
|
<if test="ids != null and ids.size()>0"> |
|
|
@ -58,18 +58,38 @@ |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <select id="selectWqsfpByQsyx" parameterType="java.util.Map"--> |
|
|
|
|
|
|
|
<!-- resultMap="BaseResultMap" databaseId="mysql">--> |
|
|
|
|
|
|
|
<!-- select--> |
|
|
|
|
|
|
|
<!-- t.id,t.invoice_type,t.invoice_code,t.invoice_no,t.invoice_date,t.gf_name,t.xf_name,t.invoice_amount,t.tax_amount,t.dept_id,t.qs_status--> |
|
|
|
|
|
|
|
<!-- from t_dx_record_invoice t--> |
|
|
|
|
|
|
|
<!-- where t.company = #{company}--> |
|
|
|
|
|
|
|
<!-- <if test="ids != null and ids.size()>0">--> |
|
|
|
|
|
|
|
<!-- and t.id in--> |
|
|
|
|
|
|
|
<!-- <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">--> |
|
|
|
|
|
|
|
<!-- #{item}--> |
|
|
|
|
|
|
|
<!-- </foreach>--> |
|
|
|
|
|
|
|
<!-- </if>--> |
|
|
|
|
|
|
|
<!-- and t.qs_status = '0'--> |
|
|
|
|
|
|
|
<!-- and t.source_system='0'--> |
|
|
|
|
|
|
|
<!-- </select>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectWqsfpByQsyx" parameterType="java.util.Map" |
|
|
|
<select id="selectWqsfpByQsyx" parameterType="java.util.Map" |
|
|
|
resultMap="BaseResultMap" databaseId="mysql"> |
|
|
|
resultMap="BaseResultMap" databaseId="mysql"> |
|
|
|
select |
|
|
|
select |
|
|
|
t.id,t.invoice_type,t.invoice_code,t.invoice_no,t.invoice_date,t.gf_name,t.xf_name,t.invoice_amount,t.tax_amount,t.dept_id,t.qs_status |
|
|
|
t.id,t.invoice_type,t.invoice_code,t.invoice_no,t.invoice_date,t.gf_name,t.xf_name,t.invoice_amount,t.tax_amount,t.dept_id,t.qs_status |
|
|
|
from t_dx_record_invoice t |
|
|
|
from t_dx_record_invoice t left join t_dx_invoice r on t.uuid = r.uuid |
|
|
|
where t.company = #{company} |
|
|
|
where |
|
|
|
<if test="ids != null and ids.size()>0"> |
|
|
|
<if test="ids != null and ids.size()>0"> |
|
|
|
and t.id in |
|
|
|
and r.id in |
|
|
|
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="company !=null and company != ''"> |
|
|
|
|
|
|
|
t.company = #{company} |
|
|
|
|
|
|
|
</if> |
|
|
|
and t.qs_status = '0' |
|
|
|
and t.qs_status = '0' |
|
|
|
and t.source_system='0' |
|
|
|
and t.source_system='0' |
|
|
|
</select> |
|
|
|
</select> |
|
|
|