| | |
| | | boolean hasFlow = false; |
| | | for (DappFundFlowEntity flow : flows) { |
| | | if (flow.getStatus() == 1) { |
| | | if (amount.compareTo(flow.getTargetAmount()) == 0) { |
| | | if (amount.compareTo(flow.getAmount()) == 0) { |
| | | hasFlow = true; |
| | | fundFlow = flow; |
| | | fundFlow.setFromHash(e.log.getTransactionHash()); |
| | |
| | | boolean hasFlow = false; |
| | | for (DappFundFlowEntity flow : flows) { |
| | | if (flow.getStatus() == 1) { |
| | | if (amount.compareTo(flow.getTargetAmount()) == 0) { |
| | | if (amount.compareTo(flow.getAmount().multiply(flow.getNewestPrice())) == 0) { |
| | | hasFlow = true; |
| | | fundFlow = flow; |
| | | fundFlow.setFromHash(e.log.getTransactionHash()); |
| | |
| | | <if test="status != null"> |
| | | and a.status=#{status} |
| | | </if> |
| | | order by a.id desc |
| | | </select> |
| | | |
| | | <select id="selectAmountTotalByType" resultType="java.util.HashMap"> |