|
|
@ -71,6 +71,20 @@ |
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'"> |
|
|
|
|
|
|
|
and (t.comp_code in |
|
|
|
|
|
|
|
<foreach collection="companyCodes" index="index" item="companyCode" separator="," open="(" close=")"> |
|
|
|
|
|
|
|
#{companyCode} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
or t.comp_code is null or t.comp_code = '' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '99' and companyCode != '88' and companyCode != '' and companyCode != 'null'" > |
|
|
|
|
|
|
|
and t.comp_code = #{companyCode} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode == '88'"> |
|
|
|
|
|
|
|
and (t.comp_code = '' or t.comp_code is null) |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> |
|
|
|
<if test="bzdh != null and bzdh != '' and bzdh != 'null'"> |
|
|
|
and t.bzdh = #{bzdh} |
|
|
|
and t.bzdh = #{bzdh} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -191,7 +205,6 @@ |
|
|
|
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> |
|
|
|
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> |
|
|
|
and t.account_period = #{accountPeriod} |
|
|
|
and t.account_period = #{accountPeriod} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
order by t.invoice_date desc |
|
|
|
|
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="selectByPramsMap" parameterType="java.util.Map" |
|
|
|
<select id="selectByPramsMap" parameterType="java.util.Map" |
|
|
|
resultMap="BaseResultMap" databaseId="oracle"> |
|
|
|
resultMap="BaseResultMap" databaseId="oracle"> |
|
|
|