| | |
| | | import org.apache.poi.hpsf.Decimal; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Modifying; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | */ |
| | | @Query(value = "SELECT SUM(amount) FROM capital_flow_income WHERE flow_id = ?1", nativeQuery = true) |
| | | BigDecimal sumAmountByFlowId(Long flowId); |
| | | |
| | | // 根据流水id删除数据 |
| | | @Modifying |
| | | @Query(value = "delete from capital_flow_income where flow_id = ?1",nativeQuery = true) |
| | | void deleteByFlowId(Long flowId); |
| | | } |