| | |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | | * @author wcd |
| | |
| | | **/ |
| | | public interface SysConfigIndividualIncomeTaxRepository extends JpaRepository<SysConfigIndividualIncomeTax, Long>, JpaSpecificationExecutor<SysConfigIndividualIncomeTax> { |
| | | |
| | | /** 根据金额查询个人所得税表 */ |
| | | @Query(value = "SELECT * FROM `sys_config_individual_income_tax` WHERE gear_amount = ?", nativeQuery = true) |
| | | SysConfigIndividualIncomeTax findByGearAmount(String gearAmount); |
| | | /** 根据档位起始金额或档位截止金额查询个人所得税表 */ |
| | | @Query(value = "SELECT * FROM `sys_config_individual_income_tax` WHERE gear_amount_start = ?1 OR gear_amount_end = ?1", nativeQuery = true) |
| | | SysConfigIndividualIncomeTax findByGearAmountStartOrGearAmountEnd(BigDecimal gearAmount); |
| | | } |