| | |
| | | import com.mzl.flower.entity.wallet.WalletDO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.math.BigDecimal; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author @TaoJie |
| | | * @since 2024-10-22 |
| | | */ |
| | | @Repository |
| | | public interface WalletMapper extends BaseMapper<WalletDO> { |
| | | |
| | | |
| | | @Select("select total_amount as totalAmount from t_wallet where supplier_id =#{supplierId}") |
| | | public BigDecimal getTotalAmount(String supplierId); |
| | | @Select("select * from t_wallet where supplier_id =#{supplierId}") |
| | | public WalletDO getTotalAmount(String supplierId); |
| | | } |