修复个税申报 不同税款所属期校验bug
This commit is contained in:
parent
c04dad0c4d
commit
0bcafd3934
|
|
@ -143,6 +143,9 @@
|
|||
<if test="taxCycleDateRange != null and taxCycleDateRange.endDate != null">
|
||||
AND t.tax_cycle <![CDATA[ <= ]]> #{taxCycleDateRange.endDate}
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
AND sob.tax_agent_id = #{taxAgentId}
|
||||
</if>
|
||||
ORDER BY t.id DESC
|
||||
</select>
|
||||
<select id="listByCreateDate" resultType="com.engine.salary.entity.salaryacct.po.SalaryAcctRecordPO">
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ public class TaxDeclarationServiceImpl extends Service implements TaxDeclaration
|
|||
.replace("{1}", SalaryDateUtil.getFormatYearMonth(saveParam.getSalaryMonth())));
|
||||
}
|
||||
// 查询薪资所属月的薪资核算记录
|
||||
salaryAcctRecordPOS = listBySalaryMonth(SalaryAcctRecordPO.builder().salaryMonths(salaryMonthDateRange).build());
|
||||
salaryAcctRecordPOS = listBySalaryMonth(SalaryAcctRecordPO.builder().salaryMonths(salaryMonthDateRange).taxAgentId(taxAgentId).build());
|
||||
|
||||
// 无薪资核算记录,不允许生成个税申报表
|
||||
if (CollectionUtils.isEmpty(salaryAcctRecordPOS)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue